Mini Kabibi Habibi
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CCLibraries=t():e.CCLibraries=t()}(self,(()=>(()=>{var __webpack_modules__={13050:(e,t,r)=>{var n={"./ACCC/css/darker/main.scss":[60853,3326],"./ACCC/css/light/main.scss":[10417,5180],"./AEFT/css/dark-v7/main.scss":[14957,7725],"./AEFT/css/dark/main.scss":[63853,5599],"./AEFT/css/darker/main.scss":[39542,4231],"./AEFT/css/generated/10/main.scss":[55562,2923],"./AEFT/css/generated/13/main.scss":[86752,7050],"./AEFT/css/generated/15/main.scss":[28682,59],"./AEFT/css/generated/18/main.scss":[84447,4356],"./AEFT/css/generated/20/main.scss":[52234,7334],"./AEFT/css/generated/23/main.scss":[5426,4882],"./AEFT/css/generated/25/main.scss":[55166,2625],"./AEFT/css/generated/28/main.scss":[20605,4738],"./AEFT/css/generated/3/main.scss":[19521,1813],"./AEFT/css/generated/30/main.scss":[77768,2497],"./AEFT/css/generated/33/main.scss":[66726,9988],"./AEFT/css/generated/35/main.scss":[54003,5874],"./AEFT/css/generated/38/main.scss":[89138,2581],"./AEFT/css/generated/40/main.scss":[4175,9369],"./AEFT/css/generated/43/main.scss":[119,539],"./AEFT/css/generated/45/main.scss":[89547,2716],"./AEFT/css/generated/48/main.scss":[19533,2e3],"./AEFT/css/generated/5/main.scss":[58861,622],"./AEFT/css/generated/50/main.scss":[64636,3368],"./AEFT/css/generated/53/main.scss":[58777,3239],"./AEFT/css/generated/55/main.scss":[94320,4549],"./AEFT/css/generated/58/main.scss":[60616,2399],"./AEFT/css/generated/60/main.scss":[59641,1766],"./AEFT/css/generated/63/main.scss":[94289,2124],"./AEFT/css/generated/65/main.scss":[20572,7057],"./AEFT/css/generated/68/main.scss":[95789,9107],"./AEFT/css/generated/70/main.scss":[60584,8211],"./AEFT/css/generated/73/main.scss":[42286,5408],"./AEFT/css/generated/75/main.scss":[18031,6900],"./AEFT/css/generated/78/main.scss":[10967,3482],"./AEFT/css/generated/8/main.scss":[45338,3681],"./AEFT/css/generated/80/main.scss":[35890,810],"./AEFT/css/generated/83/main.scss":[28257,1441],"./AEFT/css/generated/85/main.scss":[5489,5108],"./AEFT/css/generated/88/main.scss":[1049,4589],"./AEFT/css/generated/90/main.scss":[85464,8237],"./AEFT/css/generated/93/main.scss":[3244,3703],"./AEFT/css/generated/95/main.scss":[39898,2861],"./AEFT/css/generated/98/main.scss":[99284,2012],"./AEFT/css/light/main.scss":[49306,2880],"./AH/css/darker/main.scss":[58365,9690],"./AH/css/light/main.scss":[10210,9910],"./CCX/css/lighter/main.scss":[25251,7167],"./CLIO/css/dark/main.scss":[60834,9011],"./CLIO/css/darker/main.scss":[1225,3113],"./CLIO/css/light/main.scss":[46405,608],"./CLIO/css/lighter/main.scss":[14559,8797],"./DRWV/css/dark/main.scss":[64140,4671],"./DRWV/css/darker/main.scss":[7774,1890],"./DRWV/css/light/main.scss":[57720,1839],"./DRWV/css/lighter/main.scss":[7410,3633],"./FLPR/css/dark/main.scss":[82370,5169],"./FLPR/css/lighter/main.scss":[9453,8320],"./Figma/css/dark/main.scss":[31213,5812],"./Figma/css/lighter/main.scss":[43546,5897],"./GenStudio/css/lighter/main.scss":[2492,7938],"./GoogleSlides/css/lighter/main.scss":[12410,5895],"./IDSN/css/dark/main.scss":[52741,4923],"./IDSN/css/darker/main.scss":[98913,4668],"./IDSN/css/light/main.scss":[61800,406],"./IDSN/css/lighter/main.scss":[4391,1573],"./ILST/css/dark/main.scss":[11182,7254],"./ILST/css/darker/main.scss":[38946,7776],"./ILST/css/light/main.scss":[40124,4029],"./ILST/css/lighter/main.scss":[11602,5548],"./ILST_UXP/css/dark/main.scss":[56675,4031],"./ILST_UXP/css/darker/main.scss":[40986,6030],"./ILST_UXP/css/light/main.scss":[62122,5019],"./ILST_UXP/css/lighter/main.scss":[51161,3240],"./KBRG/css/dark/main.scss":[70617,2777],"./KBRG/css/dark_mondo/main.scss":[2847,6465],"./KBRG/css/darker/main.scss":[19927,1672],"./KBRG/css/light_mondo/main.scss":[31506,6589],"./KBRG/css/lighter/main.scss":[32830,4192],"./KBRG/css/lighter_mondo/main.scss":[2882,5341],"./PHXS/css/dark/main.scss":[73247,5661],"./PHXS/css/darker/main.scss":[15868,1583],"./PHXS/css/light/main.scss":[71482,3775],"./PHXS/css/lighter/main.scss":[77116,7128],"./PHXS_UXP/css/dark/main.scss":[50184,4959],"./PHXS_UXP/css/darker/main.scss":[27402,9297],"./PHXS_UXP/css/light/main.scss":[76466,2663],"./PHXS_UXP/css/lighter/main.scss":[4024,8362],"./PPRO/css/dark-v7/main.scss":[21630,8499],"./PPRO/css/dark/main.scss":[653,2397],"./PPRO/css/darker/main.scss":[55260,9623],"./PPRO/css/generated/10/main.scss":[3433,6289],"./PPRO/css/generated/13/main.scss":[55338,4450],"./PPRO/css/generated/15/main.scss":[16115,1311],"./PPRO/css/generated/18/main.scss":[64806,6321],"./PPRO/css/generated/20/main.scss":[38419,3769],"./PPRO/css/generated/23/main.scss":[43106,583],"./PPRO/css/generated/25/main.scss":[45842,2002],"./PPRO/css/generated/28/main.scss":[82622,6284],"./PPRO/css/generated/3/main.scss":[74593,2472],"./PPRO/css/generated/30/main.scss":[20472,9776],"./PPRO/css/generated/33/main.scss":[96565,2369],"./PPRO/css/generated/35/main.scss":[2473,1952],"./PPRO/css/generated/38/main.scss":[87917,3659],"./PPRO/css/generated/40/main.scss":[62666,3878],"./PPRO/css/generated/43/main.scss":[74659,7136],"./PPRO/css/generated/45/main.scss":[10432,1341],"./PPRO/css/generated/48/main.scss":[55717,3945],"./PPRO/css/generated/5/main.scss":[82547,6552],"./PPRO/css/generated/50/main.scss":[64440,532],"./PPRO/css/generated/53/main.scss":[33548,437],"./PPRO/css/generated/55/main.scss":[90934,1016],"./PPRO/css/generated/58/main.scss":[21011,3241],"./PPRO/css/generated/60/main.scss":[81126,2984],"./PPRO/css/generated/63/main.scss":[35169,2131],"./PPRO/css/generated/65/main.scss":[31667,8740],"./PPRO/css/generated/68/main.scss":[83023,4135],"./PPRO/css/generated/70/main.scss":[98559,2194],"./PPRO/css/generated/73/main.scss":[44761,2216],"./PPRO/css/generated/75/main.scss":[97220,4665],"./PPRO/css/generated/78/main.scss":[54043,6488],"./PPRO/css/generated/8/main.scss":[96661,2425],"./PPRO/css/generated/80/main.scss":[34250,9754],"./PPRO/css/generated/83/main.scss":[8393,2269],"./PPRO/css/generated/85/main.scss":[79787,7326],"./PPRO/css/generated/88/main.scss":[35124,7423],"./PPRO/css/generated/90/main.scss":[10818,8843],"./PPRO/css/generated/93/main.scss":[97103,6776],"./PPRO/css/generated/95/main.scss":[19058,8544],"./PPRO/css/generated/98/main.scss":[73054,926],"./PPRO/css/light/main.scss":[19794,3019],"./PowerPoint/css/darker/main.scss":[85169,3869],"./PowerPoint/css/lighter/main.scss":[47932,1071],"./SPRK/css/lighter/main.scss":[82235,7933],"./STGR/css/darker/main.scss":[41503,1331],"./STGR/css/lighter/main.scss":[79921,4386],"./StyleGuide/css/lighter/main.scss":[91497,1465],"./Word/css/darker/main.scss":[37075,9729],"./Word/css/lighter/main.scss":[48056,4214]};function i(e){if(!r.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return r.e(t[1]).then((()=>r.t(i,19)))}i.keys=()=>Object.keys(n),i.id=13050,e.exports=i},42649:(e,t,r)=>{var n={"./cover1.svg":34045,"./cover10.svg":55756,"./cover11.svg":50999,"./cover12.svg":95512,"./cover13.svg":93605,"./cover14.svg":86304,"./cover15.svg":89201,"./cover16.svg":63587,"./cover17.svg":82659,"./cover18.svg":89133,"./cover19.svg":41226,"./cover2.svg":7627,"./cover20.svg":48527,"./cover3.svg":91564,"./cover4.svg":39937,"./cover5.svg":68591,"./cover6.svg":85836,"./cover7.svg":17456,"./cover8.svg":87298,"./cover9.svg":83993};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=42649},90305:(e,t,r)=>{var n={"./aac_filetype_256.svg":19824,"./aac_filetype_64.svg":63045,"./aif_filetype_256.svg":59466,"./aif_filetype_64.svg":11612,"./aiff_filetype_256.svg":23546,"./aiff_filetype_64.svg":13206,"./m4a_filetype_256.svg":157,"./m4a_filetype_64.svg":32224,"./mp2_filetype_256.svg":27129,"./mp2_filetype_64.svg":8823,"./mp3_filetype_256.svg":60501,"./mp3_filetype_64.svg":88050,"./mpga_filetype_64.svg":44255,"./wav_filetype_256.svg":48775,"./wav_filetype_64.svg":91546};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=90305},50238:(e,t,r)=>{var n={"./dn_filetype_1024.svg":10565,"./exr_filetype_1024.svg":92576,"./fbx_filetype_1024.svg":76064,"./glb_filetype_1024.svg":51760,"./gltf_filetype_1024.svg":61161,"./hdr_filetype_1024.svg":88762,"./ibl_filetype_1024.svg":51235,"./mdl_filetype_1024.svg":49363,"./obj_filetype_1024.svg":26361,"./sbsar_filetype_1024.svg":82911,"./usdz_filetype_1024.svg":95496};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=50238},5515:(e,t,r)=>{var n={"./AH404Error.svg":28069,"./AHEmptyLibrary.svg":79337,"./ActivateFonts.svg":35213,"./ActivateFontsSpinner.svg":11867,"./Add.svg":65403,"./Add12.svg":49331,"./Add14.svg":1963,"./AddAnimation.svg":6791,"./AddBrush.svg":15406,"./AddCCLibrary.svg":37461,"./AddCharacterStyle.svg":69035,"./AddCircle.svg":92846,"./AddCircleOutline.svg":28506,"./AddComponent.svg":70793,"./AddCopy.svg":18434,"./AddDropdown.svg":33433,"./AddGroup.svg":4931,"./AddImage.svg":9981,"./AddLayerStyle.svg":752,"./AddLink.svg":29451,"./AddLook.svg":64978,"./AddModel.svg":99743,"./AddParagraphStyle.svg":52576,"./AddStock.svg":30571,"./AddText.svg":1360,"./AdobeFonts.svg":62344,"./Alert.svg":20568,"./AlertOutline.svg":32903,"./AllFilterIcon.svg":95852,"./ArrowDown.svg":42964,"./ArrowUp.svg":78027,"./AssetBrokenElement.svg":31651,"./AssetBrokenLink.svg":29179,"./AssetLinked.svg":54104,"./AssetRestricted.svg":27481,"./AssetUpdate.svg":70474,"./AssetUploading.svg":49864,"./Back.svg":61659,"./BackArrow.svg":46787,"./Browse.svg":48907,"./BrowseTeamLibrary.svg":58389,"./Building.svg":67012,"./CCLibrary.svg":56586,"./CCLibrary16.svg":19161,"./CCLibraryLocked.svg":6598,"./CCXCreateBrandPlus.svg":99910,"./CCXCreateColor.svg":33666,"./CCXCreateFont.svg":69177,"./CCXCreateImage.svg":23130,"./CCXCreateLogo.svg":13558,"./CCXCreateTemplate.svg":21425,"./CCXDiscoverLibraries.svg":57864,"./CCXEmptyBrands.svg":53211,"./CCXEmptyLibrary.svg":60458,"./CCXGenericLibraries.svg":44326,"./CCXLibraryLarge.svg":60832,"./Capture.svg":21105,"./ChangeCloud.svg":46922,"./Checkmark.svg":48567,"./CheckmarkCircle.svg":31719,"./CheckmarkRounded.svg":42625,"./ChevronDownMedium.svg":49386,"./ChevronDownSmall.svg":73453,"./ChevronLeftMedium.svg":78714,"./ChevronLeftSmall.svg":20776,"./ChevronRightMedium.svg":506,"./ChevronRightSmall.svg":75797,"./Clock.svg":9126,"./Close.svg":80351,"./Cloud.svg":7007,"./Copy.svg":27327,"./CreateATeamLibrary.svg":40880,"./CreateColor.svg":26222,"./CreateColortheme.svg":94275,"./CreateFont.svg":33949,"./CreateImage.svg":14484,"./CreateLogo.svg":62159,"./CreateTemplate.svg":453,"./CreativeCloud.svg":58823,"./CreativeCloudAlert.svg":242,"./CreativeCloudError.svg":46690,"./Date.svg":13068,"./Delete.svg":97991,"./DiscoverLibraries.svg":86346,"./DocumentAssets.svg":94878,"./DownArrow.svg":64172,"./Duplicate.svg":64851,"./Edit.svg":51371,"./EmptyLibrary.svg":23087,"./EmptyLibrary1.svg":838,"./EmptyLibrary2.svg":42699,"./EmptyLibrary3.svg":4471,"./Error.svg":41791,"./Filter.svg":22370,"./Filter16.svg":74989,"./FilterApplied.svg":85394,"./FilterNotification16.svg":93038,"./FilterWarning.svg":22209,"./Flag.svg":82261,"./Folder.svg":81764,"./FolderOpen.svg":48538,"./Globe.svg":29575,"./GlobeSearch.svg":8332,"./GridView.svg":97365,"./Group.svg":73344,"./HelpOutline.svg":51546,"./IlluAccessAssetsEverywhere.svg":28902,"./Info.svg":16825,"./InfoOutline.svg":32548,"./Invite.svg":83383,"./Leave.svg":86080,"./LibraryAccess.svg":34533,"./Link.svg":30998,"./LinkedDocumentLibrary_CanEdit.svg":4005,"./LinkedDocumentLibrary_CanView.svg":56016,"./LinkedLibrary.svg":61439,"./ListView.svg":46089,"./Lock.svg":29932,"./LockMenu.svg":14904,"./LockPopup.svg":72836,"./Logos.svg":98618,"./Magnify.svg":87584,"./MissingFontWarning.svg":24861,"./More.svg":17296,"./Move.svg":4006,"./NamingOrder.svg":21296,"./Next.svg":61419,"./NoSearchResults.svg":68857,"./Note.svg":29974,"./OnboardingCCLibrary.svg":99576,"./OpenIn.svg":36652,"./Organisations.svg":1704,"./PathView.svg":9801,"./PlaceOnCanvas.svg":11537,"./Plus.svg":41464,"./PlusDrag.svg":42110,"./Projects.svg":54721,"./PublishRemove.svg":53225,"./Question.svg":17529,"./ReadOnly.svg":83742,"./Rename.svg":91355,"./ReuseUpdateAssets.svg":36346,"./SX_Buildings.svg":39895,"./SX_Delete.svg":66529,"./SX_Edit.svg":93567,"./SX_Filter.svg":9997,"./SX_Flag.svg":3367,"./SX_GlobeGrid.svg":61383,"./SX_Invite.svg":58530,"./SX_Leave.svg":78295,"./SX_PublishRemove.svg":75151,"./SX_Rename.svg":90618,"./SX_Search.svg":16314,"./SX_SortOrderDown.svg":77729,"./SX_SortOrderUp.svg":60791,"./SX_User.svg":21549,"./SX_UserGroup.svg":60569,"./S_MoveTo_18_N.svg":7280,"./Settings.svg":4465,"./ShareAssets.svg":26246,"./Shop.svg":62458,"./ShoppingCart.svg":57325,"./ShowMenu.svg":73557,"./Sort.svg":2548,"./SortDescending.svg":93065,"./StockLicensedBadge.svg":87295,"./Subscribed.svg":45071,"./SyncAlert.svg":29184,"./SyncDefault.svg":32797,"./SyncError.svg":47403,"./Syncing.svg":69543,"./SyncingSpinner.svg":8404,"./TraditionalLibrary_CanEdit.svg":73671,"./TraditionalLibrary_CanView.svg":88998,"./TreeView.svg":57067,"./UploadDocAssets.svg":23687,"./UploadImage.svg":88864,"./UseAsBrand.svg":7317,"./UseAsLibrary.svg":52449,"./User.svg":39100,"./UserGroup.svg":33380,"./VerifyContentAuthenticity.svg":95861,"./Visibility.svg":7237,"./XDFile.svg":71001};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=5515},77123:(e,t,r)=>{("undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"cc-libraries-panel@4.8.170"}},44054:(e,t,r)=>{"use strict";r.d(t,{R:()=>D});var n=r(70678),i=r(55725),o=r(20512),a=r(23155),s=r(94143),c=r(32962),l=r(18476);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 p(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){d(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 d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=r(26487),f=r(31209),m=r(52059),g=r(58950);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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||b(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(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function b(e,t){if(e){if("string"==typeof e)return _(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,t):void 0}}function _(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(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?E(Object(r),!0).forEach((function(t){L(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 L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){return void 0===e.type}function S(e){return"transaction"===e.type}var O=r(29412),T=r(49230);function I(e,t,r){const n=[{type:"client_report"},{timestamp:r||(0,T.yW)(),discarded_events:e}];return(0,s.Jd)(t?{dsn:t}:{},[n])}var P=r(12856),C=r(7521),A=r(57602),k=r(10710);class D extends class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn&&(this._dsn=(0,n.vK)(e.dsn)),this._dsn){const t=(0,l.U)(this._dsn,e);this._transport=e.transport(w(w({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{},{url:t}))}}captureException(e,t,r){if((0,i.YO)(e))return;let n=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,r))).then((e=>{n=e}))),n}captureMessage(e,t,r,n){let i=r&&r.event_id;const a=(0,o.pt)(e)?this.eventFromMessage(String(e),t,r):this.eventFromException(e,r);return this._process(a.then((e=>this._captureEvent(e,r,n))).then((e=>{i=e}))),i}captureEvent(e,t,r){if(t&&t.originalException&&(0,i.YO)(t.originalException))return;let n=t&&t.event_id;return this._process(this._captureEvent(e,t,r).then((e=>{n=e}))),n}captureSession(e){"string"!=typeof e.release||(this.sendSession(e),(0,f.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e)))):(0,a.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=(0,h.q4)(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(e){return null}}addIntegration(e){(0,h.m7)(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){const i=(0,s.HY)(r),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,r&&r.sdk);const a=(0,s.Cd)(e,i,n,t);delete e.sdkProcessingMetadata;const c=[{type:o},e];return(0,s.Jd)(a,[c])}(e,this._dsn,this._options._metadata,this._options.tunnel);var n,i=y(t.attachments||[]);try{for(i.s();!(n=i.n()).done;){const e=n.value;r=(0,s.BO)(r,(0,s.zQ)(e,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(e){i.e(e)}finally{i.f()}const o=this._sendEnvelope(r);o&&o.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,r,i){const o=(0,s.HY)(r),a=p(p({sent_at:(new Date).toISOString()},o&&{sdk:o}),!!i&&t&&{dsn:(0,n.RA)(t)}),c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,s.Jd)(a,[c])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){const r=`${e}:${t}`;this._outcomes[r]=this._outcomes[r]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let r=!1,n=!1;const i=t.exception&&t.exception.values;if(i){n=!0;var o,a=y(i);try{for(a.s();!(o=a.n()).done;){const e=o.value.mechanism;if(e&&!1===e.handled){r=!0;break}}}catch(e){a.e(e)}finally{a.f()}}const s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,f.CT)(e,w(w({},r&&{status:"crashed"}),{},{errors:e.errors||Number(n||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new a.cW((t=>{let r=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r){const n=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),(0,g.R)(n,e,t,r,this).then((e=>{if(null===e)return e;const t=(e.sdkProcessingMetadata||{}).propagationContext;if(!(e.contexts&&e.contexts.trace)&&t){const n=t.traceId,i=t.spanId,o=t.parentSpanId,a=t.dsc;e.contexts=w({trace:{trace_id:n,span_id:i,parent_span_id:o}},e.contexts);const s=a||(0,m._)(n,this,r);e.sdkProcessingMetadata=w({dynamicSamplingContext:s},e.sdkProcessingMetadata)}return e}))}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{0}))}_processEvent(e,t,r){const n=this.getOptions(),i=n.sampleRate,s=S(e),l=x(e),u=e.type||"error",p=`before send for type \`${u}\``;if(l&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,a.$2)(new c.b(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const d="replay_event"===u?"replay":u;return this._prepareEvent(e,t,r).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",d,e),new c.b("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return r;const i=function(e,t,r){const n=e.beforeSend,i=e.beforeSendTransaction;if(x(t)&&n)return n(t,r);if(S(t)&&i)return i(t,r);return t}(n,r,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,o.J8)(e))return e.then((e=>{if(!(0,o.PO)(e)&&null!==e)throw new c.b(r);return e}),(e=>{throw new c.b(`${t} rejected with ${e}`)}));if(!(0,o.PO)(e)&&null!==e)throw new c.b(r);return e}(i,p)})).then((n=>{if(null===n)throw this.recordDroppedEvent("before_send",d,e),new c.b(`${p} returned \`null\`, will not send event.`,"log");const i=r&&r.getSession();!s&&i&&this._updateSessionFromEvent(i,n);const o=n.transaction_info;if(s&&o&&n.transaction!==e.transaction){const e="custom";n.transaction_info=w(w({},o),{},{source:e})}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof c.b)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new c.b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{}))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const r=v(t.split(":"),2);return{reason:r[0],category:r[1],quantity:e[t]}}))}}{constructor(e){const t=A.m9.SENTRY_SDK_SOURCE||(0,P.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:O.J}],version:O.J},super(e),e.sendClientReports&&A.m9.document&&A.m9.document.addEventListener("visibilitychange",(()=>{"hidden"===A.m9.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return(0,C.dr)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,C.aB)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;const t=(0,k.r)(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return;if(!this._dsn)return;const t=I(e,this._options.tunnel&&(0,n.RA)(this._dsn));this._sendEnvelope(t)}}},7521:(e,t,r)=>{"use strict";r.d(t,{GJ:()=>d,ME:()=>b,aB:()=>y,dr:()=>v});var n=r(21955),i=r(20512),o=r(93937),a=r(55725),s=r(23155),c=r(7938);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 u(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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){const r=f(e,t),n={type:t&&t.name,value:g(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function h(e,t){return{exception:{values:[d(e,t)]}}}function f(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(m.test(e.message))return 1}return 0}(t);try{return e(r,n)}catch(e){}return[]}const m=/Minified React error #\d+;/i;function g(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function v(e,t,r,n){const i=b(e,t,r&&r.syntheticException||void 0,n);return(0,a.EG)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,s.WD)(i)}function y(e,t,r="info",n,i){const o=_(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,s.WD)(o)}function b(e,t,r,s,c){let l;if((0,i.VW)(t)&&t.error){return h(e,t.error)}if((0,i.TX)(t)||(0,i.fm)(t)){const n=t;if("stack"in t)l=h(e,t);else{const t=n.name||((0,i.TX)(n)?"DOMError":"DOMException"),o=n.message?`${t}: ${n.message}`:t;l=_(e,o,r,s),(0,a.Db)(l,o)}return"code"in n&&(l.tags=u(u({},l.tags),{},{"DOMException.code":`${n.code}`})),l}if((0,i.VZ)(t))return h(e,t);if((0,i.PO)(t)||(0,i.cO)(t)){return l=function(e,t,r,a){const s=(0,n.Gd)().getClient(),c=s&&s.getOptions().normalizeDepth,l={exception:{values:[{type:(0,i.cO)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:E(t,{isUnhandledRejection:a})}]},extra:{__serialized__:(0,o.Qy)(t,c)}};if(r){const t=f(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,c),(0,a.EG)(l,{synthetic:!0}),l}return l=_(e,t,r,s),(0,a.Db)(l,`${t}`,void 0),(0,a.EG)(l,{synthetic:!0}),l}function _(e,t,r,n){const i={message:t};if(n&&r){const n=f(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}return i}function E(e,{isUnhandledRejection:t}){const r=(0,c.zf)(e),n=t?"promise rejection":"exception";if((0,i.VW)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,i.cO)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}},57602:(e,t,r)=>{"use strict";r.d(t,{Wz:()=>d,m9:()=>u,re:()=>f});var n=r(10470),i=r(19596),o=r(7938),a=r(55725);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){l(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 l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=i.n2;let p=0;function d(){return p>0}function h(){p++,setTimeout((()=>{p--}))}function f(e,t={},r){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,o.HK)(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);const n=i.map((e=>f(e,t)));return e.apply(this,n)}catch(e){throw h(),(0,n.$e)((r=>{r.addEventProcessor((e=>(t.mechanism&&((0,a.Db)(e,void 0,void 0),(0,a.EG)(e,t.mechanism)),e.extra=c(c({},e.extra),{},{arguments:i}),e))),(0,n.Tb)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}(0,o.$Q)(i,e),(0,o.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}},41616:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Breadcrumbs:()=>Ke.O,BrowserClient:()=>Be.R,BrowserProfilingIntegration:()=>Ys,BrowserTracing:()=>qa,Dedupe:()=>Je.I,FunctionToString:()=>o.c,GlobalHandlers:()=>We.d,HttpContext:()=>Xe.q,Hub:()=>b.Xb,InboundFilters:()=>a.QD,Integrations:()=>Xs,LinkedErrors:()=>qe.i,ModuleMetadata:()=>y,Replay:()=>ma,SDK_VERSION:()=>De.J,Scope:()=>Ne.s,TryCatch:()=>$e.p,WINDOW:()=>Fe.m9,addBreadcrumb:()=>Re.n_,addGlobalEventProcessor:()=>Me.cc,addIntegration:()=>je.M5,addTracingExtensions:()=>ue,captureEvent:()=>Re.eN,captureException:()=>Re.Tb,captureMessage:()=>Re.uT,captureUserFeedback:()=>Ye.Jd,chromeStackLineParser:()=>ze.$3,close:()=>Re.xv,configureScope:()=>Re.e,continueTrace:()=>be,createTransport:()=>Ze.q,createUserFeedbackEnvelope:()=>He.r,defaultIntegrations:()=>Ye.SS,defaultRequestInstrumentationOptions:()=>Ga,defaultStackLineParsers:()=>ze.d8,defaultStackParser:()=>ze.Dt,eventFromException:()=>Ve.dr,eventFromMessage:()=>Ve.aB,exceptionFromError:()=>Ve.GJ,extractTraceparentData:()=>M,flush:()=>Re.yl,forceLoad:()=>Ye.Eg,geckoStackLineParser:()=>ze.$Q,getActiveSpan:()=>ye,getActiveTransaction:()=>E,getCurrentHub:()=>b.Gd,getHubFromCarrier:()=>b.vi,init:()=>Ye.S1,instrumentOutgoingRequests:()=>Ua,lastEventId:()=>Re.eW,makeBrowserOfflineTransport:()=>fs,makeFetchTransport:()=>Ge.f,makeMain:()=>b.pj,makeMultiplexedTransport:()=>Ae,makeXHRTransport:()=>Ue.K,onLoad:()=>Ye.lA,onProfilingStartRouteTransaction:()=>Us,opera10StackLineParser:()=>ze.NP,opera11StackLineParser:()=>ze.HH,setContext:()=>Re.v,setExtra:()=>Re.sU,setExtras:()=>Re.rJ,setMeasurement:()=>ke,setTag:()=>Re.YA,setTags:()=>Re.mG,setUser:()=>Re.av,showReportDialog:()=>Ye.jp,spanStatusfromHttpCode:()=>H,startInactiveSpan:()=>ve,startSpan:()=>me,startSpanManual:()=>ge,startTransaction:()=>Re.Yr,trace:()=>fe,winjsStackLineParser:()=>ze.R2,withScope:()=>Re.$e,wrap:()=>Ye.re});var n={};r.r(n),r.d(n,{FunctionToString:()=>o.c,InboundFilters:()=>a.QD,LinkedErrors:()=>u});var i={};r.r(i),r.d(i,{Breadcrumbs:()=>Ke.O,Dedupe:()=>Je.I,GlobalHandlers:()=>We.d,HttpContext:()=>Xe.q,LinkedErrors:()=>qe.i,TryCatch:()=>$e.p});var o=r(23186),a=r(93105),s=r(14893);function c(e,t){return e(t.stack||"",1)}function l(e,t){const r={type:t.name||t.constructor.name,value:t.message},n=c(e,t);return n.length&&(r.stacktrace={frames:n}),r}class u{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this._key=e.key||"cause",this._limit=e.limit||5,this.name=u.id}setupOnce(){}preprocessEvent(e,t,r){const n=r.getOptions();(0,s.Z)(l,n.stackParser,n.maxValueLength,this._key,this._limit,e,t)}}u.__initStatic();var p=r(94143),d=r(19596);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)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function f(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}const m=new Map,g=new Set;function v(e,t){return function(e){if(d.n2._sentryModuleMetadata)for(var t=0,r=Object.keys(d.n2._sentryModuleMetadata);t<r.length;t++){const o=r[t],a=d.n2._sentryModuleMetadata[o];if(!g.has(o)){g.add(o);var n,i=h(e(o).reverse());try{for(i.s();!(n=i.n()).done;){const e=n.value;if(e.filename){m.set(e.filename,a);break}}}catch(e){i.e(e)}finally{i.f()}}}}(e),m.get(t)}class y{static __initStatic(){this.id="ModuleMetadata"}constructor(){this.name=y.id}setupOnce(e,t){const r=t().getClient();if(!r||"function"!=typeof r.on)return;r.on("beforeEnvelope",(e=>{(0,p.gv)(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(!function(e){try{e.exception.values.forEach((e=>{if(e.stacktrace){var t,r=h(e.stacktrace.frames||[]);try{for(r.s();!(t=r.n()).done;)delete t.value.module_metadata}catch(e){r.e(e)}finally{r.f()}}}))}catch(e){}}(t),e[1]=t)}}))}));const n=r.getOptions().stackParser;e((e=>(function(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace){var r,n=h(t.stacktrace.frames||[]);try{for(n.s();!(r=n.n()).done;){const t=r.value;if(!t.filename)continue;const n=v(e,t.filename);n&&(t.module_metadata=n)}}catch(e){n.e(e)}finally{n.f()}}}))}catch(e){}}(n,e),e)))}}y.__initStatic();var b=r(21955),_=r(81239);function E(e){return(e||(0,b.Gd)()).getScope().getTransaction()}let w=!1;function L(){const e=E();if(e){const t="internal_error";e.setStatus(t)}}L.tag="sentry_tracingErrorCallback";var x=r(49230),S=r(55725),O=r(20512);function T(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const C="baggage",A="sentry-",k=/^sentry-/;function D(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,r],n)=>{const i=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,o=0===n?i:`${e},${i}`;return o.length>8192?e:o}),"")}(Object.entries(e).reduce(((e,[t,r])=>(r&&(e[`sentry-${t}`]=r),e)),{}))}function N(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(e[t]=r,e)),{})}const R=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function M(e){if(!e)return;const t=e.match(R);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function j(e,t){const r=M(e),n=function(e){if(!(0,O.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const r=N(t);return I(I({},e),r)}),{});else{if(!e)return;t=N(e)}const r=Object.entries(t).reduce(((e,[t,r])=>(t.match(k)&&(e[t.slice(A.length)]=r),e)),{});return Object.keys(r).length>0?r:void 0}(t),i=r||{},o=i.traceId,a=i.parentSpanId,s=i.parentSampled,c={traceId:o||(0,S.DM)(),spanId:(0,S.DM)().substring(16),sampled:s};return a&&(c.parentSpanId=a),n&&(c.dsc=n),{traceparentData:r,dynamicSamplingContext:n,propagationContext:c}}function Z(e=(0,S.DM)(),t=(0,S.DM)().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}var F=r(7938);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 G(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){U(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 U(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class z{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class V{constructor(e={}){this.traceId=e.traceId||(0,S.DM)(),this.spanId=e.spanId||(0,S.DM)().substring(16),this.startTimestamp=e.startTimestamp||(0,x.ph)(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){const t=new V(G(G({},e),{},{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,t}setTag(e,t){return this.tags=G(G({},this.tags),{},{[e]:t}),this}setData(e,t){return this.data=G(G({},this.data),{},{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const t=H(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){this.endTimestamp="number"==typeof e?e:(0,x.ph)()}toTraceparent(){return Z(this.traceId,this.spanId,this.sampled)}toContext(){return(0,F.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return(0,F.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,F.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function H(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}var Y=r(52059);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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){K(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 K(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class q extends V{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||(0,b.Gd)(),this._name=e.name||"",this.metadata=$($({source:"custom"},e.metadata),{},{spanMetadata:{}}),this._trimEnd=e.trimEnd,this.transaction=this;const r=this.metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext=$({},r))}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new z(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,r=""){this._measurements[e]={value:t,unit:r}}setMetadata(e){this.metadata=$($({},this.metadata),e)}finish(e){const t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){const e=super.toContext();return(0,F.Jr)($($({},e),{},{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||(0,b.Gd)(),t=e.getClient();if(!t)return{};const r=e.getScope(),n=(0,Y._)(this.traceId,t,r),i=this.metadata.sampleRate;void 0!==i&&(n.sample_rate=`${i}`);const o=this.metadata.source;return o&&"url"!==o&&(n.transaction=this.name),void 0!==this.sampled&&(n.sampled=String(this.sampled)),n}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this.endTimestamp)return;this.name||(this.name="<unlabeled transaction>"),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return void(t&&t.recordDroppedEvent("sample_rate","transaction"));const r=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const n=this.metadata,i=$({contexts:$($({},this._contexts),{},{trace:this.getTraceContext()}),spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:$($({},n),{},{dynamicSamplingContext:this.getDynamicSamplingContext()})},n.source&&{transaction_info:{source:n.source}});return Object.keys(this._measurements).length>0&&(i.measurements=this._measurements),i}}function X(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return J(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function J(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}const Q={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},ee=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class te extends z{constructor(e,t,r,n){super(n),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=r}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,x.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class re extends q{constructor(e,t,r=Q.idleTimeout,n=Q.finalTimeout,i=Q.heartbeatInterval,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=r,this._finalTimeout=n,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ee[4],o&&t.configureScope((e=>e.setSpan(this))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ee[3],this.finish())}),this._finalTimeout)}finish(e=(0,x.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){var t,r=X(this._beforeFinishCallbacks);try{for(r.s();!(t=r.n()).done;){(0,t.value)(this,e)}}catch(e){r.e(e)}finally{r.f()}this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"));const r=t.startTimestamp<e,n=(this._finalTimeout+this._idleTimeout)/1e3,i=t.endTimestamp-this.startTimestamp<n;return r&&i}))}if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},r=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new te(t,r,this.spanId,e),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ee[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=ee[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),this.activities[e]=!0}_popActivity(e){if(this.activities[e]&&delete this.activities[e],0===Object.keys(this.activities).length){const e=(0,x.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=ee[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(this.setStatus("deadline_exceeded"),this._finishReason=ee[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function ne(e,t,r){return e.sampled=!1,e}function ie(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 oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function se(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function ce(e,t){const r=this.getClient(),n=r&&r.getOptions()||{};(n.instrumenter||"sentry")!==(e.instrumenter||"sentry")&&(e.sampled=!1);let i=new q(e,this);return i=ne(i,0,oe({parentSampled:e.parentSampled,transactionContext:e},t)),i.sampled&&i.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",i),i}function le(e,t,r,n,i,o,a){const s=e.getClient(),c=s&&s.getOptions()||{};let l=new re(t,e,r,n,a,i);return l=ne(l,0,oe({parentSampled:t.parentSampled,transactionContext:t},o)),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),s&&s.emit&&s.emit("startTransaction",l),l}function ue(){const e=(0,b.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=ce),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=se),w||(w=!0,(0,_.oq)("error",L),(0,_.oq)("unhandledrejection",L)))}function pe(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 de(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(r),!0).forEach((function(t){he(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fe(e,t,r=(()=>{})){const n=Ee(e),i=(0,b.Gd)(),o=i.getScope(),a=o.getSpan(),s=_e(i,a,n);function c(){s&&s.finish(),i.getScope().setSpan(a)}let l;o.setSpan(s);try{l=t(s)}catch(e){throw s&&s.setStatus("internal_error"),r(e),c(),e}return(0,O.J8)(l)?Promise.resolve(l).then((()=>{c()}),(e=>{s&&s.setStatus("internal_error"),r(e),c()})):c(),l}function me(e,t){const r=Ee(e),n=(0,b.Gd)(),i=n.getScope(),o=i.getSpan(),a=_e(n,o,r);function s(){a&&a.finish(),n.getScope().setSpan(o)}let c;i.setSpan(a);try{c=t(a)}catch(e){throw a&&a.setStatus("internal_error"),s(),e}return(0,O.J8)(c)?Promise.resolve(c).then((()=>{s()}),(()=>{a&&a.setStatus("internal_error"),s()})):s(),c}function ge(e,t){const r=Ee(e),n=(0,b.Gd)(),i=n.getScope(),o=i.getSpan(),a=_e(n,o,r);let s;i.setSpan(a);try{s=t(a,(function(){a&&a.finish(),n.getScope().setSpan(o)}))}catch(e){throw a&&a.setStatus("internal_error"),e}return(0,O.J8)(s)&&Promise.resolve(s).then(void 0,(()=>{a&&a.setStatus("internal_error")})),s}function ve(e){}function ye(){return(0,b.Gd)().getScope().getSpan()}function be({sentryTrace:e,baggage:t},r){const n=(0,b.Gd)().getScope(),i=j(e,t),o=i.traceparentData,a=i.dynamicSamplingContext,s=i.propagationContext;n.setPropagationContext(s);return r(de(de({},o),{},{metadata:(0,F.Jr)({dynamicSamplingContext:o&&!a?{}:a})}))}function _e(e,t,r){}function Ee(e){const t=de({},e);return void 0!==t.name&&void 0===t.description&&(t.description=t.name),t}var we=r(70678),Le=r(18476);function xe(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?xe(Object(r),!0).forEach((function(t){Oe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Te=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ie(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Pe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ie(o,n,i,a,s,"next",e)}function s(e){Ie(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Ce(e,t){let r;return(0,p.gv)(e,((e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r))),r}function Ae(e,t){return r=>{const n=e(r),i={};function o(t,n){const o=n?`${t}:${n}`:t;if(!i[o]){const a=(0,we.U4)(t);if(!a)return;const s=(0,Le.U)(a);i[o]=n?function(e,t){return r=>{const n=e(r);return{send:(i=Pe(Te().mark((function e(r){var i;return Te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=Ce(r,["event","transaction","profile","replay_event"]))&&(i.release=t),e.abrupt("return",n.send(r));case 3:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)}),flush:e=>n.flush(e)};var i}}(e,n)(Se(Se({},r),{},{url:s})):e(Se(Se({},r),{},{url:s}))}return i[o]}function a(){return(a=Pe(Te().mark((function e(r){var i,a;return Te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 0===(i=t({envelope:r,getEvent:function(e){const t=e&&e.length?e:["event"];return Ce(r,t)}}).map((e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release))).filter((e=>!!e))).length&&i.push(n),e.next=5,Promise.all(i.map((e=>e.send(r))));case 5:return a=e.sent,e.abrupt("return",a[0]);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function s(){return s=Pe(Te().mark((function e(t){var r,o;return Te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[...Object.keys(i).map((e=>i[e])),n],e.next=3,Promise.all(r.map((e=>e.flush(t))));case 3:return o=e.sent,e.abrupt("return",o.every((e=>e)));case 5:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}return{send:function(e){return a.apply(this,arguments)},flush:function(e){return s.apply(this,arguments)}}}}function ke(e,t,r){const n=E();n&&n.setMeasurement(e,t,r)}var De=r(29412),Ne=r(6316),Re=r(10470),Me=r(49475),je=r(26487),Ze=r(76616),Fe=r(57602),Be=r(44054),Ge=r(6413),Ue=r(57693),ze=r(87003),Ve=r(7521),He=r(10710),Ye=r(13824),We=r(92743),$e=r(74948),Ke=r(44645),qe=r(11431),Xe=r(32819),Je=r(35428),Qe=r(40263),et=r(58950),tt=r(93937),rt=r(99110),nt=r(3790),it=r(2306),ot=r(68688);function at(){return"undefined"!=typeof window&&(!(0,ot.KV)()||void 0!==d.n2.process&&"renderer"===d.n2.process.type)}const st=(e,t,r)=>{let n,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(n||0),(i||void 0===n)&&(n=t.value,t.delta=i,e(t)))}},ct=d.n2,lt=()=>ct.__WEB_VITALS_POLYFILL__?ct.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=ct.performance.timing,t=ct.performance.navigation.type,r={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(r[t]=Math.max(e[t]-e.navigationStart,0));return r})()):ct.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ut=()=>{const e=lt();return e&&e.activationStart||0},pt=(e,t)=>{const r=lt();let n="navigate";return r&&(n=ct.document.prerendering||ut()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},dt=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},ht=(e,t)=>{const r=n=>{"pagehide"!==n.type&&"hidden"!==ct.document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)};let ft=-1;const mt=()=>(ft<0&&(ft="hidden"!==ct.document.visibilityState||ct.document.prerendering?1/0:0,ht((({timeStamp:e})=>{ft=e}),!0)),{get firstHiddenTime(){return ft}}),gt={};function vt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yt(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function yt(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}const bt={},_t={};let Et,wt,Lt;function xt(e){return Ct("lcp",e,Pt,Lt)}function St(e,t){return At(e,t),_t[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);dt(e,(t=>{Ot(e,{entries:t})}),t)}(e),_t[e]=!0),kt(e,t)}function Ot(e,t){const r=bt[e];if(r&&r.length){var n,i=vt(r);try{for(i.s();!(n=i.n()).done;){const e=n.value;try{e(t)}catch(e){}}}catch(e){i.e(e)}finally{i.f()}}}function Tt(){(e=>{const t=pt("CLS",0);let r,n=0,i=[];const o=e=>{e.forEach((e=>{if(!e.hadRecentInput){const o=i[0],a=i[i.length-1];n&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(n+=e.value,i.push(e)):(n=e.value,i=[e]),n>t.value&&(t.value=n,t.entries=i,r&&r())}}))},a=dt("layout-shift",o);if(a){r=st(e,t);const n=()=>{o(a.takeRecords()),r(!0)};ht(n)}})((e=>{Ot("cls",{metric:e}),Et=e}))}function It(){(e=>{const t=mt(),r=pt("FID");let n;const i=e=>{e.startTime<t.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},o=e=>{e.forEach(i)},a=dt("first-input",o);n=st(e,r),a&&ht((()=>{o(a.takeRecords()),a.disconnect()}),!0)})((e=>{Ot("fid",{metric:e}),wt=e}))}function Pt(){(e=>{const t=mt(),r=pt("LCP");let n;const i=e=>{const i=e[e.length-1];if(i){const e=Math.max(i.startTime-ut(),0);e<t.firstHiddenTime&&(r.value=e,r.entries=[i],n())}},o=dt("largest-contentful-paint",i);if(o){n=st(e,r);const t=()=>{gt[r.id]||(i(o.takeRecords()),o.disconnect(),gt[r.id]=!0,n(!0))};["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),ht(t,!0)}})((e=>{Ot("lcp",{metric:e}),Lt=e}))}function Ct(e,t,r,n){return At(e,t),_t[e]||(r(),_t[e]=!0),n&&t({metric:n}),kt(e,t)}function At(e,t){bt[e]=bt[e]||[],bt[e].push(t)}function kt(e,t){return()=>{const r=bt[e];if(!r)return;const n=r.indexOf(t);-1!==n&&r.splice(n,1)}}function Dt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Nt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Dt(o,n,i,a,s,"next",e)}function s(e){Dt(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Rt(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 Mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach((function(t){jt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ft(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||Gt(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 Bt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Gt(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Gt(e,t){if(e){if("string"==typeof e)return Ut(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)?Ut(e,t):void 0}}function Ut(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}const zt=d.n2,Vt="sentryReplaySession",Ht="replay_event",Yt="Unable to send Replay",Wt=15e4,$t=5e3,Kt=2e7,qt=36e5;var Xt;function Jt(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Qt(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function er(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,tr).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function tr(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=er(e.styleSheet)||function(e){const t=e.cssText;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Xt||(Xt={}));class rr{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function nr({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function ir({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function or(e){return e.toLowerCase()}function ar(e){return e.toUpperCase()}const sr="__rrweb_original__";function cr(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?or(t):null}function lr(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}let ur=1;const pr=new RegExp("[^a-z0-9-_:]");function dr(){return ur++}let hr,fr;const mr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,gr=/^(?:[a-z+]+:)?\/\//i,vr=/^www\..*/i,yr=/^(data:)([^,]*),(.*)/i;function br(e,t){return(e||"").replace(mr,((e,r,n,i,o,a)=>{const s=n||o||a,c=r||i||"";if(!s)return e;if(gr.test(s)||vr.test(s))return`url(${c}${s}${c})`;if(yr.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${c})`;const l=t.split("/"),u=s.split("/");l.pop();var p,d=Bt(u);try{for(d.s();!(p=d.n()).done;){const e=p.value;"."!==e&&(".."===e?l.pop():l.push(e))}}catch(e){d.e(e)}finally{d.f()}return`url(${c}${l.join("/")}${c})`}))}const _r=/^[^ \t\n\r\u000c]+/,Er=/^[, \t\n\r\u000c]+/;function wr(e,t){if(!t||""===t.trim())return t;const r=e.createElement("a");return r.href=t,r.href}function Lr(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function xr(){const e=document.createElement("a");return e.href="",e.href}function Sr(e,t,r,n,i,o){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?wr(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}const i=[];for(;n(Er),!(r>=t.length);){let o=n(_r);if(","===o.slice(-1))o=wr(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=wr(e,o);let a=!1;for(;;){const e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){r+=1,i.push((o+n).trim());break}"("===e&&(a=!0)}n+=e,r+=1}}}return i.join(", ")}(e,n):"style"===r?br(n,xr()):"object"===t&&"data"===r?wr(e,n):"function"==typeof o?o(r,n,i):n:wr(e,n):n}function Or(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Tr(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:Tr(e.parentNode,t,r,n+1):-1}function Ir(e,t){return r=>{const n=r;if(null===n)return!1;if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}}function Pr(e,t,r,n,i,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;let s=-1,c=-1;if(o){if(c=Tr(a,Ir(n,i)),c<0)return!0;s=Tr(a,Ir(t,r),c>=0?c:1/0)}else{if(s=Tr(a,Ir(t,r)),s<0)return!1;c=Tr(a,Ir(n,i),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch(e){}return!!o}function Cr(e,t){const r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,a=t.unblockSelector,s=t.maskAllText,c=t.maskAttributeFn,l=t.maskTextClass,u=t.unmaskTextClass,p=t.maskTextSelector,d=t.unmaskTextSelector,h=t.inlineStylesheet,f=t.maskInputOptions,m=void 0===f?{}:f,g=t.maskTextFn,v=t.maskInputFn,y=t.dataURLOptions,b=void 0===y?{}:y,_=t.inlineImages,E=t.recordCanvas,w=t.keepIframeSrcFn,L=t.newlyAddedElement,x=void 0!==L&&L,S=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Xt.Document,childNodes:[],compatMode:e.compatMode}:{type:Xt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Xt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){const r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.unblockSelector,a=t.inlineStylesheet,s=t.maskInputOptions,c=void 0===s?{}:s,l=t.maskAttributeFn,u=t.maskInputFn,p=t.dataURLOptions,d=void 0===p?{}:p,h=t.inlineImages,f=t.recordCanvas,m=t.keepIframeSrcFn,g=t.newlyAddedElement,v=void 0!==g&&g,y=t.rootId,b=(t.maskAllText,t.maskTextClass),_=t.unmaskTextClass,E=t.maskTextSelector,w=t.unmaskTextSelector,L=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,n,i,o),x=function(e){if(e instanceof HTMLFormElement)return"form";const t=or(e.tagName);return pr.test(t)?"div":t}(e);let S={};const O=e.attributes.length;for(let t=0;t<O;t++){const n=e.attributes[t];Or(x,n.name,n.value)||(S[n.name]=Sr(r,x,or(n.name),n.value,e,l))}if("link"===x&&a){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=er(t)),n&&(delete S.rel,delete S.href,S._cssText=br(n,t.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=er(e.sheet);t&&(S._cssText=br(t,xr()))}if("input"===x||"textarea"===x||"select"===x||"option"===x){const t=e,r=cr(t),n=lr(t,ar(x),r),i=t.checked;if("submit"!==r&&"button"!==r&&n){const e=Pr(t,b,E,_,w,nr({type:r,tagName:ar(x),maskInputOptions:c}));S.value=ir({isMasked:e,element:t,value:n,maskInputFn:u})}i&&(S.checked=i)}"option"===x&&(e.selected&&!c.select?S.selected=!0:delete S.selected);if("canvas"===x&&f)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const i=t.getImageData,o=sr in i?i.__rrweb_original__:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const t=e.toDataURL(d.type,d.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(d.type,d.quality)&&(S.rr_dataURL=t)}if("img"===x&&h){hr||(hr=r.createElement("canvas"),fr=hr.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const i=()=>{t.removeEventListener("load",i);try{hr.width=t.naturalWidth,hr.height=t.naturalHeight,fr.drawImage(t,0,0),S.rr_dataURL=hr.toDataURL(d.type,d.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?S.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==x&&"video"!==x||(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime);v||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop));if(L){const t=e.getBoundingClientRect(),r=t.width,n=t.height;S={class:S.class,rr_width:`${r}px`,rr_height:`${n}px`}}"iframe"!==x||m(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src);let T;try{customElements.get(x)&&(T=!0)}catch(e){}return{type:Xt.Element,tagName:x,attributes:S,childNodes:[],isSVG:Lr(e)||void 0,needBlock:L,rootId:y,isCustom:T}}(e,{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:m,maskInputFn:v,dataURLOptions:b,inlineImages:_,recordCanvas:E,keepIframeSrcFn:w,newlyAddedElement:x,rootId:S,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){var r;const n=t.maskAllText,i=t.maskTextClass,o=t.unmaskTextClass,a=t.maskTextSelector,s=t.unmaskTextSelector,c=t.maskTextFn,l=t.maskInputOptions,u=t.maskInputFn,p=t.rootId,d=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const f="STYLE"===d||void 0,m="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(f&&h){try{e.nextSibling||e.previousSibling||(null===(r=e.parentNode.sheet)||void 0===r?void 0:r.cssRules)&&(h=er(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=br(h,xr())}m&&(h="SCRIPT_PLACEHOLDER");const v=Pr(e,i,a,o,s,n);f||m||g||!h||!v||(h=c?c(h):h.replace(/[\S]/g,"*"));g&&h&&(l.textarea||v)&&(h=u?u(h,e.parentNode):h.replace(/[\S]/g,"*"));if("OPTION"===d&&h){h=ir({isMasked:Pr(e,i,a,o,s,nr({type:null,tagName:d,maskInputOptions:l})),element:e,value:h,maskInputFn:u})}return{type:Xt.Text,textContent:h||"",isStyle:f,rootId:p}}(e,{maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:g,maskInputOptions:m,maskInputFn:v,rootId:S});case e.CDATA_SECTION_NODE:return{type:Xt.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:Xt.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function Ar(e){return null==e?"":e.toLowerCase()}function kr(e,t){const r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,a=t.unblockSelector,s=t.maskAllText,c=t.maskTextClass,l=t.unmaskTextClass,u=t.maskTextSelector,p=t.unmaskTextSelector,d=t.skipChild,h=void 0!==d&&d,f=t.inlineStylesheet,m=void 0===f||f,g=t.maskInputOptions,v=void 0===g?{}:g,y=t.maskAttributeFn,b=t.maskTextFn,_=t.maskInputFn,E=t.slimDOMOptions,w=t.dataURLOptions,L=void 0===w?{}:w,x=t.inlineImages,S=void 0!==x&&x,O=t.recordCanvas,T=void 0!==O&&O,I=t.onSerialize,P=t.onIframeLoad,C=t.iframeLoadTimeout,A=void 0===C?5e3:C,k=t.onStylesheetLoad,D=t.stylesheetLoadTimeout,N=void 0===D?5e3:D,R=t.keepIframeSrcFn,M=void 0===R?()=>!1:R,j=t.newlyAddedElement,Z=void 0!==j&&j;let F=t.preserveWhiteSpace,B=void 0===F||F;const G=Cr(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,dataURLOptions:L,inlineImages:S,recordCanvas:T,keepIframeSrcFn:M,newlyAddedElement:Z});if(!G)return console.warn(e,"not serialized"),null;let U;U=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===Xt.Comment)return!0;if(e.type===Xt.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ar(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ar(e.attributes.name)||"icon"===Ar(e.attributes.rel)||"apple-touch-icon"===Ar(e.attributes.rel)||"shortcut icon"===Ar(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ar(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ar(e.attributes.property).match(/^(og|twitter|fb):/)||Ar(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ar(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ar(e.attributes.name)||"googlebot"===Ar(e.attributes.name)||"bingbot"===Ar(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ar(e.attributes.name)||"generator"===Ar(e.attributes.name)||"framework"===Ar(e.attributes.name)||"publisher"===Ar(e.attributes.name)||"progid"===Ar(e.attributes.name)||Ar(e.attributes.property).match(/^article:/)||Ar(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ar(e.attributes.name)||"yandex-verification"===Ar(e.attributes.name)||"csrf-token"===Ar(e.attributes.name)||"p:domain_verify"===Ar(e.attributes.name)||"verify-v1"===Ar(e.attributes.name)||"verification"===Ar(e.attributes.name)||"shopify-checkout-api-token"===Ar(e.attributes.name)))return!0}}return!1}(G,E)&&(B||G.type!==Xt.Text||G.isStyle||G.textContent.replace(/^\s+|\s+$/gm,"").length)?dr():-2;const z=Object.assign(G,{id:U});if(n.add(e,z),-2===U)return null;I&&I(e);let V=!h;if(z.type===Xt.Element){V=V&&!z.needBlock,delete z.needBlock;const t=e.shadowRoot;t&&Qt(t)&&(z.isShadowHost=!0)}if((z.type===Xt.Document||z.type===Xt.Element)&&V){E.headWhitespace&&z.type===Xt.Element&&"head"===z.tagName&&(B=!1);const t={doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,skipChild:h,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,slimDOMOptions:E,dataURLOptions:L,inlineImages:S,recordCanvas:T,preserveWhiteSpace:B,onSerialize:I,onIframeLoad:P,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:M};for(var H=0,Y=Array.from(e.childNodes);H<Y.length;H++){const e=kr(Y[H],t);e&&z.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(var W=0,$=Array.from(e.shadowRoot.childNodes);W<$.length;W++){const r=kr($[W],t);r&&(Qt(e.shadowRoot)&&(r.isShadow=!0),z.childNodes.push(r))}}return e.parentNode&&Jt(e.parentNode)&&Qt(e.parentNode)&&(z.isShadow=!0),z.type===Xt.Element&&"iframe"===z.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"!==i){const n=setTimeout((()=>{o||(t(),o=!0)}),r);return void e.addEventListener("load",(()=>{clearTimeout(n),o=!0,t()}))}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&P){const r=kr(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,slimDOMOptions:E,dataURLOptions:L,inlineImages:S,recordCanvas:T,preserveWhiteSpace:B,onSerialize:I,onIframeLoad:P,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:M});r&&P(e,r)}}),A),z.type===Xt.Element&&"link"===z.tagName&&"stylesheet"===z.attributes.rel&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;const o=setTimeout((()=>{i||(t(),i=!0)}),r);e.addEventListener("load",(()=>{clearTimeout(o),i=!0,t()}))}(e,(()=>{if(k){const t=kr(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,slimDOMOptions:E,dataURLOptions:L,inlineImages:S,recordCanvas:T,preserveWhiteSpace:B,onSerialize:I,onIframeLoad:P,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:M});t&&k(e,t)}}),N),z}function Dr(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Nr="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Rr={map:{},getId:()=>(console.error(Nr),-1),getNode:()=>(console.error(Nr),null),removeNodeFromMap(){console.error(Nr)},has:()=>(console.error(Nr),!1),reset(){console.error(Nr)}};function Mr(e,t,r={}){let n=null,i=0;return function(...o){const a=Date.now();i||!1!==r.leading||(i=a);const s=t-(a-i),c=this;s<=0||s>t?(n&&(clearTimeout(n),n=null),i=a,e.apply(c,o)):n||!1===r.trailing||(n=setTimeout((()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,o)}),s))}}function jr(e,t,r,n,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){setTimeout((()=>{r.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>jr(e,t,o||{},!0)}function Zr(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Rr=new Proxy(Rr,{get:(e,t,r)=>("map"===t&&console.error(Nr),Reflect.get(e,t,r))}));let Fr=Date.now;function Br(e){var t,r,n,i,o,a;const s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==s?void 0:s.documentElement.scrollLeft)||(null===(r=null===(t=null==s?void 0:s.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(n=null==s?void 0:s.body)||void 0===n?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null===(o=null===(i=null==s?void 0:s.body)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(a=null==s?void 0:s.body)||void 0===a?void 0:a.scrollTop)||0}}function Gr(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ur(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function zr(e,t,r,n,i){if(!e)return!1;const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!o)return!1;const a=Ir(t,r);if(!i){const e=n&&o.matches(n);return a(o)&&!e}const s=Tr(o,a);let c=-1;return!(s<0)&&(n&&(c=Tr(o,Ir(null,n))),s>-1&&c<0||s<c)}function Vr(e,t){return-2===t.getId(e)}function Hr(e,t){if(Jt(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Hr(e.parentNode,t))}function Yr(e){return Boolean(e.changedTouches)}function Wr(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function $r(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Kr(e){return Boolean(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Fr=()=>(new Date).getTime());class qr{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Xr(e){var t,r;let n=null;return(null===(r=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===r?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function Jr(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Xr(r);)r=t;return r}(e);return t.contains(r)}function Qr(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Jr(e))}var en=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(en||{}),tn=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(tn||{}),rn=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(rn||{}),nn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(nn||{}),on=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(on||{});function an(e){return"__ln"in e}class sn{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&an(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&an(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const cn=(e,t)=>`${e}@${t}`;class ln{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new sn,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!Qr(i))return;const o=Jt(i.parentNode)?this.mirror.getId(Xr(i)):this.mirror.getId(i.parentNode),a=n(i);if(-1===o||-1===a)return r.addNode(i);const s=kr(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Wr(e,this.mirror)&&this.iframeManager.addIframe(e),$r(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Kr(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());var o,a=Bt(this.movedSet);try{for(a.s();!(o=a.n()).done;){const e=o.value;pn(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e)}}catch(e){a.e(e)}finally{a.f()}var s,c=Bt(this.addedSet);try{for(c.s();!(s=c.n()).done;){const e=s.value;hn(this.droppedSet,e)||pn(this.removes,e,this.mirror)?hn(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e)}}catch(e){c.e(e)}finally{c.f()}let l=null;for(;r.length;){let e=null;if(l){const t=this.mirror.getId(l.value.parentNode),r=n(l.value);-1!==t&&-1!==r&&(e=l)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}l=e.previous,r.removeNode(e.value),i(e.value)}const u={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const t=e.attributes;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(u.texts.length||u.attributes.length||u.removes.length||u.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(u))},this.processMutation=e=>{if(Vr(e.target,this.mirror))return;let t;try{t=document.implementation.createHTMLDocument()}catch(e){t=this.doc}switch(e.type){case"characterData":{const t=e.target.textContent;zr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Pr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const a=e.target;let s=e.attributeName,c=e.target.getAttribute(s);if("value"===s){const t=cr(a),r=a.tagName;c=lr(a,r,t);const n=nr({maskInputOptions:this.maskInputOptions,tagName:r,type:t});c=ir({isMasked:Pr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,n),element:a,value:c,maskInputFn:this.maskInputFn})}if(zr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||c===e.oldValue)return;let l=this.attributes.find((t=>t.node===e.target));if("IFRAME"===a.tagName&&"src"===s&&!this.keepIframeSrcFn(c)){if(a.contentDocument)return;s="rr_src"}if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(l)),"type"===s&&"INPUT"===a.tagName&&"password"===(e.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!Or(a.tagName,s)&&(l.attributes[s]=Sr(this.doc,or(a.tagName),or(s),c,a,this.maskAttributeFn),"style"===s)){const s=t.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue);for(var r=0,n=Array.from(a.style);r<n.length;r++){const e=n[r],t=a.style.getPropertyValue(e),i=a.style.getPropertyPriority(e);t!==s.style.getPropertyValue(e)||i!==s.style.getPropertyPriority(e)?l.styleDiff[e]=""===i?t:[t,i]:l._unchangedStyles[e]=[t,i]}for(var i=0,o=Array.from(s.style);i<o.length;i++){const e=o[i];""===a.style.getPropertyValue(e)&&(l.styleDiff[e]=!1)}}break}case"childList":if(zr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const r=this.mirror.getId(t),n=Jt(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);zr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Vr(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(un(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||Hr(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[cn(r,n)]?un(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!Jt(e.target)||!Qt(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Vr(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[cn(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);zr(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Kr(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function un(e,t){e.delete(t),t.childNodes.forEach((t=>un(e,t)))}function pn(e,t,r){return 0!==e.length&&dn(e,t,r)}function dn(e,t,r){const n=t.parentNode;if(!n)return!1;const i=r.getId(n);return!!e.some((e=>e.id===i))||dn(e,n,r)}function hn(e,t){return 0!==e.size&&fn(e,t)}function fn(e,t){const r=t.parentNode;return!!r&&(!!e.has(r)||fn(e,r))}let mn;function gn(e){mn=e}function vn(){mn=void 0}const yn=e=>{if(!mn)return e;return(...t)=>{try{return e(...t)}catch(e){if(mn&&!0===mn(e))return()=>{};throw e}}},bn=[];function _n(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function En(e,t){var r,n;const i=new ln;bn.push(i),i.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const a=null===(n=null===(r=null===window||void 0===window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");a&&window[a]&&(o=window[a]);const s=new o(yn((t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations.bind(i)(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function wn({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];let l=null;return Object.keys(rn).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=or(a);const u=(t=>a=>{const s=_n(a);if(zr(s,n,i,o,!0))return;let c=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":c=nn.Mouse;break;case"touch":c=nn.Touch;break;case"pen":c=nn.Pen}c===nn.Touch?rn[t]===rn.MouseDown?u="TouchStart":rn[t]===rn.MouseUp&&(u="TouchEnd"):nn.Pen}else Yr(a)&&(c=nn.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===nn.Touch||u.startsWith("Mouse")&&c===nn.Mouse)&&(c=null)):rn[t]===rn.Click&&(c=l,l=null);const p=Yr(a)?a.changedTouches[0]:a;if(!p)return;const d=r.getId(s),h=p.clientX,f=p.clientY;yn(e)(Object.assign({type:rn[u],id:d,x:h,y:f},null!==c&&{pointerType:c}))})(a);if(window.PointerEvent)switch(rn[a]){case rn.MouseDown:case rn.MouseUp:s=s.replace("mouse","pointer");break;case rn.TouchStart:case rn.TouchEnd:return}c.push(Dr(s,u,t))})),yn((()=>{c.forEach((e=>e()))}))}function Ln({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){return Dr("scroll",yn(Mr(yn((a=>{const s=_n(a);if(!s||zr(s,n,i,o,!0))return;const c=r.getId(s);if(s===t&&t.defaultView){const r=Br(t.defaultView);e({id:c,x:r.left,y:r.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),a.scroll||100)),t)}function xn(e,t){const r=Object.assign({},e);return t||delete r.userTriggered,r}const Sn=["INPUT","TEXTAREA","SELECT"],On=new WeakMap;function Tn(e){return function(e,t){if(An("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||An("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||An("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||An("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function In(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Pn({mirror:e,stylesheetManager:t},r){var n,i,o;let a=null;a="#document"===r.nodeName?e.getId(r):e.getId(r.host);const s="#document"===r.nodeName?null===(n=r.defaultView)||void 0===n?void 0:n.Document:null===(o=null===(i=r.ownerDocument)||void 0===i?void 0:i.defaultView)||void 0===o?void 0:o.ShadowRoot,c=(null==s?void 0:s.prototype)?Object.getOwnPropertyDescriptor(null==s?void 0:s.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&s&&c?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set(e){var r;const n=null===(r=c.set)||void 0===r?void 0:r.call(this,e);if(null!==a&&-1!==a)try{t.adoptStyleSheets(e,a)}catch(e){}return n}}),yn((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))):()=>{}}function Cn(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};!function(e,t){const r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,p=e.canvasMutationCb,d=e.fontCb,h=e.selectionCb,f=e.customElementCb;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),i(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),p(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t);const n=En(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const c=Mr(yn((t=>{const r=Date.now()-a;e(s.map((e=>(e.timeOffset-=r,e))),t),s=[],a=null})),o),l=yn(Mr(yn((e=>{const t=_n(e),r=Yr(e)?e.changedTouches[0]:e,i=r.clientX,o=r.clientY;a||(a=Fr()),s.push({x:i,y:o,id:n.getId(t),timeOffset:Fr()-a}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?tn.Drag:e instanceof MouseEvent?tn.MouseMove:tn.TouchMove)})),i,{trailing:!1})),u=[Dr("mousemove",l,r),Dr("touchmove",l,r),Dr("drag",l,r)];return yn((()=>{u.forEach((e=>e()))}))}(e),o=wn(e),a=Ln(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return Dr("resize",yn(Mr(yn((()=>{const t=Gr(),i=Ur();r===t&&n===i||(e({width:Number(i),height:Number(t)}),r=t,n=i)})),200)),t)}(e,{win:r}),c=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=_n(e);const u=e.isTrusted,g=r&&ar(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||Sn.indexOf(g)<0||zr(r,n,i,o,!0))return;const y=r;if(y.classList.contains(a)||s&&y.matches(s))return;const b=cr(r);let _=lr(y,g,b),E=!1;const w=nr({maskInputOptions:c,tagName:g,type:b}),L=Pr(r,d,f,h,m,w);"radio"!==b&&"checkbox"!==b||(E=r.checked),_=ir({isMasked:L,element:r,value:_,maskInputFn:l}),v(r,yn(xn)({text:_,isChecked:E,userTriggered:u},p));const x=r.name;"radio"===b&&x&&E&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((e=>{if(e!==r){const t=ir({isMasked:L,element:e,value:lr(e,g,b),maskInputFn:l});v(e,yn(xn)({text:t,isChecked:!E,userTriggered:!1},p))}}))}function v(t,n){const i=On.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){On.set(t,n);const i=r.getId(t);yn(e)(Object.assign(Object.assign({},n),{id:i}))}}const y=("last"===u.input?["change"]:["input","change"]).map((e=>Dr(e,yn(g),t))),b=t.defaultView;if(!b)return()=>{y.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),E=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&y.push(...E.map((e=>jr(e[0],e[1],{set(){yn(g)({target:this,isTrusted:!1})}},!1,b)))),yn((()=>{y.forEach((e=>e()))}))}(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:a}){const s=yn((a=>Mr(yn((o=>{const s=_n(o);if(!s||zr(s,t,r,n,!0))return;const c=s.currentTime,l=s.volume,u=s.muted,p=s.playbackRate;e({type:a,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:p})})),o.media||500))),c=[Dr("play",s(0),a),Dr("pause",s(1),a),Dr("seeked",s(2),a),Dr("volumechange",s(3),a),Dr("ratechange",s(4),a)];return yn((()=>{c.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:yn(((n,i,o)=>{const a=Ft(o,2),s=a[0],c=a[1],l=In(i,t,r.styleMirror),u=l.id,p=l.styleId;return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,adds:[{rule:s,index:c}]}),n.apply(i,o)}))});const o=n.CSSStyleSheet.prototype.deleteRule;let a,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:yn(((n,i,o)=>{const a=Ft(o,1)[0],s=In(i,t,r.styleMirror),c=s.id,l=s.styleId;return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,removes:[{index:a}]}),n.apply(i,o)}))}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:yn(((n,i,o)=>{const a=Ft(o,1)[0],s=In(i,t,r.styleMirror),c=s.id,l=s.styleId;return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,replace:a}),n.apply(i,o)}))})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:yn(((n,i,o)=>{const a=Ft(o,1)[0],s=In(i,t,r.styleMirror),c=s.id,l=s.styleId;return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,replaceSync:a}),n.apply(i,o)}))}));const c={};kn("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(kn("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),kn("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),kn("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));const l={};return Object.entries(c).forEach((([n,i])=>{l[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[n].insertRule,{apply:yn(((n,i,o)=>{const a=Ft(o,2),s=a[0],c=a[1],l=In(i.parentStyleSheet,t,r.styleMirror),u=l.id,p=l.styleId;return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,adds:[{rule:s,index:[...Tn(i),c||0]}]}),n.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(l[n].deleteRule,{apply:yn(((n,i,o)=>{const a=Ft(o,1)[0],s=In(i.parentStyleSheet,t,r.styleMirror),c=s.id,l=s.styleId;return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,removes:[{index:[...Tn(i),a]}]}),n.apply(i,o)}))})})),yn((()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=o,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:r}),p=Pn(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:yn(((i,a,s)=>{var c;const l=Ft(s,3),u=l[0],p=l[1],d=l[2];if(r.has(u))return o.apply(a,[u,p,d]);const h=In(null===(c=a.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,n.styleMirror),f=h.id,m=h.styleId;return(f&&-1!==f||m&&-1!==m)&&e({id:f,styleId:m,set:{property:u,value:p,priority:d},index:Tn(a.parentRule)}),i.apply(a,s)}))});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:yn(((i,o,s)=>{var c;const l=Ft(s,1)[0];if(r.has(l))return a.apply(o,[l]);const u=In(null===(c=o.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,n.styleMirror),p=u.id,d=u.styleId;return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,remove:{property:l},index:Tn(o.parentRule)}),i.apply(o,s)}))}),yn((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:r}),h=e.collectFonts?function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){const n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const a=Zr(t.fonts,"add",(function(t){return function(r){return setTimeout(yn((()=>{const t=i.get(r);t&&(e(t),i.delete(r))})),0),t.apply(this,[r])}}));return n.push((()=>{r.FontFace=o})),n.push(a),yn((()=>{n.forEach((e=>e()))}))}(e):()=>{},f=function(e){const t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.unblockSelector,a=e.selectionCb;let s=!0;const c=yn((()=>{const e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const a=e.getRangeAt(t),s=a.startContainer,l=a.startOffset,u=a.endContainer,p=a.endOffset;zr(s,n,i,o,!0)||zr(u,n,i,o,!0)||c.push({start:r.getId(s),startOffset:l,end:r.getId(u),endOffset:p})}a({ranges:c})}));return c(),Dr("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Zr(r.customElements,"define",(function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}})):()=>{}}(e),g=[];var v,y=Bt(e.plugins);try{for(y.s();!(v=y.n()).done;){const e=v.value;g.push(e.observer(e.callback,r,e.options))}}catch(e){y.e(e)}finally{y.f()}return yn((()=>{bn.forEach((e=>e.reset())),n.disconnect(),i(),o(),a(),s(),c(),l(),u(),p(),d(),h(),f(),m(),g.forEach((e=>e()))}))}function An(e){return void 0!==window[e]}function kn(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Dn{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){const i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e);let a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const i=n.get(t);return i||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Nn{constructor(){this.crossOriginIframeMirror=new Dn(dr),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Rn{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Dn(dr),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Dn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case en.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:en.IncrementalSnapshot,data:{source:tn.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case en.Meta:case en.Load:case en.DomContentLoaded:return!1;case en.Plugin:return t;case en.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case en.IncrementalSnapshot:switch(t.data.source){case tn.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case tn.Drag:case tn.TouchMove:case tn.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case tn.ViewportResize:return!1;case tn.MediaInteraction:case tn.MouseInteraction:case tn.Scroll:case tn.CanvasMutation:case tn.Input:return this.replaceIds(t.data,e,["id"]),t;case tn.StyleSheetRule:case tn.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case tn.Font:return t;case tn.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case tn.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){var i,o=Bt(n);try{for(o.s();!(i=o.n()).done;){const n=i.value;(Array.isArray(t[n])||"number"==typeof t[n])&&(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]))}}catch(e){o.e(e)}finally{o.f()}return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Xt.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Mn{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class jn{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Qt(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=En(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(Ln(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Pn({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Zr(e.prototype,"attachShadow",(function(e){return function(n){const i=e.call(this,n);return this.shadowRoot&&Qr(this)&&r.addShadowRoot(this.shadowRoot,t),i}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Zn(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(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())}))}for(var Fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Gn=0;Gn<Fn.length;Gn++)Bn[Fn.charCodeAt(Gn)]=Gn;const Un=new Map;const zn=(e,t,r)=>{if(!e||!Yn(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=Un.get(e);return r||(r=new Map,Un.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i};function Vn(e,t,r){if(e instanceof Array)return e.map((e=>Vn(e,t,r)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,r=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=Fn[r[t]>>2],i+=Fn[(3&r[t])<<4|r[t+1]>>4],i+=Fn[(15&r[t+1])<<2|r[t+2]>>6],i+=Fn[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e);return{rr_type:t,base64:r}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[Vn(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){return{rr_type:e.constructor.name,src:e.src}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[Vn(e.data,t,r),e.width,e.height]}}if(Yn(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:zn(e,t,r)}}return e}const Hn=(e,t,r)=>[...e].map((e=>Vn(e,t,r))),Yn=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(r.find((r=>e instanceof t[r])))};function Wn(e,t,r,n,i){const o=[];try{const a=Zr(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o,...a){if(!zr(this,t,r,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){const e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...a])}}));o.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach((e=>e()))}}function $n(e,t,r,n,i,o,a,s){const c=[];var l,u=Bt(Object.getOwnPropertyNames(e));try{for(u.s();!(l=u.n()).done;){const a=l.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;const l=Zr(e,a,(function(e){return function(...c){const l=e.apply(this,c);if(zn(l,s,this),"tagName"in this.canvas&&!zr(this.canvas,n,i,o,!0)){const e=Hn([...c],s,this),n={type:t,property:a,args:e};r(this.canvas,n)}return l}}));c.push(l)}catch(n){const i=jr(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(i)}}}catch(e){u.e(e)}finally{u.f()}return c}function Kn(e,t,r){var n=void 0===t?null:t,i=function(e,t){var r=atob(e);if(t){for(var n=new Uint8Array(r.length),i=0,o=r.length;i<o;++i)n[i]=r.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}(e,void 0!==r&&r),o=i.indexOf("\n",10)+1,a=i.substring(o)+(n?"//# sourceMappingURL="+n:""),s=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(s)}var qn,Xn,Jn,Qn,ei=(qn="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1INCiAgICBPVEhFUiBUT1JUSU9VUyBBQ1RJT04sIEFSSVNJTkcgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgVVNFIE9SDQogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4NCiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqLw0KDQogICAgZnVuY3Rpb24gX19hd2FpdGVyKHRoaXNBcmcsIF9hcmd1bWVudHMsIFAsIGdlbmVyYXRvcikgew0KICAgICAgICBmdW5jdGlvbiBhZG9wdCh2YWx1ZSkgeyByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBQID8gdmFsdWUgOiBuZXcgUChmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXNvbHZlKHZhbHVlKTsgfSk7IH0NCiAgICAgICAgcmV0dXJuIG5ldyAoUCB8fCAoUCA9IFByb21pc2UpKShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgICAgICAgICBmdW5jdGlvbiBmdWxmaWxsZWQodmFsdWUpIHsgdHJ5IHsgc3RlcChnZW5lcmF0b3IubmV4dCh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiByZWplY3RlZCh2YWx1ZSkgeyB0cnkgeyBzdGVwKGdlbmVyYXRvclsidGhyb3ciXSh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiBzdGVwKHJlc3VsdCkgeyByZXN1bHQuZG9uZSA/IHJlc29sdmUocmVzdWx0LnZhbHVlKSA6IGFkb3B0KHJlc3VsdC52YWx1ZSkudGhlbihmdWxmaWxsZWQsIHJlamVjdGVkKTsgfQ0KICAgICAgICAgICAgc3RlcCgoZ2VuZXJhdG9yID0gZ2VuZXJhdG9yLmFwcGx5KHRoaXNBcmcsIF9hcmd1bWVudHMgfHwgW10pKS5uZXh0KCkpOw0KICAgICAgICB9KTsNCiAgICB9CgogICAgLyoKICAgICAqIGJhc2U2NC1hcnJheWJ1ZmZlciAxLjAuMSA8aHR0cHM6Ly9naXRodWIuY29tL25pa2xhc3ZoL2Jhc2U2NC1hcnJheWJ1ZmZlcj4KICAgICAqIENvcHlyaWdodCAoYykgMjAyMSBOaWtsYXMgdm9uIEhlcnR6ZW4gPGh0dHBzOi8vaGVydHplbi5jb20+CiAgICAgKiBSZWxlYXNlZCB1bmRlciBNSVQgTGljZW5zZQogICAgICovCiAgICB2YXIgY2hhcnMgPSAnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyc7CiAgICAvLyBVc2UgYSBsb29rdXAgdGFibGUgdG8gZmluZCB0aGUgaW5kZXguCiAgICB2YXIgbG9va3VwID0gdHlwZW9mIFVpbnQ4QXJyYXkgPT09ICd1bmRlZmluZWQnID8gW10gOiBuZXcgVWludDhBcnJheSgyNTYpOwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGFycy5sZW5ndGg7IGkrKykgewogICAgICAgIGxvb2t1cFtjaGFycy5jaGFyQ29kZUF0KGkpXSA9IGk7CiAgICB9CiAgICB2YXIgZW5jb2RlID0gZnVuY3Rpb24gKGFycmF5YnVmZmVyKSB7CiAgICAgICAgdmFyIGJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYXJyYXlidWZmZXIpLCBpLCBsZW4gPSBieXRlcy5sZW5ndGgsIGJhc2U2NCA9ICcnOwogICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkgKz0gMykgewogICAgICAgICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaV0gPj4gMl07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1soKGJ5dGVzW2ldICYgMykgPDwgNCkgfCAoYnl0ZXNbaSArIDFdID4+IDQpXTsKICAgICAgICAgICAgYmFzZTY0ICs9IGNoYXJzWygoYnl0ZXNbaSArIDFdICYgMTUpIDw8IDIpIHwgKGJ5dGVzW2kgKyAyXSA+PiA2KV07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1tieXRlc1tpICsgMl0gJiA2M107CiAgICAgICAgfQogICAgICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgJz0nOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgJz09JzsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGJhc2U2NDsKICAgIH07CgogICAgY29uc3QgbGFzdEJsb2JNYXAgPSBuZXcgTWFwKCk7DQogICAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gbmV3IE1hcCgpOw0KICAgIGZ1bmN0aW9uIGdldFRyYW5zcGFyZW50QmxvYkZvcih3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucykgew0KICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zKTsNCiAgICAgICAgICAgICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCcyZCcpOw0KICAgICAgICAgICAgICAgIGN0eC5kcmF3SW1hZ2UoYml0bWFwLCAwLCAwKTsNCiAgICAgICAgICAgICAgICBiaXRtYXAuY2xvc2UoKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IHR5cGUgPSBibG9iLnR5cGU7DQogICAgICAgICAgICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSB5aWVsZCBibG9iLmFycmF5QnVmZmVyKCk7DQogICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RCbG9iTWFwLmhhcyhpZCkgJiYgKHlpZWxkIHRyYW5zcGFyZW50QmFzZTY0KSA9PT0gYmFzZTY0KSB7DQogICAgICAgICAgICAgICAgICAgIGxhc3RCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",Xn=null,Jn=!1,function(e){return Qn=Qn||Kn(qn,Xn,Jn),new Worker(Qn,e)});class ti{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}}class ri{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const t=e.sampling,r=void 0===t?"all":t,n=e.win,i=e.blockClass,o=e.blockSelector,a=e.unblockSelector,s=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===r&&this.initCanvasMutationObserver(n,i,o,a),s&&"number"==typeof r&&this.initCanvasFPSObserver(r,n,i,o,a,{dataURLOptions:c})}initCanvasFPSObserver(e,t,r,n,i,o){const a=Wn(t,r,n,i,!0),s=new Map,c=new ei;c.onmessage=e=>{const t=e.data.id;if(s.set(t,!1),!("base64"in e.data))return;const r=e.data,n=r.base64,i=r.type,o=r.width,a=r.height;this.mutationCb({id:t,type:on["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})};const l=1e3/e;let u,p=0;const d=e=>{p&&e-p<l||(p=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{zr(t,r,n,i,!0)||e.push(t)})),e})().forEach((e=>Zn(this,void 0,void 0,Zt().mark((function t(){var r,n,i,a;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.mirror.getId(e),!s.get(n)){t.next=3;break}return t.abrupt("return");case 3:return s.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(i=e.getContext(e.__context),!1===(null===(r=null==i?void 0:i.getContextAttributes())||void 0===r?void 0:r.preserveDrawingBuffer)&&i.clear(i.COLOR_BUFFER_BIT)),t.next=7,createImageBitmap(e);case 7:a=t.sent,c.postMessage({id:n,bitmap:a,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[a]);case 9:case"end":return t.stop()}}),t,this)})))))),u=requestAnimationFrame(d)};u=requestAnimationFrame(d),this.resetObservers=()=>{a(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=Wn(e,t,r,n,!1),o=function(e,t,r,n,i){const o=[];var a,s=Bt(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));try{for(s.s();!(a=s.n()).done;){const s=a.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const a=Zr(t.CanvasRenderingContext2D.prototype,s,(function(o){return function(...a){return zr(this.canvas,r,n,i,!0)||setTimeout((()=>{const r=Hn([...a],t,this);e(this.canvas,{type:on["2D"],property:s,args:r})}),0),o.apply(this,a)}}));o.push(a)}catch(r){const n=jr(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:on["2D"],property:s,args:[t],setter:!0})}});o.push(n)}}}catch(e){s.e(e)}finally{s.f()}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n),a=function(e,t,r,n,i,o){const a=[];return a.push(...$n(t.WebGLRenderingContext.prototype,on.WebGL,e,r,n,i,0,t)),void 0!==t.WebGL2RenderingContext&&a.push(...$n(t.WebGL2RenderingContext.prototype,on.WebGL2,e,r,n,i,0,t)),()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.resetObservers=()=>{i(),o(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map((e=>{const t=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 i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["type"]);return t})),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}class ni{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new qr,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];var i,o=Bt(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),n.push({styleId:t,rules:Array.from(e.rules||CSSRule,((e,t)=>({rule:tr(e),index:t})))})),r.styleIds.push(t)}}catch(e){o.e(e)}finally{o.f()}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ii{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function oi(e){return Object.assign(Object.assign({},e),{timestamp:Fr()})}let ai,si,ci,li=!1;const ui=new rr;function pi(e={}){const t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,a=e.blockSelector,s=void 0===a?null:a,c=e.unblockSelector,l=void 0===c?null:c,u=e.ignoreClass,p=void 0===u?"rr-ignore":u,d=e.ignoreSelector,h=void 0===d?null:d,f=e.maskAllText,m=void 0!==f&&f,g=e.maskTextClass,v=void 0===g?"rr-mask":g,y=e.unmaskTextClass,b=void 0===y?null:y,_=e.maskTextSelector,E=void 0===_?null:_,w=e.unmaskTextSelector,L=void 0===w?null:w,x=e.inlineStylesheet,S=void 0===x||x,O=e.maskAllInputs,T=e.maskInputOptions,I=e.slimDOMOptions,P=e.maskAttributeFn,C=e.maskInputFn,A=e.maskTextFn,k=e.hooks,D=e.packFn,N=e.sampling,R=void 0===N?{}:N,M=e.dataURLOptions,j=void 0===M?{}:M,Z=e.mousemoveWait,F=e.recordCanvas,B=void 0!==F&&F,G=e.recordCrossOriginIframes,U=void 0!==G&&G,z=e.recordAfter,V=void 0===z?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":z,H=e.userTriggeredOnInput,Y=void 0!==H&&H,W=e.collectFonts,$=void 0!==W&&W,K=e.inlineImages,q=void 0!==K&&K,X=e.plugins,J=e.keepIframeSrcFn,Q=void 0===J?()=>!1:J,ee=e.ignoreCSSAttributes,te=void 0===ee?new Set([]):ee,re=e.errorHandler,ne=e.onMutation;gn(re);const ie=!U||window.parent===window;let oe=!1;if(!ie)try{window.parent.document&&(oe=!1)}catch(e){oe=!0}if(ie&&!t)throw new Error("emit function is required");void 0!==Z&&void 0===R.mousemove&&(R.mousemove=Z),ui.reset();const ae=!0===O?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==T?T:{},se=!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===I,headMetaDescKeywords:"all"===I}:I||{};let ce;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let le=0;const ue=e=>{var t,r=Bt(X||[]);try{for(r.s();!(t=r.n()).done;){const r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}}catch(e){r.e(e)}finally{r.f()}return D&&!oe&&(e=D(e)),e};ai=(e,i)=>{var o;if(!(null===(o=bn[0])||void 0===o?void 0:o.isFrozen())||e.type===en.FullSnapshot||e.type===en.IncrementalSnapshot&&e.data.source===tn.Mutation||bn.forEach((e=>e.unfreeze())),ie)null==t||t(ue(e),i);else if(oe){const t={type:"rrweb",event:ue(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===en.FullSnapshot)ce=e,le=0;else if(e.type===en.IncrementalSnapshot){if(e.data.source===tn.Mutation&&e.data.isAttachIframe)return;le++;const t=n&&le>=n,i=r&&e.timestamp-ce.timestamp>r;(t||i)&&si(!0)}};const pe=e=>{ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.Mutation},e)}))},de=e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.Scroll},e)})),he=e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.CanvasMutation},e)})),fe=new ni({mutationCb:pe,adoptedStyleSheetCb:e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.AdoptedStyleSheet},e)}))}),me="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Nn:new Rn({mirror:ui,mutationCb:pe,stylesheetManager:fe,recordCrossOriginIframes:U,wrappedEmit:ai});var ge,ve=Bt(X||[]);try{for(ve.s();!(ge=ve.n()).done;){const e=ge.value;e.getMirror&&e.getMirror({nodeMirror:ui,crossOriginIframeMirror:me.crossOriginIframeMirror,crossOriginIframeStyleMirror:me.crossOriginIframeStyleMirror})}}catch(e){ve.e(e)}finally{ve.f()}const ye=new ii;ci="boolean"==typeof __RRWEB_EXCLUDE_CANVAS__&&__RRWEB_EXCLUDE_CANVAS__?new ti:new ri({recordCanvas:B,mutationCb:he,win:window,blockClass:o,blockSelector:s,unblockSelector:l,mirror:ui,sampling:R.canvas,dataURLOptions:j});const be="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Mn:new jn({mutationCb:pe,scrollCb:de,bypassOptions:{onMutation:ne,blockClass:o,blockSelector:s,unblockSelector:l,maskAllText:m,maskTextClass:v,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:L,inlineStylesheet:S,maskInputOptions:ae,dataURLOptions:j,maskAttributeFn:P,maskTextFn:A,maskInputFn:C,recordCanvas:B,inlineImages:q,sampling:R,slimDOMOptions:se,iframeManager:me,stylesheetManager:fe,canvasManager:ci,keepIframeSrcFn:Q,processedNodeManager:ye},mirror:ui});si=(e=!1)=>{ai(oi({type:en.Meta,data:{href:window.location.href,width:Ur(),height:Gr()}}),e),fe.reset(),be.init(),bn.forEach((e=>e.lock()));const t=function(e,t){const r=t||{},n=r.mirror,i=void 0===n?new rr:n,o=r.blockClass,a=void 0===o?"rr-block":o,s=r.blockSelector,c=void 0===s?null:s,l=r.unblockSelector,u=void 0===l?null:l,p=r.maskAllText,d=void 0!==p&&p,h=r.maskTextClass,f=void 0===h?"rr-mask":h,m=r.unmaskTextClass,g=void 0===m?null:m,v=r.maskTextSelector,y=void 0===v?null:v,b=r.unmaskTextSelector,_=void 0===b?null:b,E=r.inlineStylesheet,w=void 0===E||E,L=r.inlineImages,x=void 0!==L&&L,S=r.recordCanvas,O=void 0!==S&&S,T=r.maskAllInputs,I=void 0!==T&&T,P=r.maskAttributeFn,C=r.maskTextFn,A=r.maskInputFn,k=r.slimDOM,D=void 0!==k&&k,N=r.dataURLOptions,R=r.preserveWhiteSpace,M=r.onSerialize,j=r.onIframeLoad,Z=r.iframeLoadTimeout,F=r.onStylesheetLoad,B=r.stylesheetLoadTimeout,G=r.keepIframeSrcFn;return kr(e,{doc:e,mirror:i,blockClass:a,blockSelector:c,unblockSelector:u,maskAllText:d,maskTextClass:f,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:w,maskInputOptions:!0===I?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===I?{}:I,maskAttributeFn:P,maskTextFn:C,maskInputFn:A,slimDOMOptions:!0===D||"all"===D?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===D,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===D?{}:D,dataURLOptions:N,inlineImages:x,recordCanvas:O,preserveWhiteSpace:R,onSerialize:M,onIframeLoad:j,iframeLoadTimeout:Z,onStylesheetLoad:F,stylesheetLoadTimeout:B,keepIframeSrcFn:void 0===G?()=>!1:G,newlyAddedElement:!1})}(document,{mirror:ui,blockClass:o,blockSelector:s,unblockSelector:l,maskAllText:m,maskTextClass:v,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:L,inlineStylesheet:S,maskAllInputs:ae,maskAttributeFn:P,maskInputFn:C,maskTextFn:A,slimDOM:se,dataURLOptions:j,recordCanvas:B,inlineImages:q,onSerialize:e=>{Wr(e,ui)&&me.addIframe(e),$r(e,ui)&&fe.trackLinkElement(e),Kr(e)&&be.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{me.attachIframe(e,t),be.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{fe.attachLinkElement(e,t)},keepIframeSrcFn:Q});if(!t)return console.warn("Failed to snapshot the document");ai(oi({type:en.FullSnapshot,data:{node:t,initialOffset:Br(window)}}),e),bn.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,ui.getId(document))};try{const e=[],t=e=>{var t;return yn(Cn)({onMutation:ne,mutationCb:pe,mousemoveCb:(e,t)=>ai(oi({type:en.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.MouseInteraction},e)})),scrollCb:de,viewportResizeCb:e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.ViewportResize},e)})),inputCb:e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.Input},e)})),mediaInteractionCb:e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.MediaInteraction},e)})),styleSheetRuleCb:e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.StyleSheetRule},e)})),styleDeclarationCb:e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.StyleDeclaration},e)})),canvasMutationCb:he,fontCb:e=>ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.Font},e)})),selectionCb:e=>{ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.Selection},e)}))},customElementCb:e=>{ai(oi({type:en.IncrementalSnapshot,data:Object.assign({source:tn.CustomElement},e)}))},blockClass:o,ignoreClass:p,ignoreSelector:h,maskAllText:m,maskTextClass:v,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:L,maskInputOptions:ae,inlineStylesheet:S,sampling:R,recordCanvas:B,inlineImages:q,userTriggeredOnInput:Y,collectFonts:$,doc:e,maskAttributeFn:P,maskInputFn:C,maskTextFn:A,keepIframeSrcFn:Q,blockSelector:s,unblockSelector:l,slimDOMOptions:se,dataURLOptions:j,mirror:ui,iframeManager:me,stylesheetManager:fe,shadowDomManager:be,processedNodeManager:ye,canvasManager:ci,ignoreCSSAttributes:te,plugins:(null===(t=null==X?void 0:X.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>ai(oi({type:en.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},k)};me.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{si(),e.push(t(document)),li=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(Dr("DOMContentLoaded",(()=>{ai(oi({type:en.DomContentLoaded,data:{}})),"DOMContentLoaded"===V&&r()}))),e.push(Dr("load",(()=>{ai(oi({type:en.Load,data:{}})),"load"===V&&r()}),window))),()=>{e.forEach((e=>e())),ye.destroy(),li=!1,vn()}}catch(e){console.warn(e)}}function di(e){return e>9999999999?e:1e3*e}function hi(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:en.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,tt.Fv)(t,10,1e3)}}),"console"===t.category))))}pi.addCustomEvent=(e,t)=>{if(!li)throw new Error("please add custom event after start recording");ai(oi({type:en.Custom,data:{tag:e,payload:t}}))},pi.freezePage=()=>{bn.forEach((e=>e.freeze()))},pi.takeFullSnapshot=e=>{if(!li)throw new Error("please take full snapshot after start recording");si(e)},pi.mirror=ui;function fi(e){const t=mi(e);if(!(t&&t instanceof Element))return t;return t.closest("button,a")||t}function mi(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let gi;function vi(e){return gi||(gi=[],(0,F.hl)(zt,"open",(function(e){return function(...t){if(gi)try{gi.forEach((e=>e()))}catch(e){}return e.apply(zt,t)}}))),gi.push(e),()=>{const t=gi?gi.indexOf(e):-1;t>-1&&gi.splice(t,1)}}class yi{constructor(e,t,r=hi){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=()=>{this._lastScroll=_i()},t=vi((()=>{this._lastMutation=_i()})),r=e=>{if(!e.target)return;const t=fi(e);t&&this._handleMultiClick(t)},n=new MutationObserver((()=>{this._lastMutation=_i()}));n.observe(zt.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),zt.addEventListener("scroll",e,{passive:!0}),zt.addEventListener("click",r,{passive:!0}),this._teardown=()=>{zt.removeEventListener("scroll",e),zt.removeEventListener("click",r),t(),n.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!bi.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const r={timestamp:(n=e.timestamp,n>9999999999?n/1e3:n),clickBreadcrumb:e,clickCount:0,node:t};var n;this._clicks.some((e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=_i();this._clicks.forEach((r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}));for(var r=0,n=e;r<n.length;r++){const e=n[r],t=this._clicks.indexOf(e);t>-1&&(this._generateBreadcrumbs(e),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!r&&!n,o=e.clickCount,a=e.clickBreadcrumb;if(i){const r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:Mt(Mt({},a.data),{},{url:zt.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:o||1})};this._addBreadcrumbEvent(t,i)}else if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:Mt(Mt({},a.data),{},{url:zt.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0})};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const bi=["A","BUTTON","INPUT"];function _i(){return Date.now()/1e3}function Ei(e){return Mt({timestamp:Date.now()/1e3,type:"default"},e)}var wi;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(wi||(wi={}));const Li=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function xi(e){const t={};for(const r in e)if(Li.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}const Si=e=>t=>{if(!e.isEnabled())return;const r=function(e){const t=function(e){const t="click"===e.name;let r,n=null;try{n=t?fi(e.event):mi(e.event),r=(0,rt.Rt)(n,{maxStringLength:200})||"<unknown>"}catch(e){r="<unknown>"}return{target:n,message:r}}(e),r=t.target,n=t.message;return Ei(Mt({category:`ui.${e.name}`},Oi(r,n)))}(t);if(!r)return;const n="click"===t.name,i=n&&t.event;!(n&&e.clickDetector&&i)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||function(e,t,r){e.handleClick(t,r)}(e.clickDetector,r,fi(t.event)),hi(e,r)};function Oi(e,t){const r=pi.mirror.getId(e),n=r&&pi.mirror.getNode(r),i=n&&pi.mirror.getMeta(n),o=i&&function(e){return e.type===wi.Element}(i)?i:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===wi.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:xi(o.attributes)}}:{}}}function Ti(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const t=e.metaKey,r=e.shiftKey,n=e.ctrlKey,i=e.altKey,o=e.key,a=e.target;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||n||i,c=1===o.length;if(!s&&c)return null;const l=(0,rt.Rt)(a,{maxStringLength:200})||"<unknown>",u=Oi(a,l);return Ei({category:"ui.keyDown",message:l,data:Mt(Mt({},u.data),{},{metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o})})}(t);r&&hi(e,r)}const Ii={resource:function(e){const t=e.entryType,r=e.initiatorType,n=e.name,i=e.responseEnd,o=e.startTime,a=e.decodedBodySize,s=e.encodedBodySize,c=e.responseStatus,l=e.transferSize;if(["fetch","xmlhttprequest"].includes(r))return null;return{type:`${t}.${r}`,start:Ci(o),end:Ci(i),name:n,data:{size:l,statusCode:c,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const t=e.duration,r=e.entryType,n=e.name,i=Ci(e.startTime);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){const t=e.entryType,r=e.name,n=e.decodedBodySize,i=e.duration,o=e.domComplete,a=e.encodedBodySize,s=e.domContentLoadedEventStart,c=e.domContentLoadedEventEnd,l=e.domInteractive,u=e.loadEventStart,p=e.loadEventEnd,d=e.redirectCount,h=e.startTime,f=e.transferSize,m=e.type;if(0===i)return null;return{type:`${t}.${m}`,start:Ci(h),end:Ci(o),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:p,domComplete:o,redirectCount:d}}}};function Pi(e){return Ii[e.entryType]?Ii[e.entryType](e):null}function Ci(e){return((x.Z1||zt.performance.timeOrigin)+e)/1e3}function Ai(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach((e=>{n.push(St(e,r))})),n.push(xt((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,r=t[t.length-1],n=r?r.element:void 0,i=e.value,o=Ci(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:i,size:i,nodeId:n?pi.mirror.getId(n):void 0}}}(t))}))),()=>{n.forEach((e=>e()))}}class ki extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Di{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}addEvent(e){var t=this;return Nt(Zt().mark((function r(){var n;return Zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=JSON.stringify(e).length,t._totalSize+=n,!(t._totalSize>Kt)){r.next=4;break}throw new ki;case 4:t.events.push(e);case 5:case"end":return r.stop()}}),r)})))()}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?di(e):null}}class Ni{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:r})=>{r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise(((n,i)=>{const o=({data:t})=>{const a=t;a.method===e&&a.id===r&&(this._worker.removeEventListener("message",o),a.success?n(a.response):i(new Error("Error in compression worker")))};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Ri{constructor(e){this._worker=new Ni(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=di(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>Kt?Promise.reject(new ki):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}_finishRequest(){var e=this;return Nt(Zt().mark((function t(){var r;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._worker.postMessage("finish");case 2:return r=t.sent,e._earliestTimestamp=null,e._totalSize=0,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})))()}}class Mi{constructor(e){this._fallback=new Di,this._compression=new Ri(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}finish(){var e=this;return Nt(Zt().mark((function t(){return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.ensureWorkerIsLoaded();case 2:return t.abrupt("return",e._used.finish());case 3:case"end":return t.stop()}}),t)})))()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}_ensureWorkerIsLoaded(){var e=this;return Nt(Zt().mark((function t(){return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._compression.ensureReady();case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 9:return t.next=11,e._switchToCompressionWorker();case 11:case"end":return t.stop()}}),t,null,[[0,5]])})))()}_switchToCompressionWorker(){var e=this;return Nt(Zt().mark((function t(){var r,n,i,o,a,s,c;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e._fallback,n=r.events,i=r.hasCheckout,o=[],a=Bt(n);try{for(a.s();!(s=a.n()).done;)c=s.value,o.push(e._compression.addEvent(c))}catch(e){a.e(e)}finally{a.f()}return e._compression.hasCheckout=i,e._used=e._compression,t.prev=6,t.next=9,Promise.all(o);case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(6);case 14:case"end":return t.stop()}}),t,null,[[6,11]])})))()}}function ji({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t={},e={};function a(t){let e=t.length;for(;--e>=0;)t[e]=0}const s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),r=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),n=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_=new Array(576);a(_);const l=new Array(60);a(l);const h=new Array(512);a(h);const o=new Array(256);a(o);const d=new Array(29);a(d);const u=new Array(30);function f(t,e,a,s,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=s,this.max_length=r,this.has_stree=t&&t.length}let c,p,g;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}a(u);const m=t=>t<256?h[t]:h[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},y=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},v=(t,e,a)=>{y(t,a[2*e],a[2*e+1])},z=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},k=(t,e,a)=>{const s=new Array(16);let r,n,i=0;for(r=1;r<=15;r++)i=i+a[r-1]<<1,s[r]=i;for(n=0;n<=e;n++){let e=t[2*n+1];0!==e&&(t[2*n]=z(s[e]++,e))}},x=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},A=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=(t,e,a,s)=>{const r=2*e,n=2*a;return t[r]<t[n]||t[r]===t[n]&&s[e]<=s[a]},Z=(t,e,a)=>{const s=t.heap[a];let r=a<<1;for(;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,s,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=s},S=(t,e,a)=>{let n,i,_,l,h=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+h++],n+=(255&t.pending_buf[t.sym_buf+h++])<<8,i=t.pending_buf[t.sym_buf+h++],0===n?v(t,i,e):(_=o[i],v(t,_+256+1,e),l=s[_],0!==l&&(i-=d[_],y(t,i,l)),n--,_=m(n),v(t,_,a),l=r[_],0!==l&&(n-=u[_],y(t,n,l)))}while(h<t.sym_next);v(t,256,e)},U=(t,e)=>{const a=e.dyn_tree,s=e.stat_desc.static_tree,r=e.stat_desc.has_stree,n=e.stat_desc.elems;let i,_,l,h=-1;for(t.heap_len=0,t.heap_max=573,i=0;i<n;i++)0!==a[2*i]?(t.heap[++t.heap_len]=h=i,t.depth[i]=0):a[2*i+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,r&&(t.static_len-=s[2*l+1]);for(e.max_code=h,i=t.heap_len>>1;i>=1;i--)Z(t,a,i);l=n;do{i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,a,1),_=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=_,a[2*l]=a[2*i]+a[2*_],t.depth[l]=(t.depth[i]>=t.depth[_]?t.depth[i]:t.depth[_])+1,a[2*i+1]=a[2*_+1]=l,t.heap[1]=l++,Z(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,s=e.max_code,r=e.stat_desc.static_tree,n=e.stat_desc.has_stree,i=e.stat_desc.extra_bits,_=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,o,d,u,f,c,p=0;for(u=0;u<=15;u++)t.bl_count[u]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)o=t.heap[h],u=a[2*a[2*o+1]+1]+1,u>l&&(u=l,p++),a[2*o+1]=u,o>s||(t.bl_count[u]++,f=0,o>=_&&(f=i[o-_]),c=a[2*o],t.opt_len+=c*(u+f),n&&(t.static_len+=c*(r[2*o+1]+f)));if(0!==p){do{for(u=l-1;0===t.bl_count[u];)u--;t.bl_count[u]--,t.bl_count[u+1]+=2,t.bl_count[l]--,p-=2}while(p>0);for(u=l;0!==u;u--)for(o=t.bl_count[u];0!==o;)d=t.heap[--h],d>s||(a[2*d+1]!==u&&(t.opt_len+=(u-a[2*d+1])*a[2*d],a[2*d+1]=u),o--)}})(t,e),k(a,h,t.bl_count)},R=(t,e,a)=>{let s,r,n=-1,i=e[1],_=0,l=7,h=4;for(0===i&&(l=138,h=3),e[2*(a+1)+1]=65535,s=0;s<=a;s++)r=i,i=e[2*(s+1)+1],++_<l&&r===i||(_<h?t.bl_tree[2*r]+=_:0!==r?(r!==n&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,n=r,0===i?(l=138,h=3):r===i?(l=6,h=3):(l=7,h=4))},L=(t,e,a)=>{let s,r,n=-1,i=e[1],_=0,l=7,h=4;for(0===i&&(l=138,h=3),s=0;s<=a;s++)if(r=i,i=e[2*(s+1)+1],!(++_<l&&r===i)){if(_<h)do{v(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==n&&(v(t,r,t.bl_tree),_--),v(t,16,t.bl_tree),y(t,_-3,2)):_<=10?(v(t,17,t.bl_tree),y(t,_-3,3)):(v(t,18,t.bl_tree),y(t,_-11,7));_=0,n=r,0===i?(l=138,h=3):r===i?(l=6,h=3):(l=7,h=4)}};let T=!1;const F=(t,e,a,s)=>{y(t,0+(s?1:0),3),A(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};e._tr_init=t=>{T||((()=>{let t,e,a,i,w;const m=new Array(16);for(a=0,i=0;i<28;i++)for(d[i]=a,t=0;t<1<<s[i];t++)o[a++]=i;for(o[a-1]=i,w=0,i=0;i<16;i++)for(u[i]=w,t=0;t<1<<r[i];t++)h[w++]=i;for(w>>=7;i<30;i++)for(u[i]=w<<7,t=0;t<1<<r[i]-7;t++)h[256+w++]=i;for(e=0;e<=15;e++)m[e]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,m[8]++;for(;t<=255;)_[2*t+1]=9,t++,m[9]++;for(;t<=279;)_[2*t+1]=7,t++,m[7]++;for(;t<=287;)_[2*t+1]=8,t++,m[8]++;for(k(_,287,m),t=0;t<30;t++)l[2*t+1]=5,l[2*t]=z(t,5);c=new f(_,s,257,286,15),p=new f(l,r,0,30,15),g=new f(new Array(0),n,0,19,7)})(),T=!0),t.l_desc=new w(t.dyn_ltree,c),t.d_desc=new w(t.dyn_dtree,p),t.bl_desc=new w(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,x(t)},e._tr_stored_block=F,e._tr_flush_block=(t,e,a,s)=>{let r,n,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),U(t,t.l_desc),U(t,t.d_desc),h=(t=>{let e;for(R(t,t.dyn_ltree,t.l_desc.max_code),R(t,t.dyn_dtree,t.d_desc.max_code),U(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),r=t.opt_len+3+7>>>3,n=t.static_len+3+7>>>3,n<=r&&(r=n)):r=n=a+5,a+4<=r&&-1!==e?F(t,e,a,s):4===t.strategy||n===r?(y(t,2+(s?1:0),3),S(t,_,l)):(y(t,4+(s?1:0),3),((t,e,a,s)=>{let r;for(y(t,e-257,5),y(t,a-1,5),y(t,s-4,4),r=0;r<s;r++)y(t,t.bl_tree[2*i[r]+1],3);L(t,t.dyn_ltree,e-1),L(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),S(t,t.dyn_ltree,t.dyn_dtree)),x(t),s&&A(t)},e._tr_tally=(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(o[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),e._tr_align=t=>{y(t,2,3),v(t,256,_),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)};var O=(t,e,a,s)=>{let r=65535&t|0,n=t>>>16&65535|0,i=0;for(;0!==a;){i=a>2e3?2e3:a,a-=i;do{r=r+e[s++]|0,n=n+r|0}while(--i);r%=65521,n%=65521}return r|n<<16|0};const D=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var s=0;s<8;s++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,s)=>{const r=D,n=s+a;t^=-1;for(let a=s;a<n;a++)t=t>>>8^r[255&(t^e[a])];return-1^t},C={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},I={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:H,_tr_stored_block:B,_tr_flush_block:M,_tr_tally:P,_tr_align:Y}=e,K=O,j=N,G=C,{Z_NO_FLUSH:X,Z_PARTIAL_FLUSH:W,Z_FULL_FLUSH:q,Z_FINISH:J,Z_BLOCK:Q,Z_OK:V,Z_STREAM_END:$,Z_STREAM_ERROR:tt,Z_DATA_ERROR:et,Z_BUF_ERROR:at,Z_DEFAULT_COMPRESSION:st,Z_FILTERED:rt,Z_HUFFMAN_ONLY:nt,Z_RLE:it,Z_FIXED:_t,Z_DEFAULT_STRATEGY:lt,Z_UNKNOWN:ht,Z_DEFLATED:ot}=I,dt=(t,e)=>(t.msg=G[e],e),ut=t=>2*t-(t>4?9:0),ft=t=>{let e=t.length;for(;--e>=0;)t[e]=0},ct=t=>{let e,a,s,r=t.w_size;e=t.hash_size,s=e;do{a=t.head[--s],t.head[s]=a>=r?a-r:0}while(--e);e=r,s=e;do{a=t.prev[--s],t.prev[s]=a>=r?a-r:0}while(--e)};let pt=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const gt=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},wt=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,gt(t.strm)},mt=(t,e)=>{t.pending_buf[t.pending++]=e},bt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},yt=(t,e,a,s)=>{let r=t.avail_in;return r>s&&(r=s),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=K(t.adler,e,r,a):2===t.state.wrap&&(t.adler=j(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},vt=(t,e)=>{let a,s,r=t.max_chain_length,n=t.strstart,i=t.prev_length,_=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,o=t.w_mask,d=t.prev,u=t.strstart+258;let f=h[n+i-1],c=h[n+i];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(a=e,h[a+i]===c&&h[a+i-1]===f&&h[a]===h[n]&&h[++a]===h[n+1]){n+=2,a++;do{}while(h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&n<u);if(s=258-(u-n),n=u-258,s>i){if(t.match_start=e,i=s,s>=_)break;f=h[n+i-1],c=h[n+i]}}}while((e=d[e&o])>l&&0!=--r);return i<=t.lookahead?i:t.lookahead},zt=t=>{const e=t.w_size;let a,s,r;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-s),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),ct(t),s+=e),0===t.strm.avail_in)break;if(a=yt(t.strm,t.window,t.strstart+t.lookahead,s),t.lookahead+=a,t.lookahead+t.insert>=3)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=pt(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=pt(t,t.ins_h,t.window[r+3-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,s,r,n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i=0,_=t.strm.avail_in;do{if(a=65535,r=t.bi_valid+42>>3,t.strm.avail_out<r)break;if(r=t.strm.avail_out-r,s=t.strstart-t.block_start,a>s+t.strm.avail_in&&(a=s+t.strm.avail_in),a>r&&(a=r),a<n&&(0===a&&e!==J||e===X||a!==s+t.strm.avail_in))break;i=e===J&&a===s+t.strm.avail_in?1:0,B(t,0,0,i),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,gt(t.strm),s&&(s>a&&(s=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+s),t.strm.next_out),t.strm.next_out+=s,t.strm.avail_out-=s,t.strm.total_out+=s,t.block_start+=s,a-=s),a&&(yt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===i);return _-=t.strm.avail_in,_&&(_>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=_&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-_,t.strm.next_in),t.strstart),t.strstart+=_,t.insert+=_>t.w_size-t.insert?t.w_size-t.insert:_),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),i?4:e!==X&&e!==J&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(r=t.window_size-t.strstart,t.strm.avail_in>r&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(yt(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water<t.strstart&&(t.high_water=t.strstart),r=t.bi_valid+42>>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,n=r>t.w_size?t.w_size:r,s=t.strstart-t.block_start,(s>=n||(s||e===J)&&e!==X&&0===t.strm.avail_in&&s<=r)&&(a=s>r?r:s,i=e===J&&0===t.strm.avail_in&&a===s?1:0,B(t,t.block_start,a,i),t.block_start+=a,gt(t.strm)),i?3:1)},xt=(t,e)=>{let a,s;for(;;){if(t.lookahead<262){if(zt(t),t.lookahead<262&&e===X)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=pt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=vt(t,a)),t.match_length>=3)if(s=P(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=pt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=pt(t,t.ins_h,t.window[t.strstart+1]);else s=P(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(s&&(wt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===J?(wt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(wt(t,!1),0===t.strm.avail_out)?1:2},At=(t,e)=>{let a,s,r;for(;;){if(t.lookahead<262){if(zt(t),t.lookahead<262&&e===X)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=pt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=vt(t,a),t.match_length<=5&&(t.strategy===rt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,s=P(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=pt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,s&&(wt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(s=P(t,0,t.window[t.strstart-1]),s&&wt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(s=P(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===J?(wt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(wt(t,!1),0===t.strm.avail_out)?1:2};function Et(t,e,a,s,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=s,this.func=r}const Zt=[new Et(0,0,0,0,kt),new Et(4,4,8,4,xt),new Et(4,5,16,8,xt),new Et(4,6,32,32,xt),new Et(4,4,16,16,At),new Et(8,16,32,32,At),new Et(8,16,128,128,At),new Et(8,32,128,256,At),new Et(32,128,258,1024,At),new Et(32,258,258,4096,At)];function St(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),ft(this.dyn_ltree),ft(this.dyn_dtree),ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),ft(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ut=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Ut(t))return dt(t,tt);t.total_in=t.total_out=0,t.data_type=ht;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,H(e),V},Lt=t=>{const e=Rt(t);var a;return e===V&&((a=t.state).window_size=2*a.w_size,ft(a.head),a.max_lazy_match=Zt[a.level].max_lazy,a.good_match=Zt[a.level].good_length,a.nice_match=Zt[a.level].nice_length,a.max_chain_length=Zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Tt=(t,e,a,s,r,n)=>{if(!t)return tt;let i=1;if(e===st&&(e=6),s<0?(i=0,s=-s):s>15&&(i=2,s-=16),r<1||r>9||a!==ot||s<8||s>15||e<0||e>9||n<0||n>_t||8===s&&1!==i)return dt(t,tt);8===s&&(s=9);const _=new St;return t.state=_,_.strm=t,_.status=42,_.wrap=i,_.gzhead=null,_.w_bits=s,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.sym_buf=_.lit_bufsize,_.sym_end=3*(_.lit_bufsize-1),_.level=e,_.strategy=n,_.method=a,Lt(t)};t.deflateInit=(t,e)=>Tt(t,e,ot,15,8,lt),t.deflateInit2=Tt,t.deflateReset=Lt,t.deflateResetKeep=Rt,t.deflateSetHeader=(t,e)=>Ut(t)||2!==t.state.wrap?tt:(t.state.gzhead=e,V),t.deflate=(t,e)=>{if(Ut(t)||e>Q||e<0)return t?dt(t,tt):tt;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==J)return dt(t,0===t.avail_out?at:tt);const s=a.last_flush;if(a.last_flush=e,0!==a.pending){if(gt(t),0===t.avail_out)return a.last_flush=-1,V}else if(0===t.avail_in&&ut(e)<=ut(s)&&e!==J)return dt(t,at);if(666===a.status&&0!==t.avail_in)return dt(t,at);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,s=-1;if(s=a.strategy>=nt||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=s<<6,0!==a.strstart&&(e|=32),e+=31-e%31,bt(a,e),0!==a.strstart&&(bt(a,t.adler>>>16),bt(a,65535&t.adler)),t.adler=1,a.status=113,gt(t),0!==a.pending)return a.last_flush=-1,V}if(57===a.status)if(t.adler=0,mt(a,31),mt(a,139),mt(a,8),a.gzhead)mt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),mt(a,255&a.gzhead.time),mt(a,a.gzhead.time>>8&255),mt(a,a.gzhead.time>>16&255),mt(a,a.gzhead.time>>24&255),mt(a,9===a.level?2:a.strategy>=nt||a.level<2?4:0),mt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(mt(a,255&a.gzhead.extra.length),mt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=j(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(mt(a,0),mt(a,0),mt(a,0),mt(a,0),mt(a,0),mt(a,9===a.level?2:a.strategy>=nt||a.level<2?4:0),mt(a,3),a.status=113,gt(t),0!==a.pending)return a.last_flush=-1,V;if(69===a.status){if(a.gzhead.extra){let e=a.pending,s=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+s>a.pending_buf_size;){let r=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+r),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=j(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=r,gt(t),0!==a.pending)return a.last_flush=-1,V;e=0,s-=r}let r=new Uint8Array(a.gzhead.extra);a.pending_buf.set(r.subarray(a.gzindex,a.gzindex+s),a.pending),a.pending+=s,a.gzhead.hcrc&&a.pending>e&&(t.adler=j(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,s=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>s&&(t.adler=j(t.adler,a.pending_buf,a.pending-s,s)),gt(t),0!==a.pending)return a.last_flush=-1,V;s=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,mt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>s&&(t.adler=j(t.adler,a.pending_buf,a.pending-s,s)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,s=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>s&&(t.adler=j(t.adler,a.pending_buf,a.pending-s,s)),gt(t),0!==a.pending)return a.last_flush=-1,V;s=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,mt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>s&&(t.adler=j(t.adler,a.pending_buf,a.pending-s,s))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(gt(t),0!==a.pending))return a.last_flush=-1,V;mt(a,255&t.adler),mt(a,t.adler>>8&255),t.adler=0}if(a.status=113,gt(t),0!==a.pending)return a.last_flush=-1,V}if(0!==t.avail_in||0!==a.lookahead||e!==X&&666!==a.status){let s=0===a.level?kt(a,e):a.strategy===nt?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(zt(t),0===t.lookahead)){if(e===X)return 1;break}if(t.match_length=0,a=P(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(wt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===J?(wt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(wt(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,s,r,n;const i=t.window;for(;;){if(t.lookahead<=258){if(zt(t),t.lookahead<=258&&e===X)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=t.strstart-1,s=i[r],s===i[++r]&&s===i[++r]&&s===i[++r])){n=t.strstart+258;do{}while(s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&r<n);t.match_length=258-(n-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=P(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=P(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(wt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===J?(wt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(wt(t,!1),0===t.strm.avail_out)?1:2})(a,e):Zt[a.level].func(a,e);if(3!==s&&4!==s||(a.status=666),1===s||3===s)return 0===t.avail_out&&(a.last_flush=-1),V;if(2===s&&(e===W?Y(a):e!==Q&&(B(a,0,0,!1),e===q&&(ft(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),gt(t),0===t.avail_out))return a.last_flush=-1,V}return e!==J?V:a.wrap<=0?$:(2===a.wrap?(mt(a,255&t.adler),mt(a,t.adler>>8&255),mt(a,t.adler>>16&255),mt(a,t.adler>>24&255),mt(a,255&t.total_in),mt(a,t.total_in>>8&255),mt(a,t.total_in>>16&255),mt(a,t.total_in>>24&255)):(bt(a,t.adler>>>16),bt(a,65535&t.adler)),gt(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?V:$)},t.deflateEnd=t=>{if(Ut(t))return tt;const e=t.state.status;return t.state=null,113===e?dt(t,et):V},t.deflateSetDictionary=(t,e)=>{let a=e.length;if(Ut(t))return tt;const s=t.state,r=s.wrap;if(2===r||1===r&&42!==s.status||s.lookahead)return tt;if(1===r&&(t.adler=K(t.adler,e,a,0)),s.wrap=0,a>=s.w_size){0===r&&(ft(s.head),s.strstart=0,s.block_start=0,s.insert=0);let t=new Uint8Array(s.w_size);t.set(e.subarray(a-s.w_size,a),0),e=t,a=s.w_size}const n=t.avail_in,i=t.next_in,_=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,zt(s);s.lookahead>=3;){let t=s.strstart,e=s.lookahead-2;do{s.ins_h=pt(s,s.ins_h,s.window[t+3-1]),s.prev[t&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=t,t++}while(--e);s.strstart=t,s.lookahead=2,zt(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=2,s.match_available=0,t.next_in=i,t.input=_,t.avail_in=n,s.wrap=r,V},t.deflateInfo="pako deflate (from Nodeca project)";var Ft={};const Ot=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);Ft.assign=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Ot(a,e)&&(t[e]=a[e])}}return t},Ft.flattenChunks=t=>{let e=0;for(let a=0,s=t.length;a<s;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,s=0,r=t.length;e<r;e++){let r=t[e];a.set(r,s),s+=r.length}return a};var Dt={};let Nt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Nt=!1}const Ct=new Uint8Array(256);for(let t=0;t<256;t++)Ct[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ct[254]=Ct[254]=1,Dt.string2buf=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,s,r,n,i=t.length,_=0;for(r=0;r<i;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<i&&(s=t.charCodeAt(r+1),56320==(64512&s)&&(a=65536+(a-55296<<10)+(s-56320),r++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),n=0,r=0;n<_;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<i&&(s=t.charCodeAt(r+1),56320==(64512&s)&&(a=65536+(a-55296<<10)+(s-56320),r++)),a<128?e[n++]=a:a<2048?(e[n++]=192|a>>>6,e[n++]=128|63&a):a<65536?(e[n++]=224|a>>>12,e[n++]=128|a>>>6&63,e[n++]=128|63&a):(e[n++]=240|a>>>18,e[n++]=128|a>>>12&63,e[n++]=128|a>>>6&63,e[n++]=128|63&a);return e};Dt.buf2string=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let s,r;const n=new Array(2*a);for(r=0,s=0;s<a;){let e=t[s++];if(e<128){n[r++]=e;continue}let i=Ct[e];if(i>4)n[r++]=65533,s+=i-1;else{for(e&=2===i?31:3===i?15:7;i>1&&s<a;)e=e<<6|63&t[s++],i--;i>1?n[r++]=65533:e<65536?n[r++]=e:(e-=65536,n[r++]=55296|e>>10&1023,n[r++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Nt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let s=0;s<e;s++)a+=String.fromCharCode(t[s]);return a})(n,r)},Dt.utf8border=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Ct[t[a]]>e?a:e};const It=t,Ht=Ft,Bt=Dt,Mt=C,Pt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Yt=Object.prototype.toString,{Z_NO_FLUSH:Kt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Gt,Z_FINISH:Xt,Z_OK:Wt,Z_STREAM_END:qt,Z_DEFAULT_COMPRESSION:Jt,Z_DEFAULT_STRATEGY:Qt,Z_DEFLATED:Vt}=I;function $t(t){this.options=Ht.assign({level:Jt,method:Vt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Qt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Pt,this.strm.avail_out=0;let a=It.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Wt)throw new Error(Mt[a]);if(e.header&&It.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Bt.string2buf(e.dictionary):"[object ArrayBuffer]"===Yt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=It.deflateSetDictionary(this.strm,t),a!==Wt)throw new Error(Mt[a]);this._dict_set=!0}}$t.prototype.push=function(t,e){const a=this.strm,s=this.options.chunkSize;let r,n;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Xt:Kt,"string"==typeof t?a.input=Bt.string2buf(t):"[object ArrayBuffer]"===Yt.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(s),a.next_out=0,a.avail_out=s),(n===jt||n===Gt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(r=It.deflate(a,n),r===qt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),r=It.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Wt;if(0!==a.avail_out){if(n>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},$t.prototype.onData=function(t){this.chunks.push(t)},$t.prototype.onEnd=function(t){t===Wt&&(this.result=Ht.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const te=$t,ee=function(t,e){const a=new $t(e);if(a.push(t,!0),a.err)throw a.msg||Mt[a.err];return a.result},ae=I;const se=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,ae.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",ae.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new te,this.deflate.push("[",ae.Z_NO_FLUSH)}},re={clear:()=>{se.clear()},addEvent:t=>se.addEvent(t),finish:()=>se.finish(),compress:t=>function(t){return ee(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,s=t.data.arg;if(e in re&&"function"==typeof re[e])try{const t=re[e](s);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;const r=new Worker(t);return new Mi(r)}catch(e){}}(t);if(e)return e}return new Di}function Zi(){try{return"sessionStorage"in zt&&!!zt.sessionStorage}catch(e){return!1}}function Fi(e){!function(){if(!Zi())return;try{zt.sessionStorage.removeItem(Vt)}catch(e){}}(),e.session=void 0}function Bi(e){return void 0!==e&&Math.random()<e}function Gi(e){if(Zi())try{zt.sessionStorage.setItem(Vt,JSON.stringify(e))}catch(e){}}function Ui(e){const t=Date.now();return{id:e.id||(0,S.DM)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function zi({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const i=function(e,t){return Bi(e)?"session":!!t&&"buffer"}(e,t),o=Ui({sampled:i,previousSessionId:n});return r&&Gi(o),o}function Vi(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function Hi(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return Vi(e.started,t,n)||Vi(e.lastActivity,r,n)}function Yi(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!Hi(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function Wi({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:r,previousSessionId:n},i){const o=i.stickySession&&function(e){if(!Zi())return null;try{const e=zt.sessionStorage.getItem(Vt);return e?Ui(JSON.parse(e)):null}catch(e){return null}}();return o?Yi(o,{sessionIdleExpire:t,maxReplayDuration:r})?zi(i,{previousSessionId:o.id}):o:zi(i,{previousSessionId:n})}function $i(e,t,r){return!!Xi(e,t)&&(Ki(e,t,r),!0)}function Ki(e,t,r){return qi.apply(this,arguments)}function qi(){return qi=Nt(Zt().mark((function e(t,r,n){var i,o,a,s;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.eventBuffer){e.next=2;break}return e.abrupt("return",null);case 2:if(e.prev=2,n&&"buffer"===t.recordingMode&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0),i=t.getOptions(),o=Ji(r,i.beforeAddRecordingEvent)){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,t.eventBuffer.addEvent(o);case 11:return e.abrupt("return",e.sent);case 14:return e.prev=14,e.t0=e.catch(2),a=e.t0&&e.t0 instanceof ki?"addEventSizeExceeded":"addEvent",e.next=20,t.stop({reason:a});case 20:(s=(0,b.Gd)().getClient())&&s.recordDroppedEvent("internal_sdk_error","replay");case 22:case"end":return e.stop()}}),e,null,[[2,14]])}))),qi.apply(this,arguments)}function Xi(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=di(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(e.getOptions()._experiments.traceInternals,!1))}function Ji(e,t){try{if("function"==typeof t&&function(e){return e.type===en.Custom}(e))return t(e)}catch(e){return null}return e}function Qi(e){return!e.type}function eo(e){return"transaction"===e.type}function to(e){const t=function(){const e=(0,b.Gd)().getClient();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(r,n)=>{if(!e.isEnabled()||!Qi(r)&&!eo(r))return;const i=n&&n.statusCode;t&&(!i||i<200||i>=300)||(eo(r)?function(e,t){const r=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,r):function(e,t){const r=e.getContext();t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id);"buffer"===e.recordingMode&&t.tags&&t.tags.replayId&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,r))}}function ro(e,t=!1){const r=t?to(e):void 0;return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Qi(t)&&!eo(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return null;const i=function(e,t){return"buffer"===e.recordingMode&&t.message!==Yt&&!(!t.exception||t.type)&&Bi(e.getOptions().errorSampleRate)}(e,t);return(i||"session"===e.recordingMode)&&(t.tags=Mt(Mt({},t.tags),{},{replayId:e.getSessionId()})),r&&r(t,{statusCode:200}),t}),{id:"Replay"})}function no(e,t){return t.map((({type:t,start:r,end:n,name:i,data:o})=>{const a=e.throttledAddEvent({type:en.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof a?Promise.resolve(null):a}))}function io(e){return t=>{if(!e.isEnabled())return;const r=function(e){const t=e.from,r=e.to,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate((()=>(no(e,[r]),!1))))}}function oo(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(0,Qe.W)(t,(0,b.Gd)())}(0,t.name)||e.addUpdate((()=>(no(e,[t]),!0))))}function ao(e){return t=>{if(!e.isEnabled())return;const r=function(e){const t=e.startTimestamp,r=e.endTimestamp,n=e.xhr[_.xU];if(!t||!r||!n)return null;const i=n.method,o=n.url,a=n.status_code;return void 0===o?null:{type:"resource.xhr",name:o,start:t/1e3,end:r/1e3,data:{method:i,statusCode:a}}}(t);oo(e,r)}}const so=10,co=11,lo=12,uo=13,po=14,ho=15,fo=20,mo=21,go=22,vo=23,yo=["true","false","null"];function bo(e,t){if(!t.length)return e;let r=e;const n=t.length-1;r=function(e,t){switch(t){case so:return`${e}"~~":"~~"`;case 11:return`${e}:"~~"`;case 12:return`${e}~~":"~~"`;case uo:return function(e){const t=e.lastIndexOf(":"),r=e.slice(t+1);if(yo.includes(r.trim()))return`${e},"~~":"~~"`;return`${e.slice(0,t+1)}"~~"`}(e);case 14:return`${e}~~"`;case ho:return`${e},"~~":"~~"`;case fo:return`${e}"~~"`;case mo:return function(e){const t=function(e){for(let t=e.length-1;t>=0;t--){const r=e[t];if(","===r||"["===r)return t}return-1}(e);if(t>-1){const r=e.slice(t+1);return yo.includes(r.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case 22:return`${e}~~"`;case vo:return`${e},"~~"`}return e}(r,t[n]);for(let e=n;e>=0;e--){switch(t[e]){case so:r=`${r}}`;break;case fo:r=`${r}]`}}return r}function _o(e,t,r){const n=e[e.length-1],i=t[r];if(!/\s/.test(i))if('"'!==i||Eo(t,r))switch(i){case"{":!function(e,t){if(!t)return void e.push(so);if(t===uo)return void e.push(so);t===mo&&e.push(so);if(t===fo)e.push(so)}(e,n);break;case"[":!function(e,t){if(!t)return e.push(fo),void e.push(mo);if(t===uo)return e.push(fo),void e.push(mo);t===mo&&(e.push(fo),e.push(mo));if(t===fo)e.push(fo),e.push(mo)}(e,n);break;case":":!function(e,t){t===co&&(e.pop(),e.push(uo))}(e,n);break;case",":!function(e,t){if(t===uo)return void e.pop();if(t===ho)return e.pop(),void e.pop();if(t===mo)return;if(t===vo)e.pop()}(e,n);break;case"}":!function(e,t){t===so&&e.pop();t===uo&&(e.pop(),e.pop());t===ho&&(e.pop(),e.pop(),e.pop());e[e.length-1]===uo&&e.push(ho);e[e.length-1]===mo&&e.push(vo)}(e,n);break;case"]":!function(e,t){t===fo&&e.pop();t===mo&&(e.pop(),e.pop());t===vo&&(e.pop(),e.pop(),e.pop());e[e.length-1]===uo&&e.push(ho);e[e.length-1]===mo&&e.push(vo)}(e,n)}else!function(e,t){if(t===po)return e.pop(),void e.push(ho);if(t===go)return e.pop(),void e.push(vo);if(t===uo)return void e.push(po);if(t===mo)return void e.push(go);if(t===so)return void e.push(lo);if(t===lo)e.pop(),e.push(11)}(e,n)}function Eo(e,t){return"\\"===e[t-1]&&!Eo(e,t-1)}function wo(e){return bo(e,function(e){const t=[];for(let r=0;r<e.length;r++)_o(t,e,r);return t}(e))}function Lo(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const r=Co(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function xo(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function So(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?Co(e):void 0}function Oo(e,t){if(!t)return null;const r=t.startTimestamp,n=t.endTimestamp,i=t.url,o=t.method,a=t.statusCode,s=t.request,c=t.response;return{type:e,start:r/1e3,end:n/1e3,name:i,data:(0,F.Jr)({method:o,statusCode:a,request:s,response:c})}}function To(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Io(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},i=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};const t=e.length>Wt;if(function(e){const t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e))try{const r=t?wo(e.slice(0,Wt)):e;return{body:JSON.parse(r),warnings:t?["JSON_TRUNCATED"]:[]}}catch(r){return{body:t?`${e.slice(0,Wt)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,Wt)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(r),o=i.body,a=i.warnings;return n.body=o,a.length>0&&(n._meta={warnings:a}),n}function Po(e,t){return Object.keys(e).reduce(((r,n)=>{const i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=e[n]),r}),{})}function Co(e){return new URLSearchParams(e).toString()}function Ao(e,t){const r=function(e,t=zt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(zt.location.origin))return e;const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;if(!e.endsWith("/")&&n.endsWith("/"))return n.slice(0,-1);return n}(e);return(0,it.U0)(r,t)}function ko(){return(ko=Nt(Zt().mark((function e(t,r,n){var i,o;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Do(t,r,n);case 3:i=e.sent,o=Oo("resource.fetch",i),oo(n.replay,o),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function Do(e,t,r){return No.apply(this,arguments)}function No(){return No=Nt(Zt().mark((function e(t,r,n){var i,o,a,s,c,l,u,p,d,h,f,m;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.startTimestamp,o=r.endTimestamp,a=t.data,s=a.url,c=a.method,l=a.status_code,u=void 0===l?0:l,p=a.request_body_size,d=a.response_body_size,h=Ao(s,n.networkDetailAllowUrls)&&!Ao(s,n.networkDetailDenyUrls),f=h?Ro(n,r.input,p):To(p),e.next=6,Mo(h,n,r.response,d);case 6:return m=e.sent,e.abrupt("return",{startTimestamp:i,endTimestamp:o,url:s,method:c,statusCode:u,request:f,response:m});case 8:case"end":return e.stop()}}),e)}))),No.apply(this,arguments)}function Ro({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const i=function(e,t){if(1===e.length&&"string"!=typeof e[0])return Uo(e[0],t);if(2===e.length)return Uo(e[1],t);return{}}(r,t);if(!e)return Io(i,n,void 0);return Io(i,n,So(Bo(r)))}function Mo(e,t,r,n){return jo.apply(this,arguments)}function jo(){return(jo=Nt(Zt().mark((function e(t,{networkCaptureBodies:r,textEncoder:n,networkResponseHeaders:i},o,a){var s,c,l,u;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||void 0===a){e.next=2;break}return e.abrupt("return",To(a));case 2:if(s=Go(o.headers,i),r||void 0===a){e.next=5;break}return e.abrupt("return",Io(s,a,void 0));case 5:return e.prev=5,c=o.clone(),e.next=9,Zo(c);case 9:if(l=e.sent,u=l&&l.length&&void 0===a?Lo(l,n):a,t){e.next=13;break}return e.abrupt("return",To(u));case 13:if(!r){e.next=15;break}return e.abrupt("return",Io(s,u,l));case 15:return e.abrupt("return",Io(s,u,void 0));case 18:return e.prev=18,e.t0=e.catch(5),e.abrupt("return",Io(s,a,void 0));case 21:case"end":return e.stop()}}),e,null,[[5,18]])})))).apply(this,arguments)}function Zo(e){return Fo.apply(this,arguments)}function Fo(){return(Fo=Nt(Zt().mark((function e(t){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.text();case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",void 0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function Bo(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Go(e,t){const r={};return t.forEach((t=>{e.get(t)&&(r[t]=e.get(t))})),r}function Uo(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?Go(r,t):Array.isArray(r)?{}:Po(r,t):{}}function zo(){return(zo=Nt(Zt().mark((function e(t,r,n){var i,o;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{i=Vo(t,r,n),o=Oo("resource.xhr",i),oo(n.replay,o)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vo(e,t,r){const n=t.startTimestamp,i=t.endTimestamp,o=t.input,a=t.xhr,s=e.data,c=s.url,l=s.method,u=s.status_code,p=void 0===u?0:u,d=s.request_body_size,h=s.response_body_size;if(!c)return null;if(!Ao(c,r.networkDetailAllowUrls)||Ao(c,r.networkDetailDenyUrls)){return{startTimestamp:n,endTimestamp:i,url:c,method:l,statusCode:p,request:To(d),response:To(h)}}const f=a[_.xU],m=f?Po(f.request_headers,r.networkRequestHeaders):{},g=Po(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const r=Ft(t.split(": "),2),n=r[0],i=r[1];return e[n.toLowerCase()]=i,e}),{})}(a),r.networkResponseHeaders);return{startTimestamp:n,endTimestamp:i,url:c,method:l,statusCode:p,request:Io(m,d,r.networkCaptureBodies?So(o):void 0),response:Io(g,h,r.networkCaptureBodies?t.xhr.responseText:void 0)}}function Ho(e){const t=(0,b.Gd)().getClient();try{const r=new TextEncoder,n=e.getOptions(),i=n.networkDetailAllowUrls,o=n.networkDetailDenyUrls,a=n.networkCaptureBodies,s=n.networkRequestHeaders,c={replay:e,textEncoder:r,networkDetailAllowUrls:i,networkDetailDenyUrls:o,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:n.networkResponseHeaders};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,r){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(r)&&(function(e,t,r){const n=t.xhr,i=Lo(t.input,r.textEncoder),o=n.getResponseHeader("content-length")?xo(n.getResponseHeader("content-length")):Lo(n.response,r.textEncoder);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r,e),function(e,t,r){zo.apply(this,arguments)}(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(r)&&(function(e,t,r){const n=t.input,i=t.response,o=Lo(Bo(n),r.textEncoder),a=i?xo(i.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,r,e),function(e,t,r){ko.apply(this,arguments)}(t,r,e))}catch(e){}}(c,e,t))):((0,_.oq)("fetch",function(e){return t=>{if(!e.isEnabled())return;const r=function(e){const t=e.startTimestamp,r=e.endTimestamp,n=e.fetchData,i=e.response;if(!r)return null;const o=n.method;return{type:"resource.fetch",start:t/1e3,end:r/1e3,name:n.url,data:{method:o,statusCode:i?i.status:void 0}}}(t);oo(e,r)}}(e)),(0,_.oq)("xhr",ao(e)))}catch(e){}}let Yo=null;const Wo=e=>t=>{if(!e.isEnabled())return;const r=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Yo===t||!t)return null;if(Yo=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Ei(e);let r=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>$t?(r=!0,`${e.slice(0,$t)}…`):e;if("object"==typeof e)try{const t=(0,tt.Fv)(e,7),n=JSON.stringify(t);if(n.length>$t){const e=wo(n.slice(0,$t)),t=JSON.parse(e);return r=!0,t}return t}catch(e){}return e}));return Ei(Mt(Mt({},e),{},{data:Mt(Mt({},e.data),{},{arguments:n},r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}(t);return Ei(t)}(t);r&&hi(e,r)};function $o(e){return!(!e||!e.on)}function Ko(e){return qo.apply(this,arguments)}function qo(){return(qo=Nt(Zt().mark((function e(t){return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",Promise.all(no(t,[Xo(zt.performance.memory)])));case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return",[]);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function Xo(e){const t=e.jsHeapSizeLimit,r=e.totalJSHeapSize,n=e.usedJSHeapSize,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}function Jo(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return;const i=n||!t;t=!0,e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!$i(e,r,i))return!0;if(!i)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;$i(e,function(e){const t=e.getOptions();return{type:en.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(new Date(t),e.getOptions()._experiments.traceInternals,e.session.started=t,e.getOptions().stickySession&&Gi(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}function Qo(e,t,r,n){return(0,p.Jd)((0,p.Cd)(e,(0,p.HY)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function ea({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)r=`${n}${e}`;else{const t=(new TextEncoder).encode(n);r=new Uint8Array(t.length+e.length),r.set(t),r.set(e,t.length)}return r}function ta(e){return ra.apply(this,arguments)}function ra(){return ra=Nt(Zt().mark((function e({client:t,scope:r,replayId:n,event:i}){var o,a,s,c,l,u,p;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),a={event_id:n,integrations:o},t.emit&&t.emit("preprocessEvent",i,a),e.next=5,(0,et.R)(t.getOptions(),i,a,r,t);case 5:if(s=e.sent){e.next=8;break}return e.abrupt("return",null);case 8:return s.platform=s.platform||"javascript",c=t.getSdkMetadata&&t.getSdkMetadata(),l=c&&c.sdk||{},u=l.name,p=l.version,s.sdk=Mt(Mt({},s.sdk),{},{name:u||"sentry.javascript.unknown",version:p||"0.0.0"}),e.abrupt("return",s);case 13:case"end":return e.stop()}}),e)}))),ra.apply(this,arguments)}function na(e){return ia.apply(this,arguments)}function ia(){return ia=Nt(Zt().mark((function e({recordingData:t,replayId:r,segmentId:n,eventContext:i,timestamp:o,session:a}){var s,c,l,u,p,d,h,f,m,g,v,y,_,E,w;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=ea({recordingData:t,headers:{segment_id:n}}),c=i.urls,l=i.errorIds,u=i.traceIds,p=i.initialTimestamp,d=(0,b.Gd)(),h=d.getClient(),f=d.getScope(),m=h&&h.getTransport(),g=h&&h.getDsn(),h&&m&&g&&a.sampled){e.next=9;break}return e.abrupt("return");case 9:return v={type:Ht,replay_start_timestamp:p/1e3,timestamp:o/1e3,error_ids:l,trace_ids:u,urls:c,replay_id:r,segment_id:n,replay_type:a.sampled},e.next=12,ta({scope:f,client:h,replayId:r,event:v});case 12:if(y=e.sent){e.next=17;break}return h.recordDroppedEvent("event_processor","replay",v),e.abrupt("return");case 17:return delete y.sdkProcessingMetadata,_=Qo(y,s,g,h.getOptions().tunnel),e.prev=19,e.next=22,m.send(_);case 22:E=e.sent,e.next=30;break;case 25:e.prev=25,e.t0=e.catch(19),w=new Error(Yt);try{w.cause=e.t0}catch(e){}throw w;case 30:if(E){e.next=32;break}return e.abrupt("return",E);case 32:if("number"!=typeof E.statusCode||!(E.statusCode<200||E.statusCode>=300)){e.next=34;break}throw new oa(E.statusCode);case 34:return e.abrupt("return",E);case 35:case"end":return e.stop()}}),e,null,[[19,25]])}))),ia.apply(this,arguments)}class oa extends Error{constructor(e){super(`Transport returned status code ${e}`)}}function aa(e){return sa.apply(this,arguments)}function sa(){return(sa=Nt(Zt().mark((function e(t,r={count:0,interval:5e3}){var n,i;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.recordingData,t.options,n.length){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,na(t);case 6:return e.abrupt("return",!0);case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof oa)){e.next=13;break}throw e.t0;case 13:if((0,Re.v)("Replays",{_retryCount:r.count}),!(r.count>=3)){e.next=19;break}i=new Error("Unable to send Replay - max retries exceeded");try{i.cause=e.t0}catch(e){}throw i;case 19:return r.interval*=++r.count,e.abrupt("return",new Promise(((e,n)=>{setTimeout(Nt(Zt().mark((function i(){return Zt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,aa(t,r);case 3:e(!0),i.next=9;break;case 6:i.prev=6,i.t0=i.catch(0),n(i.t0);case 9:case"end":return i.stop()}}),i,null,[[0,6]])}))),r.interval)})));case 21:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}const ca="__THROTTLED";function la(e,t,r){const n=new Map;let i=!1;return(...o)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-r;n.forEach(((e,r)=>{r<t&&n.delete(r)}))})(a),[...n.values()].reduce(((e,t)=>e+t),0)>=t){const e=i;return i=!0,e?"__SKIPPED":ca}i=!1;const s=n.get(a)||0;return n.set(a,s+1),e(...o)}}class ua{constructor({options:e,recordingOptions:t}){ua.prototype.__init.call(this),ua.prototype.__init2.call(this),ua.prototype.__init3.call(this),ua.prototype.__init4.call(this),ua.prototype.__init5.call(this),ua.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,o;const a=r&&r.maxWait?Math.max(r.maxWait,t):0;function s(){return c(),n=e(),n}function c(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function l(){return i&&clearTimeout(i),i=setTimeout(s,t),a&&void 0===o&&(o=setTimeout(s,a)),n}return l.cancel=c,l.flush=function(){return void 0!==i||void 0!==o?s():n},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=la(((e,t)=>function(e,t,r){return Xi(e,t)?Ki(e,t,r):Promise.resolve(null)}(this,e,t)),300,5);const r=this.getOptions(),n=r.slowClickTimeout,i=r.slowClickIgnoreSelectors,o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;o&&(this.clickDetector=new yi(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){const t=this._options,r=t.errorSampleRate,n=t.sessionSampleRate;r<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.recordingMode,this._options._experiments.traceInternals,this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");this._options._experiments.traceInternals;const e=Wi({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");this._options._experiments.traceInternals;const e=Wi({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=pi(Mt(Mt(Mt({},this._recordingOptions),"buffer"===this.recordingMode&&{checkoutEveryNms:6e4}),{},{emit:Jo(this),onMutation:this._onMutationHandler}))}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}stop({forceFlush:e=!1,reason:t}={}){var r=this;return Nt(Zt().mark((function t(){return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r._isEnabled){t.next=2;break}return t.abrupt("return");case 2:if(r._isEnabled=!1,t.prev=3,r._options._experiments.traceInternals,r._removeListeners(),r.stopRecording(),r._debouncedFlush.cancel(),!e){t.next=11;break}return t.next=11,r._flush({force:!0});case 11:r.eventBuffer&&r.eventBuffer.destroy(),r.eventBuffer=null,Fi(r),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(3),r._handleException(t.t0);case 19:case"end":return t.stop()}}),t,null,[[3,16]])})))()}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}sendBufferedReplayOrFlush({continueRecording:e=!0}={}){var t=this;return Nt(Zt().mark((function r(){var n,i;return Zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("session"!==t.recordingMode){r.next=2;break}return r.abrupt("return",t.flushImmediate());case 2:return n=Date.now(),t._options._experiments.traceInternals,r.next=6,t.flushImmediate();case 6:if(i=t.stopRecording(),e&&i){r.next=9;break}return r.abrupt("return");case 9:if("session"!==t.recordingMode){r.next=11;break}return r.abrupt("return");case 11:t.recordingMode="session",t.session&&(t._updateUserActivity(n),t._updateSessionActivity(n),t._maybeSaveSession()),t.startRecording();case 14:case"end":return r.stop()}}),r)})))()}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Vi(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${zt.location.pathname}${zt.location.hash}${zt.location.search}`,t=`${zt.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const r=this._throttledAddEvent(e,t);if(r===ca){const e=Ei({category:"replay.throttled"});this.addUpdate((()=>!$i(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return r}getCurrentRoute(){const e=this.lastTransaction||(0,b.Gd)().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=ji({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){0}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=Wi({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return!Yi(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}_refreshSession(e){var t=this;return Nt(Zt().mark((function r(){return Zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._isEnabled){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t.stop({reason:"refresh session"});case 4:t.initializeSampling(e.id);case 5:case"end":return r.stop()}}),r)})))()}_addListeners(){try{zt.document.addEventListener("visibilitychange",this._handleVisibilityChange),zt.addEventListener("blur",this._handleWindowBlur),zt.addEventListener("focus",this._handleWindowFocus),zt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,b.Gd)().getScope(),r=(0,b.Gd)().getClient();t.addScopeListener(Wo(e)),(0,_.oq)("dom",Si(e)),(0,_.oq)("history",io(e)),Ho(e);const n=ro(e,!$o(r));r&&r.addEventProcessor?r.addEventProcessor(n):(0,Me.cc)(n),$o(r)&&(r.on("afterSendEvent",to(e)),r.on("createDsc",(t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)})),r.on("startTransaction",(t=>{e.lastTransaction=t})),r.on("finishTransaction",(t=>{e.lastTransaction=t})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=Ai(this)}_removeListeners(){try{zt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),zt.removeEventListener("blur",this._handleWindowBlur),zt.removeEventListener("focus",this._handleWindowFocus),zt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===zt.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ei({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ei({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Ti(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Hi(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:en.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Pi).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(no(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const e=this.session,t=this.eventBuffer;if(!e||!t)return;if(e.segmentId)return;const r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}_runFlush(){var e=this;return Nt(Zt().mark((function t(){var r,n,i,o,a,s;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.getSessionId(),e.session&&e.eventBuffer&&r){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e._addPerformanceEntries();case 6:if(e.eventBuffer&&e.eventBuffer.hasEvents){t.next=8;break}return t.abrupt("return");case 8:return t.next=10,Ko(e);case 10:if(e.eventBuffer){t.next=12;break}return t.abrupt("return");case 12:if(r===e.getSessionId()){t.next=14;break}return t.abrupt("return");case 14:if(t.prev=14,e._updateInitialTimestampFromEventBuffer(),!((n=Date.now())-e._context.initialTimestamp>e._options.maxReplayDuration+3e4)){t.next=19;break}throw new Error("Session is too long, not sending replay");case 19:return i=e._popEventContext(),o=e.session.segmentId++,e._maybeSaveSession(),t.next=24,e.eventBuffer.finish();case 24:return a=t.sent,t.next=27,aa({replayId:r,recordingData:a,segmentId:o,eventContext:i,session:e.session,options:e.getOptions(),timestamp:n});case 27:t.next=35;break;case 29:t.prev=29,t.t0=t.catch(14),e._handleException(t.t0),e.stop({reason:"sendReplay"}),(s=(0,b.Gd)().getClient())&&s.recordDroppedEvent("send_error","replay");case 35:case"end":return t.stop()}}),t,null,[[14,29]])})))()}__init5(){var e=this;this._flush=Nt(Zt().mark((function t({force:r=!1}={}){var n,i,o,a,s,c;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._isEnabled||r){t.next=2;break}return t.abrupt("return");case 2:if(e.checkAndHandleExpiredSession()){t.next=5;break}return t.abrupt("return");case 5:if(e.session){t.next=7;break}return t.abrupt("return");case 7:if(n=e.session.started,i=Date.now(),o=i-n,e._debouncedFlush.cancel(),a=o<e._options.minReplayDuration,s=o>e._options.maxReplayDuration+5e3,!a&&!s){t.next=17;break}return Math.floor(o/1e3),e._options._experiments.traceInternals,a&&e._debouncedFlush(),t.abrupt("return");case 17:if((c=e.eventBuffer)&&0===e.session.segmentId&&!c.hasCheckout&&e._options._experiments.traceInternals,e._flushLock){t.next=25;break}return e._flushLock=e._runFlush(),t.next=23,e._flushLock;case 23:return e._flushLock=void 0,t.abrupt("return");case 25:return t.prev=25,t.next=28,e._flushLock;case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(25);case 33:return t.prev=33,e._debouncedFlush(),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[25,30,33,36]])})))}_maybeSaveSession(){this.session&&this._options.stickySession&&Gi(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,r=this._options.mutationLimit,n=r&&t>r;if(t>this._options.mutationBreadcrumbLimit||n){const e=Ei({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function pa(e,t,r,n){const i=[...e,..."string"==typeof n?n.split(","):[],...t];return void 0!==r&&("string"==typeof r&&i.push(`.${r}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")}const da='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ha=["content-length","content-type","accept"];let fa=!1;class ma{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},sessionSampleRate:c,errorSampleRate:l,maskAllText:u=!0,maskAllInputs:p=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:v=[],networkDetailDenyUrls:y=[],networkCaptureBodies:b=!0,networkRequestHeaders:_=[],networkResponseHeaders:E=[],mask:w=[],maskAttributes:L=["title","placeholder"],unmask:x=[],block:S=[],unblock:O=[],ignore:T=[],maskFn:I,beforeAddRecordingEvent:P,blockClass:C,blockSelector:A,maskInputOptions:k,maskTextClass:D,maskTextSelector:N,ignoreClass:R}={}){this.name=ma.id;const M=function({mask:e,unmask:t,block:r,unblock:n,ignore:i,blockClass:o,blockSelector:a,maskTextClass:s,maskTextSelector:c,ignoreClass:l}){const u={maskTextSelector:pa(e,[".sentry-mask","[data-sentry-mask]"],s,c),unmaskTextSelector:pa(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:pa(r,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,a),unblockSelector:pa(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:pa(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return o instanceof RegExp&&(u.blockClass=o),s instanceof RegExp&&(u.maskTextClass=s),u}({mask:w,unmask:x,block:S,unblock:O,ignore:T,blockClass:C,blockSelector:A,maskTextClass:D,maskTextSelector:N,ignoreClass:R});if(this._recordingOptions=Mt(Mt({maskAllInputs:p,maskAllText:u,maskInputOptions:Mt(Mt({},k||{}),{},{password:!0}),maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){return n?i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:L,maskAllText:u,privacyOptions:M,key:e,value:t,el:r})},M),{},{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}}),this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,qt),stickySession:i,sessionSampleRate:c,errorSampleRate:l,useCompression:o,workerUrl:a,blockAllMedia:d,maskAllInputs:p,maskAllText:u,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:v,networkDetailDenyUrls:y,networkCaptureBodies:b,networkRequestHeaders:ga(_),networkResponseHeaders:ga(E),beforeAddRecordingEvent:P,_experiments:s},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof l&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${da}`:da),this._isInitialized&&at())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return fa}set _isInitialized(e){fa=e}setupOnce(){at()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const e=function(e){const t=(0,b.Gd)().getClient(),r=t&&t.getOptions(),n=Mt({sessionSampleRate:0,errorSampleRate:0},(0,F.Jr)(e));if(!r)return console.warn("SDK client is not available."),n;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==r.replaysSessionSampleRate&&null==r.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.");"number"==typeof r.replaysSessionSampleRate&&(n.sessionSampleRate=r.replaysSessionSampleRate);"number"==typeof r.replaysOnErrorSampleRate&&(n.errorSampleRate=r.replaysOnErrorSampleRate);return n}(this._initialOptions);this._replay=new ua({options:e,recordingOptions:this._recordingOptions})}}function ga(e){return[...ha,...e.map((e=>e.toLowerCase()))]}ma.__initStatic();const va=["startTimestamp"];function ya(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 ba(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ea(e){return"number"==typeof e&&isFinite(e)}function wa(e,t){let r=t.startTimestamp,n=_a(t,va);return r&&e.startTimestamp>r&&(e.startTimestamp=r),e.startChild(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(r),!0).forEach((function(t){ba(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({startTimestamp:r},n))}function La(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return xa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xa(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function xa(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(e){return e/1e3}function Oa(){return ct&&ct.addEventListener&&ct.performance}let Ta,Ia,Pa=0,Ca={};function Aa(){const e=Oa();if(e&&x.Z1){e.mark&&ct.performance.mark("sentry-tracing-init");const t=Ct("fid",(({metric:e})=>{const t=e.entries.pop();if(!t)return;const r=Sa(x.Z1),n=Sa(t.startTime);Ca.fid={value:e.value,unit:"millisecond"},Ca["mark.fid"]={value:r+n,unit:"second"}}),It,wt),r=function(e){return Ct("cls",e,Tt,Et)}((({metric:e})=>{const t=e.entries.pop();t&&(Ca.cls={value:e.value,unit:""},Ia=t)})),n=xt((({metric:e})=>{const t=e.entries.pop();t&&(Ca.lcp={value:e.value,unit:"millisecond"},Ta=t)}));return()=>{t(),r(),n()}}return()=>{}}function ka(e){const t=Oa();if(!t||!ct.performance.getEntries||!x.Z1)return;const r=Sa(x.Z1),n=t.getEntries();let i,o;if(n.slice(Pa).forEach((t=>{const n=Sa(t.startTime),a=Sa(t.duration);if(!("navigation"===e.op&&r+n<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{Da(e,t,n,r)})),Da(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),Da(e,t,"fetch",r,"cache","domainLookupStart"),Da(e,t,"domainLookup",r,"DNS"),function(e,t,r){wa(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+Sa(t.requestStart),endTimestamp:r+Sa(t.responseEnd)}),wa(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+Sa(t.responseStart),endTimestamp:r+Sa(t.responseEnd)})}(e,t,r)}(e,t,r),i=r+Sa(t.responseStart),o=r+Sa(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,r,n,i){const o=i+r,a=o+n;wa(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})}(e,t,n,a,r);const i=mt(),o=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&o&&(Ca.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(Ca.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const i=t.name.replace(ct.location.origin,"");!function(e,t,r,n,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a={};"transferSize"in t&&(a["http.response_transfer_size"]=t.transferSize);"encodedBodySize"in t&&(a["http.response_content_length"]=t.encodedBodySize);"decodedBodySize"in t&&(a["http.decoded_response_content_length"]=t.decodedBodySize);"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus);const s=o+n;wa(e,{description:r,endTimestamp:s+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:s,data:a})}(e,t,i,n,a,r);break}}})),Pa=Math.max(n.length-1,0),function(e){const t=ct.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setTag("effectiveConnectionType",r.effectiveType),r.type&&e.setTag("connectionType",r.type),Ea(r.rtt)&&(Ca["connection.rtt"]={value:r.rtt,unit:"millisecond"}));Ea(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);Ea(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof i&&(Ca.ttfb={value:1e3*(i-e.startTimestamp),unit:"millisecond"},"number"==typeof o&&o<=i&&(Ca["ttfb.requestTime"]={value:1e3*(i-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!Ca[t]||r>=e.startTimestamp)return;const n=Ca[t].value,i=r+Sa(n),o=Math.abs(1e3*(i-e.startTimestamp));Ca[t].value=o}));const t=Ca["mark.fid"];t&&Ca.fid&&(wa(e,{description:"first input delay",endTimestamp:t.value+Sa(Ca.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete Ca["mark.fid"]),"fcp"in Ca||delete Ca.cls,Object.keys(Ca).forEach((t=>{e.setMeasurement(t,Ca[t].value,Ca[t].unit)})),function(e){Ta&&(Ta.element&&e.setTag("lcp.element",(0,rt.Rt)(Ta.element)),Ta.id&&e.setTag("lcp.id",Ta.id),Ta.url&&e.setTag("lcp.url",Ta.url.trim().slice(0,200)),e.setTag("lcp.size",Ta.size));Ia&&Ia.sources&&Ia.sources.forEach(((t,r)=>e.setTag(`cls.source.${r+1}`,(0,rt.Rt)(t.node))))}(e)}Ta=void 0,Ia=void 0,Ca={}}function Da(e,t,r,n,i,o){const a=o?t[o]:t[`${r}End`],s=t[`${r}Start`];s&&a&&wa(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+Sa(s),endTimestamp:n+Sa(a)})}function Na(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||Ra(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 Ra(e,t){if(e){if("string"==typeof e)return Ma(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)?Ma(e,t):void 0}}function Ma(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 ja(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 Za(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(r),!0).forEach((function(t){Fa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ja(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ba=["localhost",/^\/(?!\/)/],Ga={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Ba,tracePropagationTargets:Ba};function Ua(e){const t=Za({traceFetch:Ga.traceFetch,traceXHR:Ga.traceXHR},e),r=t.traceFetch,n=t.traceXHR,i=t.tracePropagationTargets,o=t.tracingOrigins,a=t.shouldCreateSpanForRequest,s=t.enableHTTPTimings,c="function"==typeof a?a:e=>!0,l=e=>function(e,t){return(0,it.U0)(e,t||Ba)}(e,i||o),u={};r&&(0,_.oq)("fetch",(e=>{})),n&&(0,_.oq)("xhr",(e=>{const t=function(e,t,r,n){const i=e.xhr,o=i&&i[_.xU];return void 0;const a=t(o.url);if(e.endTimestamp&&a){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=n[e];return void(t&&(t.setHttpStatus(o.status_code),t.finish(),delete n[e]))}const s=(0,b.Gd)(),c=s.getScope(),l=c.getSpan(),u=a&&l?l.startChild({data:Za(Za({},o.data),{},{type:"xhr","http.method":o.method,url:o.url}),description:`${o.method} ${o.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;u&&(i.__sentry_xhr_span_id__=u.spanId,n[i.__sentry_xhr_span_id__]=u);if(i.setRequestHeader&&r(o.url))if(u){const e=u&&u.transaction,t=D(e&&e.getDynamicSamplingContext());Ha(i,u.toTraceparent(),t)}else{const e=s.getClient(),t=c.getPropagationContext(),r=t.traceId,n=t.sampled,o=t.dsc;Ha(i,Z(r,void 0,n),D(o||(e?(0,Y._)(r,e,c):void 0)))}return u}(e,c,l,u);s&&t&&za(t)}))}function za(e){const t=e.data.url;if(!t)return;const r=St("resource",(({entries:n})=>{n.forEach((n=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(n)&&n.name.endsWith(t)){const t=function(e){const t=function(e){let t="unknown",r="unknown",n="";var i,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ra(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(i=o.n()).done;){const o=i.value;if("/"===o){var a=Na(e.split("/"),2);t=a[0],r=a[1];break}if(!isNaN(Number(o))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=o}}catch(e){o.e(e)}finally{o.f()}n===e&&(t=n);return{name:t,version:r}}(e.nextHopProtocol),r=t.name,n=t.version,i=[];if(i.push(["network.protocol.version",n],["network.protocol.name",r]),!x.Z1)return i;return[...i,["http.request.redirect_start",Va(e.redirectStart)],["http.request.fetch_start",Va(e.fetchStart)],["http.request.domain_lookup_start",Va(e.domainLookupStart)],["http.request.domain_lookup_end",Va(e.domainLookupEnd)],["http.request.connect_start",Va(e.connectStart)],["http.request.secure_connection_start",Va(e.secureConnectionStart)],["http.request.connection_end",Va(e.connectEnd)],["http.request.request_start",Va(e.requestStart)],["http.request.response_start",Va(e.responseStart)],["http.request.response_end",Va(e.responseEnd)]]}(n);t.forEach((t=>e.setData(...t))),setTimeout(r)}}))}))}function Va(e=0){return((x.Z1||performance.timeOrigin)+e)/1e3}function Ha(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(C,r)}catch(e){}}function Ya(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 Wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(r),!0).forEach((function(t){$a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ka=Wa(Wa({},Q),{},{markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,r=!0){if(!ct||!ct.location)return;let n,i=ct.location.href;t&&(n=e({name:ct.location.pathname,startTimestamp:x.Z1?x.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&(0,_.oq)("history",(({to:t,from:r})=>{void 0===r&&i&&-1!==i.indexOf(t)?i=void 0:r!==t&&(i=void 0,n&&n.finish(),n=e({name:ct.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}},Ga);class qa{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,ue(),this.options=Wa(Wa({},Ka),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Aa(),this.options.enableLongTask&&St("longtask",(({entries:e})=>{var t,r=La(e);try{for(r.s();!(t=r.n()).done;){const e=t.value,r=E();if(!r)return;const n=Sa(x.Z1+e.startTime),i=Sa(e.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}}catch(e){r.e(e)}finally{r.f()}})),this.options._experiments.enableInteractions&&St("event",(({entries:e})=>{var t,r=La(e);try{for(r.s();!(t=r.n()).done;){const e=t.value,r=E();if(!r)return;if("click"===e.name){const t=Sa(x.Z1+e.startTime),n=Sa(e.duration);r.startChild({description:(0,rt.Rt)(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:t,endTimestamp:t+n})}}}catch(e){r.e(e)}finally{r.f()}}))}setupOnce(e,t){this._getCurrentHub=t;const r=t().getClient(),n=r&&r.getOptions(),i=this.options,o=i.routingInstrumentation,a=i.startTransactionOnLocationChange,s=i.startTransactionOnPageLoad,c=i.markBackgroundTransactions,l=i.traceFetch,u=i.traceXHR,p=i.shouldCreateSpanForRequest,d=i.enableHTTPTimings,h=i._experiments,f=n&&n.tracePropagationTargets||this.options.tracePropagationTargets;o((e=>{const r=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(r,e,t),r}),s,a),c&&ct&&ct.document&&ct.document.addEventListener("visibilitychange",(()=>{const e=E();if(ct.document.hidden&&e){const t="cancelled";e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})),h.enableInteractions&&this._registerInteractionListener(),Ua({traceFetch:l,traceXHR:u,tracePropagationTargets:f,shouldCreateSpanForRequest:p,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return;const t=this._getCurrentHub(),r=this.options,n=r.beforeNavigate,i=r.idleTimeout,o=r.finalTimeout,a=r.heartbeatInterval,s="pageload"===e.op,c=j(s?Xa("sentry-trace"):"",s?Xa("baggage"):""),l=c.traceparentData,u=c.dynamicSamplingContext,p=c.propagationContext,d=Wa(Wa(Wa({},e),l),{},{metadata:Wa(Wa({},e.metadata),{},{dynamicSamplingContext:l&&!u?{}:u}),trimEnd:!0}),h="function"==typeof n?n(d):d,f=void 0===h?Wa(Wa({},d),{},{sampled:!1}):h;f.metadata=f.name!==d.name?Wa(Wa({},f.metadata),{},{source:"custom"}):f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,f.sampled;const m=le(t,f,i,o,!0,{location:ct.location},a),g=t.getScope();return s&&l?g.setPropagationContext(p):g.setPropagationContext({traceId:m.traceId,spanId:m.spanId,parentSpanId:m.parentSpanId,sampled:m.sampled}),m.registerBeforeFinishCallback((e=>{this._collectWebVitals(),ka(e)})),m}_registerInteractionListener(){let e;const t=()=>{const t=this.options,r=t.idleTimeout,n=t.finalTimeout,i=t.heartbeatInterval,o=E();if(o&&o.op&&["navigation","pageload"].includes(o.op))return;if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return;if(!this._latestRouteName)return;const a=this._getCurrentHub(),s=ct.location,c={name:this._latestRouteName,op:"ui.action.click",trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=le(a,c,r,n,!0,{location:s},i)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function Xa(e){const t=(0,rt.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var Ja=r(92858);function Qa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function es(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ts(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){es(o,n,i,a,s,"next",e)}function s(e){es(o,n,i,a,s,"throw",e)}a(void 0)}))}}const rs=5e3;function ns(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 is(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(r),!0).forEach((function(t){os(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function os(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function as(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */as=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ss(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function cs(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ss(o,n,i,a,s,"next",e)}function s(e){ss(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ls(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function us(e){return ls(e.getAllKeys())}function ps(e,t,r){return e((e=>us(e).then((n=>{if(!(n.length>=r))return e.put(t,Math.max(...n,0)+1),ls(e.transaction)}))))}function ds(e){return e((e=>us(e).then((t=>{if(0!==t.length)return ls(e.get(t[0])).then((r=>(e.delete(t[0]),ls(e.transaction).then((()=>r)))))}))))}function hs(e){let t;function r(){return null==t&&(t=function(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const n=ls(r);return e=>n.then((r=>e(r.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:(i=cs(as().mark((function t(n){var i;return as().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,p.V$)(n,e.textEncoder);case 3:return i=t.sent,t.next=6,ps(r(),i,e.maxQueueSize||30);case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])}))),function(e){return i.apply(this,arguments)}),pop:(n=cs(as().mark((function t(){var n;return as().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ds(r());case 3:if(!(n=t.sent)){t.next=6;break}return t.abrupt("return",(0,p.f4)(n,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder));case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:return t.abrupt("return",void 0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])}))),function(){return n.apply(this,arguments)})};var n,i}function fs(e){return function(e){return t=>e(is(is({},t),{},{createStore:hs}))}(function(e){return t=>{const r=e(t),n=t.createStore?t.createStore(t):void 0;let i,o=rs;function a(e,r,n){return!(0,p.R)(e,["replay_event","replay_recording","client_report"])&&(!t.shouldStore||t.shouldStore(e,r,n))}function s(e){n&&(i&&clearTimeout(i),i=setTimeout(ts(Qa().mark((function e(){var t;return Qa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=void 0,e.next=3,n.pop();case 3:(t=e.sent)&&l(t).catch((e=>{}));case 5:case"end":return e.stop()}}),e)}))),e),"number"!=typeof i&&i.unref&&i.unref())}function c(){i||(s(o),o=Math.min(2*o,36e5))}function l(e){return u.apply(this,arguments)}function u(){return(u=ts(Qa().mark((function e(t){var i,l;return Qa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.send(t);case 3:if(i=e.sent,l=100,!i){e.next=12;break}if(!i.headers||!i.headers["retry-after"]){e.next=10;break}l=(0,Ja.JY)(i.headers["retry-after"]),e.next=12;break;case 10:if(!((i.statusCode||0)>=400)){e.next=12;break}return e.abrupt("return",i);case 12:return s(l),o=rs,e.abrupt("return",i);case 17:if(e.prev=17,e.t0=e.catch(0),e.t1=n,!e.t1){e.next=24;break}return e.next=23,a(t,e.t0,o);case 23:e.t1=e.sent;case 24:if(!e.t1){e.next=32;break}return e.next=27,n.insert(t);case 27:return c(),e.t0,e.abrupt("return",{});case 32:throw e.t0;case 33:case"end":return e.stop()}}),e,null,[[0,17]])})))).apply(this,arguments)}return t.flushAtStartup&&c(),{send:l,flush:e=>r.flush(e)}}}(e))}var ms=r(55116);function gs(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return vs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vs(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function vs(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}const ys=1e6,bs=String(0),_s="main";let Es="",ws="",Ls="",xs=Fe.m9.navigator&&Fe.m9.navigator.userAgent||"",Ss="";const Os=Fe.m9.navigator&&Fe.m9.navigator.language||Fe.m9.navigator&&Fe.m9.navigator.languages&&Fe.m9.navigator.languages[0]||"";const Ts=Fe.m9.navigator&&Fe.m9.navigator.userAgentData;var Is;function Ps(e){return function(e){return!("thread_metadata"in e)}(e)?function(e){let t,r=0;const n={samples:[],stacks:[],frames:[],thread_metadata:{[bs]:{name:_s}}};if(!e.samples.length)return n;const i=e.samples[0].timestamp,o="number"==typeof performance.timeOrigin?performance.timeOrigin:x.Z1||0,a=o-(x.Z1||o);for(let o=0;o<e.samples.length;o++){const s=e.samples[o];if(void 0===s.stackId){void 0===t&&(t=r,n.stacks[t]=[],r++),n.samples[o]={elapsed_since_start_ns:((s.timestamp+a-i)*ys).toFixed(0),stack_id:t,thread_id:bs};continue}let c=e.stacks[s.stackId];const l=[];for(;c;){l.push(c.frameId);const t=e.frames[c.frameId];void 0===n.frames[c.frameId]&&(n.frames[c.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),c=void 0===c.parentId?void 0:e.stacks[c.parentId]}const u={elapsed_since_start_ns:((s.timestamp+a-i)*ys).toFixed(0),stack_id:r,thread_id:bs};n.stacks[r]=l,n.samples[o]=u,r++}return n}(e):e}function Cs(e){return"pageload"===e.op}"object"==typeof(Is=Ts)&&null!==Is&&"getHighEntropyValues"in Is&&Ts.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(Es=e.platform||"",Ls=e.architecture||"",Ss=e.model||"",ws=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];xs=`${t.brand} ${t.version}`}})).catch((e=>{}));const As=new WeakMap;function ks(e){const t=d.n2._sentryDebugIds;if(!t)return[];const r=(0,b.Gd)();if(!r)return[];const n=r.getClient();if(!n)return[];const i=n.getOptions();if(!i)return[];const o=i.stackParser;if(!o)return[];let a;const s=As.get(o);s?a=s:(a=new Map,As.set(o,a));const c=Object.keys(t).reduce(((e,r)=>{let n;const i=a.get(r);i?n=i:(n=o(r),a.set(r,n));for(let i=n.length-1;i>=0;i--){const o=n[i],a=o&&o.filename;if(o&&a){e[a]=t[r];break}}return e}),{}),l=[];var u,p=gs(e);try{for(p.s();!(u=p.n()).done;){const e=u.value;e&&c[e]&&l.push({type:"sourcemap",code_file:e,debug_id:c[e]})}}catch(e){p.e(e)}finally{p.f()}return l}let Ds=!1;function Ns(e){if(Ds)return!1;if(!e.sampled)return!1;const t=(0,b.Gd)().getClient(),r=t&&t.getOptions();if(!r)return!1;const n=r.profilesSampleRate;if("number"!=typeof(i=n)&&"boolean"!=typeof i||"number"==typeof i&&isNaN(i)||!0!==i&&!1!==i&&(i<0||i>1))return!1;var i;if(!n)return!1;return!!(!0===n||Math.random()<n)}function Rs(e,t,r,n){return function(e){return!(e.samples.length<2||!e.frames.length)}(r)?function(e,t,r,n){if("transaction"!==n.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);const i=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"==typeof t&&t.length,"string"!=typeof t?"":t}(n),o=Ps(r),a=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:Date.now()),s="number"==typeof n.timestamp?1e3*n.timestamp:Date.now();return{event_id:e,timestamp:new Date(a).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||ms.J,runtime:{name:"javascript",version:Fe.m9.navigator.userAgent},os:{name:Es,version:ws,build_number:xs},device:{locale:Os,model:Ss,manufacturer:xs,architecture:Ls,is_emulator:!1},debug_meta:{images:ks(r.resources)},profile:o,transactions:[{name:n.transaction||"",id:n.event_id||(0,S.DM)(),trace_id:i,active_thread_id:bs,relative_start_ns:"0",relative_end_ns:(1e6*(s-a)).toFixed(0)}]}}(e,t,r,n):null}const Ms=new Map;function js(e){const t=Ms.get(e);return t&&Ms.delete(e),t}function Zs(e,t){if(Ms.set(e,t),Ms.size>30){const e=Ms.keys().next().value;Ms.delete(e)}}function Fs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fs=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Bs(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Gs(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Bs(o,n,i,a,s,"next",e)}function s(e){Bs(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Us(e){return e&&Ns(e)?zs(e):e}function zs(e){let t;Cs(e)&&(t=1e3*(0,x.ph)());const r=function(){const e=Fe.m9.Profiler;if("function"!=typeof e)return;const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){Ds=!0}}();if(!r)return e;const n=(0,S.DM)();function i(){return o.apply(this,arguments)}function o(){return(o=Gs(Fs().mark((function t(){return Fs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",null);case 2:if(r){t.next=4;break}return t.abrupt("return",null);case 4:return t.abrupt("return",r.stop().then((e=>(a&&(Fe.m9.clearTimeout(a),a=void 0),e?(Zs(n,e),null):null))).catch((e=>null)));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}let a=Fe.m9.setTimeout((()=>{i()}),3e4);const s=e.finish.bind(e);return e.finish=function(){return e?(i().then((()=>{e.setContext("profile",{profile_id:n,start_timestamp:t}),s()}),(()=>{s()})),e):s()},e}function Vs(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Hs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hs(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Hs(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}class Ys{static __initStatic(){this.id="BrowserProfilingIntegration"}constructor(){this.name=Ys.id}setupOnce(e,t){this.getCurrentHub=t;const r=this.getCurrentHub(),n=r.getClient(),i=r.getScope().getTransaction();i&&Cs(i)&&Ns(i)&&zs(i),n&&"function"==typeof n.on?(n.on("startTransaction",(e=>{Ns(e)&&zs(e)})),n.on("beforeEnvelope",(e=>{if(!Ms.size)return;const t=function(e){const t=[];return(0,p.gv)(e,((e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){const n=e[r];n&&n.contexts&&n.contexts.profile&&n.contexts.profile.profile_id&&t.push(e[r])}})),t}(e);if(!t.length)return;const r=[];var n,i=Vs(t);try{for(i.s();!(n=i.n()).done;){const e=n.value,t=e&&e.contexts,i=t&&t.profile&&t.profile.profile_id,o=t&&t.profile&&t.profile.start_timestamp;if("string"!=typeof i)continue;if(!i)continue;t&&t.profile&&delete t.profile;const a=js(i);if(!a)continue;const s=Rs(i,o,a,e);s&&r.push(s)}}catch(e){i.e(e)}finally{i.f()}!function(e,t){if(!t.length)return e;var r,n=gs(t);try{for(n.s();!(r=n.n()).done;){const t=r.value;e[1].push([{type:"profile"},t])}}catch(e){n.e(e)}finally{n.f()}}(e,r)}))):nt.kg.warn("[Profiling] Client does not support hooks, profiling will be disabled")}}function Ws(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?Ws(Object(r),!0).forEach((function(t){Ks(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ws(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ks(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Ys.__initStatic();let qs={};Fe.m9.Sentry&&Fe.m9.Sentry.Integrations&&(qs=Fe.m9.Sentry.Integrations);const Xs=$s($s($s({},qs),n),i)},44645:(e,t,r)=>{"use strict";r.d(t,{O:()=>m});var n=r(21955),i=r(81239),o=r(55725),a=r(99110),s=r(17341),c=r(2306),l=r(12449),u=r(57602);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){h(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,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f=1024;class m{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=m.id,this.options=d({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}setupOnce(){if(this.options.console&&(0,i.oq)("console",v),this.options.dom&&(0,i.oq)("dom",function(e){function t(t){let r,i="object"==typeof e?e.serializeAttribute:void 0,o="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;o&&o>f&&(o=f),"string"==typeof i&&(i=[i]);try{const e=t.event;r=function(e){return!!e&&!!e.target}(e)?(0,a.Rt)(e.target,{keyAttrs:i,maxStringLength:o}):(0,a.Rt)(e,{keyAttrs:i,maxStringLength:o})}catch(e){r="<unknown>"}0!==r.length&&(0,n.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:r},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,i.oq)("xhr",y),this.options.fetch&&(0,i.oq)("fetch",b),this.options.history&&(0,i.oq)("history",_),this.options.sentry){const e=(0,n.Gd)().getClient();e&&e.on&&e.on("beforeSendEvent",g)}}}function g(e){(0,n.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,o.jH)(e)},{event:e})}function v(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:(0,s.VT)(e.level),message:(0,c.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${(0,c.nK)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}(0,n.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function y(e){const t=e.startTimestamp,r=e.endTimestamp,o=e.xhr[i.xU];if(!t||!r||!o)return;const a=o.method,s=o.url,c=o.status_code,l=o.body,u={method:a,url:s,status_code:c},p={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r};(0,n.Gd)().addBreadcrumb({category:"xhr",data:u,type:"http"},p)}function b(e){const t=e.startTimestamp,r=e.endTimestamp;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const i=e.fetchData,o={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r};(0,n.Gd)().addBreadcrumb({category:"fetch",data:i,level:"error",type:"http"},o)}else{const i=d(d({},e.fetchData),{},{status_code:e.response&&e.response.status}),o={input:e.args,response:e.response,startTimestamp:t,endTimestamp:r};(0,n.Gd)().addBreadcrumb({category:"fetch",data:i,type:"http"},o)}}function _(e){let t=e.from,r=e.to;const i=(0,l.en)(u.m9.location.href);let o=(0,l.en)(t);const a=(0,l.en)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(t=o.relative),(0,n.Gd)().addBreadcrumb({category:"navigation",data:{from:t,to:r}})}m.__initStatic()},35428:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});class n{static __initStatic(){this.id="Dedupe"}constructor(){this.name=n.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{if(function(e,t){if(!t)return!1;if(function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!o(e,t))return!1;if(!i(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const r=a(t),n=a(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!o(e,t))return!1;if(!i(e,t))return!1;return!0}(e,t))return!0;return!1}(e,this._previousEvent))return null}catch(e){}return this._previousEvent=e}}function i(e,t){let r=s(e),n=s(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function o(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(e){return!1}}function a(e){return e.exception&&e.exception.values&&e.exception.values[0]}function s(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}n.__initStatic()},92743:(e,t,r)=>{"use strict";r.d(t,{d:()=>f});var n=r(21955),i=r(81239),o=r(20512),a=r(99110),s=r(55725),c=r(7521),l=r(57602);function u(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(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 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,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,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class f{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=f.id,this._options=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){h(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}({onerror:!0,onunhandledrejection:!0},e),this._installFunc={onerror:m,onunhandledrejection:g}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const t in e){const r=this._installFunc[t];r&&e[t]&&(t,r(),this._installFunc[t]=void 0)}}}function m(){(0,i.oq)("error",(e=>{const t=u(b(),3),r=t[0],n=t[1],i=t[2];if(!r.getIntegration(f))return;const a=e.msg,s=e.url,p=e.line,d=e.column,h=e.error;if((0,l.Wz)()||h&&h.__sentry_own_request__)return;const m=void 0===h&&(0,o.HD)(a)?function(e,t,r,n){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=(0,o.VW)(e)?e.message:e,s="Error";const c=a.match(i);c&&(s=c[1],a=c[2]);return v({exception:{values:[{type:s,value:a}]}},t,r,n)}(a,s,p,d):v((0,c.ME)(n,h||a,void 0,i,!1),s,p,d);m.level="error",y(r,h,m,"onerror")}))}function g(){(0,i.oq)("unhandledrejection",(e=>{const t=u(b(),3),r=t[0],n=t[1],i=t[2];if(!r.getIntegration(f))return;let a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(e){}if((0,l.Wz)()||a&&a.__sentry_own_request__)return!0;const s=(0,o.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:(0,c.ME)(n,a,void 0,i,!0);s.level="error",y(r,a,s,"onunhandledrejection")}))}function v(e,t,r,n){const i=e.exception=e.exception||{},s=i.values=i.values||[],c=s[0]=s[0]||{},l=c.stacktrace=c.stacktrace||{},u=l.frames=l.frames||[],p=isNaN(parseInt(n,10))?void 0:n,d=isNaN(parseInt(r,10))?void 0:r,h=(0,o.HD)(t)&&t.length>0?t:(0,a.l4)();return 0===u.length&&u.push({colno:p,filename:h,function:"?",in_app:!0,lineno:d}),e}function y(e,t,r,n){(0,s.EG)(r,{handled:!1,type:n}),e.captureEvent(r,{originalException:t})}function b(){const e=(0,n.Gd)(),t=e.getClient(),r=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,r.stackParser,r.attachStacktrace]}f.__initStatic()},32819:(e,t,r)=>{"use strict";r.d(t,{q:()=>s});var n=r(57602);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 o(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){a(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 a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s{static __initStatic(){this.id="HttpContext"}constructor(){this.name=s.id}setupOnce(){}preprocessEvent(e){if(!n.m9.navigator&&!n.m9.location&&!n.m9.document)return;const t=e.request&&e.request.url||n.m9.location&&n.m9.location.href,r=(n.m9.document||{}).referrer,i=(n.m9.navigator||{}).userAgent,a=o(o(o({},e.request&&e.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),s=o(o(o({},e.request),t&&{url:t}),{},{headers:a});e.request=s}}s.__initStatic()},11431:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(14893),i=r(7521);class o{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=o.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,r){const o=r.getOptions();(0,n.Z)(i.GJ,o.stackParser,o.maxValueLength,this._key,this._limit,e,t)}}o.__initStatic()},74948:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var n=r(7938),i=r(28231),o=r(57602);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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class l{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=l.id,this._options=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}({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}setupOnce(){this._options.setTimeout&&(0,n.hl)(o.m9,"setTimeout",u),this._options.setInterval&&(0,n.hl)(o.m9,"setInterval",u),this._options.requestAnimationFrame&&(0,n.hl)(o.m9,"requestAnimationFrame",p),this._options.XMLHttpRequest&&"XMLHttpRequest"in o.m9&&(0,n.hl)(XMLHttpRequest.prototype,"send",d);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:c).forEach(h)}}}function u(e){return function(...t){const r=t[0];return t[0]=(0,o.re)(r,{mechanism:{data:{function:(0,i.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function p(e){return function(t){return e.apply(this,[(0,o.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,i.$P)(e)},handled:!1,type:"instrument"}})])}}function d(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&(0,n.hl)(r,e,(function(t){const r={mechanism:{data:{function:e,handler:(0,i.$P)(t)},handled:!1,type:"instrument"}},a=(0,n.HK)(t);return a&&(r.mechanism.data.handler=(0,i.$P)(a)),(0,o.re)(t,r)}))})),e.apply(this,t)}}function h(e){const t=o.m9,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,n.hl)(r,"addEventListener",(function(t){return function(r,n,a){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,o.re)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,i.$P)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,(0,o.re)(n,{mechanism:{data:{function:"addEventListener",handler:(0,i.$P)(n),target:e},handled:!1,type:"instrument"}}),a])}})),(0,n.hl)(r,"removeEventListener",(function(e){return function(t,r,n){const i=r;try{const r=i&&i.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(e){}return e.call(this,t,i,n)}})))}l.__initStatic()},13824:(e,t,r)=>{"use strict";r.d(t,{Jd:()=>k,SS:()=>S,Eg:()=>I,S1:()=>O,lA:()=>P,jp:()=>T,re:()=>C});var n=r(21955);var i=r(26487),o=r(18476),a=r(93105),s=r(23186),c=r(28231),l=r(90510),u=r(81239),p=r(44054),d=r(57602),h=r(92743),f=r(74948),m=r(44645),g=r(11431),v=r(32819),y=r(35428),b=r(87003),_=r(6413),E=r(57693);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 L(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){x(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 x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=[new a.QD,new s.c,new f.p,new m.O,new h.d,new g.i,new y.I,new v.q];function O(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=S),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),d.m9.SENTRY_RELEASE&&d.m9.SENTRY_RELEASE.id&&(e.release=d.m9.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t=L(L({},e),{},{stackParser:(0,c.Sq)(e.stackParser||b.Dt),integrations:(0,i.m8)(e),transport:e.transport||((0,l.Ak)()?_.f:E.K)});!function(e,t){!0===t.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");const r=(0,n.Gd)();r.getScope().update(t.initialScope);const i=new e(t);r.bindClient(i)}(p.R,t),e.autoSessionTracking&&function(){if(void 0===d.m9.document)return;const e=(0,n.Gd)();if(!e.captureSession)return;A(e),(0,u.oq)("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&A((0,n.Gd)())}))}()}function T(e={},t=(0,n.Gd)()){if(!d.m9.document)return;const r=t.getStackTop(),i=r.client,a=r.scope,s=e.dsn||i&&i.getDsn();if(!s)return;a&&(e.user=L(L({},a.getUser()),e.user)),e.eventId||(e.eventId=t.lastEventId());const c=d.m9.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=(0,o.h)(s,e),e.onLoad&&(c.onload=e.onLoad);const l=d.m9.document.head||d.m9.document.body;l&&l.appendChild(c)}function I(){}function P(e){e()}function C(e){return(0,d.re)(e)()}function A(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function k(e){const t=(0,n.Gd)().getClient();t&&t.captureUserFeedback(e)}},87003:(e,t,r)=>{"use strict";r.d(t,{$3:()=>u,$Q:()=>h,Dt:()=>E,HH:()=>b,NP:()=>v,R2:()=>m,d8:()=>_});var n=r(28231);function i(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(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}const a="?";function s(e,t,r,n){const i={filename:e,function:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}const c=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=[30,e=>{const t=c.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=l.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const e=i(w(t[1]||a,t[2]),2),r=e[0];return s(e[1],r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],p=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h=[50,e=>{const t=p.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=d.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||a;var r=i(w(n,e),2);return n=r[0],e=r[1],s(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,m=[40,e=>{const t=f.exec(e);return t?s(t[2],t[1]||a,+t[3],t[4]?+t[4]:void 0):void 0}],g=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,v=[10,e=>{const t=g.exec(e);return t?s(t[2],t[3]||a,+t[1]):void 0}],y=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,b=[20,e=>{const t=y.exec(e);return t?s(t[5],t[3]||t[4]||a,+t[1],+t[2]):void 0}],_=[u,h,m],E=(0,n.pE)(..._),w=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:a,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},6413:(e,t,r)=>{"use strict";r.d(t,{f:()=>u});var n=r(76616),i=r(23155),o=r(90510),a=r(57602);let s;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 l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t=function(){if(s)return s;if((0,o.Du)(a.m9.fetch))return s=a.m9.fetch.bind(a.m9);const e=a.m9.document;let t=a.m9.fetch;if(e&&"function"==typeof e.createElement)try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);const n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(e){}return s=t.bind(a.m9)}()){let r=0,u=0;return(0,n.q)(e,(function(n){const o=n.body.length;r+=o,u++;const a=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){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}({body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&u<15},e.fetchOptions);try{return t(e.url,a).then((e=>(r-=o,u--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return s=void 0,r-=o,u--,(0,i.$2)(e)}}))}},57693:(e,t,r)=>{"use strict";r.d(t,{K:()=>o});var n=r(76616),i=r(23155);function o(e){return(0,n.q)(e,(function(t){return new i.cW(((r,n)=>{const i=new XMLHttpRequest;i.onerror=n,i.onreadystatechange=()=>{4===i.readyState&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}},10710:(e,t,r)=>{"use strict";r.d(t,{r:()=>c});var n=r(70678),i=r(94143);function o(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?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,{metadata:t,tunnel:r,dsn:o}){const s=a(a({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!r&&!!o&&{dsn:(0,n.RA)(o)}),c=function(e){return[{type:"user_report"},e]}(e);return(0,i.Jd)(s,[c])}},18476:(e,t,r)=>{"use strict";r.d(t,{U:()=>l,h:()=>u});var n=r(7938),i=r(70678);function o(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,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function c(e,t){return(0,n._j)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({sentry_key:e.publicKey,sentry_version:"7"},t&&{sentry_client:`${t.name}/${t.version}`}))}function l(e,t={}){const r="string"==typeof t?t:t.tunnel,n="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${function(e){return`${s(e)}${e.projectId}/envelope/`}(e)}?${c(e,n)}`}function u(e,t){const r=(0,i.vK)(e);if(!r)return"";const n=`${s(r)}embed/error-page/`;let o=`dsn=${(0,i.RA)(r)}`;for(const e in t)if("dsn"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${n}?${o}`}},55116:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});const n="production"},49475:(e,t,r)=>{"use strict";r.d(t,{RP:()=>u,cc:()=>l,fH:()=>c});var n=r(19596),i=r(23155),o=r(20512);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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(){return(0,n.YO)("globalEventProcessors",(()=>[]))}function l(e){c().push(e)}function u(e,t,r,n=0){return new i.cW(((i,c)=>{const l=e[n];if(null===t||"function"!=typeof l)i(t);else{const p=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}({},t),r);(0,o.J8)(p)?p.then((t=>u(e,t,r,n+1).then(i))).then(null,c):u(e,p,r,n+1).then(i).then(null,c)}}))}},10470:(e,t,r)=>{"use strict";r.d(t,{$e:()=>_,Tb:()=>l,YA:()=>y,Yr:()=>E,av:()=>b,e:()=>d,eN:()=>p,eW:()=>O,mG:()=>v,n_:()=>h,rJ:()=>m,sU:()=>g,uT:()=>u,v:()=>f,xv:()=>x,yl:()=>w});var n=r(21955);function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",s=n.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,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(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 h(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,o)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=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 i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,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,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){return(0,n.Gd)().captureException(e,{captureContext:t})}function u(e,t){const r="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,n.Gd)().captureMessage(e,r,i)}function p(e,t){return(0,n.Gd)().captureEvent(e,t)}function d(e){(0,n.Gd)().configureScope(e)}function h(e){(0,n.Gd)().addBreadcrumb(e)}function f(e,t){(0,n.Gd)().setContext(e,t)}function m(e){(0,n.Gd)().setExtras(e)}function g(e,t){(0,n.Gd)().setExtra(e,t)}function v(e){(0,n.Gd)().setTags(e)}function y(e,t){(0,n.Gd)().setTag(e,t)}function b(e){(0,n.Gd)().setUser(e)}function _(e){(0,n.Gd)().withScope(e)}function E(e,t){return(0,n.Gd)().startTransaction(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}({},e),t)}function w(e){return L.apply(this,arguments)}function L(){return(L=a(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=(0,n.Gd)().getClient())){e.next=3;break}return e.abrupt("return",r.flush(t));case 3:return e.abrupt("return",Promise.resolve(!1));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return S.apply(this,arguments)}function S(){return(S=a(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=(0,n.Gd)().getClient())){e.next=3;break}return e.abrupt("return",r.close(t));case 3:return e.abrupt("return",Promise.resolve(!1));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(){return(0,n.Gd)().lastEventId()}},21955:(e,t,r)=>{"use strict";r.d(t,{Gd:()=>g,Xb:()=>h,cu:()=>f,pj:()=>m,vi:()=>b});var n=r(55725),i=r(49230),o=r(3790),a=r(19596),s=r(55116),c=r(6316),l=r(31209);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 p(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){d(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 d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class h{constructor(e,t=new c.s,r=4){this._version=r,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const r=this._lastEventId=t&&t.event_id?t.event_id:(0,n.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((n,o)=>{n.captureException(e,p(p({originalException:e,syntheticException:i},t),{},{event_id:r}),o)})),r}captureMessage(e,t,r){const i=this._lastEventId=r&&r.event_id?r.event_id:(0,n.DM)(),o=new Error(e);return this._withClient(((n,a)=>{n.captureMessage(e,t,p(p({originalException:e,syntheticException:o},r),{},{event_id:i}),a)})),i}captureEvent(e,t){const r=t&&t.event_id?t.event_id:(0,n.DM)();return e.type||(this._lastEventId=r),this._withClient(((n,i)=>{n.captureEvent(e,p(p({},t),{},{event_id:r}),i)})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const r=this.getStackTop(),n=r.scope,a=r.client;if(!a)return;const s=a.getOptions&&a.getOptions()||{},c=s.beforeBreadcrumb,l=void 0===c?null:c,u=s.maxBreadcrumbs,d=void 0===u?100:u;if(d<=0)return;const h=p({timestamp:(0,i.yW)()},e),f=l?(0,o.Cf)((()=>l(h,t))):h;null!==f&&(a.emit&&a.emit("beforeAddBreadcrumb",f,t),n.addBreadcrumb(f,d))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const t=this.getStackTop(),r=t.scope;t.client&&e(r)}run(e){const t=m(this);try{e(this)}finally{m(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(e){return null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,l.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const t=this.getStackTop(),r=t.scope,n=t.client,i=n&&n.getOptions()||{},o=i.release,c=i.environment,u=void 0===c?s.J:c,d=(a.n2.navigator||{}).userAgent,h=(0,l.Hv)(p(p({release:o,environment:u,user:r.getUser()},d&&{userAgent:d}),e)),f=r.getSession&&r.getSession();return f&&"ok"===f.status&&(0,l.CT)(f,{status:"exited"}),this.endSession(),r.setSession(h),h}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const e=this.getStackTop(),t=e.scope,r=e.client,n=t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_withClient(e){const t=this.getStackTop(),r=t.scope,n=t.client;n&&e(n,r)}_callExtensionMethod(e,...t){const r=f().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t)}}function f(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function m(e){const t=f(),r=b(t);return _(t,e),r}function g(){const e=f();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return v(e)}function v(e=f()){return y(e)&&!b(e).isOlderThan(4)||_(e,new h),b(e)}function y(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function b(e){return(0,a.YO)("hub",(()=>new h),e)}function _(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},26487:(e,t,r)=>{"use strict";r.d(t,{M5:()=>d,m7:()=>p,m8:()=>l,q4:()=>u});var n=r(55725),i=r(49475),o=r(21955);function a(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(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 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}const c=[];function l(e){const t=e.defaultIntegrations||[],r=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(r)?[...t,...r]:"function"==typeof r?(0,n.lE)(r(t)):t;const o=function(e){const t={};return e.forEach((e=>{const r=e.name,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.keys(t).map((e=>t[e]))}(i),s=function(e,t){for(let r=0;r<e.length;r++)if(!0===t(e[r]))return r;return-1}(o,(e=>"Debug"===e.name));if(-1!==s){const e=a(o.splice(s,1),1)[0];o.push(e)}return o}function u(e,t){const r={};return t.forEach((t=>{t&&p(e,t,r)})),r}function p(e,t,r){if(r[t.name]=t,-1===c.indexOf(t.name)&&(t.setupOnce(i.cc,o.Gd),c.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>r(t,n,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign(((t,n)=>r(t,n,e)),{id:t.name});e.addEventProcessor(n)}}function d(e){const t=(0,o.Gd)().getClient();t&&t.addIntegration&&t.addIntegration(e)}},23186:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(7938);let i;class o{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=o.id}setupOnce(){i=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,n.HK)(this)||this;return i.apply(t,e)}}catch(e){}}}o.__initStatic()},93105:(e,t,r)=>{"use strict";r.d(t,{QD:()=>a});var n=r(2306);const i=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],o=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];class a{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=a.id,this._options=e}setupOnce(e,t){}processEvent(e,t,r){const a=r.getOptions(),c=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:i],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:o],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,a);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1]}catch(e){}r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`));0;return t}(e).some((e=>(0,n.U0)(e,t)))}(e,t.ignoreErrors))return!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&(0,n.U0)(r,t)}(e,t.ignoreTransactions))return!0;if(function(e,t){if(!t||!t.length)return!1;const r=s(e);return!!r&&(0,n.U0)(r,t)}(e,t.denyUrls))return!0;if(!function(e,t){if(!t||!t.length)return!0;const r=s(e);return!r||(0,n.U0)(r,t)}(e,t.allowUrls))return!0;return!1}(e,c)?null:e}}function s(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(e){return null}}a.__initStatic()},6316:(e,t,r)=>{"use strict";r.d(t,{s:()=>p});var n=r(20512),i=r(49230),o=r(55725),a=r(49475),s=r(31209);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 l(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}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=d()}static clone(e){const t=new p;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=l({},e._tags),t._extra=l({},e._extra),t._contexts=l({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=l({},e._sdkProcessingMetadata),t._propagationContext=l({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,s.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=l(l({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=l(l({},this._tags),{},{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=l(l({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=l(l({},this._extra),{},{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof p?t:this}return e instanceof p?(this._tags=l(l({},this._tags),e._tags),this._extra=l(l({},this._extra),e._extra),this._contexts=l(l({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):(0,n.PO)(e)&&(this._tags=l(l({},this._tags),e.tags),this._extra=l(l({},this._extra),e.extra),this._contexts=l(l({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=d(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n=l({timestamp:(0,i.yW)()},e),o=this._breadcrumbs;return o.push(n),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},r){if(this._extra&&Object.keys(this._extra).length&&(e.extra=l(l({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=l(l({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=l(l({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=l(l({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=l({trace:this._span.getTraceContext()},e.contexts);const t=this._span.transaction;if(t){e.sdkProcessingMetadata=l({dynamicSamplingContext:t.getDynamicSamplingContext()},e.sdkProcessingMetadata);const r=t.name;r&&(e.tags=l({transaction:r},e.tags))}}this._applyFingerprint(e);const n=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...n];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata=l(l(l({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{},{propagationContext:this._propagationContext}),(0,a.RP)([...r||[],...(0,a.fH)(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=l(l({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,o.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return{traceId:(0,o.DM)(),spanId:(0,o.DM)().substring(16)}}},31209:(e,t,r)=>{"use strict";r.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>c});var n=r(49230),i=r(55725),o=r(7938);function a(e){const t=(0,n.ph)(),r={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&s(r,e),r}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},52059:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(7938),i=r(55116);function o(e,t,r){const o=t.getOptions(),a=(t.getDsn()||{}).publicKey,s=(r&&r.getUser()||{}).segment,c=(0,n.Jr)({environment:o.environment||i.J,release:o.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",c),c}},76616:(e,t,r)=>{"use strict";r.d(t,{q:()=>c});var n=r(32962),i=r(23155);function o(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return(0,i.$2)(new n.b("Not adding Promise because buffer limit was reached."));const a=o();return-1===t.indexOf(a)&&t.push(a),a.then((()=>r(a))).then(null,(()=>r(a).then(null,(()=>{})))),a},drain:function(e){return new i.cW(((r,n)=>{let o=t.length;if(!o)return r(!0);const a=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{(0,i.WD)(e).then((()=>{--o||(clearTimeout(a),r(!0))}),n)}))}))}}}var a=r(94143),s=r(92858);function c(e,t,r=o(e.bufferSize||30)){let c={};function u(o){const u=[];if((0,a.gv)(o,((t,r)=>{const n=(0,a.mL)(r);if((0,s.Q)(c,n)){const i=l(t,r);e.recordDroppedEvent("ratelimit_backoff",n,i)}else u.push(t)})),0===u.length)return(0,i.WD)();const p=(0,a.Jd)(o[0],u),d=t=>{(0,a.gv)(p,((r,n)=>{const i=l(r,n);e.recordDroppedEvent(t,(0,a.mL)(n),i)}))};return r.add((()=>t({body:(0,a.V$)(p,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode),c=(0,s.WG)(c,e),e)),(e=>{throw d("network_error"),e})))).then((e=>e),(e=>{if(e instanceof n.b)return d("queue_overflow"),(0,i.WD)();throw e}))}return u.__sentry__baseTransport__=!0,{send:u,flush:e=>r.drain(e)}}function l(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}},40263:(e,t,r)=>{"use strict";function n(e,t){const r=t.getClient(),n=r&&r.getDsn(),o=r&&r.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return i(e)===i(t)}(e,o)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}r.d(t,{W:()=>n})},58950:(e,t,r)=>{"use strict";r.d(t,{R:()=>m});var n=r(55725),i=r(49230),o=r(23155),a=r(2306),s=r(19596),c=r(93937),l=r(55116),u=r(49475),p=r(6316);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){f(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 f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t,r,d,f){const m=e.normalizeDepth,v=void 0===m?3:m,y=e.normalizeMaxBreadth,b=void 0===y?1e3:y,_=h(h({},t),{},{event_id:t.event_id||r.event_id||(0,n.DM)(),timestamp:t.timestamp||(0,i.yW)()}),E=r.integrations||e.integrations.map((e=>e.name));!function(e,t){const r=t.environment,n=t.release,i=t.dist,o=t.maxValueLength,s=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?r:l.J);void 0===e.release&&void 0!==n&&(e.release=n);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,a.$G)(e.message,s));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=(0,a.$G)(c.value,s));const u=e.request;u&&u.url&&(u.url=(0,a.$G)(u.url,s))}(_,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(_,E),void 0===t.type&&function(e,t){const r=s.n2._sentryDebugIds;if(!r)return;let n;const i=g.get(t);i?n=i:(n=new Map,g.set(t,n));const o=Object.keys(r).reduce(((e,i)=>{let o;const a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(let t=o.length-1;t>=0;t--){const n=o[t];if(n.filename){e[n.filename]=r[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(e){}}(_,e.stackParser);let w=d;r.captureContext&&(w=p.s.clone(w).update(r.captureContext));let L=(0,o.WD)(_);const x=f&&f.getEventProcessors?f.getEventProcessors():[];if(w){if(w.getAttachments){const e=[...r.attachments||[],...w.getAttachments()];e.length&&(r.attachments=e)}L=w.applyToEvent(_,r,x)}else L=(0,u.RP)([...x,...(0,u.fH)()],_,r);return L.then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.keys(t).forEach((e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof v&&v>0?function(e,t,r){if(!e)return null;const n=h(h(h(h(h({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>h(h({},e),e.data&&{data:(0,c.Fv)(e.data,t,r)})))}),e.user&&{user:(0,c.Fv)(e.user,t,r)}),e.contexts&&{contexts:(0,c.Fv)(e.contexts,t,r)}),e.extra&&{extra:(0,c.Fv)(e.extra,t,r)});e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,c.Fv)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>(e.data&&(e.data=(0,c.Fv)(e.data,t,r)),e))));return n}(e,v,b):e)))}const g=new WeakMap},29412:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});const n="7.77.0"},38682:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CaptureConsole:()=>l,ContextLines:()=>se,Debug:()=>d,Dedupe:()=>h,ExtraErrorData:()=>x,HttpClient:()=>ie,Offline:()=>A,ReportingObserver:()=>M,RewriteFrames:()=>H,SessionTiming:()=>K,Transaction:()=>q});var n=r(3790),i=r(19596),o=r(81239),a=r(17341),s=r(55725),c=r(2306);class l{static __initStatic(){this.id="CaptureConsole"}constructor(e={}){this.name=l.id,this._levels=e.levels||n.RU}setupOnce(e,t){if(!("console"in i.n2))return;const r=this._levels;(0,o.oq)("console",(({args:e,level:n})=>{if(!r.includes(n))return;const i=t();i.getIntegration(l)&&function(e,t,r){e.withScope((n=>{n.setLevel((0,a.VT)(r)),n.setExtra("arguments",t),n.addEventProcessor((e=>(e.logger="console",(0,s.EG)(e,{handled:!1,type:"console"}),e)));let i=(0,c.nK)(t," ");const o=t.find((e=>e instanceof Error));"assert"===r?!1===t[0]&&(i=`Assertion failed: ${(0,c.nK)(t.slice(1)," ")||"console.assert"}`,n.setExtra("arguments",t.slice(1)),e.captureMessage(i)):"error"===r&&o?e.captureException(o):e.captureMessage(i)}))}(i,e,n)}))}}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 p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}l.__initStatic();class d{static __initStatic(){this.id="Debug"}constructor(e){this.name=d.id,this._options=function(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){p(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}({debugger:!1,stringify:!1},e)}setupOnce(e,t){const r=t().getClient();r&&r.on&&r.on("beforeSendEvent",((e,t)=>{this._options.debugger,(0,n.Cf)((()=>{this._options.stringify?(console.log(JSON.stringify(e,null,2)),t&&Object.keys(t).length&&console.log(JSON.stringify(t,null,2))):(console.log(e),t&&Object.keys(t).length&&console.log(t))}))}))}}d.__initStatic();class h{static __initStatic(){this.id="Dedupe"}constructor(){this.name=h.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{if(function(e,t){if(!t)return!1;if(function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!m(e,t))return!1;if(!f(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const r=g(t),n=g(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!m(e,t))return!1;if(!f(e,t))return!1;return!0}(e,t))return!0;return!1}(e,this._previousEvent))return null}catch(t){return this._previousEvent=e}return this._previousEvent=e}}function f(e,t){let r=v(e),n=v(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function m(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(e){return!1}}function g(e){return e.exception&&e.exception.values&&e.exception.values[0]}function v(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}h.__initStatic();var y=r(20512),b=r(93937),_=r(7938);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 w(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){L(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 L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class x{static __initStatic(){this.id="ExtraErrorData"}constructor(e){this.name=x.id,this._options=w({depth:3},e)}setupOnce(e,t){}processEvent(e,t){return this.enhanceEventWithErrorData(e,t)}enhanceEventWithErrorData(e,t={}){return function(e,t={},r){if(!t.originalException||!(0,y.VZ)(t.originalException))return e;const n=t.originalException.name||t.originalException.constructor.name,i=function(e){try{const o=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};for(var t=0,r=Object.keys(e);t<r.length;t++){const n=r[t];if(-1!==o.indexOf(n))continue;const i=e[n];a[n]=(0,y.VZ)(i)?i.toString():i}if("function"==typeof e.toJSON){const t=e.toJSON();for(var n=0,i=Object.keys(t);n<i.length;n++){const e=i[n],r=t[e];a[e]=(0,y.VZ)(r)?r.toString():r}}return a}catch(e){}return null}(t.originalException);if(i){const t=w({},e.contexts),o=(0,b.Fv)(i,r);return(0,y.PO)(o)&&((0,_.xp)(o,"__sentry_skip_normalization__",!0),t[n]=o),w(w({},e),{},{contexts:t})}return e}(e,t,this._options.depth)}}x.__initStatic();var S=r(11466),O=r.n(S);function T(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */T=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function I(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function P(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){I(o,n,i,a,s,"next",e)}function s(e){I(o,n,i,a,s,"throw",e)}a(void 0)}))}}const C=i.n2;class A{static __initStatic(){this.id="Offline"}constructor(e={}){this.name=A.id,this.maxStoredEvents=e.maxStoredEvents||30,this.offlineEventStore=O().createInstance({name:"sentry/offlineEventStore"})}setupOnce(e,t){this.hub=t(),"addEventListener"in C&&C.addEventListener("online",(()=>{this._sendEvents().catch((()=>{}))}));const r=e=>this.hub&&this.hub.getIntegration(A)&&"navigator"in C&&"onLine"in C.navigator&&!C.navigator.onLine?(this._cacheEvent(e).then((e=>this._enforceMaxEvents())).catch((e=>{})),null):e;r.id=this.name,e(r),"navigator"in C&&"onLine"in C.navigator&&C.navigator.onLine&&this._sendEvents().catch((()=>{}))}_cacheEvent(e){var t=this;return P(T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.offlineEventStore.setItem((0,s.DM)(),(0,b.Fv)(e)));case 1:case"end":return r.stop()}}),r)})))()}_enforceMaxEvents(){var e=this;return P(T().mark((function t(){var r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.abrupt("return",e.offlineEventStore.iterate(((e,t,n)=>{r.push({cacheKey:t,event:e})})).then((()=>e._purgeEvents(r.sort(((e,t)=>(t.event.timestamp||0)-(e.event.timestamp||0))).slice(e.maxStoredEvents<r.length?e.maxStoredEvents:r.length).map((e=>e.cacheKey))))).catch((e=>{})));case 2:case"end":return t.stop()}}),t)})))()}_purgeEvent(e){var t=this;return P(T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.offlineEventStore.removeItem(e));case 1:case"end":return r.stop()}}),r)})))()}_purgeEvents(e){var t=this;return P(T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(e.map((e=>t._purgeEvent(e)))).then());case 1:case"end":return r.stop()}}),r)})))()}_sendEvents(){var e=this;return P(T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.offlineEventStore.iterate(((t,r,n)=>{e.hub&&(e.hub.captureEvent(t),e._purgeEvent(r).catch((e=>{})))})));case 1:case"end":return t.stop()}}),t)})))()}}A.__initStatic();var k=r(90510);function D(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function N(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}const R=i.n2;class M{static __initStatic(){this.id="ReportingObserver"}constructor(e={}){this.name=M.id,this._types=e.types||["crash","deprecation","intervention"]}setupOnce(e,t){if(!(0,k.zb)())return;this._getCurrentHub=t;new R.ReportingObserver(this.handler.bind(this),{buffered:!0,types:this._types}).observe()}handler(e){const t=this._getCurrentHub&&this._getCurrentHub();if(t&&t.getIntegration(M)){var r,n=D(e);try{for(n.s();!(r=n.n()).done;){const e=r.value;t.withScope((r=>{r.setExtra("url",e.url);const n=`ReportingObserver [${e.type}]`;let i="No details available";if(e.body){const t={};for(const r in e.body)t[r]=e.body[r];if(r.setExtra("body",t),"crash"===e.type){const t=e.body;i=[t.crashId||"",t.reason||""].join(" ").trim()||i}else{i=e.body.message||i}}t.captureMessage(`${n}: ${i}`)}))}}catch(e){n.e(e)}finally{n.f()}}}}function j(e,t){let r=0;for(let t=e.length-1;t>=0;t--){const n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}M.__initStatic();const Z=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function F(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=Z.exec(t);return r?r.slice(1):[]}function B(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=j(t.split("/").filter((e=>!!e)),!r).join("/"),(r?"/":"")+t||"."}function G(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}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 z(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){V(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 V(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class H{static __initStatic(){this.id="RewriteFrames"}constructor(e={}){H.prototype.__init.call(this),this.name=H.id,e.root&&(this._root=e.root),this._prefix=e.prefix||"app:///",e.iteratee&&(this._iteratee=e.iteratee)}setupOnce(e,t){}processEvent(e){return this.process(e)}process(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=this._processExceptionsEvent(t)),t}__init(){this._iteratee=e=>{if(!e.filename)return e;const t=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),r=/^\//.test(e.filename);if(t||r){const r=t?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,n=this._root?function(e,t){e=B(e).slice(1),t=B(t).slice(1);const r=G(e.split("/")),n=G(t.split("/")),i=Math.min(r.length,n.length);let o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let a=[];for(let e=o;e<r.length;e++)a.push("..");return a=a.concat(n.slice(o)),a.join("/")}(this._root,r):function(e,t){let r=F(e)[2];return t&&r.slice(-1*t.length)===t&&(r=r.slice(0,r.length-t.length)),r}(r);e.filename=`${this._prefix}${n}`}return e}}_processExceptionsEvent(e){try{return z(z({},e),{},{exception:z(z({},e.exception),{},{values:e.exception.values.map((e=>z(z({},e),e.stacktrace&&{stacktrace:this._processStacktrace(e.stacktrace)})))})})}catch(t){return e}}_processStacktrace(e){return z(z({},e),{},{frames:e&&e.frames&&e.frames.map((e=>this._iteratee(e)))})}}function Y(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?Y(Object(r),!0).forEach((function(t){$(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}H.__initStatic();class K{static __initStatic(){this.id="SessionTiming"}constructor(){this.name=K.id,this._startTime=Date.now()}setupOnce(e,t){}processEvent(e){return this.process(e)}process(e){const t=Date.now();return W(W({},e),{},{extra:W(W({},e.extra),{},{"session:start":this._startTime,"session:duration":t-this._startTime,"session:end":t})})}}K.__initStatic();class q{static __initStatic(){this.id="Transaction"}constructor(){this.name=q.id}setupOnce(e,t){}processEvent(e){return this.process(e)}process(e){const t=function(e){const t=e.exception&&e.exception.values&&e.exception.values[0];return t&&t.stacktrace&&t.stacktrace.frames||[]}(e);for(let r=t.length-1;r>=0;r--){const n=t[r];if(!0===n.in_app){e.transaction=X(n);break}}return e}}function X(e){return e.module||e.function?`${e.module||"?"}/${e.function||"?"}`:"<unknown>"}q.__initStatic();var J=r(40263),Q=r(21955);function ee(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}(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 te(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 re(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 ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ie{static __initStatic(){this.id="HttpClient"}constructor(e){this.name=ie.id,this._options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?re(Object(r),!0).forEach((function(t){ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/]},e)}setupOnce(e,t){this._getCurrentHub=t,this._wrapFetch(),this._wrapXHR()}_fetchResponseHandler(e,t,r){if(this._getCurrentHub&&this._shouldCaptureResponse(t.status,t.url)){const a=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(e,r),s=this._getCurrentHub();let c,l,u,p;if(s.shouldSendDefaultPii()){var n=ee([{cookieHeader:"Cookie",obj:a},{cookieHeader:"Set-Cookie",obj:t}].map((({cookieHeader:e,obj:t})=>{const r=this._extractFetchHeaders(t.headers);let n;try{const t=r[e]||r[e.toLowerCase()]||void 0;t&&(n=this._parseCookieString(t))}catch(e){}return{headers:r,cookies:n}})),2),i=n[0];c=i.headers,u=i.cookies;var o=n[1];l=o.headers,p=o.cookies}const d=this._createEvent({url:a.url,method:a.method,status:t.status,requestHeaders:c,responseHeaders:l,requestCookies:u,responseCookies:p});s.captureEvent(d)}}_xhrResponseHandler(e,t,r){if(this._getCurrentHub&&this._shouldCaptureResponse(e.status,e.responseURL)){let n,i,o;const a=this._getCurrentHub();if(a.shouldSendDefaultPii()){try{const t=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;t&&(i=this._parseCookieString(t))}catch(e){}try{o=this._getXHRResponseHeaders(e)}catch(e){}n=r}const s=this._createEvent({url:e.responseURL,method:t,status:e.status,requestHeaders:n,responseHeaders:o,responseCookies:i});a.captureEvent(s)}}_getResponseSizeFromHeaders(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}_parseCookieString(e){return e.split("; ").reduce(((e,t)=>{const r=ee(t.split("="),2),n=r[0],i=r[1];return e[n]=i,e}),{})}_extractFetchHeaders(e){const t={};return e.forEach(((e,r)=>{t[r]=e})),t}_getXHRResponseHeaders(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const r=ee(t.split(": "),2),n=r[0],i=r[1];return e[n]=i,e}),{}):{}}_isInGivenRequestTargets(e){return!!this._options.failedRequestTargets&&this._options.failedRequestTargets.some((t=>"string"==typeof t?e.includes(t):t.test(e)))}_isInGivenStatusRanges(e){return!!this._options.failedRequestStatusCodes&&this._options.failedRequestStatusCodes.some((t=>"number"==typeof t?t===e:e>=t[0]&&e<=t[1]))}_wrapFetch(){(0,k.t$)()&&(0,o.oq)("fetch",(e=>{const t=e.response,r=ee(e.args,2),n=r[0],i=r[1];t&&this._fetchResponseHandler(n,t,i)}))}_wrapXHR(){"XMLHttpRequest"in i.n2&&(0,o.oq)("xhr",(e=>{const t=e.xhr,r=t[o.xU];if(!r)return;const n=r.method,i=r.request_headers;if(n)try{this._xhrResponseHandler(t,n,i)}catch(e){}}))}_shouldCaptureResponse(e,t){return this._isInGivenStatusRanges(e)&&this._isInGivenRequestTargets(t)&&!(0,J.W)(t,(0,Q.Gd)())}_createEvent(e){const t=`HTTP Client Error with status code: ${e.status}`,r={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:this._getResponseSizeFromHeaders(e.responseHeaders)}}};return(0,s.EG)(r,{type:"http.client",handled:!1}),r}}ie.__initStatic();var oe=r(12449);const ae=i.n2;class se{static __initStatic(){this.id="ContextLines"}constructor(e={}){this._options=e,this.name=se.id}setupOnce(e,t){}processEvent(e){return this.addSourceContext(e)}addSourceContext(e){const t=ae.document,r=ae.location&&(0,oe.rt)(ae.location.href);if(!t||!r)return e;const n=e.exception&&e.exception.values;if(!n||!n.length)return e;const i=t.documentElement.innerHTML;if(!i)return e;const o=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return n.forEach((e=>{const t=e.stacktrace;t&&t.frames&&(t.frames=t.frames.map((e=>function(e,t,r,n){if(e.filename!==r||!e.lineno||!t.length)return e;return(0,s.go)(t,e,n),e}(e,o,r,null!=this._options.frameContextLines?this._options.frameContextLines:7))))})),e}}se.__initStatic()},62103:(e,t,r)=>{"use strict";var n=r(338),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=h(r);i&&i!==f&&e(t,i,n)}var a=u(r);p&&(a=a.concat(p(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||n&&n[v]||m&&m[v]||s&&s[v])){var y=d(r,v);try{l(t,v,y)}catch(e){}}}}return t}},14893:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(20512),i=r(2306);function o(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?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t,r=250,o,a,s,c){if(!(s.exception&&s.exception.values&&c&&(0,n.V9)(c.originalException,Error)))return;const u=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var p,d;u&&(s.exception.values=(p=l(e,t,a,c.originalException,o,s.exception.values,u,0),d=r,p.map((e=>(e.value&&(e.value=(0,i.$G)(e.value,d)),e)))))}function l(e,t,r,i,o,a,s,c){if(a.length>=r+1)return a;let d=[...a];if((0,n.V9)(i[o],Error)){u(s,c);const n=e(t,i[o]),a=d.length;p(n,o,a,c),d=l(e,t,r,i[o],o,[n,...d],n,a)}return Array.isArray(i.errors)&&i.errors.forEach(((i,a)=>{if((0,n.V9)(i,Error)){u(s,c);const n=e(t,i),h=d.length;p(n,`errors[${a}]`,h,c),d=l(e,t,r,i,o,[n,...d],n,h)}})),d}function u(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=a(a({},e.mechanism),{},{is_exception_group:!0,exception_id:t})}function p(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=a(a({},e.mechanism),{},{type:"chained",source:t,exception_id:r,parent_id:n})}},99110:(e,t,r)=>{"use strict";r.d(t,{Rt:()=>o,l4:()=>s,qT:()=>c});var n=r(20512);const i=(0,r(19596).Rf)();function o(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let o=0,s=0;const c=" > ",l=c.length;let u;const p=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<n&&(u=a(r,p),!("html"===u||o>1&&s+i.length*l+u.length>=d));)i.push(u),s+=u.length,r=r.parentNode;return i.reverse().join(c)}catch(e){return"<unknown>"}}function a(e,t){const r=e,i=[];let o,a,s,c,l;if(!r||!r.tagName)return"";i.push(r.tagName.toLowerCase());const u=t&&t.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(r.id&&i.push(`#${r.id}`),o=r.className,o&&(0,n.HD)(o))for(a=o.split(/\s+/),l=0;l<a.length;l++)i.push(`.${a[l]}`);const p=["aria-label","type","name","title","alt"];for(l=0;l<p.length;l++)s=p[l],c=r.getAttribute(s),c&&i.push(`[${s}="${c}"]`);return i.join("")}function s(){try{return i.document.location.href}catch(e){return""}}function c(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}},70678:(e,t,r)=>{"use strict";r.d(t,{RA:()=>a,U4:()=>s,vK:()=>l});r(3790);function n(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(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}const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){const r=e.host,n=e.path,i=e.pass,o=e.port,a=e.projectId;return`${e.protocol}://${e.publicKey}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`}function s(e){const t=o.exec(e);if(!t)return void console.error(`Invalid Sentry Dsn: ${e}`);const r=n(t.slice(1),6),i=r[0],a=r[1],s=r[2],l=void 0===s?"":s,u=r[3],p=r[4],d=void 0===p?"":p;let h="",f=r[5];const m=f.split("/");if(m.length>1&&(h=m.slice(0,-1).join("/"),f=m.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return c({host:u,pass:l,path:h,projectId:f,port:d,protocol:i,publicKey:a})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function l(e){const t="string"==typeof e?s(e):c(e);if(t)return t}},12856:(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}r.d(t,{S:()=>i,n:()=>n})},94143:(e,t,r)=>{"use strict";r.d(t,{BO:()=>f,Cd:()=>x,HY:()=>L,Jd:()=>h,R:()=>g,V$:()=>y,f4:()=>b,gv:()=>m,mL:()=>w,zQ:()=>_});var n=r(70678),i=r(93937),o=r(7938);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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(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,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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||p(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 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(e,t=[]){return[e,t]}function f(e,t){const r=u(e,2);return[r[0],[...r[1],t]]}function m(e,t){var r,n=l(e[1]);try{for(n.s();!(r=n.n()).done;){const e=r.value,n=e[0].type;if(t(e,n))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}function g(e,t){return m(e,((e,r)=>t.includes(r)))}function v(e,t){return(t||new TextEncoder).encode(e)}function y(e,t){const r=u(e,2),n=r[0],o=r[1];let a=JSON.stringify(n);function s(e){"string"==typeof a?a="string"==typeof e?a+e:[v(a,t),e]:a.push("string"==typeof e?v(e,t):e)}var c,p=l(o);try{for(p.s();!(c=p.n()).done;){const e=u(c.value,2),t=e[0],r=e[1];if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)s(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,i.Fv)(r))}s(e)}}}catch(e){p.e(e)}finally{p.f()}return"string"==typeof a?a:function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let n=0;var i,o=l(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;r.set(e,n),n+=e.length}}catch(e){o.e(e)}finally{o.f()}return r}(a)}function b(e,t,r){let n="string"==typeof e?t.encode(e):e;function i(e){const t=n.subarray(0,e);return n=n.subarray(e+1),t}function o(){let e=n.indexOf(10);return e<0&&(e=n.length),JSON.parse(r.decode(i(e)))}const a=o(),s=[];for(;n.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?i(t):o()])}return[a,s]}function _(e,t){const r="string"==typeof e.data?v(e.data,t):e.data;return[(0,o.Jr)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}const E={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",statsd:"unknown"};function w(e){return E[e]}function L(e){if(!e||!e.sdk)return;const t=e.sdk;return{name:t.name,version:t.version}}function x(e,t,r,i){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return s(s(s({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),!!r&&i&&{dsn:(0,n.RA)(i)}),a&&{trace:(0,o.Jr)(s({},a))})}},32962:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},81239:(e,t,r)=>{"use strict";r.d(t,{xU:()=>v,oq:()=>E});var n=r(20512),i=r(3790),o=r(55725),a=r(7938),s=r(90510),c=r(19596);const l=(0,c.Rf)();function u(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||f(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 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){h(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,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(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}}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}const g=(0,c.Rf)(),v="__sentry_xhr_v2__",y={},b={};function _(e){if(!b[e])switch(b[e]=!0,e){case"console":!function(){if(!("console"in c.n2))return;i.RU.forEach((function(e){e in c.n2.console&&(0,a.hl)(c.n2.console,e,(function(t){return i.LD[e]=t,function(...t){w("console",{args:t,level:e});const r=i.LD[e];r&&r.apply(c.n2.console,t)}}))}))}();break;case"dom":!function(){if(!g.document)return;const e=w.bind(null,"dom"),t=P(e,!0);g.document.addEventListener("click",t,!1),g.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=g[t]&&g[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,a.hl)(r,"addEventListener",(function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{const n=this,o=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},a=o[r]=o[r]||{refCount:0};if(!a.handler){const n=P(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch(e){}return t.call(this,r,n,i)}})),(0,a.hl)(r,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this,i=r.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete r.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}})))}))}();break;case"xhr":!function(){if(!g.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,a.hl)(e,"open",(function(e){return function(...t){const r=Date.now(),i=t[1],o=this[v]={method:(0,n.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};(0,n.HD)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[v];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}w("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:r,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,a.hl)(this,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(this,t)}})):this.addEventListener("readystatechange",s),(0,a.hl)(this,"setRequestHeader",(function(e){return function(...t){const r=t[0],n=t[1],i=this[v];return i&&(i.request_headers[r.toLowerCase()]=n),e.apply(this,t)}})),e.apply(this,t)}})),(0,a.hl)(e,"send",(function(e){return function(...t){const r=this[v];return r&&void 0!==t[0]&&(r.body=t[0]),w("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!(0,s.t$)())return;(0,a.hl)(c.n2,"fetch",(function(e){return function(...t){const r=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const t=u(e,2),r=t[0],n=t[1];return{url:x(r),method:L(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:x(t),method:L(t,"method")?String(t.method).toUpperCase():"GET"}}(t),n={args:t,fetchData:{method:r.method,url:r.url},startTimestamp:Date.now()};return w("fetch",d({},n)),e.apply(c.n2,t).then((e=>(w("fetch",d(d({},n),{},{endTimestamp:Date.now(),response:e})),e)),(e=>{throw w("fetch",d(d({},n),{},{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){const e=l.chrome,t=e&&e.app&&e.app.runtime,r="history"in l&&!!l.history.pushState&&!!l.history.replaceState;return!t&&r}())return;const e=g.onpopstate;function t(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const e=S,t=String(r);S=t,w("history",{from:e,to:t})}return e.apply(this,t)}}g.onpopstate=function(...t){const r=g.location.href,n=S;if(S=r,w("history",{from:n,to:r}),e)try{return e.apply(this,t)}catch(e){}},(0,a.hl)(g.history,"pushState",t),(0,a.hl)(g.history,"replaceState",t)}();break;case"error":C=g.onerror,g.onerror=function(e,t,r,n,i){return w("error",{column:n,error:i,line:r,msg:e,url:t}),!(!C||C.__SENTRY_LOADER__)&&C.apply(this,arguments)},g.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":A=g.onunhandledrejection,g.onunhandledrejection=function(e){return w("unhandledrejection",e),!(A&&!A.__SENTRY_LOADER__)||A.apply(this,arguments)},g.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return}}function E(e,t){y[e]=y[e]||[],y[e].push(t),_(e)}function w(e,t){if(e&&y[e]){var r,n=function(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,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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(y[e]||[]);try{for(n.s();!(r=n.n()).done;){const e=r.value;try{e(t)}catch(e){}}}catch(e){n.e(e)}finally{n.f()}}}function L(e,t){return!!e&&"object"==typeof e&&!!e[t]}function x(e){return"string"==typeof e?e:e?L(e,"url")?e.url:e.toString?e.toString():"":""}let S;let O,T,I;function P(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch(e){return null}}(r);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;(0,a.xp)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,a.xp)(n,"_sentryId",(0,o.DM)());const i="keypress"===r.type?"input":r.type;(function(e){if(e.type!==T)return!1;try{if(!e.target||e.target._sentryId!==I)return!1}catch(e){}return!0})(r)||(e({event:r,name:i,global:t}),T=r.type,I=n?n._sentryId:void 0),clearTimeout(O),O=g.setTimeout((()=>{I=void 0,T=void 0}),1e3)}}let C=null;let A=null},20512:(e,t,r)=>{"use strict";r.d(t,{Cy:()=>g,HD:()=>l,J8:()=>m,Kj:()=>f,PO:()=>p,TX:()=>s,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>d,fm:()=>c,i2:()=>v,kK:()=>h,pt:()=>u,y1:()=>b});const n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function c(e){return o(e,"DOMException")}function l(e){return o(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function h(e){return"undefined"!=typeof Element&&y(e,Element)}function f(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},3790:(e,t,r)=>{"use strict";r.d(t,{Cf:()=>a,LD:()=>o,RU:()=>i,kg:()=>s});var n=r(19596);const i=["debug","info","warn","error","log","assert","trace"],o={};function a(e){if(!("console"in n.n2))return e();const t=n.n2.console,r={},i=Object.keys(o);i.forEach((e=>{const n=o[e];r[e]=t[e],t[e]=n}));try{return e()}finally{i.forEach((e=>{t[e]=r[e]}))}}const s=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.forEach((e=>{t[e]=()=>{}})),t}()},55725:(e,t,r)=>{"use strict";r.d(t,{DM:()=>l,Db:()=>d,EG:()=>h,YO:()=>m,go:()=>f,jH:()=>p,lE:()=>g});var n=r(7938),i=r(2306),o=r(19596);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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){const e=o.n2,t=e.crypto||e.msCrypto;let r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function u(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function p(e){const t=e.message,r=e.event_id;if(t)return t;const n=u(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function d(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function h(e,t){const r=u(e);if(!r)return;const n=r.mechanism;if(r.mechanism=s(s(s({},{type:"generic",handled:!0}),n),t),t&&"data"in t){const e=s(s({},n&&n.data),t.data);r.mechanism.data=e}}function f(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,o=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-r),o).map((e=>(0,i.JM)(e,0))),t.context_line=(0,i.JM)(e[Math.min(n-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,n),o+1+r).map((e=>(0,i.JM)(e,0)))}function m(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function g(e){return Array.isArray(e)?e:[e]}},68688:(e,t,r)=>{"use strict";r.d(t,{KV:()=>o,l$:()=>a});var n=r(12856);e=r.hmd(e);var i=r(82530);function o(){return!(0,n.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(e,t){return e.require(t)}},93937:(e,t,r)=>{"use strict";r.d(t,{Fv:()=>c,Qy:()=>l});var n=r(20512);var i=r(7938),o=r(28231);function a(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(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 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=100,r=1/0){try{return u("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function l(e,t=3,r=102400){const n=c(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?l(e,t-1,r):n;var i}function u(e,t,s=1/0,c=1/0,l=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++)if(t[e]===r)return!0;return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}()){const p=a(l,2),d=p[0],h=p[1];if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,n.i2)(t))return t;const f=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==r.g&&t===r.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.y1)(t))return"[VueViewModel]";if((0,n.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!f.startsWith("[object "))return f;if(t.__sentry_skip_normalization__)return t;const m="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:s;if(0===m)return f.replace("object ","");if(d(t))return"[Circular ~]";const g=t;if(g&&"function"==typeof g.toJSON)try{return u("",g.toJSON(),m-1,c,l)}catch(e){}const v=Array.isArray(t)?[]:{};let y=0;const b=(0,i.Sh)(t);for(const e in b){if(!Object.prototype.hasOwnProperty.call(b,e))continue;if(y>=c){v[e]="[MaxProperties ~]";break}const t=b[e];v[e]=u(e,t,m-1,c,l),y++}return h(t),v}},7938:(e,t,r)=>{"use strict";r.d(t,{$Q:()=>p,HK:()=>d,Jr:()=>y,Sh:()=>f,_j:()=>h,hl:()=>l,xp:()=>u,zf:()=>v});var n=r(99110),i=r(20512),o=r(2306);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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t,r){if(!(t in e))return;const n=e[t],i=r(n);"function"==typeof i&&p(i,n),e[t]=i}function u(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(e){}}function p(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,u(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function h(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function f(e){if((0,i.VZ)(e))return s({message:e.message,name:e.name,stack:e.stack},g(e));if((0,i.cO)(e)){const t=s({type:e.type,target:m(e.target),currentTarget:m(e.currentTarget)},g(e));return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function m(e){try{return(0,i.kK)(e)?(0,n.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function g(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function v(e,t=40){const r=Object.keys(f(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,o.$G)(r[0],t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:(0,o.$G)(n,t)}return""}function y(e){return b(e,new Map)}function b(e,t){if((0,i.PO)(e)){const i=t.get(e);if(void 0!==i)return i;const o={};t.set(e,o);for(var r=0,n=Object.keys(e);r<n.length;r++){const i=n[r];void 0!==e[i]&&(o[i]=b(e[i],t))}return o}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(b(e,t))})),n}return e}},92858:(e,t,r)=>{"use strict";function n(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||o(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){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 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}}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){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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{JY:()=>l,Q:()=>u,WG:()=>p});function l(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}function u(e,t,r=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>r}function p(e,{statusCode:t,headers:r},o=Date.now()){const a=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}({},e),u=r&&r["x-sentry-rate-limits"],p=r&&r["retry-after"];if(u){var d,h=i(u.trim().split(","));try{for(h.s();!(d=h.n()).done;){const e=d.value,t=n(e.split(":",2),2),r=t[0],s=t[1],c=parseInt(r,10),l=1e3*(isNaN(c)?60:c);if(s){var f,m=i(s.split(";"));try{for(m.s();!(f=m.n()).done;){a[f.value]=o+l}}catch(e){m.e(e)}finally{m.f()}}else a.all=o+l}}catch(e){h.e(e)}finally{h.f()}}else p?a.all=o+l(p,o):429===t&&(a.all=o+6e4);return a}},17341:(e,t,r)=>{"use strict";r.d(t,{VT:()=>i});const n=["fatal","error","warning","log","info","debug"];function i(e){return"warn"===e?"warning":n.includes(e)?e:"log"}},28231:(e,t,r)=>{"use strict";function n(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 i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}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,{$P:()=>h,Sq:()=>p,pE:()=>u});const c=/\(error: (.*)\)/,l=/captureMessage|captureException/;function u(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0)=>{const n=[],o=e.split("\n");for(let e=r;e<o.length;e++){const r=o[e];if(r.length>1024)continue;const i=c.test(r)?r.replace(c,"$1"):r;if(!i.match(/\S*Error: /)){var s,u=a(t);try{for(u.s();!(s=u.n()).done;){const e=(0,s.value)(i);if(e){n.push(e);break}}}catch(e){u.e(e)}finally{u.f()}if(n.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),l.test(t[t.length-1].function||"")&&(t.pop(),l.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,50).map((e=>i(i({},e),{},{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(n)}}function p(e){return Array.isArray(e)?u(...e):e}const d="<anonymous>";function h(e){try{return e&&"function"==typeof e&&e.name||d}catch(e){return d}}},2306:(e,t,r)=>{"use strict";r.d(t,{$G:()=>i,JM:()=>o,U0:()=>s,nK:()=>a});var n=r(20512);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){let r=e;const n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`'{snip} ${r}`),o<n&&(r+=" {snip}"),r}function a(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const i=e[t];try{(0,n.y1)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function s(e,t=[],r=!1){return t.some((t=>function(e,t,r=!1){return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):!!(0,n.HD)(t)&&(r?e===t:e.includes(t)))}(e,t,r)))}},90510:(e,t,r)=>{"use strict";r.d(t,{Ak:()=>i,Du:()=>o,t$:()=>a,zb:()=>s});const n=(0,r(19596).Rf)();function i(){if(!("fetch"in n))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function o(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function a(){if(!i())return!1;if(o(n.fetch))return!0;let e=!1;const t=n.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=o(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){}return e}function s(){return"ReportingObserver"in n}},23155:(e,t,r)=>{"use strict";r.d(t,{$2:()=>a,WD:()=>o,cW:()=>s});var n,i=r(20512);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,r)=>{let n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===n.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},49230:(e,t,r)=>{"use strict";r.d(t,{Z1:()=>d,ph:()=>u,yW:()=>l});var n=r(68688),i=r(19596);e=r.hmd(e);const o=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3};const s=(0,n.KV)()?function(){try{return(0,n.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const e=o.performance;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),c=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},l=a.nowSeconds.bind(a),u=c.nowSeconds.bind(c);let p;const d=(()=>{const e=o.performance;if(!e||!e.now)return void(p="none");const t=36e5,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=i<t,s=e.timing&&e.timing.navigationStart,c="number"==typeof s?Math.abs(s+r-n):t;return a||c<t?i<=c?(p="timeOrigin",e.timeOrigin):(p="navigationStart",s):(p="dateNow",n)})()},12449:(e,t,r)=>{"use strict";function n(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function i(e){return e.split(/[\?#]/,1)[0]}r.d(t,{en:()=>n,rt:()=>i})},19596:(e,t,r)=>{"use strict";function n(e){return e&&e.Math==Math?e:void 0}r.d(t,{Rf:()=>o,YO:()=>a,n2:()=>i});const i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof r.g&&n(r.g)||function(){return this}()||{};function o(){return i}function a(e,t,r){const n=r||i,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}},14417:(e,t,r)=>{"use strict";r.r(t)},10419:(e,t,r)=>{"use strict";r.r(t)},69533:(e,t,r)=>{"use strict";r.r(t)},40506:(e,t,r)=>{"use strict";r.r(t)},13851:(e,t,r)=>{"use strict";r.r(t)},77609:(e,t,r)=>{"use strict";r.r(t)},80610:(e,t,r)=>{"use strict";r.r(t)},8036:(e,t,r)=>{"use strict";r.r(t)},77304:(e,t,r)=>{"use strict";r.r(t)},15682:(e,t,r)=>{"use strict";r.r(t)},42876:(e,t,r)=>{"use strict";r.r(t)},88576:(e,t,r)=>{"use strict";r.r(t)},18236:(e,t,r)=>{"use strict";r.r(t)},78211:(e,t,r)=>{"use strict";r.r(t)},33639:(e,t,r)=>{"use strict";r.r(t)},86001:(e,t,r)=>{"use strict";r.r(t)},76785:(e,t,r)=>{"use strict";r.r(t)},50388:(e,t,r)=>{"use strict";r.r(t)},48849:(e,t,r)=>{"use strict";r.r(t)},84536:(e,t,r)=>{"use strict";r.r(t)},59849:(e,t,r)=>{"use strict";r.r(t)},83973:(e,t,r)=>{"use strict";r.r(t)},84493:(e,t,r)=>{"use strict";r.r(t)},40612:(e,t,r)=>{"use strict";r.r(t)},82550:(e,t,r)=>{"use strict";r.r(t)},13286:(e,t,r)=>{"use strict";r.r(t)},16088:(e,t,r)=>{"use strict";r.r(t)},49135:(e,t,r)=>{"use strict";r.r(t)},40735:(e,t,r)=>{"use strict";r.r(t)},66557:(e,t,r)=>{"use strict";r.r(t)},54698:(e,t,r)=>{"use strict";r.r(t)},9781:(e,t,r)=>{"use strict";r.r(t)},96014:(e,t,r)=>{"use strict";r.r(t)},849:(e,t,r)=>{"use strict";r.r(t)},10454:(e,t,r)=>{"use strict";r.r(t)},12076:(e,t,r)=>{"use strict";r.r(t)},30954:(e,t,r)=>{"use strict";r.r(t)},43319:(e,t,r)=>{"use strict";r.r(t)},76172:(e,t,r)=>{"use strict";r.r(t)},92708:(e,t,r)=>{"use strict";r.r(t)},21666:(e,t,r)=>{"use strict";r.r(t)},45947:(e,t,r)=>{"use strict";r.r(t)},99555:(e,t,r)=>{"use strict";r.r(t)},22489:(e,t,r)=>{"use strict";r.r(t)},66759:(e,t,r)=>{"use strict";r.r(t)},10385:(e,t,r)=>{"use strict";r.r(t)},81552:(e,t,r)=>{"use strict";r.r(t)},28432:(e,t,r)=>{"use strict";r.r(t)},30250:(e,t,r)=>{"use strict";r.r(t)},63595:(e,t,r)=>{"use strict";r.r(t)},85485:(e,t,r)=>{"use strict";r.r(t)},73657:(e,t,r)=>{"use strict";r.r(t)},54525:(e,t,r)=>{"use strict";r.r(t)},60448:(e,t,r)=>{"use strict";r.r(t)},99756:(e,t,r)=>{"use strict";r.r(t)},52855:(e,t,r)=>{"use strict";r.r(t)},24130:(e,t,r)=>{"use strict";r.r(t)},78743:(e,t,r)=>{"use strict";r.r(t)},67869:(e,t,r)=>{"use strict";r.r(t)},34673:(e,t,r)=>{"use strict";r.r(t)},16032:(e,t,r)=>{"use strict";r.r(t)},25915:(e,t,r)=>{"use strict";r.r(t)},77682:(e,t,r)=>{"use strict";r.r(t)},108:(e,t,r)=>{"use strict";r.r(t)},31341:(e,t,r)=>{"use strict";r.r(t)},22386:(e,t,r)=>{"use strict";r.r(t)},85149:(e,t,r)=>{"use strict";r.r(t)},66795:(e,t,r)=>{"use strict";r.r(t)},80076:(e,t,r)=>{"use strict";r.r(t)},19517:(e,t,r)=>{"use strict";r.r(t)},39302:(e,t,r)=>{"use strict";r.r(t)},26286:(e,t,r)=>{"use strict";r.r(t)},87571:(e,t,r)=>{"use strict";r.r(t)},77413:(e,t,r)=>{"use strict";r.r(t)},92604:(e,t,r)=>{"use strict";r.r(t)},20760:(e,t,r)=>{"use strict";r.r(t)},79163:(e,t,r)=>{"use strict";r.r(t)},12476:(e,t,r)=>{"use strict";r.r(t)},41254:(e,t,r)=>{"use strict";r.r(t)},25226:(e,t,r)=>{"use strict";r.r(t)},1447:(e,t,r)=>{"use strict";r.r(t)},91540:(e,t,r)=>{"use strict";r.r(t)},28250:(e,t,r)=>{"use strict";r.r(t)},23324:(e,t,r)=>{"use strict";r.r(t)},9174:(e,t,r)=>{"use strict";r.r(t)},19766:(e,t,r)=>{"use strict";r.r(t)},16253:(e,t,r)=>{"use strict";r.r(t)},77861:(e,t,r)=>{"use strict";r.r(t)},63693:(e,t,r)=>{"use strict";r.r(t)},61491:(e,t,r)=>{"use strict";r.r(t)},73258:(e,t,r)=>{"use strict";r.r(t)},6649:(e,t,r)=>{"use strict";r.r(t)},1926:(e,t,r)=>{"use strict";r.r(t)},22361:(e,t,r)=>{"use strict";r.r(t)},84654:(e,t,r)=>{"use strict";r.r(t)},12656:(e,t,r)=>{"use strict";r.r(t)},44460:(e,t,r)=>{"use strict";r.r(t)},707:(e,t,r)=>{"use strict";r.r(t)},37969:(e,t,r)=>{"use strict";r.r(t)},41203:(e,t,r)=>{"use strict";r.r(t)},97395:(e,t,r)=>{"use strict";r.r(t)},32678:(e,t,r)=>{"use strict";r.r(t)},70284:(e,t,r)=>{"use strict";r.r(t)},46701:(e,t,r)=>{"use strict";r.r(t)},39575:(e,t,r)=>{"use strict";r.r(t)},47949:(e,t,r)=>{"use strict";r.r(t)},68287:(e,t,r)=>{"use strict";r.r(t)},36358:(e,t,r)=>{"use strict";r.r(t)},31799:(e,t,r)=>{"use strict";r.r(t)},42069:(e,t,r)=>{"use strict";r.r(t)},88759:(e,t,r)=>{"use strict";r.r(t)},79620:(e,t,r)=>{"use strict";r.r(t)},51548:e=>{e.exports={inferEnvironment:function({version:e,hostname:t,environment:r="production"}){return e&&(e.includes(".pr")||e.includes("main")||e.includes("dev"))||t&&t.includes("aw-ube")||t&&t.includes("prenv")?"preview":t&&t.includes("stage")?"staging":t&&t.includes("localhost")||t&&t.includes("dev.adobe.com")?"development":r}}},21271:e=>{const t=["onAbort","onAnimationCancel","onAnimationEnd","onAnimationIteration","onAuxClick","onBlur","onChange","onClick","onClose","onContextMenu","onDoubleClick","onError","onFocus","onGotPointerCapture","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onLoadEnd","onLoadStart","onLostPointerCapture","onMouseDown","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onReset","onResize","onScroll","onSelect","onSelectionChange","onSelectStart","onSubmit","onTouchCancel","onTouchMove","onTouchStart","onTransitionCancel","onTransitionEnd","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onFocusOut"],r={onDoubleClick:"dblclick"},n={onInput:"onChange",onFocusOut:"onBlur",onSelectionChange:"onSelect"},i=["onScroll"];function o(e){t.forEach((function(t){const l=function(e){if(r[e])return r[e];return e.replace(/^on/,"").toLowerCase()}(t);e.addEventListener(l,(function(r){const i=function(e){if(o.ignoreEventPaths)return;if((e=e.nativeEvent||e).path||e.composedPath)return e.path||e.composedPath&&e.composedPath();const t=[];let r=e.target;for(;r;){if(t.push(r),"HTML"===r.tagName)return t.push(document),t.push(window),t;r=r.parentElement}}(r);for(let o=0;o<i.length;o++){const l=i[o],u=a(l),p=s(u);if(u&&p&&c(r,t,p),u&&p&&n[t]&&c(r,n[t],p),r.cancelBubble)break;if(l===e)break}}),-1!==i.indexOf(t))}))}function a(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&-1!==t.indexOf("_reactInternal"))return e[t]}function s(e){if(e)return e.memoizedProps?e.memoizedProps:void 0}function c(e,t,r){r[t]&&(e.isPropagationStopped=()=>!1,r[t](e))}e.exports=o},74052:(e,t,r)=>{const n="-"+r(72137).replace(/[\^~]/g,"").replace(/\./g,"-");e.exports={fallbackTagName:function(e){return`${e}${n}`},fallbackTagNameSuffix:n}},72137:e=>{e.exports="1.0.111"},75097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BUILD_VERSION=void 0,t.BUILD_VERSION="@exc/metrics:1.7.4+sha.8829fb0"},85814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Level=void 0,function(e){e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(t.Level||(t.Level={}))},67174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(85814),i=r(37254),o=r(75097);class a{constructor(e,...t){let a;switch(this.history={back:(...e)=>this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"back",e),forward:(...e)=>this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"forward",e),go:(e,...t)=>(t.unshift({n:e}),this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"go",t)),push:(e,t,...r)=>(r.unshift({path:e,state:t}),this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"push",r)),replace:(e,t,...r)=>(r.unshift({path:e,state:t}),this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"replace",r))},this.analytics={track:(e,...t)=>this._log(i.RecordType.ANALYTICS,n.Level.INFO,this.name,void 0,e,t),trackEvent:(e,...t)=>(t.unshift(e),this._log(i.RecordType.ANALYTICS,n.Level.INFO,this.name,void 0,"Event",t)),trackPage:(e,...t)=>(t.unshift(e),this._log(i.RecordType.ANALYTICS,n.Level.INFO,this.name,void 0,"Page",t)),trackUser:(e,...t)=>(t.unshift(e),this._log(i.RecordType.ANALYTICS,n.Level.INFO,this.name,void 0,"User",t))},this.location={assign:(e,...t)=>(t.unshift({url:e}),this._log(i.RecordType.LOCATION,n.Level.INFO,this.name,void 0,"assign",t)),reload:(e,...t)=>(t.unshift({force:e}),this._log(i.RecordType.LOCATION,n.Level.INFO,this.name,void 0,"reload",t)),replace:(e,...t)=>(t.unshift({url:e}),this._log(i.RecordType.LOCATION,n.Level.INFO,this.name,void 0,"replace",t))},this.name=e,t.length&&"object"==typeof t[0]&&"function"==typeof t[0].now?(a=t[0],t.shift()):a=r.g.adobeMetrics,this._log=(e,t,r,n,i,s)=>a.write({data:s.length>0?[...s]:void 0,event:i,level:t,message:n,metricsState:{sdkVersion:o.BUILD_VERSION},name:r,recordType:e}),this.store=e=>{e.metricsState={sdkVersion:o.BUILD_VERSION},e.name=this.name,a.write(e)},t.length){case 0:break;case 1:this.context=t[0];break;default:this.context=t}}error(e,...t){return this._log(i.RecordType.LOG,n.Level.ERROR,this.name,e,void 0,t)}warn(e,...t){return this._log(i.RecordType.LOG,n.Level.WARN,this.name,e,void 0,t)}log(e,...t){return this._log(i.RecordType.LOG,n.Level.INFO,this.name,e,void 0,t)}info(e,...t){return this._log(i.RecordType.LOG,n.Level.INFO,this.name,e,void 0,t)}debug(e,...t){return this._log(i.RecordType.LOG,n.Level.DEBUG,this.name,e,void 0,t)}trace(e,...t){return this._log(i.RecordType.LOG,n.Level.TRACE,this.name,e,void 0,t)}start(e,...t){return r.g.adobeMetrics.create(i.RecordType.TIMER,this.name,this.context,e,...t)}event(e,...t){return this._log(i.RecordType.EVENT,n.Level.INFO,this.name,void 0,e,t)}recent(e,...t){return this._log(i.RecordType.RECENT,n.Level.INFO,this.name,void 0,e,t)}sea(e,...t){return this._log(i.RecordType.SEA,n.Level.INFO,this.name,void 0,e,t)}}t.default=a,a.version=o.BUILD_VERSION,function(){const e=r.g.adobeMetrics=r.g.adobeMetrics||{};e.queue=e.queue||[]}()},44365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsEvents=void 0,function(e){e.PAGE_LOAD_DONE="exc.metrics.pageState.load.done",e.PAGE_LOAD_START="exc.metrics.pageState.load.start",e.SPINNER_DONE="exc.metrics.pageState.spinner.done",e.SPINNER_START="exc.metrics.pageState.spinner.start"}(t.MetricsEvents||(t.MetricsEvents={}))},37254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecordType=void 0,function(e){e.ANALYTICS="Analytics",e.EVENT="Event",e.RECENT="Recent",e.HISTORY="History",e.LOCATION="Location",e.LOG="Log",e.NETWORK_REQUEST="NetworkRequest",e.NETWORK_RESPONSE="NetworkResponse",e.RESOURCE_TIMING="ResourceTiming",e.PAINT_TIMING="PaintTiming",e.NAVIGATION_TIMING="NavigationTiming",e.TIMER="Timer",e.TRACER="Tracer",e.USER="User",e.USER_EVENT="UserEvent",e.SEA="SEA"}(t.RecordType||(t.RecordType={}))},21821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserOptOutAllowList=void 0,t.UserOptOutAllowList=["attributes","authSystem","dateNow","event","metricsState","recordType","timestamp","userHash"]},58620: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.UserOptOutAllowList=t.RecordType=t.MetricsEvents=t.Level=void 0;const i=n(r(67174));t.default=i.default;var o=r(85814);Object.defineProperty(t,"Level",{enumerable:!0,get:function(){return o.Level}});var a=r(44365);Object.defineProperty(t,"MetricsEvents",{enumerable:!0,get:function(){return a.MetricsEvents}});var s=r(37254);Object.defineProperty(t,"RecordType",{enumerable:!0,get:function(){return s.RecordType}});var c=r(21821);Object.defineProperty(t,"UserOptOutAllowList",{enumerable:!0,get:function(){return c.UserOptOutAllowList}})},21599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUnicodeLanguageSubtag=t.isUnicodeScriptSubtag=t.isUnicodeRegionSubtag=t.isStructurallyValidLanguageTag=t.parseUnicodeLanguageId=t.parseUnicodeLocaleId=t.getCanonicalLocales=void 0;var n=r(97582),i=r(24773),o=r(18213),a=r(51520);t.getCanonicalLocales=function(e){return function(e){if(void 0===e)return[];var t=[];"string"==typeof e&&(e=[e]);for(var r=0,n=e;r<n.length;r++){var s=n[r],c=(0,o.emitUnicodeLocaleId)((0,a.canonicalizeUnicodeLocaleId)((0,i.parseUnicodeLocaleId)(s)));t.indexOf(c)<0&&t.push(c)}return t}(e)};var s=r(24773);Object.defineProperty(t,"parseUnicodeLocaleId",{enumerable:!0,get:function(){return s.parseUnicodeLocaleId}}),Object.defineProperty(t,"parseUnicodeLanguageId",{enumerable:!0,get:function(){return s.parseUnicodeLanguageId}}),Object.defineProperty(t,"isStructurallyValidLanguageTag",{enumerable:!0,get:function(){return s.isStructurallyValidLanguageTag}}),Object.defineProperty(t,"isUnicodeRegionSubtag",{enumerable:!0,get:function(){return s.isUnicodeRegionSubtag}}),Object.defineProperty(t,"isUnicodeScriptSubtag",{enumerable:!0,get:function(){return s.isUnicodeScriptSubtag}}),Object.defineProperty(t,"isUnicodeLanguageSubtag",{enumerable:!0,get:function(){return s.isUnicodeLanguageSubtag}}),(0,n.__exportStar)(r(26624),t),(0,n.__exportStar)(r(18213),t),(0,n.__exportStar)(r(37376),t)},75523:(e,t,r)=>{"use strict";var n=r(21599),i=r(29157);"undefined"==typeof Intl&&("undefined"!=typeof window?Object.defineProperty(window,"Intl",{value:{}}):void 0!==r.g&&Object.defineProperty(r.g,"Intl",{value:{}})),(0,i.shouldPolyfill)()&&Object.defineProperty(Intl,"getCanonicalLocales",{value:n.getCanonicalLocales,writable:!0,enumerable:!1,configurable:!0})},29157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldPolyfill=void 0,t.shouldPolyfill=function(){return"undefined"==typeof Intl||!("getCanonicalLocales"in Intl)||"x-private"===Intl.getCanonicalLocales("und-x-private")[0]}},86865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.variantAlias=t.scriptAlias=t.territoryAlias=t.languageAlias=void 0,t.languageAlias={"aa-saaho":"ssy",aam:"aas",aar:"aa",abk:"ab",adp:"dz",afr:"af",agp:"apf",ais:"ami",aju:"jrb",aka:"ak",alb:"sq",als:"sq",amh:"am",ara:"ar",arb:"ar",arg:"an",arm:"hy","art-lojban":"jbo",asd:"snz",asm:"as",aue:"ktz",ava:"av",ave:"ae",aym:"ay",ayr:"ay",ayx:"nun",aze:"az",azj:"az",bak:"ba",bam:"bm",baq:"eu",baz:"nvo",bcc:"bal",bcl:"bik",bel:"be",ben:"bn",bgm:"bcg",bh:"bho",bhk:"fbl",bih:"bho",bis:"bi",bjd:"drl",bjq:"bzc",bkb:"ebk",bod:"bo",bos:"bs",bre:"br",btb:"beb",bul:"bg",bur:"my",bxk:"luy",bxr:"bua",cat:"ca",ccq:"rki","cel-gaulish":"xtg",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cjr:"mom",cka:"cmr",cld:"syr",cmk:"xch",cmn:"zh",cnr:"sr-ME",cor:"kw",cos:"co",coy:"pij",cqu:"quh",cre:"cr",cwd:"cr",cym:"cy",cze:"cs",daf:"dnj",dan:"da",dap:"njz",deu:"de",dgo:"doi",dhd:"mwr",dik:"din",diq:"zza",dit:"dif",div:"dv",djl:"dze",dkl:"aqd",drh:"mn",drr:"kzk",drw:"fa-AF",dud:"uth",duj:"dwu",dut:"nl",dwl:"dbt",dzo:"dz",ekk:"et",ell:"el",elp:"amq",emk:"man","en-GB-oed":"en-GB-oxendict",eng:"en",epo:"eo",esk:"ik",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fat:"ak",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",fuc:"ff",ful:"ff",gav:"dev",gaz:"om",gbc:"wny",gbo:"grb",geo:"ka",ger:"de",gfx:"vaj",ggn:"gvr",ggo:"esg",ggr:"gtu",gio:"aou",gla:"gd",gle:"ga",glg:"gl",gli:"kzk",glv:"gv",gno:"gon",gre:"el",grn:"gn",gti:"nyc",gug:"gn",guj:"gu",guv:"duz",gya:"gba",hat:"ht",hau:"ha",hbs:"sr-Latn",hdn:"hai",hea:"hmn",heb:"he",her:"hz",him:"srx",hin:"hi",hmo:"ho",hrr:"jal",hrv:"hr",hun:"hu","hy-arevmda":"hyw",hye:"hy","i-ami":"ami","i-bnn":"bnn","i-default":"en-x-i-default","i-enochian":"und-x-i-enochian","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-mingo":"see-x-i-mingo","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu",ibi:"opa",ibo:"ig",ice:"is",ido:"io",iii:"ii",ike:"iu",iku:"iu",ile:"ie",ill:"ilm",ilw:"gal",in:"id",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",iw:"he",izi:"eza",jar:"jgk",jav:"jv",jeg:"oyb",ji:"yi",jpn:"ja",jw:"jv",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",kdv:"zkd",kgc:"tdf",kgd:"ncq",kgh:"kml",khk:"mn",khm:"km",kik:"ki",kin:"rw",kir:"ky",kmr:"ku",knc:"kr",kng:"kg",knn:"kok",koj:"kwv",kom:"kv",kon:"kg",kor:"ko",kpp:"jkm",kpv:"kv",krm:"bmf",ktr:"dtp",kua:"kj",kur:"ku",kvs:"gdj",kwq:"yam",kxe:"tvd",kxl:"kru",kzh:"dgl",kzj:"dtp",kzt:"dtp",lao:"lo",lat:"la",lav:"lv",lbk:"bnc",leg:"enl",lii:"raq",lim:"li",lin:"ln",lit:"lt",llo:"ngt",lmm:"rmx",ltz:"lb",lub:"lu",lug:"lg",lvs:"lv",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",meg:"cir",mgx:"jbk",mhr:"chm",mkd:"mk",mlg:"mg",mlt:"mt",mnk:"man",mnt:"wnn",mo:"ro",mof:"xnt",mol:"ro",mon:"mn",mri:"mi",msa:"ms",mst:"mry",mup:"raj",mwd:"dmw",mwj:"vaj",mya:"my",myd:"aog",myt:"mry",nad:"xny",nau:"na",nav:"nv",nbf:"nru",nbl:"nr",nbx:"ekc",ncp:"kdz",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nln:"azd",nlr:"nrk",nno:"nn",nns:"nbr",nnx:"ngv","no-bok":"nb","no-bokmal":"nb","no-nyn":"nn","no-nynorsk":"nn",nob:"nb",noo:"dtd",nor:"no",npi:"ne",nts:"pij",nxu:"bpp",nya:"ny",oci:"oc",ojg:"oj",oji:"oj",ori:"or",orm:"om",ory:"or",oss:"os",oun:"vaj",pan:"pa",pbu:"ps",pcr:"adx",per:"fa",pes:"fa",pli:"pi",plt:"mg",pmc:"huw",pmu:"phr",pnb:"lah",pol:"pl",por:"pt",ppa:"bfy",ppr:"lcq",prs:"fa-AF",pry:"prt",pus:"ps",puz:"pub",que:"qu",quz:"qu",rmr:"emx",rmy:"rom",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sap:"aqt",sca:"hle",scc:"sr",scr:"hr",sgl:"isk","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-BR":"bzs","sgn-CH-DE":"sgg","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsi","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs",sh:"sr-Latn",sin:"si",skk:"oyb",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",spy:"kln",sqi:"sq",src:"sc",srd:"sc",srp:"sr",ssw:"ss",sul:"sgd",sum:"ulw",sun:"su",swa:"sw",swc:"sw-CD",swe:"sv",swh:"sw",tah:"ty",tam:"ta",tat:"tt",tdu:"dtp",tel:"te",tgg:"bjp",tgk:"tg",tgl:"fil",tha:"th",thc:"tpo",thw:"ola",thx:"oyb",tib:"bo",tid:"itd",tie:"ras",tir:"ti",tkk:"twm",tl:"fil",tlw:"weo",tmp:"tyj",tne:"kak",tnf:"fa-AF",ton:"to",tsf:"taj",tsn:"tn",tso:"ts",ttq:"tmh",tuk:"tk",tur:"tr",tw:"ak",twi:"ak",uig:"ug",ukr:"uk",umu:"del","und-aaland":"und-AX","und-arevela":"und","und-arevmda":"und","und-bokmal":"und","und-hakka":"und","und-hepburn-heploc":"und-alalc97","und-lojban":"und","und-nynorsk":"und","und-saaho":"und","und-xiang":"und",unp:"wro",uok:"ema",urd:"ur",uzb:"uz",uzn:"uz",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wgw:"wgb",wit:"nol",wiw:"nwo",wln:"wa",wol:"wo",xba:"cax",xho:"xh",xia:"acn",xkh:"waw",xpe:"kpe",xrq:"dmw",xsj:"suj",xsl:"den",ybd:"rki",ydd:"yi",yen:"ynq",yid:"yi",yiy:"yrm",yma:"lrr",ymt:"mtm",yor:"yo",yos:"zom",yuu:"yug",zai:"zap","zh-cmn":"zh","zh-cmn-Hans":"zh-Hans","zh-cmn-Hant":"zh-Hant","zh-gan":"gan","zh-guoyu":"zh","zh-hakka":"hak","zh-min":"nan-x-zh-min","zh-min-nan":"nan","zh-wuu":"wuu","zh-xiang":"hsn","zh-yue":"yue",zha:"za",zho:"zh",zir:"scv",zsm:"ms",zul:"zu",zyb:"za"},t.territoryAlias={100:"BG",104:"MM",108:"BI",112:"BY",116:"KH",120:"CM",124:"CA",132:"CV",136:"KY",140:"CF",144:"LK",148:"TD",152:"CL",156:"CN",158:"TW",162:"CX",166:"CC",170:"CO",172:"RU AM AZ BY GE KG KZ MD TJ TM UA UZ",174:"KM",175:"YT",178:"CG",180:"CD",184:"CK",188:"CR",191:"HR",192:"CU",196:"CY",200:"CZ SK",203:"CZ",204:"BJ",208:"DK",212:"DM",214:"DO",218:"EC",222:"SV",226:"GQ",230:"ET",231:"ET",232:"ER",233:"EE",234:"FO",238:"FK",239:"GS",242:"FJ",246:"FI",248:"AX",249:"FR",250:"FR",254:"GF",258:"PF",260:"TF",262:"DJ",266:"GA",268:"GE",270:"GM",275:"PS",276:"DE",278:"DE",280:"DE",288:"GH",292:"GI",296:"KI",300:"GR",304:"GL",308:"GD",312:"GP",316:"GU",320:"GT",324:"GN",328:"GY",332:"HT",334:"HM",336:"VA",340:"HN",344:"HK",348:"HU",352:"IS",356:"IN",360:"ID",364:"IR",368:"IQ",372:"IE",376:"IL",380:"IT",384:"CI",388:"JM",392:"JP",398:"KZ",400:"JO",404:"KE",408:"KP",410:"KR",414:"KW",417:"KG",418:"LA",422:"LB",426:"LS",428:"LV",430:"LR",434:"LY",438:"LI",440:"LT",442:"LU",446:"MO",450:"MG",454:"MW",458:"MY",462:"MV",466:"ML",470:"MT",474:"MQ",478:"MR",480:"MU",484:"MX",492:"MC",496:"MN",498:"MD",499:"ME",500:"MS",504:"MA",508:"MZ",512:"OM",516:"NA",520:"NR",524:"NP",528:"NL",530:"CW SX BQ",531:"CW",532:"CW SX BQ",533:"AW",534:"SX",535:"BQ",536:"SA IQ",540:"NC",548:"VU",554:"NZ",558:"NI",562:"NE",566:"NG",570:"NU",574:"NF",578:"NO",580:"MP",581:"UM",582:"FM MH MP PW",583:"FM",584:"MH",585:"PW",586:"PK",591:"PA",598:"PG",600:"PY",604:"PE",608:"PH",612:"PN",616:"PL",620:"PT",624:"GW",626:"TL",630:"PR",634:"QA",638:"RE",642:"RO",643:"RU",646:"RW",652:"BL",654:"SH",659:"KN",660:"AI",662:"LC",663:"MF",666:"PM",670:"VC",674:"SM",678:"ST",682:"SA",686:"SN",688:"RS",690:"SC",694:"SL",702:"SG",703:"SK",704:"VN",705:"SI",706:"SO",710:"ZA",716:"ZW",720:"YE",724:"ES",728:"SS",729:"SD",732:"EH",736:"SD",740:"SR",744:"SJ",748:"SZ",752:"SE",756:"CH",760:"SY",762:"TJ",764:"TH",768:"TG",772:"TK",776:"TO",780:"TT",784:"AE",788:"TN",792:"TR",795:"TM",796:"TC",798:"TV",800:"UG",804:"UA",807:"MK",810:"RU AM AZ BY EE GE KZ KG LV LT MD TJ TM UA UZ",818:"EG",826:"GB",830:"JE GG",831:"GG",832:"JE",833:"IM",834:"TZ",840:"US",850:"VI",854:"BF",858:"UY",860:"UZ",862:"VE",876:"WF",882:"WS",886:"YE",887:"YE",890:"RS ME SI HR MK BA",891:"RS ME",894:"ZM",958:"AA",959:"QM",960:"QN",962:"QP",963:"QQ",964:"QR",965:"QS",966:"QT",967:"EU",968:"QV",969:"QW",970:"QX",971:"QY",972:"QZ",973:"XA",974:"XB",975:"XC",976:"XD",977:"XE",978:"XF",979:"XG",980:"XH",981:"XI",982:"XJ",983:"XK",984:"XL",985:"XM",986:"XN",987:"XO",988:"XP",989:"XQ",990:"XR",991:"XS",992:"XT",993:"XU",994:"XV",995:"XW",996:"XX",997:"XY",998:"XZ",999:"ZZ","004":"AF","008":"AL","010":"AQ","012":"DZ","016":"AS","020":"AD","024":"AO","028":"AG","031":"AZ","032":"AR","036":"AU","040":"AT","044":"BS","048":"BH","050":"BD","051":"AM","052":"BB","056":"BE","060":"BM","062":"034 143","064":"BT","068":"BO","070":"BA","072":"BW","074":"BV","076":"BR","084":"BZ","086":"IO","090":"SB","092":"VG","096":"BN",AAA:"AA",ABW:"AW",AFG:"AF",AGO:"AO",AIA:"AI",ALA:"AX",ALB:"AL",AN:"CW SX BQ",AND:"AD",ANT:"CW SX BQ",ARE:"AE",ARG:"AR",ARM:"AM",ASC:"AC",ASM:"AS",ATA:"AQ",ATF:"TF",ATG:"AG",AUS:"AU",AUT:"AT",AZE:"AZ",BDI:"BI",BEL:"BE",BEN:"BJ",BES:"BQ",BFA:"BF",BGD:"BD",BGR:"BG",BHR:"BH",BHS:"BS",BIH:"BA",BLM:"BL",BLR:"BY",BLZ:"BZ",BMU:"BM",BOL:"BO",BRA:"BR",BRB:"BB",BRN:"BN",BTN:"BT",BU:"MM",BUR:"MM",BVT:"BV",BWA:"BW",CAF:"CF",CAN:"CA",CCK:"CC",CHE:"CH",CHL:"CL",CHN:"CN",CIV:"CI",CMR:"CM",COD:"CD",COG:"CG",COK:"CK",COL:"CO",COM:"KM",CPT:"CP",CPV:"CV",CRI:"CR",CS:"RS ME",CT:"KI",CUB:"CU",CUW:"CW",CXR:"CX",CYM:"KY",CYP:"CY",CZE:"CZ",DD:"DE",DDR:"DE",DEU:"DE",DGA:"DG",DJI:"DJ",DMA:"DM",DNK:"DK",DOM:"DO",DY:"BJ",DZA:"DZ",ECU:"EC",EGY:"EG",ERI:"ER",ESH:"EH",ESP:"ES",EST:"EE",ETH:"ET",FIN:"FI",FJI:"FJ",FLK:"FK",FQ:"AQ TF",FRA:"FR",FRO:"FO",FSM:"FM",FX:"FR",FXX:"FR",GAB:"GA",GBR:"GB",GEO:"GE",GGY:"GG",GHA:"GH",GIB:"GI",GIN:"GN",GLP:"GP",GMB:"GM",GNB:"GW",GNQ:"GQ",GRC:"GR",GRD:"GD",GRL:"GL",GTM:"GT",GUF:"GF",GUM:"GU",GUY:"GY",HKG:"HK",HMD:"HM",HND:"HN",HRV:"HR",HTI:"HT",HUN:"HU",HV:"BF",IDN:"ID",IMN:"IM",IND:"IN",IOT:"IO",IRL:"IE",IRN:"IR",IRQ:"IQ",ISL:"IS",ISR:"IL",ITA:"IT",JAM:"JM",JEY:"JE",JOR:"JO",JPN:"JP",JT:"UM",KAZ:"KZ",KEN:"KE",KGZ:"KG",KHM:"KH",KIR:"KI",KNA:"KN",KOR:"KR",KWT:"KW",LAO:"LA",LBN:"LB",LBR:"LR",LBY:"LY",LCA:"LC",LIE:"LI",LKA:"LK",LSO:"LS",LTU:"LT",LUX:"LU",LVA:"LV",MAC:"MO",MAF:"MF",MAR:"MA",MCO:"MC",MDA:"MD",MDG:"MG",MDV:"MV",MEX:"MX",MHL:"MH",MI:"UM",MKD:"MK",MLI:"ML",MLT:"MT",MMR:"MM",MNE:"ME",MNG:"MN",MNP:"MP",MOZ:"MZ",MRT:"MR",MSR:"MS",MTQ:"MQ",MUS:"MU",MWI:"MW",MYS:"MY",MYT:"YT",NAM:"NA",NCL:"NC",NER:"NE",NFK:"NF",NGA:"NG",NH:"VU",NIC:"NI",NIU:"NU",NLD:"NL",NOR:"NO",NPL:"NP",NQ:"AQ",NRU:"NR",NT:"SA IQ",NTZ:"SA IQ",NZL:"NZ",OMN:"OM",PAK:"PK",PAN:"PA",PC:"FM MH MP PW",PCN:"PN",PER:"PE",PHL:"PH",PLW:"PW",PNG:"PG",POL:"PL",PRI:"PR",PRK:"KP",PRT:"PT",PRY:"PY",PSE:"PS",PU:"UM",PYF:"PF",PZ:"PA",QAT:"QA",QMM:"QM",QNN:"QN",QPP:"QP",QQQ:"QQ",QRR:"QR",QSS:"QS",QTT:"QT",QU:"EU",QUU:"EU",QVV:"QV",QWW:"QW",QXX:"QX",QYY:"QY",QZZ:"QZ",REU:"RE",RH:"ZW",ROU:"RO",RUS:"RU",RWA:"RW",SAU:"SA",SCG:"RS ME",SDN:"SD",SEN:"SN",SGP:"SG",SGS:"GS",SHN:"SH",SJM:"SJ",SLB:"SB",SLE:"SL",SLV:"SV",SMR:"SM",SOM:"SO",SPM:"PM",SRB:"RS",SSD:"SS",STP:"ST",SU:"RU AM AZ BY EE GE KZ KG LV LT MD TJ TM UA UZ",SUN:"RU AM AZ BY EE GE KZ KG LV LT MD TJ TM UA UZ",SUR:"SR",SVK:"SK",SVN:"SI",SWE:"SE",SWZ:"SZ",SXM:"SX",SYC:"SC",SYR:"SY",TAA:"TA",TCA:"TC",TCD:"TD",TGO:"TG",THA:"TH",TJK:"TJ",TKL:"TK",TKM:"TM",TLS:"TL",TMP:"TL",TON:"TO",TP:"TL",TTO:"TT",TUN:"TN",TUR:"TR",TUV:"TV",TWN:"TW",TZA:"TZ",UGA:"UG",UK:"GB",UKR:"UA",UMI:"UM",URY:"UY",USA:"US",UZB:"UZ",VAT:"VA",VCT:"VC",VD:"VN",VEN:"VE",VGB:"VG",VIR:"VI",VNM:"VN",VUT:"VU",WK:"UM",WLF:"WF",WSM:"WS",XAA:"XA",XBB:"XB",XCC:"XC",XDD:"XD",XEE:"XE",XFF:"XF",XGG:"XG",XHH:"XH",XII:"XI",XJJ:"XJ",XKK:"XK",XLL:"XL",XMM:"XM",XNN:"XN",XOO:"XO",XPP:"XP",XQQ:"XQ",XRR:"XR",XSS:"XS",XTT:"XT",XUU:"XU",XVV:"XV",XWW:"XW",XXX:"XX",XYY:"XY",XZZ:"XZ",YD:"YE",YEM:"YE",YMD:"YE",YU:"RS ME",YUG:"RS ME",ZAF:"ZA",ZAR:"CD",ZMB:"ZM",ZR:"CD",ZWE:"ZW",ZZZ:"ZZ"},t.scriptAlias={Qaai:"Zinh"},t.variantAlias={heploc:"alalc97",polytoni:"polyton"}},51520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canonicalizeUnicodeLocaleId=t.canonicalizeUnicodeLanguageId=void 0;var n=r(97582),i=r(86865),o=r(24773),a=r(37376),s=r(18213);function c(e){for(var t={},r=[],n=0,i=e;n<i.length;n++){var o=i[n];o[0]in t||(t[o[0]]=1,o[1]&&"true"!==o[1]?r.push([o[0].toLowerCase(),o[1].toLowerCase()]):r.push([o[0].toLowerCase()]))}return r.sort(l)}function l(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}function u(e,t){return e.type<t.type?-1:e.type>t.type?1:0}function p(e,t){for(var r=(0,n.__spreadArray)([],e,!0),i=0,o=t;i<o.length;i++){var a=o[i];e.indexOf(a)<0&&r.push(a)}return r}function d(e){var t=e;if(e.variants.length)for(var r="",n=0,c=e.variants;n<c.length;n++){var l=c[n];if(r=i.languageAlias[(0,s.emitUnicodeLanguageId)({lang:e.lang,variants:[l]})]){t={lang:(h=(0,o.parseUnicodeLanguageId)(r.split(o.SEPARATOR))).lang,script:t.script||h.script,region:t.region||h.region,variants:p(t.variants,h.variants)};break}}if(t.script&&t.region){var u=i.languageAlias[(0,s.emitUnicodeLanguageId)({lang:t.lang,script:t.script,region:t.region,variants:[]})];if(u)t={lang:(h=(0,o.parseUnicodeLanguageId)(u.split(o.SEPARATOR))).lang,script:h.script,region:h.region,variants:t.variants}}if(t.region){var d=i.languageAlias[(0,s.emitUnicodeLanguageId)({lang:t.lang,region:t.region,variants:[]})];if(d)t={lang:(h=(0,o.parseUnicodeLanguageId)(d.split(o.SEPARATOR))).lang,script:t.script||h.script,region:h.region,variants:t.variants}}var h,f=i.languageAlias[(0,s.emitUnicodeLanguageId)({lang:t.lang,variants:[]})];f&&(t={lang:(h=(0,o.parseUnicodeLanguageId)(f.split(o.SEPARATOR))).lang,script:t.script||h.script,region:t.region||h.region,variants:t.variants});if(t.region){var m=t.region.toUpperCase(),g=i.territoryAlias[m],v=void 0;if(g){var y=g.split(" ");v=y[0];var b=a.likelySubtags[(0,s.emitUnicodeLanguageId)({lang:t.lang,script:t.script,variants:[]})];if(b){var _=(0,o.parseUnicodeLanguageId)(b.split(o.SEPARATOR)).region;_&&y.indexOf(_)>-1&&(v=_)}}v&&(t.region=v),t.region=t.region.toUpperCase()}if(t.script&&(t.script=t.script[0].toUpperCase()+t.script.slice(1).toLowerCase(),i.scriptAlias[t.script]&&(t.script=i.scriptAlias[t.script])),t.variants.length){for(var E=0;E<t.variants.length;E++){l=t.variants[E].toLowerCase();if(i.variantAlias[l]){var w=i.variantAlias[l];(0,o.isUnicodeVariantSubtag)(w)?t.variants[E]=w:(0,o.isUnicodeLanguageSubtag)(w)&&(t.lang=w)}}t.variants.sort()}return t}t.canonicalizeUnicodeLanguageId=d,t.canonicalizeUnicodeLocaleId=function(e){if(e.lang=d(e.lang),e.extensions){for(var t=0,r=e.extensions;t<r.length;t++){var n=r[t];switch(n.type){case"u":n.keywords=c(n.keywords),n.attributes&&(n.attributes=(i=n.attributes,Object.keys(i.reduce((function(e,t){return e[t.toLowerCase()]=1,e}),{})).sort()));break;case"t":n.lang&&(n.lang=d(n.lang)),n.fields=c(n.fields);break;default:n.value=n.value.toLowerCase()}}e.extensions.sort(u)}var i;return e}},18213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emitUnicodeLocaleId=t.emitUnicodeLanguageId=void 0;var n=r(97582);function i(e){return e?(0,n.__spreadArray)([e.lang,e.script,e.region],e.variants||[],!0).filter(Boolean).join("-"):""}t.emitUnicodeLanguageId=i,t.emitUnicodeLocaleId=function(e){for(var t=e.lang,r=e.extensions,o=[i(t)],a=0,s=r;a<s.length;a++){var c=s[a];switch(o.push(c.type),c.type){case"u":o.push.apply(o,(0,n.__spreadArray)((0,n.__spreadArray)([],c.attributes,!1),c.keywords.reduce((function(e,t){return e.concat(t)}),[]),!1));break;case"t":o.push.apply(o,(0,n.__spreadArray)([i(c.lang)],c.fields.reduce((function(e,t){return e.concat(t)}),[]),!1));break;default:o.push(c.value)}}return o.filter(Boolean).join("-")}},37376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.likelySubtags=void 0,t.likelySubtags={aa:"aa-Latn-ET",aai:"aai-Latn-ZZ",aak:"aak-Latn-ZZ",aau:"aau-Latn-ZZ",ab:"ab-Cyrl-GE",abi:"abi-Latn-ZZ",abq:"abq-Cyrl-ZZ",abr:"abr-Latn-GH",abt:"abt-Latn-ZZ",aby:"aby-Latn-ZZ",acd:"acd-Latn-ZZ",ace:"ace-Latn-ID",ach:"ach-Latn-UG",ada:"ada-Latn-GH",ade:"ade-Latn-ZZ",adj:"adj-Latn-ZZ",adp:"adp-Tibt-BT",ady:"ady-Cyrl-RU",adz:"adz-Latn-ZZ",ae:"ae-Avst-IR",aeb:"aeb-Arab-TN",aey:"aey-Latn-ZZ",af:"af-Latn-ZA",agc:"agc-Latn-ZZ",agd:"agd-Latn-ZZ",agg:"agg-Latn-ZZ",agm:"agm-Latn-ZZ",ago:"ago-Latn-ZZ",agq:"agq-Latn-CM",aha:"aha-Latn-ZZ",ahl:"ahl-Latn-ZZ",aho:"aho-Ahom-IN",ajg:"ajg-Latn-ZZ",ak:"ak-Latn-GH",akk:"akk-Xsux-IQ",ala:"ala-Latn-ZZ",ali:"ali-Latn-ZZ",aln:"aln-Latn-XK",alt:"alt-Cyrl-RU",am:"am-Ethi-ET",amm:"amm-Latn-ZZ",amn:"amn-Latn-ZZ",amo:"amo-Latn-NG",amp:"amp-Latn-ZZ",an:"an-Latn-ES",anc:"anc-Latn-ZZ",ank:"ank-Latn-ZZ",ann:"ann-Latn-ZZ",any:"any-Latn-ZZ",aoj:"aoj-Latn-ZZ",aom:"aom-Latn-ZZ",aoz:"aoz-Latn-ID",apc:"apc-Arab-ZZ",apd:"apd-Arab-TG",ape:"ape-Latn-ZZ",apr:"apr-Latn-ZZ",aps:"aps-Latn-ZZ",apz:"apz-Latn-ZZ",ar:"ar-Arab-EG",arc:"arc-Armi-IR","arc-Nbat":"arc-Nbat-JO","arc-Palm":"arc-Palm-SY",arh:"arh-Latn-ZZ",arn:"arn-Latn-CL",aro:"aro-Latn-BO",arq:"arq-Arab-DZ",ars:"ars-Arab-SA",ary:"ary-Arab-MA",arz:"arz-Arab-EG",as:"as-Beng-IN",asa:"asa-Latn-TZ",ase:"ase-Sgnw-US",asg:"asg-Latn-ZZ",aso:"aso-Latn-ZZ",ast:"ast-Latn-ES",ata:"ata-Latn-ZZ",atg:"atg-Latn-ZZ",atj:"atj-Latn-CA",auy:"auy-Latn-ZZ",av:"av-Cyrl-RU",avl:"avl-Arab-ZZ",avn:"avn-Latn-ZZ",avt:"avt-Latn-ZZ",avu:"avu-Latn-ZZ",awa:"awa-Deva-IN",awb:"awb-Latn-ZZ",awo:"awo-Latn-ZZ",awx:"awx-Latn-ZZ",ay:"ay-Latn-BO",ayb:"ayb-Latn-ZZ",az:"az-Latn-AZ","az-Arab":"az-Arab-IR","az-IQ":"az-Arab-IQ","az-IR":"az-Arab-IR","az-RU":"az-Cyrl-RU",ba:"ba-Cyrl-RU",bal:"bal-Arab-PK",ban:"ban-Latn-ID",bap:"bap-Deva-NP",bar:"bar-Latn-AT",bas:"bas-Latn-CM",bav:"bav-Latn-ZZ",bax:"bax-Bamu-CM",bba:"bba-Latn-ZZ",bbb:"bbb-Latn-ZZ",bbc:"bbc-Latn-ID",bbd:"bbd-Latn-ZZ",bbj:"bbj-Latn-CM",bbp:"bbp-Latn-ZZ",bbr:"bbr-Latn-ZZ",bcf:"bcf-Latn-ZZ",bch:"bch-Latn-ZZ",bci:"bci-Latn-CI",bcm:"bcm-Latn-ZZ",bcn:"bcn-Latn-ZZ",bco:"bco-Latn-ZZ",bcq:"bcq-Ethi-ZZ",bcu:"bcu-Latn-ZZ",bdd:"bdd-Latn-ZZ",be:"be-Cyrl-BY",bef:"bef-Latn-ZZ",beh:"beh-Latn-ZZ",bej:"bej-Arab-SD",bem:"bem-Latn-ZM",bet:"bet-Latn-ZZ",bew:"bew-Latn-ID",bex:"bex-Latn-ZZ",bez:"bez-Latn-TZ",bfd:"bfd-Latn-CM",bfq:"bfq-Taml-IN",bft:"bft-Arab-PK",bfy:"bfy-Deva-IN",bg:"bg-Cyrl-BG",bgc:"bgc-Deva-IN",bgn:"bgn-Arab-PK",bgx:"bgx-Grek-TR",bhb:"bhb-Deva-IN",bhg:"bhg-Latn-ZZ",bhi:"bhi-Deva-IN",bhl:"bhl-Latn-ZZ",bho:"bho-Deva-IN",bhy:"bhy-Latn-ZZ",bi:"bi-Latn-VU",bib:"bib-Latn-ZZ",big:"big-Latn-ZZ",bik:"bik-Latn-PH",bim:"bim-Latn-ZZ",bin:"bin-Latn-NG",bio:"bio-Latn-ZZ",biq:"biq-Latn-ZZ",bjh:"bjh-Latn-ZZ",bji:"bji-Ethi-ZZ",bjj:"bjj-Deva-IN",bjn:"bjn-Latn-ID",bjo:"bjo-Latn-ZZ",bjr:"bjr-Latn-ZZ",bjt:"bjt-Latn-SN",bjz:"bjz-Latn-ZZ",bkc:"bkc-Latn-ZZ",bkm:"bkm-Latn-CM",bkq:"bkq-Latn-ZZ",bku:"bku-Latn-PH",bkv:"bkv-Latn-ZZ",blt:"blt-Tavt-VN",bm:"bm-Latn-ML",bmh:"bmh-Latn-ZZ",bmk:"bmk-Latn-ZZ",bmq:"bmq-Latn-ML",bmu:"bmu-Latn-ZZ",bn:"bn-Beng-BD",bng:"bng-Latn-ZZ",bnm:"bnm-Latn-ZZ",bnp:"bnp-Latn-ZZ",bo:"bo-Tibt-CN",boj:"boj-Latn-ZZ",bom:"bom-Latn-ZZ",bon:"bon-Latn-ZZ",bpy:"bpy-Beng-IN",bqc:"bqc-Latn-ZZ",bqi:"bqi-Arab-IR",bqp:"bqp-Latn-ZZ",bqv:"bqv-Latn-CI",br:"br-Latn-FR",bra:"bra-Deva-IN",brh:"brh-Arab-PK",brx:"brx-Deva-IN",brz:"brz-Latn-ZZ",bs:"bs-Latn-BA",bsj:"bsj-Latn-ZZ",bsq:"bsq-Bass-LR",bss:"bss-Latn-CM",bst:"bst-Ethi-ZZ",bto:"bto-Latn-PH",btt:"btt-Latn-ZZ",btv:"btv-Deva-PK",bua:"bua-Cyrl-RU",buc:"buc-Latn-YT",bud:"bud-Latn-ZZ",bug:"bug-Latn-ID",buk:"buk-Latn-ZZ",bum:"bum-Latn-CM",buo:"buo-Latn-ZZ",bus:"bus-Latn-ZZ",buu:"buu-Latn-ZZ",bvb:"bvb-Latn-GQ",bwd:"bwd-Latn-ZZ",bwr:"bwr-Latn-ZZ",bxh:"bxh-Latn-ZZ",bye:"bye-Latn-ZZ",byn:"byn-Ethi-ER",byr:"byr-Latn-ZZ",bys:"bys-Latn-ZZ",byv:"byv-Latn-CM",byx:"byx-Latn-ZZ",bza:"bza-Latn-ZZ",bze:"bze-Latn-ML",bzf:"bzf-Latn-ZZ",bzh:"bzh-Latn-ZZ",bzw:"bzw-Latn-ZZ",ca:"ca-Latn-ES",cad:"cad-Latn-US",can:"can-Latn-ZZ",cbj:"cbj-Latn-ZZ",cch:"cch-Latn-NG",ccp:"ccp-Cakm-BD",ce:"ce-Cyrl-RU",ceb:"ceb-Latn-PH",cfa:"cfa-Latn-ZZ",cgg:"cgg-Latn-UG",ch:"ch-Latn-GU",chk:"chk-Latn-FM",chm:"chm-Cyrl-RU",cho:"cho-Latn-US",chp:"chp-Latn-CA",chr:"chr-Cher-US",cic:"cic-Latn-US",cja:"cja-Arab-KH",cjm:"cjm-Cham-VN",cjv:"cjv-Latn-ZZ",ckb:"ckb-Arab-IQ",ckl:"ckl-Latn-ZZ",cko:"cko-Latn-ZZ",cky:"cky-Latn-ZZ",cla:"cla-Latn-ZZ",cme:"cme-Latn-ZZ",cmg:"cmg-Soyo-MN",co:"co-Latn-FR",cop:"cop-Copt-EG",cps:"cps-Latn-PH",cr:"cr-Cans-CA",crh:"crh-Cyrl-UA",crj:"crj-Cans-CA",crk:"crk-Cans-CA",crl:"crl-Cans-CA",crm:"crm-Cans-CA",crs:"crs-Latn-SC",cs:"cs-Latn-CZ",csb:"csb-Latn-PL",csw:"csw-Cans-CA",ctd:"ctd-Pauc-MM",cu:"cu-Cyrl-RU","cu-Glag":"cu-Glag-BG",cv:"cv-Cyrl-RU",cy:"cy-Latn-GB",da:"da-Latn-DK",dad:"dad-Latn-ZZ",daf:"daf-Latn-CI",dag:"dag-Latn-ZZ",dah:"dah-Latn-ZZ",dak:"dak-Latn-US",dar:"dar-Cyrl-RU",dav:"dav-Latn-KE",dbd:"dbd-Latn-ZZ",dbq:"dbq-Latn-ZZ",dcc:"dcc-Arab-IN",ddn:"ddn-Latn-ZZ",de:"de-Latn-DE",ded:"ded-Latn-ZZ",den:"den-Latn-CA",dga:"dga-Latn-ZZ",dgh:"dgh-Latn-ZZ",dgi:"dgi-Latn-ZZ",dgl:"dgl-Arab-ZZ",dgr:"dgr-Latn-CA",dgz:"dgz-Latn-ZZ",dia:"dia-Latn-ZZ",dje:"dje-Latn-NE",dmf:"dmf-Medf-NG",dnj:"dnj-Latn-CI",dob:"dob-Latn-ZZ",doi:"doi-Deva-IN",dop:"dop-Latn-ZZ",dow:"dow-Latn-ZZ",drh:"drh-Mong-CN",dri:"dri-Latn-ZZ",drs:"drs-Ethi-ZZ",dsb:"dsb-Latn-DE",dtm:"dtm-Latn-ML",dtp:"dtp-Latn-MY",dts:"dts-Latn-ZZ",dty:"dty-Deva-NP",dua:"dua-Latn-CM",duc:"duc-Latn-ZZ",dud:"dud-Latn-ZZ",dug:"dug-Latn-ZZ",dv:"dv-Thaa-MV",dva:"dva-Latn-ZZ",dww:"dww-Latn-ZZ",dyo:"dyo-Latn-SN",dyu:"dyu-Latn-BF",dz:"dz-Tibt-BT",dzg:"dzg-Latn-ZZ",ebu:"ebu-Latn-KE",ee:"ee-Latn-GH",efi:"efi-Latn-NG",egl:"egl-Latn-IT",egy:"egy-Egyp-EG",eka:"eka-Latn-ZZ",eky:"eky-Kali-MM",el:"el-Grek-GR",ema:"ema-Latn-ZZ",emi:"emi-Latn-ZZ",en:"en-Latn-US","en-Shaw":"en-Shaw-GB",enn:"enn-Latn-ZZ",enq:"enq-Latn-ZZ",eo:"eo-Latn-001",eri:"eri-Latn-ZZ",es:"es-Latn-ES",esg:"esg-Gonm-IN",esu:"esu-Latn-US",et:"et-Latn-EE",etr:"etr-Latn-ZZ",ett:"ett-Ital-IT",etu:"etu-Latn-ZZ",etx:"etx-Latn-ZZ",eu:"eu-Latn-ES",ewo:"ewo-Latn-CM",ext:"ext-Latn-ES",eza:"eza-Latn-ZZ",fa:"fa-Arab-IR",faa:"faa-Latn-ZZ",fab:"fab-Latn-ZZ",fag:"fag-Latn-ZZ",fai:"fai-Latn-ZZ",fan:"fan-Latn-GQ",ff:"ff-Latn-SN","ff-Adlm":"ff-Adlm-GN",ffi:"ffi-Latn-ZZ",ffm:"ffm-Latn-ML",fi:"fi-Latn-FI",fia:"fia-Arab-SD",fil:"fil-Latn-PH",fit:"fit-Latn-SE",fj:"fj-Latn-FJ",flr:"flr-Latn-ZZ",fmp:"fmp-Latn-ZZ",fo:"fo-Latn-FO",fod:"fod-Latn-ZZ",fon:"fon-Latn-BJ",for:"for-Latn-ZZ",fpe:"fpe-Latn-ZZ",fqs:"fqs-Latn-ZZ",fr:"fr-Latn-FR",frc:"frc-Latn-US",frp:"frp-Latn-FR",frr:"frr-Latn-DE",frs:"frs-Latn-DE",fub:"fub-Arab-CM",fud:"fud-Latn-WF",fue:"fue-Latn-ZZ",fuf:"fuf-Latn-GN",fuh:"fuh-Latn-ZZ",fuq:"fuq-Latn-NE",fur:"fur-Latn-IT",fuv:"fuv-Latn-NG",fuy:"fuy-Latn-ZZ",fvr:"fvr-Latn-SD",fy:"fy-Latn-NL",ga:"ga-Latn-IE",gaa:"gaa-Latn-GH",gaf:"gaf-Latn-ZZ",gag:"gag-Latn-MD",gah:"gah-Latn-ZZ",gaj:"gaj-Latn-ZZ",gam:"gam-Latn-ZZ",gan:"gan-Hans-CN",gaw:"gaw-Latn-ZZ",gay:"gay-Latn-ID",gba:"gba-Latn-ZZ",gbf:"gbf-Latn-ZZ",gbm:"gbm-Deva-IN",gby:"gby-Latn-ZZ",gbz:"gbz-Arab-IR",gcr:"gcr-Latn-GF",gd:"gd-Latn-GB",gde:"gde-Latn-ZZ",gdn:"gdn-Latn-ZZ",gdr:"gdr-Latn-ZZ",geb:"geb-Latn-ZZ",gej:"gej-Latn-ZZ",gel:"gel-Latn-ZZ",gez:"gez-Ethi-ET",gfk:"gfk-Latn-ZZ",ggn:"ggn-Deva-NP",ghs:"ghs-Latn-ZZ",gil:"gil-Latn-KI",gim:"gim-Latn-ZZ",gjk:"gjk-Arab-PK",gjn:"gjn-Latn-ZZ",gju:"gju-Arab-PK",gkn:"gkn-Latn-ZZ",gkp:"gkp-Latn-ZZ",gl:"gl-Latn-ES",glk:"glk-Arab-IR",gmm:"gmm-Latn-ZZ",gmv:"gmv-Ethi-ZZ",gn:"gn-Latn-PY",gnd:"gnd-Latn-ZZ",gng:"gng-Latn-ZZ",god:"god-Latn-ZZ",gof:"gof-Ethi-ZZ",goi:"goi-Latn-ZZ",gom:"gom-Deva-IN",gon:"gon-Telu-IN",gor:"gor-Latn-ID",gos:"gos-Latn-NL",got:"got-Goth-UA",grb:"grb-Latn-ZZ",grc:"grc-Cprt-CY","grc-Linb":"grc-Linb-GR",grt:"grt-Beng-IN",grw:"grw-Latn-ZZ",gsw:"gsw-Latn-CH",gu:"gu-Gujr-IN",gub:"gub-Latn-BR",guc:"guc-Latn-CO",gud:"gud-Latn-ZZ",gur:"gur-Latn-GH",guw:"guw-Latn-ZZ",gux:"gux-Latn-ZZ",guz:"guz-Latn-KE",gv:"gv-Latn-IM",gvf:"gvf-Latn-ZZ",gvr:"gvr-Deva-NP",gvs:"gvs-Latn-ZZ",gwc:"gwc-Arab-ZZ",gwi:"gwi-Latn-CA",gwt:"gwt-Arab-ZZ",gyi:"gyi-Latn-ZZ",ha:"ha-Latn-NG","ha-CM":"ha-Arab-CM","ha-SD":"ha-Arab-SD",hag:"hag-Latn-ZZ",hak:"hak-Hans-CN",ham:"ham-Latn-ZZ",haw:"haw-Latn-US",haz:"haz-Arab-AF",hbb:"hbb-Latn-ZZ",hdy:"hdy-Ethi-ZZ",he:"he-Hebr-IL",hhy:"hhy-Latn-ZZ",hi:"hi-Deva-IN",hia:"hia-Latn-ZZ",hif:"hif-Latn-FJ",hig:"hig-Latn-ZZ",hih:"hih-Latn-ZZ",hil:"hil-Latn-PH",hla:"hla-Latn-ZZ",hlu:"hlu-Hluw-TR",hmd:"hmd-Plrd-CN",hmt:"hmt-Latn-ZZ",hnd:"hnd-Arab-PK",hne:"hne-Deva-IN",hnj:"hnj-Hmng-LA",hnn:"hnn-Latn-PH",hno:"hno-Arab-PK",ho:"ho-Latn-PG",hoc:"hoc-Deva-IN",hoj:"hoj-Deva-IN",hot:"hot-Latn-ZZ",hr:"hr-Latn-HR",hsb:"hsb-Latn-DE",hsn:"hsn-Hans-CN",ht:"ht-Latn-HT",hu:"hu-Latn-HU",hui:"hui-Latn-ZZ",hy:"hy-Armn-AM",hz:"hz-Latn-NA",ia:"ia-Latn-001",ian:"ian-Latn-ZZ",iar:"iar-Latn-ZZ",iba:"iba-Latn-MY",ibb:"ibb-Latn-NG",iby:"iby-Latn-ZZ",ica:"ica-Latn-ZZ",ich:"ich-Latn-ZZ",id:"id-Latn-ID",idd:"idd-Latn-ZZ",idi:"idi-Latn-ZZ",idu:"idu-Latn-ZZ",ife:"ife-Latn-TG",ig:"ig-Latn-NG",igb:"igb-Latn-ZZ",ige:"ige-Latn-ZZ",ii:"ii-Yiii-CN",ijj:"ijj-Latn-ZZ",ik:"ik-Latn-US",ikk:"ikk-Latn-ZZ",ikt:"ikt-Latn-CA",ikw:"ikw-Latn-ZZ",ikx:"ikx-Latn-ZZ",ilo:"ilo-Latn-PH",imo:"imo-Latn-ZZ",in:"in-Latn-ID",inh:"inh-Cyrl-RU",io:"io-Latn-001",iou:"iou-Latn-ZZ",iri:"iri-Latn-ZZ",is:"is-Latn-IS",it:"it-Latn-IT",iu:"iu-Cans-CA",iw:"iw-Hebr-IL",iwm:"iwm-Latn-ZZ",iws:"iws-Latn-ZZ",izh:"izh-Latn-RU",izi:"izi-Latn-ZZ",ja:"ja-Jpan-JP",jab:"jab-Latn-ZZ",jam:"jam-Latn-JM",jar:"jar-Latn-ZZ",jbo:"jbo-Latn-001",jbu:"jbu-Latn-ZZ",jen:"jen-Latn-ZZ",jgk:"jgk-Latn-ZZ",jgo:"jgo-Latn-CM",ji:"ji-Hebr-UA",jib:"jib-Latn-ZZ",jmc:"jmc-Latn-TZ",jml:"jml-Deva-NP",jra:"jra-Latn-ZZ",jut:"jut-Latn-DK",jv:"jv-Latn-ID",jw:"jw-Latn-ID",ka:"ka-Geor-GE",kaa:"kaa-Cyrl-UZ",kab:"kab-Latn-DZ",kac:"kac-Latn-MM",kad:"kad-Latn-ZZ",kai:"kai-Latn-ZZ",kaj:"kaj-Latn-NG",kam:"kam-Latn-KE",kao:"kao-Latn-ML",kbd:"kbd-Cyrl-RU",kbm:"kbm-Latn-ZZ",kbp:"kbp-Latn-ZZ",kbq:"kbq-Latn-ZZ",kbx:"kbx-Latn-ZZ",kby:"kby-Arab-NE",kcg:"kcg-Latn-NG",kck:"kck-Latn-ZW",kcl:"kcl-Latn-ZZ",kct:"kct-Latn-ZZ",kde:"kde-Latn-TZ",kdh:"kdh-Arab-TG",kdl:"kdl-Latn-ZZ",kdt:"kdt-Thai-TH",kea:"kea-Latn-CV",ken:"ken-Latn-CM",kez:"kez-Latn-ZZ",kfo:"kfo-Latn-CI",kfr:"kfr-Deva-IN",kfy:"kfy-Deva-IN",kg:"kg-Latn-CD",kge:"kge-Latn-ID",kgf:"kgf-Latn-ZZ",kgp:"kgp-Latn-BR",kha:"kha-Latn-IN",khb:"khb-Talu-CN",khn:"khn-Deva-IN",khq:"khq-Latn-ML",khs:"khs-Latn-ZZ",kht:"kht-Mymr-IN",khw:"khw-Arab-PK",khz:"khz-Latn-ZZ",ki:"ki-Latn-KE",kij:"kij-Latn-ZZ",kiu:"kiu-Latn-TR",kiw:"kiw-Latn-ZZ",kj:"kj-Latn-NA",kjd:"kjd-Latn-ZZ",kjg:"kjg-Laoo-LA",kjs:"kjs-Latn-ZZ",kjy:"kjy-Latn-ZZ",kk:"kk-Cyrl-KZ","kk-AF":"kk-Arab-AF","kk-Arab":"kk-Arab-CN","kk-CN":"kk-Arab-CN","kk-IR":"kk-Arab-IR","kk-MN":"kk-Arab-MN",kkc:"kkc-Latn-ZZ",kkj:"kkj-Latn-CM",kl:"kl-Latn-GL",kln:"kln-Latn-KE",klq:"klq-Latn-ZZ",klt:"klt-Latn-ZZ",klx:"klx-Latn-ZZ",km:"km-Khmr-KH",kmb:"kmb-Latn-AO",kmh:"kmh-Latn-ZZ",kmo:"kmo-Latn-ZZ",kms:"kms-Latn-ZZ",kmu:"kmu-Latn-ZZ",kmw:"kmw-Latn-ZZ",kn:"kn-Knda-IN",knf:"knf-Latn-GW",knp:"knp-Latn-ZZ",ko:"ko-Kore-KR",koi:"koi-Cyrl-RU",kok:"kok-Deva-IN",kol:"kol-Latn-ZZ",kos:"kos-Latn-FM",koz:"koz-Latn-ZZ",kpe:"kpe-Latn-LR",kpf:"kpf-Latn-ZZ",kpo:"kpo-Latn-ZZ",kpr:"kpr-Latn-ZZ",kpx:"kpx-Latn-ZZ",kqb:"kqb-Latn-ZZ",kqf:"kqf-Latn-ZZ",kqs:"kqs-Latn-ZZ",kqy:"kqy-Ethi-ZZ",kr:"kr-Latn-ZZ",krc:"krc-Cyrl-RU",kri:"kri-Latn-SL",krj:"krj-Latn-PH",krl:"krl-Latn-RU",krs:"krs-Latn-ZZ",kru:"kru-Deva-IN",ks:"ks-Arab-IN",ksb:"ksb-Latn-TZ",ksd:"ksd-Latn-ZZ",ksf:"ksf-Latn-CM",ksh:"ksh-Latn-DE",ksj:"ksj-Latn-ZZ",ksr:"ksr-Latn-ZZ",ktb:"ktb-Ethi-ZZ",ktm:"ktm-Latn-ZZ",kto:"kto-Latn-ZZ",ktr:"ktr-Latn-MY",ku:"ku-Latn-TR","ku-Arab":"ku-Arab-IQ","ku-LB":"ku-Arab-LB","ku-Yezi":"ku-Yezi-GE",kub:"kub-Latn-ZZ",kud:"kud-Latn-ZZ",kue:"kue-Latn-ZZ",kuj:"kuj-Latn-ZZ",kum:"kum-Cyrl-RU",kun:"kun-Latn-ZZ",kup:"kup-Latn-ZZ",kus:"kus-Latn-ZZ",kv:"kv-Cyrl-RU",kvg:"kvg-Latn-ZZ",kvr:"kvr-Latn-ID",kvx:"kvx-Arab-PK",kw:"kw-Latn-GB",kwj:"kwj-Latn-ZZ",kwo:"kwo-Latn-ZZ",kwq:"kwq-Latn-ZZ",kxa:"kxa-Latn-ZZ",kxc:"kxc-Ethi-ZZ",kxe:"kxe-Latn-ZZ",kxl:"kxl-Deva-IN",kxm:"kxm-Thai-TH",kxp:"kxp-Arab-PK",kxw:"kxw-Latn-ZZ",kxz:"kxz-Latn-ZZ",ky:"ky-Cyrl-KG","ky-Arab":"ky-Arab-CN","ky-CN":"ky-Arab-CN","ky-Latn":"ky-Latn-TR","ky-TR":"ky-Latn-TR",kye:"kye-Latn-ZZ",kyx:"kyx-Latn-ZZ",kzh:"kzh-Arab-ZZ",kzj:"kzj-Latn-MY",kzr:"kzr-Latn-ZZ",kzt:"kzt-Latn-MY",la:"la-Latn-VA",lab:"lab-Lina-GR",lad:"lad-Hebr-IL",lag:"lag-Latn-TZ",lah:"lah-Arab-PK",laj:"laj-Latn-UG",las:"las-Latn-ZZ",lb:"lb-Latn-LU",lbe:"lbe-Cyrl-RU",lbu:"lbu-Latn-ZZ",lbw:"lbw-Latn-ID",lcm:"lcm-Latn-ZZ",lcp:"lcp-Thai-CN",ldb:"ldb-Latn-ZZ",led:"led-Latn-ZZ",lee:"lee-Latn-ZZ",lem:"lem-Latn-ZZ",lep:"lep-Lepc-IN",leq:"leq-Latn-ZZ",leu:"leu-Latn-ZZ",lez:"lez-Cyrl-RU",lg:"lg-Latn-UG",lgg:"lgg-Latn-ZZ",li:"li-Latn-NL",lia:"lia-Latn-ZZ",lid:"lid-Latn-ZZ",lif:"lif-Deva-NP","lif-Limb":"lif-Limb-IN",lig:"lig-Latn-ZZ",lih:"lih-Latn-ZZ",lij:"lij-Latn-IT",lis:"lis-Lisu-CN",ljp:"ljp-Latn-ID",lki:"lki-Arab-IR",lkt:"lkt-Latn-US",lle:"lle-Latn-ZZ",lln:"lln-Latn-ZZ",lmn:"lmn-Telu-IN",lmo:"lmo-Latn-IT",lmp:"lmp-Latn-ZZ",ln:"ln-Latn-CD",lns:"lns-Latn-ZZ",lnu:"lnu-Latn-ZZ",lo:"lo-Laoo-LA",loj:"loj-Latn-ZZ",lok:"lok-Latn-ZZ",lol:"lol-Latn-CD",lor:"lor-Latn-ZZ",los:"los-Latn-ZZ",loz:"loz-Latn-ZM",lrc:"lrc-Arab-IR",lt:"lt-Latn-LT",ltg:"ltg-Latn-LV",lu:"lu-Latn-CD",lua:"lua-Latn-CD",luo:"luo-Latn-KE",luy:"luy-Latn-KE",luz:"luz-Arab-IR",lv:"lv-Latn-LV",lwl:"lwl-Thai-TH",lzh:"lzh-Hans-CN",lzz:"lzz-Latn-TR",mad:"mad-Latn-ID",maf:"maf-Latn-CM",mag:"mag-Deva-IN",mai:"mai-Deva-IN",mak:"mak-Latn-ID",man:"man-Latn-GM","man-GN":"man-Nkoo-GN","man-Nkoo":"man-Nkoo-GN",mas:"mas-Latn-KE",maw:"maw-Latn-ZZ",maz:"maz-Latn-MX",mbh:"mbh-Latn-ZZ",mbo:"mbo-Latn-ZZ",mbq:"mbq-Latn-ZZ",mbu:"mbu-Latn-ZZ",mbw:"mbw-Latn-ZZ",mci:"mci-Latn-ZZ",mcp:"mcp-Latn-ZZ",mcq:"mcq-Latn-ZZ",mcr:"mcr-Latn-ZZ",mcu:"mcu-Latn-ZZ",mda:"mda-Latn-ZZ",mde:"mde-Arab-ZZ",mdf:"mdf-Cyrl-RU",mdh:"mdh-Latn-PH",mdj:"mdj-Latn-ZZ",mdr:"mdr-Latn-ID",mdx:"mdx-Ethi-ZZ",med:"med-Latn-ZZ",mee:"mee-Latn-ZZ",mek:"mek-Latn-ZZ",men:"men-Latn-SL",mer:"mer-Latn-KE",met:"met-Latn-ZZ",meu:"meu-Latn-ZZ",mfa:"mfa-Arab-TH",mfe:"mfe-Latn-MU",mfn:"mfn-Latn-ZZ",mfo:"mfo-Latn-ZZ",mfq:"mfq-Latn-ZZ",mg:"mg-Latn-MG",mgh:"mgh-Latn-MZ",mgl:"mgl-Latn-ZZ",mgo:"mgo-Latn-CM",mgp:"mgp-Deva-NP",mgy:"mgy-Latn-TZ",mh:"mh-Latn-MH",mhi:"mhi-Latn-ZZ",mhl:"mhl-Latn-ZZ",mi:"mi-Latn-NZ",mif:"mif-Latn-ZZ",min:"min-Latn-ID",miw:"miw-Latn-ZZ",mk:"mk-Cyrl-MK",mki:"mki-Arab-ZZ",mkl:"mkl-Latn-ZZ",mkp:"mkp-Latn-ZZ",mkw:"mkw-Latn-ZZ",ml:"ml-Mlym-IN",mle:"mle-Latn-ZZ",mlp:"mlp-Latn-ZZ",mls:"mls-Latn-SD",mmo:"mmo-Latn-ZZ",mmu:"mmu-Latn-ZZ",mmx:"mmx-Latn-ZZ",mn:"mn-Cyrl-MN","mn-CN":"mn-Mong-CN","mn-Mong":"mn-Mong-CN",mna:"mna-Latn-ZZ",mnf:"mnf-Latn-ZZ",mni:"mni-Beng-IN",mnw:"mnw-Mymr-MM",mo:"mo-Latn-RO",moa:"moa-Latn-ZZ",moe:"moe-Latn-CA",moh:"moh-Latn-CA",mos:"mos-Latn-BF",mox:"mox-Latn-ZZ",mpp:"mpp-Latn-ZZ",mps:"mps-Latn-ZZ",mpt:"mpt-Latn-ZZ",mpx:"mpx-Latn-ZZ",mql:"mql-Latn-ZZ",mr:"mr-Deva-IN",mrd:"mrd-Deva-NP",mrj:"mrj-Cyrl-RU",mro:"mro-Mroo-BD",ms:"ms-Latn-MY","ms-CC":"ms-Arab-CC",mt:"mt-Latn-MT",mtc:"mtc-Latn-ZZ",mtf:"mtf-Latn-ZZ",mti:"mti-Latn-ZZ",mtr:"mtr-Deva-IN",mua:"mua-Latn-CM",mur:"mur-Latn-ZZ",mus:"mus-Latn-US",mva:"mva-Latn-ZZ",mvn:"mvn-Latn-ZZ",mvy:"mvy-Arab-PK",mwk:"mwk-Latn-ML",mwr:"mwr-Deva-IN",mwv:"mwv-Latn-ID",mww:"mww-Hmnp-US",mxc:"mxc-Latn-ZW",mxm:"mxm-Latn-ZZ",my:"my-Mymr-MM",myk:"myk-Latn-ZZ",mym:"mym-Ethi-ZZ",myv:"myv-Cyrl-RU",myw:"myw-Latn-ZZ",myx:"myx-Latn-UG",myz:"myz-Mand-IR",mzk:"mzk-Latn-ZZ",mzm:"mzm-Latn-ZZ",mzn:"mzn-Arab-IR",mzp:"mzp-Latn-ZZ",mzw:"mzw-Latn-ZZ",mzz:"mzz-Latn-ZZ",na:"na-Latn-NR",nac:"nac-Latn-ZZ",naf:"naf-Latn-ZZ",nak:"nak-Latn-ZZ",nan:"nan-Hans-CN",nap:"nap-Latn-IT",naq:"naq-Latn-NA",nas:"nas-Latn-ZZ",nb:"nb-Latn-NO",nca:"nca-Latn-ZZ",nce:"nce-Latn-ZZ",ncf:"ncf-Latn-ZZ",nch:"nch-Latn-MX",nco:"nco-Latn-ZZ",ncu:"ncu-Latn-ZZ",nd:"nd-Latn-ZW",ndc:"ndc-Latn-MZ",nds:"nds-Latn-DE",ne:"ne-Deva-NP",neb:"neb-Latn-ZZ",new:"new-Deva-NP",nex:"nex-Latn-ZZ",nfr:"nfr-Latn-ZZ",ng:"ng-Latn-NA",nga:"nga-Latn-ZZ",ngb:"ngb-Latn-ZZ",ngl:"ngl-Latn-MZ",nhb:"nhb-Latn-ZZ",nhe:"nhe-Latn-MX",nhw:"nhw-Latn-MX",nif:"nif-Latn-ZZ",nii:"nii-Latn-ZZ",nij:"nij-Latn-ID",nin:"nin-Latn-ZZ",niu:"niu-Latn-NU",niy:"niy-Latn-ZZ",niz:"niz-Latn-ZZ",njo:"njo-Latn-IN",nkg:"nkg-Latn-ZZ",nko:"nko-Latn-ZZ",nl:"nl-Latn-NL",nmg:"nmg-Latn-CM",nmz:"nmz-Latn-ZZ",nn:"nn-Latn-NO",nnf:"nnf-Latn-ZZ",nnh:"nnh-Latn-CM",nnk:"nnk-Latn-ZZ",nnm:"nnm-Latn-ZZ",nnp:"nnp-Wcho-IN",no:"no-Latn-NO",nod:"nod-Lana-TH",noe:"noe-Deva-IN",non:"non-Runr-SE",nop:"nop-Latn-ZZ",nou:"nou-Latn-ZZ",nqo:"nqo-Nkoo-GN",nr:"nr-Latn-ZA",nrb:"nrb-Latn-ZZ",nsk:"nsk-Cans-CA",nsn:"nsn-Latn-ZZ",nso:"nso-Latn-ZA",nss:"nss-Latn-ZZ",ntm:"ntm-Latn-ZZ",ntr:"ntr-Latn-ZZ",nui:"nui-Latn-ZZ",nup:"nup-Latn-ZZ",nus:"nus-Latn-SS",nuv:"nuv-Latn-ZZ",nux:"nux-Latn-ZZ",nv:"nv-Latn-US",nwb:"nwb-Latn-ZZ",nxq:"nxq-Latn-CN",nxr:"nxr-Latn-ZZ",ny:"ny-Latn-MW",nym:"nym-Latn-TZ",nyn:"nyn-Latn-UG",nzi:"nzi-Latn-GH",oc:"oc-Latn-FR",ogc:"ogc-Latn-ZZ",okr:"okr-Latn-ZZ",okv:"okv-Latn-ZZ",om:"om-Latn-ET",ong:"ong-Latn-ZZ",onn:"onn-Latn-ZZ",ons:"ons-Latn-ZZ",opm:"opm-Latn-ZZ",or:"or-Orya-IN",oro:"oro-Latn-ZZ",oru:"oru-Arab-ZZ",os:"os-Cyrl-GE",osa:"osa-Osge-US",ota:"ota-Arab-ZZ",otk:"otk-Orkh-MN",ozm:"ozm-Latn-ZZ",pa:"pa-Guru-IN","pa-Arab":"pa-Arab-PK","pa-PK":"pa-Arab-PK",pag:"pag-Latn-PH",pal:"pal-Phli-IR","pal-Phlp":"pal-Phlp-CN",pam:"pam-Latn-PH",pap:"pap-Latn-AW",pau:"pau-Latn-PW",pbi:"pbi-Latn-ZZ",pcd:"pcd-Latn-FR",pcm:"pcm-Latn-NG",pdc:"pdc-Latn-US",pdt:"pdt-Latn-CA",ped:"ped-Latn-ZZ",peo:"peo-Xpeo-IR",pex:"pex-Latn-ZZ",pfl:"pfl-Latn-DE",phl:"phl-Arab-ZZ",phn:"phn-Phnx-LB",pil:"pil-Latn-ZZ",pip:"pip-Latn-ZZ",pka:"pka-Brah-IN",pko:"pko-Latn-KE",pl:"pl-Latn-PL",pla:"pla-Latn-ZZ",pms:"pms-Latn-IT",png:"png-Latn-ZZ",pnn:"pnn-Latn-ZZ",pnt:"pnt-Grek-GR",pon:"pon-Latn-FM",ppa:"ppa-Deva-IN",ppo:"ppo-Latn-ZZ",pra:"pra-Khar-PK",prd:"prd-Arab-IR",prg:"prg-Latn-001",ps:"ps-Arab-AF",pss:"pss-Latn-ZZ",pt:"pt-Latn-BR",ptp:"ptp-Latn-ZZ",puu:"puu-Latn-GA",pwa:"pwa-Latn-ZZ",qu:"qu-Latn-PE",quc:"quc-Latn-GT",qug:"qug-Latn-EC",rai:"rai-Latn-ZZ",raj:"raj-Deva-IN",rao:"rao-Latn-ZZ",rcf:"rcf-Latn-RE",rej:"rej-Latn-ID",rel:"rel-Latn-ZZ",res:"res-Latn-ZZ",rgn:"rgn-Latn-IT",rhg:"rhg-Arab-MM",ria:"ria-Latn-IN",rif:"rif-Tfng-MA","rif-NL":"rif-Latn-NL",rjs:"rjs-Deva-NP",rkt:"rkt-Beng-BD",rm:"rm-Latn-CH",rmf:"rmf-Latn-FI",rmo:"rmo-Latn-CH",rmt:"rmt-Arab-IR",rmu:"rmu-Latn-SE",rn:"rn-Latn-BI",rna:"rna-Latn-ZZ",rng:"rng-Latn-MZ",ro:"ro-Latn-RO",rob:"rob-Latn-ID",rof:"rof-Latn-TZ",roo:"roo-Latn-ZZ",rro:"rro-Latn-ZZ",rtm:"rtm-Latn-FJ",ru:"ru-Cyrl-RU",rue:"rue-Cyrl-UA",rug:"rug-Latn-SB",rw:"rw-Latn-RW",rwk:"rwk-Latn-TZ",rwo:"rwo-Latn-ZZ",ryu:"ryu-Kana-JP",sa:"sa-Deva-IN",saf:"saf-Latn-GH",sah:"sah-Cyrl-RU",saq:"saq-Latn-KE",sas:"sas-Latn-ID",sat:"sat-Olck-IN",sav:"sav-Latn-SN",saz:"saz-Saur-IN",sba:"sba-Latn-ZZ",sbe:"sbe-Latn-ZZ",sbp:"sbp-Latn-TZ",sc:"sc-Latn-IT",sck:"sck-Deva-IN",scl:"scl-Arab-ZZ",scn:"scn-Latn-IT",sco:"sco-Latn-GB",scs:"scs-Latn-CA",sd:"sd-Arab-PK","sd-Deva":"sd-Deva-IN","sd-Khoj":"sd-Khoj-IN","sd-Sind":"sd-Sind-IN",sdc:"sdc-Latn-IT",sdh:"sdh-Arab-IR",se:"se-Latn-NO",sef:"sef-Latn-CI",seh:"seh-Latn-MZ",sei:"sei-Latn-MX",ses:"ses-Latn-ML",sg:"sg-Latn-CF",sga:"sga-Ogam-IE",sgs:"sgs-Latn-LT",sgw:"sgw-Ethi-ZZ",sgz:"sgz-Latn-ZZ",shi:"shi-Tfng-MA",shk:"shk-Latn-ZZ",shn:"shn-Mymr-MM",shu:"shu-Arab-ZZ",si:"si-Sinh-LK",sid:"sid-Latn-ET",sig:"sig-Latn-ZZ",sil:"sil-Latn-ZZ",sim:"sim-Latn-ZZ",sjr:"sjr-Latn-ZZ",sk:"sk-Latn-SK",skc:"skc-Latn-ZZ",skr:"skr-Arab-PK",sks:"sks-Latn-ZZ",sl:"sl-Latn-SI",sld:"sld-Latn-ZZ",sli:"sli-Latn-PL",sll:"sll-Latn-ZZ",sly:"sly-Latn-ID",sm:"sm-Latn-WS",sma:"sma-Latn-SE",smj:"smj-Latn-SE",smn:"smn-Latn-FI",smp:"smp-Samr-IL",smq:"smq-Latn-ZZ",sms:"sms-Latn-FI",sn:"sn-Latn-ZW",snc:"snc-Latn-ZZ",snk:"snk-Latn-ML",snp:"snp-Latn-ZZ",snx:"snx-Latn-ZZ",sny:"sny-Latn-ZZ",so:"so-Latn-SO",sog:"sog-Sogd-UZ",sok:"sok-Latn-ZZ",soq:"soq-Latn-ZZ",sou:"sou-Thai-TH",soy:"soy-Latn-ZZ",spd:"spd-Latn-ZZ",spl:"spl-Latn-ZZ",sps:"sps-Latn-ZZ",sq:"sq-Latn-AL",sr:"sr-Cyrl-RS","sr-ME":"sr-Latn-ME","sr-RO":"sr-Latn-RO","sr-RU":"sr-Latn-RU","sr-TR":"sr-Latn-TR",srb:"srb-Sora-IN",srn:"srn-Latn-SR",srr:"srr-Latn-SN",srx:"srx-Deva-IN",ss:"ss-Latn-ZA",ssd:"ssd-Latn-ZZ",ssg:"ssg-Latn-ZZ",ssy:"ssy-Latn-ER",st:"st-Latn-ZA",stk:"stk-Latn-ZZ",stq:"stq-Latn-DE",su:"su-Latn-ID",sua:"sua-Latn-ZZ",sue:"sue-Latn-ZZ",suk:"suk-Latn-TZ",sur:"sur-Latn-ZZ",sus:"sus-Latn-GN",sv:"sv-Latn-SE",sw:"sw-Latn-TZ",swb:"swb-Arab-YT",swc:"swc-Latn-CD",swg:"swg-Latn-DE",swp:"swp-Latn-ZZ",swv:"swv-Deva-IN",sxn:"sxn-Latn-ID",sxw:"sxw-Latn-ZZ",syl:"syl-Beng-BD",syr:"syr-Syrc-IQ",szl:"szl-Latn-PL",ta:"ta-Taml-IN",taj:"taj-Deva-NP",tal:"tal-Latn-ZZ",tan:"tan-Latn-ZZ",taq:"taq-Latn-ZZ",tbc:"tbc-Latn-ZZ",tbd:"tbd-Latn-ZZ",tbf:"tbf-Latn-ZZ",tbg:"tbg-Latn-ZZ",tbo:"tbo-Latn-ZZ",tbw:"tbw-Latn-PH",tbz:"tbz-Latn-ZZ",tci:"tci-Latn-ZZ",tcy:"tcy-Knda-IN",tdd:"tdd-Tale-CN",tdg:"tdg-Deva-NP",tdh:"tdh-Deva-NP",tdu:"tdu-Latn-MY",te:"te-Telu-IN",ted:"ted-Latn-ZZ",tem:"tem-Latn-SL",teo:"teo-Latn-UG",tet:"tet-Latn-TL",tfi:"tfi-Latn-ZZ",tg:"tg-Cyrl-TJ","tg-Arab":"tg-Arab-PK","tg-PK":"tg-Arab-PK",tgc:"tgc-Latn-ZZ",tgo:"tgo-Latn-ZZ",tgu:"tgu-Latn-ZZ",th:"th-Thai-TH",thl:"thl-Deva-NP",thq:"thq-Deva-NP",thr:"thr-Deva-NP",ti:"ti-Ethi-ET",tif:"tif-Latn-ZZ",tig:"tig-Ethi-ER",tik:"tik-Latn-ZZ",tim:"tim-Latn-ZZ",tio:"tio-Latn-ZZ",tiv:"tiv-Latn-NG",tk:"tk-Latn-TM",tkl:"tkl-Latn-TK",tkr:"tkr-Latn-AZ",tkt:"tkt-Deva-NP",tl:"tl-Latn-PH",tlf:"tlf-Latn-ZZ",tlx:"tlx-Latn-ZZ",tly:"tly-Latn-AZ",tmh:"tmh-Latn-NE",tmy:"tmy-Latn-ZZ",tn:"tn-Latn-ZA",tnh:"tnh-Latn-ZZ",to:"to-Latn-TO",tof:"tof-Latn-ZZ",tog:"tog-Latn-MW",toq:"toq-Latn-ZZ",tpi:"tpi-Latn-PG",tpm:"tpm-Latn-ZZ",tpz:"tpz-Latn-ZZ",tqo:"tqo-Latn-ZZ",tr:"tr-Latn-TR",tru:"tru-Latn-TR",trv:"trv-Latn-TW",trw:"trw-Arab-PK",ts:"ts-Latn-ZA",tsd:"tsd-Grek-GR",tsf:"tsf-Deva-NP",tsg:"tsg-Latn-PH",tsj:"tsj-Tibt-BT",tsw:"tsw-Latn-ZZ",tt:"tt-Cyrl-RU",ttd:"ttd-Latn-ZZ",tte:"tte-Latn-ZZ",ttj:"ttj-Latn-UG",ttr:"ttr-Latn-ZZ",tts:"tts-Thai-TH",ttt:"ttt-Latn-AZ",tuh:"tuh-Latn-ZZ",tul:"tul-Latn-ZZ",tum:"tum-Latn-MW",tuq:"tuq-Latn-ZZ",tvd:"tvd-Latn-ZZ",tvl:"tvl-Latn-TV",tvu:"tvu-Latn-ZZ",twh:"twh-Latn-ZZ",twq:"twq-Latn-NE",txg:"txg-Tang-CN",ty:"ty-Latn-PF",tya:"tya-Latn-ZZ",tyv:"tyv-Cyrl-RU",tzm:"tzm-Latn-MA",ubu:"ubu-Latn-ZZ",udi:"udi-Aghb-RU",udm:"udm-Cyrl-RU",ug:"ug-Arab-CN","ug-Cyrl":"ug-Cyrl-KZ","ug-KZ":"ug-Cyrl-KZ","ug-MN":"ug-Cyrl-MN",uga:"uga-Ugar-SY",uk:"uk-Cyrl-UA",uli:"uli-Latn-FM",umb:"umb-Latn-AO",und:"en-Latn-US","und-002":"en-Latn-NG","und-003":"en-Latn-US","und-005":"pt-Latn-BR","und-009":"en-Latn-AU","und-011":"en-Latn-NG","und-013":"es-Latn-MX","und-014":"sw-Latn-TZ","und-015":"ar-Arab-EG","und-017":"sw-Latn-CD","und-018":"en-Latn-ZA","und-019":"en-Latn-US","und-021":"en-Latn-US","und-029":"es-Latn-CU","und-030":"zh-Hans-CN","und-034":"hi-Deva-IN","und-035":"id-Latn-ID","und-039":"it-Latn-IT","und-053":"en-Latn-AU","und-054":"en-Latn-PG","und-057":"en-Latn-GU","und-061":"sm-Latn-WS","und-142":"zh-Hans-CN","und-143":"uz-Latn-UZ","und-145":"ar-Arab-SA","und-150":"ru-Cyrl-RU","und-151":"ru-Cyrl-RU","und-154":"en-Latn-GB","und-155":"de-Latn-DE","und-202":"en-Latn-NG","und-419":"es-Latn-419","und-AD":"ca-Latn-AD","und-Adlm":"ff-Adlm-GN","und-AE":"ar-Arab-AE","und-AF":"fa-Arab-AF","und-Aghb":"udi-Aghb-RU","und-Ahom":"aho-Ahom-IN","und-AL":"sq-Latn-AL","und-AM":"hy-Armn-AM","und-AO":"pt-Latn-AO","und-AQ":"und-Latn-AQ","und-AR":"es-Latn-AR","und-Arab":"ar-Arab-EG","und-Arab-CC":"ms-Arab-CC","und-Arab-CN":"ug-Arab-CN","und-Arab-GB":"ks-Arab-GB","und-Arab-ID":"ms-Arab-ID","und-Arab-IN":"ur-Arab-IN","und-Arab-KH":"cja-Arab-KH","und-Arab-MM":"rhg-Arab-MM","und-Arab-MN":"kk-Arab-MN","und-Arab-MU":"ur-Arab-MU","und-Arab-NG":"ha-Arab-NG","und-Arab-PK":"ur-Arab-PK","und-Arab-TG":"apd-Arab-TG","und-Arab-TH":"mfa-Arab-TH","und-Arab-TJ":"fa-Arab-TJ","und-Arab-TR":"az-Arab-TR","und-Arab-YT":"swb-Arab-YT","und-Armi":"arc-Armi-IR","und-Armn":"hy-Armn-AM","und-AS":"sm-Latn-AS","und-AT":"de-Latn-AT","und-Avst":"ae-Avst-IR","und-AW":"nl-Latn-AW","und-AX":"sv-Latn-AX","und-AZ":"az-Latn-AZ","und-BA":"bs-Latn-BA","und-Bali":"ban-Bali-ID","und-Bamu":"bax-Bamu-CM","und-Bass":"bsq-Bass-LR","und-Batk":"bbc-Batk-ID","und-BD":"bn-Beng-BD","und-BE":"nl-Latn-BE","und-Beng":"bn-Beng-BD","und-BF":"fr-Latn-BF","und-BG":"bg-Cyrl-BG","und-BH":"ar-Arab-BH","und-Bhks":"sa-Bhks-IN","und-BI":"rn-Latn-BI","und-BJ":"fr-Latn-BJ","und-BL":"fr-Latn-BL","und-BN":"ms-Latn-BN","und-BO":"es-Latn-BO","und-Bopo":"zh-Bopo-TW","und-BQ":"pap-Latn-BQ","und-BR":"pt-Latn-BR","und-Brah":"pka-Brah-IN","und-Brai":"fr-Brai-FR","und-BT":"dz-Tibt-BT","und-Bugi":"bug-Bugi-ID","und-Buhd":"bku-Buhd-PH","und-BV":"und-Latn-BV","und-BY":"be-Cyrl-BY","und-Cakm":"ccp-Cakm-BD","und-Cans":"cr-Cans-CA","und-Cari":"xcr-Cari-TR","und-CD":"sw-Latn-CD","und-CF":"fr-Latn-CF","und-CG":"fr-Latn-CG","und-CH":"de-Latn-CH","und-Cham":"cjm-Cham-VN","und-Cher":"chr-Cher-US","und-Chrs":"xco-Chrs-UZ","und-CI":"fr-Latn-CI","und-CL":"es-Latn-CL","und-CM":"fr-Latn-CM","und-CN":"zh-Hans-CN","und-CO":"es-Latn-CO","und-Copt":"cop-Copt-EG","und-CP":"und-Latn-CP","und-Cprt":"grc-Cprt-CY","und-CR":"es-Latn-CR","und-CU":"es-Latn-CU","und-CV":"pt-Latn-CV","und-CW":"pap-Latn-CW","und-CY":"el-Grek-CY","und-Cyrl":"ru-Cyrl-RU","und-Cyrl-AL":"mk-Cyrl-AL","und-Cyrl-BA":"sr-Cyrl-BA","und-Cyrl-GE":"os-Cyrl-GE","und-Cyrl-GR":"mk-Cyrl-GR","und-Cyrl-MD":"uk-Cyrl-MD","und-Cyrl-RO":"bg-Cyrl-RO","und-Cyrl-SK":"uk-Cyrl-SK","und-Cyrl-TR":"kbd-Cyrl-TR","und-Cyrl-XK":"sr-Cyrl-XK","und-CZ":"cs-Latn-CZ","und-DE":"de-Latn-DE","und-Deva":"hi-Deva-IN","und-Deva-BT":"ne-Deva-BT","und-Deva-FJ":"hif-Deva-FJ","und-Deva-MU":"bho-Deva-MU","und-Deva-PK":"btv-Deva-PK","und-Diak":"dv-Diak-MV","und-DJ":"aa-Latn-DJ","und-DK":"da-Latn-DK","und-DO":"es-Latn-DO","und-Dogr":"doi-Dogr-IN","und-Dupl":"fr-Dupl-FR","und-DZ":"ar-Arab-DZ","und-EA":"es-Latn-EA","und-EC":"es-Latn-EC","und-EE":"et-Latn-EE","und-EG":"ar-Arab-EG","und-Egyp":"egy-Egyp-EG","und-EH":"ar-Arab-EH","und-Elba":"sq-Elba-AL","und-Elym":"arc-Elym-IR","und-ER":"ti-Ethi-ER","und-ES":"es-Latn-ES","und-ET":"am-Ethi-ET","und-Ethi":"am-Ethi-ET","und-EU":"en-Latn-IE","und-EZ":"de-Latn-EZ","und-FI":"fi-Latn-FI","und-FO":"fo-Latn-FO","und-FR":"fr-Latn-FR","und-GA":"fr-Latn-GA","und-GE":"ka-Geor-GE","und-Geor":"ka-Geor-GE","und-GF":"fr-Latn-GF","und-GH":"ak-Latn-GH","und-GL":"kl-Latn-GL","und-Glag":"cu-Glag-BG","und-GN":"fr-Latn-GN","und-Gong":"wsg-Gong-IN","und-Gonm":"esg-Gonm-IN","und-Goth":"got-Goth-UA","und-GP":"fr-Latn-GP","und-GQ":"es-Latn-GQ","und-GR":"el-Grek-GR","und-Gran":"sa-Gran-IN","und-Grek":"el-Grek-GR","und-Grek-TR":"bgx-Grek-TR","und-GS":"und-Latn-GS","und-GT":"es-Latn-GT","und-Gujr":"gu-Gujr-IN","und-Guru":"pa-Guru-IN","und-GW":"pt-Latn-GW","und-Hanb":"zh-Hanb-TW","und-Hang":"ko-Hang-KR","und-Hani":"zh-Hani-CN","und-Hano":"hnn-Hano-PH","und-Hans":"zh-Hans-CN","und-Hant":"zh-Hant-TW","und-Hebr":"he-Hebr-IL","und-Hebr-CA":"yi-Hebr-CA","und-Hebr-GB":"yi-Hebr-GB","und-Hebr-SE":"yi-Hebr-SE","und-Hebr-UA":"yi-Hebr-UA","und-Hebr-US":"yi-Hebr-US","und-Hira":"ja-Hira-JP","und-HK":"zh-Hant-HK","und-Hluw":"hlu-Hluw-TR","und-HM":"und-Latn-HM","und-Hmng":"hnj-Hmng-LA","und-Hmnp":"mww-Hmnp-US","und-HN":"es-Latn-HN","und-HR":"hr-Latn-HR","und-HT":"ht-Latn-HT","und-HU":"hu-Latn-HU","und-Hung":"hu-Hung-HU","und-IC":"es-Latn-IC","und-ID":"id-Latn-ID","und-IL":"he-Hebr-IL","und-IN":"hi-Deva-IN","und-IQ":"ar-Arab-IQ","und-IR":"fa-Arab-IR","und-IS":"is-Latn-IS","und-IT":"it-Latn-IT","und-Ital":"ett-Ital-IT","und-Jamo":"ko-Jamo-KR","und-Java":"jv-Java-ID","und-JO":"ar-Arab-JO","und-JP":"ja-Jpan-JP","und-Jpan":"ja-Jpan-JP","und-Kali":"eky-Kali-MM","und-Kana":"ja-Kana-JP","und-KE":"sw-Latn-KE","und-KG":"ky-Cyrl-KG","und-KH":"km-Khmr-KH","und-Khar":"pra-Khar-PK","und-Khmr":"km-Khmr-KH","und-Khoj":"sd-Khoj-IN","und-Kits":"zkt-Kits-CN","und-KM":"ar-Arab-KM","und-Knda":"kn-Knda-IN","und-Kore":"ko-Kore-KR","und-KP":"ko-Kore-KP","und-KR":"ko-Kore-KR","und-Kthi":"bho-Kthi-IN","und-KW":"ar-Arab-KW","und-KZ":"ru-Cyrl-KZ","und-LA":"lo-Laoo-LA","und-Lana":"nod-Lana-TH","und-Laoo":"lo-Laoo-LA","und-Latn-AF":"tk-Latn-AF","und-Latn-AM":"ku-Latn-AM","und-Latn-CN":"za-Latn-CN","und-Latn-CY":"tr-Latn-CY","und-Latn-DZ":"fr-Latn-DZ","und-Latn-ET":"en-Latn-ET","und-Latn-GE":"ku-Latn-GE","und-Latn-IR":"tk-Latn-IR","und-Latn-KM":"fr-Latn-KM","und-Latn-MA":"fr-Latn-MA","und-Latn-MK":"sq-Latn-MK","und-Latn-MM":"kac-Latn-MM","und-Latn-MO":"pt-Latn-MO","und-Latn-MR":"fr-Latn-MR","und-Latn-RU":"krl-Latn-RU","und-Latn-SY":"fr-Latn-SY","und-Latn-TN":"fr-Latn-TN","und-Latn-TW":"trv-Latn-TW","und-Latn-UA":"pl-Latn-UA","und-LB":"ar-Arab-LB","und-Lepc":"lep-Lepc-IN","und-LI":"de-Latn-LI","und-Limb":"lif-Limb-IN","und-Lina":"lab-Lina-GR","und-Linb":"grc-Linb-GR","und-Lisu":"lis-Lisu-CN","und-LK":"si-Sinh-LK","und-LS":"st-Latn-LS","und-LT":"lt-Latn-LT","und-LU":"fr-Latn-LU","und-LV":"lv-Latn-LV","und-LY":"ar-Arab-LY","und-Lyci":"xlc-Lyci-TR","und-Lydi":"xld-Lydi-TR","und-MA":"ar-Arab-MA","und-Mahj":"hi-Mahj-IN","und-Maka":"mak-Maka-ID","und-Mand":"myz-Mand-IR","und-Mani":"xmn-Mani-CN","und-Marc":"bo-Marc-CN","und-MC":"fr-Latn-MC","und-MD":"ro-Latn-MD","und-ME":"sr-Latn-ME","und-Medf":"dmf-Medf-NG","und-Mend":"men-Mend-SL","und-Merc":"xmr-Merc-SD","und-Mero":"xmr-Mero-SD","und-MF":"fr-Latn-MF","und-MG":"mg-Latn-MG","und-MK":"mk-Cyrl-MK","und-ML":"bm-Latn-ML","und-Mlym":"ml-Mlym-IN","und-MM":"my-Mymr-MM","und-MN":"mn-Cyrl-MN","und-MO":"zh-Hant-MO","und-Modi":"mr-Modi-IN","und-Mong":"mn-Mong-CN","und-MQ":"fr-Latn-MQ","und-MR":"ar-Arab-MR","und-Mroo":"mro-Mroo-BD","und-MT":"mt-Latn-MT","und-Mtei":"mni-Mtei-IN","und-MU":"mfe-Latn-MU","und-Mult":"skr-Mult-PK","und-MV":"dv-Thaa-MV","und-MX":"es-Latn-MX","und-MY":"ms-Latn-MY","und-Mymr":"my-Mymr-MM","und-Mymr-IN":"kht-Mymr-IN","und-Mymr-TH":"mnw-Mymr-TH","und-MZ":"pt-Latn-MZ","und-NA":"af-Latn-NA","und-Nand":"sa-Nand-IN","und-Narb":"xna-Narb-SA","und-Nbat":"arc-Nbat-JO","und-NC":"fr-Latn-NC","und-NE":"ha-Latn-NE","und-Newa":"new-Newa-NP","und-NI":"es-Latn-NI","und-Nkoo":"man-Nkoo-GN","und-NL":"nl-Latn-NL","und-NO":"nb-Latn-NO","und-NP":"ne-Deva-NP","und-Nshu":"zhx-Nshu-CN","und-Ogam":"sga-Ogam-IE","und-Olck":"sat-Olck-IN","und-OM":"ar-Arab-OM","und-Orkh":"otk-Orkh-MN","und-Orya":"or-Orya-IN","und-Osge":"osa-Osge-US","und-Osma":"so-Osma-SO","und-PA":"es-Latn-PA","und-Palm":"arc-Palm-SY","und-Pauc":"ctd-Pauc-MM","und-PE":"es-Latn-PE","und-Perm":"kv-Perm-RU","und-PF":"fr-Latn-PF","und-PG":"tpi-Latn-PG","und-PH":"fil-Latn-PH","und-Phag":"lzh-Phag-CN","und-Phli":"pal-Phli-IR","und-Phlp":"pal-Phlp-CN","und-Phnx":"phn-Phnx-LB","und-PK":"ur-Arab-PK","und-PL":"pl-Latn-PL","und-Plrd":"hmd-Plrd-CN","und-PM":"fr-Latn-PM","und-PR":"es-Latn-PR","und-Prti":"xpr-Prti-IR","und-PS":"ar-Arab-PS","und-PT":"pt-Latn-PT","und-PW":"pau-Latn-PW","und-PY":"gn-Latn-PY","und-QA":"ar-Arab-QA","und-QO":"en-Latn-DG","und-RE":"fr-Latn-RE","und-Rjng":"rej-Rjng-ID","und-RO":"ro-Latn-RO","und-Rohg":"rhg-Rohg-MM","und-RS":"sr-Cyrl-RS","und-RU":"ru-Cyrl-RU","und-Runr":"non-Runr-SE","und-RW":"rw-Latn-RW","und-SA":"ar-Arab-SA","und-Samr":"smp-Samr-IL","und-Sarb":"xsa-Sarb-YE","und-Saur":"saz-Saur-IN","und-SC":"fr-Latn-SC","und-SD":"ar-Arab-SD","und-SE":"sv-Latn-SE","und-Sgnw":"ase-Sgnw-US","und-Shaw":"en-Shaw-GB","und-Shrd":"sa-Shrd-IN","und-SI":"sl-Latn-SI","und-Sidd":"sa-Sidd-IN","und-Sind":"sd-Sind-IN","und-Sinh":"si-Sinh-LK","und-SJ":"nb-Latn-SJ","und-SK":"sk-Latn-SK","und-SM":"it-Latn-SM","und-SN":"fr-Latn-SN","und-SO":"so-Latn-SO","und-Sogd":"sog-Sogd-UZ","und-Sogo":"sog-Sogo-UZ","und-Sora":"srb-Sora-IN","und-Soyo":"cmg-Soyo-MN","und-SR":"nl-Latn-SR","und-ST":"pt-Latn-ST","und-Sund":"su-Sund-ID","und-SV":"es-Latn-SV","und-SY":"ar-Arab-SY","und-Sylo":"syl-Sylo-BD","und-Syrc":"syr-Syrc-IQ","und-Tagb":"tbw-Tagb-PH","und-Takr":"doi-Takr-IN","und-Tale":"tdd-Tale-CN","und-Talu":"khb-Talu-CN","und-Taml":"ta-Taml-IN","und-Tang":"txg-Tang-CN","und-Tavt":"blt-Tavt-VN","und-TD":"fr-Latn-TD","und-Telu":"te-Telu-IN","und-TF":"fr-Latn-TF","und-Tfng":"zgh-Tfng-MA","und-TG":"fr-Latn-TG","und-Tglg":"fil-Tglg-PH","und-TH":"th-Thai-TH","und-Thaa":"dv-Thaa-MV","und-Thai":"th-Thai-TH","und-Thai-CN":"lcp-Thai-CN","und-Thai-KH":"kdt-Thai-KH","und-Thai-LA":"kdt-Thai-LA","und-Tibt":"bo-Tibt-CN","und-Tirh":"mai-Tirh-IN","und-TJ":"tg-Cyrl-TJ","und-TK":"tkl-Latn-TK","und-TL":"pt-Latn-TL","und-TM":"tk-Latn-TM","und-TN":"ar-Arab-TN","und-TO":"to-Latn-TO","und-TR":"tr-Latn-TR","und-TV":"tvl-Latn-TV","und-TW":"zh-Hant-TW","und-TZ":"sw-Latn-TZ","und-UA":"uk-Cyrl-UA","und-UG":"sw-Latn-UG","und-Ugar":"uga-Ugar-SY","und-UY":"es-Latn-UY","und-UZ":"uz-Latn-UZ","und-VA":"it-Latn-VA","und-Vaii":"vai-Vaii-LR","und-VE":"es-Latn-VE","und-VN":"vi-Latn-VN","und-VU":"bi-Latn-VU","und-Wara":"hoc-Wara-IN","und-Wcho":"nnp-Wcho-IN","und-WF":"fr-Latn-WF","und-WS":"sm-Latn-WS","und-XK":"sq-Latn-XK","und-Xpeo":"peo-Xpeo-IR","und-Xsux":"akk-Xsux-IQ","und-YE":"ar-Arab-YE","und-Yezi":"ku-Yezi-GE","und-Yiii":"ii-Yiii-CN","und-YT":"fr-Latn-YT","und-Zanb":"cmg-Zanb-MN","und-ZW":"sn-Latn-ZW",unr:"unr-Beng-IN","unr-Deva":"unr-Deva-NP","unr-NP":"unr-Deva-NP",unx:"unx-Beng-IN",uok:"uok-Latn-ZZ",ur:"ur-Arab-PK",uri:"uri-Latn-ZZ",urt:"urt-Latn-ZZ",urw:"urw-Latn-ZZ",usa:"usa-Latn-ZZ",uth:"uth-Latn-ZZ",utr:"utr-Latn-ZZ",uvh:"uvh-Latn-ZZ",uvl:"uvl-Latn-ZZ",uz:"uz-Latn-UZ","uz-AF":"uz-Arab-AF","uz-Arab":"uz-Arab-AF","uz-CN":"uz-Cyrl-CN",vag:"vag-Latn-ZZ",vai:"vai-Vaii-LR",van:"van-Latn-ZZ",ve:"ve-Latn-ZA",vec:"vec-Latn-IT",vep:"vep-Latn-RU",vi:"vi-Latn-VN",vic:"vic-Latn-SX",viv:"viv-Latn-ZZ",vls:"vls-Latn-BE",vmf:"vmf-Latn-DE",vmw:"vmw-Latn-MZ",vo:"vo-Latn-001",vot:"vot-Latn-RU",vro:"vro-Latn-EE",vun:"vun-Latn-TZ",vut:"vut-Latn-ZZ",wa:"wa-Latn-BE",wae:"wae-Latn-CH",waj:"waj-Latn-ZZ",wal:"wal-Ethi-ET",wan:"wan-Latn-ZZ",war:"war-Latn-PH",wbp:"wbp-Latn-AU",wbq:"wbq-Telu-IN",wbr:"wbr-Deva-IN",wci:"wci-Latn-ZZ",wer:"wer-Latn-ZZ",wgi:"wgi-Latn-ZZ",whg:"whg-Latn-ZZ",wib:"wib-Latn-ZZ",wiu:"wiu-Latn-ZZ",wiv:"wiv-Latn-ZZ",wja:"wja-Latn-ZZ",wji:"wji-Latn-ZZ",wls:"wls-Latn-WF",wmo:"wmo-Latn-ZZ",wnc:"wnc-Latn-ZZ",wni:"wni-Arab-KM",wnu:"wnu-Latn-ZZ",wo:"wo-Latn-SN",wob:"wob-Latn-ZZ",wos:"wos-Latn-ZZ",wrs:"wrs-Latn-ZZ",wsg:"wsg-Gong-IN",wsk:"wsk-Latn-ZZ",wtm:"wtm-Deva-IN",wuu:"wuu-Hans-CN",wuv:"wuv-Latn-ZZ",wwa:"wwa-Latn-ZZ",xav:"xav-Latn-BR",xbi:"xbi-Latn-ZZ",xco:"xco-Chrs-UZ",xcr:"xcr-Cari-TR",xes:"xes-Latn-ZZ",xh:"xh-Latn-ZA",xla:"xla-Latn-ZZ",xlc:"xlc-Lyci-TR",xld:"xld-Lydi-TR",xmf:"xmf-Geor-GE",xmn:"xmn-Mani-CN",xmr:"xmr-Merc-SD",xna:"xna-Narb-SA",xnr:"xnr-Deva-IN",xog:"xog-Latn-UG",xon:"xon-Latn-ZZ",xpr:"xpr-Prti-IR",xrb:"xrb-Latn-ZZ",xsa:"xsa-Sarb-YE",xsi:"xsi-Latn-ZZ",xsm:"xsm-Latn-ZZ",xsr:"xsr-Deva-NP",xwe:"xwe-Latn-ZZ",yam:"yam-Latn-ZZ",yao:"yao-Latn-MZ",yap:"yap-Latn-FM",yas:"yas-Latn-ZZ",yat:"yat-Latn-ZZ",yav:"yav-Latn-CM",yay:"yay-Latn-ZZ",yaz:"yaz-Latn-ZZ",yba:"yba-Latn-ZZ",ybb:"ybb-Latn-CM",yby:"yby-Latn-ZZ",yer:"yer-Latn-ZZ",ygr:"ygr-Latn-ZZ",ygw:"ygw-Latn-ZZ",yi:"yi-Hebr-001",yko:"yko-Latn-ZZ",yle:"yle-Latn-ZZ",ylg:"ylg-Latn-ZZ",yll:"yll-Latn-ZZ",yml:"yml-Latn-ZZ",yo:"yo-Latn-NG",yon:"yon-Latn-ZZ",yrb:"yrb-Latn-ZZ",yre:"yre-Latn-ZZ",yrl:"yrl-Latn-BR",yss:"yss-Latn-ZZ",yua:"yua-Latn-MX",yue:"yue-Hant-HK","yue-CN":"yue-Hans-CN","yue-Hans":"yue-Hans-CN",yuj:"yuj-Latn-ZZ",yut:"yut-Latn-ZZ",yuw:"yuw-Latn-ZZ",za:"za-Latn-CN",zag:"zag-Latn-SD",zdj:"zdj-Arab-KM",zea:"zea-Latn-NL",zgh:"zgh-Tfng-MA",zh:"zh-Hans-CN","zh-AU":"zh-Hant-AU","zh-BN":"zh-Hant-BN","zh-Bopo":"zh-Bopo-TW","zh-GB":"zh-Hant-GB","zh-GF":"zh-Hant-GF","zh-Hanb":"zh-Hanb-TW","zh-Hant":"zh-Hant-TW","zh-HK":"zh-Hant-HK","zh-ID":"zh-Hant-ID","zh-MO":"zh-Hant-MO","zh-PA":"zh-Hant-PA","zh-PF":"zh-Hant-PF","zh-PH":"zh-Hant-PH","zh-SR":"zh-Hant-SR","zh-TH":"zh-Hant-TH","zh-TW":"zh-Hant-TW","zh-US":"zh-Hant-US","zh-VN":"zh-Hant-VN",zhx:"zhx-Nshu-CN",zia:"zia-Latn-ZZ",zkt:"zkt-Kits-CN",zlm:"zlm-Latn-TG",zmi:"zmi-Latn-MY",zne:"zne-Latn-ZZ",zu:"zu-Latn-ZA",zza:"zza-Latn-TR"}},24773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnicodeLocaleId=t.parseUnicodeLanguageId=t.isUnicodeVariantSubtag=t.isUnicodeScriptSubtag=t.isUnicodeRegionSubtag=t.isStructurallyValidLanguageTag=t.isUnicodeLanguageSubtag=t.SEPARATOR=void 0;var n=r(97582),i=/^[a-z0-9]{1,8}$/i,o=/^[a-z0-9]{2,8}$/i,a=/^[a-z0-9]{3,8}$/i,s=/^[a-z0-9][a-z]$/i,c=/^[a-z0-9]{3,8}$/i,l=/^[a-z]{4}$/i,u=/^[0-9a-svwyz]$/i,p=/^([a-z]{2}|[0-9]{3})$/i,d=/^([a-z0-9]{5,8}|[0-9][a-z0-9]{3})$/i,h=/^([a-z]{2,3}|[a-z]{5,8})$/i,f=/^[a-z][0-9]$/i;function m(e){return h.test(e)}function g(e){return p.test(e)}function v(e){return l.test(e)}function y(e){return d.test(e)}function b(e){"string"==typeof e&&(e=e.split(t.SEPARATOR));var r,n,i=e.shift();if(!i)throw new RangeError("Missing unicode_language_subtag");if("root"===i)return{lang:"root",variants:[]};if(!m(i))throw new RangeError("Malformed unicode_language_subtag");e.length&&v(e[0])&&(r=e.shift()),e.length&&g(e[0])&&(n=e.shift());for(var o={};e.length&&y(e[0]);){var a=e.shift();if(a in o)throw new RangeError('Duplicate variant "'+a+'"');o[a]=1}return{lang:i,script:r,region:n,variants:Object.keys(o)}}function _(e){for(var t,r=[];e.length&&(t=E(e));)r.push(t);if(r.length)return{type:"u",keywords:r,attributes:[]};for(var n=[];e.length&&a.test(e[0]);)n.push(e.shift());for(;e.length&&(t=E(e));)r.push(t);if(r.length||n.length)return{type:"u",attributes:n,keywords:r};throw new RangeError("Malformed unicode_extension")}function E(e){var r;if(s.test(e[0])){r=e.shift();for(var n=[];e.length&&c.test(e[0]);)n.push(e.shift());var i="";return n.length&&(i=n.join(t.SEPARATOR)),[r,i]}}function w(e){var r;try{r=b(e)}catch(e){}for(var n=[];e.length&&f.test(e[0]);){for(var i=e.shift(),o=[];e.length&&a.test(e[0]);)o.push(e.shift());if(!o.length)throw new RangeError('Missing tvalue for tkey "'+i+'"');n.push([i,o.join(t.SEPARATOR)])}if(n.length)return{type:"t",fields:n,lang:r};throw new RangeError("Malformed transformed_extension")}function L(e){for(var r=[];e.length&&i.test(e[0]);)r.push(e.shift());if(r.length)return{type:"x",value:r.join(t.SEPARATOR)};throw new RangeError("Malformed private_use_extension")}function x(e){for(var r=[];e.length&&o.test(e[0]);)r.push(e.shift());return r.length?r.join(t.SEPARATOR):""}t.SEPARATOR="-",t.isUnicodeLanguageSubtag=m,t.isStructurallyValidLanguageTag=function(e){try{b(e.split(t.SEPARATOR))}catch(e){return!1}return!0},t.isUnicodeRegionSubtag=g,t.isUnicodeScriptSubtag=v,t.isUnicodeVariantSubtag=y,t.parseUnicodeLanguageId=b,t.parseUnicodeLocaleId=function(e){var r=e.split(t.SEPARATOR),i=b(r);return(0,n.__assign)({lang:i},function(e){if(!e.length)return{extensions:[]};var t,r,n,i=[],o={};do{var a=e.shift();switch(a){case"u":case"U":if(t)throw new RangeError("There can only be 1 -u- extension");t=_(e),i.push(t);break;case"t":case"T":if(r)throw new RangeError("There can only be 1 -t- extension");r=w(e),i.push(r);break;case"x":case"X":if(n)throw new RangeError("There can only be 1 -x- extension");n=L(e),i.push(n);break;default:if(!u.test(a))throw new RangeError("Malformed extension type");if(a in o)throw new RangeError("There can only be 1 -"+a+"- extension");var s={type:a,value:x(e)};o[s.type]=s,i.push(s)}}while(e.length);return{extensions:i}}(r))}},26624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},24399:(e,t,r)=>{"use strict";t.oe=t.iN=t.eX=void 0;var n=r(60707);Object.defineProperty(t,"eX",{enumerable:!0,get:function(){return n.Actions}}),Object.defineProperty(t,"iN",{enumerable:!0,get:function(){return n.ElementTypes}}),Object.defineProperty(t,"oe",{enumerable:!0,get:function(){return n.trackingEvent}})},60707: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.errorEvent=t.trackingEvent=t.ElementTypes=t.Actions=void 0;const i=n(r(58620)),o={};t.Actions={click:"click",keyboard:"keyboard",display:"display"};function a(e){return o[e]||(o[e]=new i.default(e)),o[e]}function s(e,t){const r={};return t.forEach(((t,n)=>{Object.keys(t).forEach((i=>{r[`${e}_${i}${n}`]=t[i]}))})),r}t.ElementTypes={button:"button",textbox:"textbox",checkbox:"checkbox",page:"page"},t.trackingEvent=function(e){const{applicationName:t,eventData:r}=e,n={...r};e.attributes&&(n.attributes=function(e){let t={};for(const r in e){const n=e[r];Array.isArray(n)?t={...t,...s(r,n)}:("boolean"==typeof n||"string"==typeof n||"number"==typeof n)&&(t[r]=e[r])}return t}(e.attributes)),e.search&&(n.search=function(e){const t={term:e.term,resultCount:e.resultCount};return e.facets&&(t.facets=e.facets?.map((e=>Array.isArray(e)?e.map((e=>`${e.name}:${e.value}`)):`${e.name}:${e.value}`))),t}(e.search)),a(t).analytics.trackEvent(n)},t.errorEvent=function(e,t,r){a(e).error(t,r)}},5231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(374);class i extends n.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=o.get(this);if("boolean"!=typeof e)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return e}}n.defineEventAttribute(i.prototype,"abort");const o=new WeakMap;Object.defineProperties(i.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(i.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class a{constructor(){s.set(this,function(){const e=Object.create(i.prototype);return n.EventTarget.call(e),o.set(e,!1),e}())}get signal(){return c(this)}abort(){var e;e=c(this),!1===o.get(e)&&(o.set(e,!0),e.dispatchEvent({type:"abort"}))}}const s=new WeakMap;function c(e){const t=s.get(e);if(null==t)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===e?"null":typeof e));return t}Object.defineProperties(a.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(a.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),t.AbortController=a,t.AbortSignal=i,t.default=a,e.exports=a,e.exports.AbortController=e.exports.default=a,e.exports.AbortSignal=i},40627:(e,t,r)=>{"use strict";const n=r(5231),i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:void 0;i&&(void 0===i.AbortController&&(i.AbortController=n.AbortController),void 0===i.AbortSignal&&(i.AbortSignal=n.AbortSignal))},68378:(e,t)=>{"use strict";function r(e){var t=void 0;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof r.value&&Object.defineProperty(e.prototype,t,n(e,t,r))}})),e}function n(e,t,r){var n=r.value;if("function"!=typeof n)throw new Error("@autobind decorator can only be applied to methods not: "+typeof n);var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t))return n;var r=n.bind(this);return i=!0,Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),i=!1,r}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return 1===t.length?r.apply(void 0,t):n.apply(void 0,t)},e.exports=t.default},63627:(e,t,r)=>{e.exports={default:r(90244),__esModule:!0}},93697:(e,t,r)=>{e.exports={default:r(65579),__esModule:!0}},16234:(e,t,r)=>{e.exports={default:r(18449),__esModule:!0}},61194:(e,t,r)=>{e.exports={default:r(32174),__esModule:!0}},14858:(e,t,r)=>{e.exports={default:r(38940),__esModule:!0}},64474:(e,t,r)=>{e.exports={default:r(19214),__esModule:!0}},51629:(e,t,r)=>{e.exports={default:r(10879),__esModule:!0}},71499:(e,t,r)=>{e.exports={default:r(10272),__esModule:!0}},14864:(e,t)=>{"use strict";t.Z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},77810:(e,t,r)=>{"use strict";var n,i=r(16234),o=(n=i)&&n.__esModule?n:{default:n};t.Z=function(){function e(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),(0,o.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},68513:(e,t,r)=>{"use strict";var n,i=r(63627),o=(n=i)&&n.__esModule?n:{default:n};t.Z=o.default||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}},97965:(e,t,r)=>{"use strict";var n=a(r(64474)),i=a(r(93697)),o=a(r(94605));function a(e){return e&&e.__esModule?e:{default:e}}t.Z=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},88771:(e,t)=>{"use strict";t.Z=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}},55e3:(e,t,r)=>{"use strict";var n,i=r(94605),o=(n=i)&&n.__esModule?n:{default:n};t.Z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},94605:(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(71499)),i=a(r(51629)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},90244:(e,t,r)=>{r(33335),e.exports=r(94626).Object.assign},65579:(e,t,r)=>{r(87839);var n=r(94626).Object;e.exports=function(e,t){return n.create(e,t)}},18449:(e,t,r)=>{r(47275);var n=r(94626).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},32174:(e,t,r)=>{r(29946),e.exports=r(94626).Object.getPrototypeOf},38940:(e,t,r)=>{r(6259),e.exports=r(94626).Object.keys},19214:(e,t,r)=>{r(48326),e.exports=r(94626).Object.setPrototypeOf},10879:(e,t,r)=>{r(61505),r(93236),r(33929),r(75702),e.exports=r(94626).Symbol},10272:(e,t,r)=>{r(16773),r(20704),e.exports=r(49442).f("iterator")},27979:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},31392:e=>{e.exports=function(){}},12527:(e,t,r)=>{var n=r(28512);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},54617:(e,t,r)=>{var n=r(34312),i=r(50280),o=r(78235);e.exports=function(e){return function(t,r,a){var s,c=n(t),l=i(c.length),u=o(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},28235:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},94626:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},26160:(e,t,r)=>{var n=r(27979);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},24003:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},46764:(e,t,r)=>{e.exports=!r(24126)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},29762:(e,t,r)=>{var n=r(28512),i=r(6654).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},70614:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},82007:(e,t,r)=>{var n=r(59048),i=r(70350),o=r(66747);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),c=o.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a);return t}},21027:(e,t,r)=>{var n=r(6654),i=r(94626),o=r(26160),a=r(76494),s=r(82375),c=function(e,t,r){var l,u,p,d=e&c.F,h=e&c.G,f=e&c.S,m=e&c.P,g=e&c.B,v=e&c.W,y=h?i:i[t]||(i[t]={}),b=y.prototype,_=h?n:f?n[t]:(n[t]||{}).prototype;for(l in h&&(r=t),r)(u=!d&&_&&void 0!==_[l])&&s(y,l)||(p=u?_[l]:r[l],y[l]=h&&"function"!=typeof _[l]?r[l]:g&&u?o(p,n):v&&_[l]==p?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?o(Function.call,p):p,m&&((y.virtual||(y.virtual={}))[l]=p,e&c.R&&b&&!b[l]&&a(b,l,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},24126:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6654:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},82375:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},76494:(e,t,r)=>{var n=r(85358),i=r(67819);e.exports=r(46764)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},28127:(e,t,r)=>{var n=r(6654).document;e.exports=n&&n.documentElement},21465:(e,t,r)=>{e.exports=!r(46764)&&!r(24126)((function(){return 7!=Object.defineProperty(r(29762)("div"),"a",{get:function(){return 7}}).a}))},6419:(e,t,r)=>{var n=r(28235);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},39449:(e,t,r)=>{var n=r(28235);e.exports=Array.isArray||function(e){return"Array"==n(e)}},28512:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1215:(e,t,r)=>{"use strict";var n=r(66271),i=r(67819),o=r(19426),a={};r(76494)(a,r(40053)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},57384:(e,t,r)=>{"use strict";var n=r(31897),i=r(21027),o=r(44329),a=r(76494),s=r(15180),c=r(1215),l=r(19426),u=r(28092),p=r(40053)("iterator"),d=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,r,g,v,y,b){c(r,t,g);var _,E,w,L=function(e){if(!d&&e in T)return T[e];switch(e){case h:case f:return function(){return new r(this,e)}}return function(){return new r(this,e)}},x=t+" Iterator",S=v==f,O=!1,T=e.prototype,I=T[p]||T["@@iterator"]||v&&T[v],P=I||L(v),C=v?S?L("entries"):P:void 0,A="Array"==t&&T.entries||I;if(A&&(w=u(A.call(new e)))!==Object.prototype&&w.next&&(l(w,x,!0),n||"function"==typeof w[p]||a(w,p,m)),S&&I&&I.name!==f&&(O=!0,P=function(){return I.call(this)}),n&&!b||!d&&!O&&T[p]||a(T,p,P),s[t]=P,s[x]=m,v)if(_={values:S?P:L(f),keys:y?P:L(h),entries:C},b)for(E in _)E in T||o(T,E,_[E]);else i(i.P+i.F*(d||O),t,_);return _}},32598:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},15180:e=>{e.exports={}},31897:e=>{e.exports=!0},52220:(e,t,r)=>{var n=r(79703)("meta"),i=r(28512),o=r(82375),a=r(85358).f,s=0,c=Object.isExtensible||function(){return!0},l=!r(24126)((function(){return c(Object.preventExtensions({}))})),u=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&p.NEED&&c(e)&&!o(e,n)&&u(e),e}}},15837:(e,t,r)=>{"use strict";var n=r(46764),i=r(59048),o=r(70350),a=r(66747),s=r(44232),c=r(6419),l=Object.assign;e.exports=!l||r(24126)((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=l({},e)[r]||Object.keys(l({},t)).join("")!=n}))?function(e,t){for(var r=s(e),l=arguments.length,u=1,p=o.f,d=a.f;l>u;)for(var h,f=c(arguments[u++]),m=p?i(f).concat(p(f)):i(f),g=m.length,v=0;g>v;)h=m[v++],n&&!d.call(f,h)||(r[h]=f[h]);return r}:l},66271:(e,t,r)=>{var n=r(12527),i=r(48959),o=r(70614),a=r(61789)("IE_PROTO"),s=function(){},c=function(){var e,t=r(29762)("iframe"),n=o.length;for(t.style.display="none",r(28127).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c.prototype[o[n]];return c()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=c(),void 0===t?r:i(r,t)}},85358:(e,t,r)=>{var n=r(12527),i=r(21465),o=r(93273),a=Object.defineProperty;t.f=r(46764)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},48959:(e,t,r)=>{var n=r(85358),i=r(12527),o=r(59048);e.exports=r(46764)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},92095:(e,t,r)=>{var n=r(66747),i=r(67819),o=r(34312),a=r(93273),s=r(82375),c=r(21465),l=Object.getOwnPropertyDescriptor;t.f=r(46764)?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},84225:(e,t,r)=>{var n=r(34312),i=r(10215).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},10215:(e,t,r)=>{var n=r(13972),i=r(70614).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},70350:(e,t)=>{t.f=Object.getOwnPropertySymbols},28092:(e,t,r)=>{var n=r(82375),i=r(44232),o=r(61789)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},13972:(e,t,r)=>{var n=r(82375),i=r(34312),o=r(54617)(!1),a=r(61789)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(l,r)||l.push(r));return l}},59048:(e,t,r)=>{var n=r(13972),i=r(70614);e.exports=Object.keys||function(e){return n(e,i)}},66747:(e,t)=>{t.f={}.propertyIsEnumerable},26958:(e,t,r)=>{var n=r(21027),i=r(94626),o=r(24126);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},67819:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},44329:(e,t,r)=>{e.exports=r(76494)},63893:(e,t,r)=>{var n=r(28512),i=r(12527),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(26160)(Function.call,r(92095).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},19426:(e,t,r)=>{var n=r(85358).f,i=r(82375),o=r(40053)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},61789:(e,t,r)=>{var n=r(96221)("keys"),i=r(79703);e.exports=function(e){return n[e]||(n[e]=i(e))}},96221:(e,t,r)=>{var n=r(94626),i=r(6654),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(31897)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},49671:(e,t,r)=>{var n=r(35392),i=r(24003);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},78235:(e,t,r)=>{var n=r(35392),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},35392:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},34312:(e,t,r)=>{var n=r(6419),i=r(24003);e.exports=function(e){return n(i(e))}},50280:(e,t,r)=>{var n=r(35392),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},44232:(e,t,r)=>{var n=r(24003);e.exports=function(e){return Object(n(e))}},93273:(e,t,r)=>{var n=r(28512);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},79703:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},26234:(e,t,r)=>{var n=r(6654),i=r(94626),o=r(31897),a=r(49442),s=r(85358).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},49442:(e,t,r)=>{t.f=r(40053)},40053:(e,t,r)=>{var n=r(96221)("wks"),i=r(79703),o=r(6654).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},4063:(e,t,r)=>{"use strict";var n=r(31392),i=r(32598),o=r(15180),a=r(34312);e.exports=r(57384)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},33335:(e,t,r)=>{var n=r(21027);n(n.S+n.F,"Object",{assign:r(15837)})},87839:(e,t,r)=>{var n=r(21027);n(n.S,"Object",{create:r(66271)})},47275:(e,t,r)=>{var n=r(21027);n(n.S+n.F*!r(46764),"Object",{defineProperty:r(85358).f})},29946:(e,t,r)=>{var n=r(44232),i=r(28092);r(26958)("getPrototypeOf",(function(){return function(e){return i(n(e))}}))},6259:(e,t,r)=>{var n=r(44232),i=r(59048);r(26958)("keys",(function(){return function(e){return i(n(e))}}))},48326:(e,t,r)=>{var n=r(21027);n(n.S,"Object",{setPrototypeOf:r(63893).set})},93236:()=>{},16773:(e,t,r)=>{"use strict";var n=r(49671)(!0);r(57384)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},61505:(e,t,r)=>{"use strict";var n=r(6654),i=r(82375),o=r(46764),a=r(21027),s=r(44329),c=r(52220).KEY,l=r(24126),u=r(96221),p=r(19426),d=r(79703),h=r(40053),f=r(49442),m=r(26234),g=r(82007),v=r(39449),y=r(12527),b=r(28512),_=r(44232),E=r(34312),w=r(93273),L=r(67819),x=r(66271),S=r(84225),O=r(92095),T=r(70350),I=r(85358),P=r(59048),C=O.f,A=I.f,k=S.f,D=n.Symbol,N=n.JSON,R=N&&N.stringify,M=h("_hidden"),j=h("toPrimitive"),Z={}.propertyIsEnumerable,F=u("symbol-registry"),B=u("symbols"),G=u("op-symbols"),U=Object.prototype,z="function"==typeof D&&!!T.f,V=n.QObject,H=!V||!V.prototype||!V.prototype.findChild,Y=o&&l((function(){return 7!=x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=C(U,t);n&&delete U[t],A(e,t,r),n&&e!==U&&A(U,t,n)}:A,W=function(e){var t=B[e]=x(D.prototype);return t._k=e,t},$=z&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},K=function(e,t,r){return e===U&&K(G,t,r),y(e),t=w(t,!0),y(r),i(B,t)?(r.enumerable?(i(e,M)&&e[M][t]&&(e[M][t]=!1),r=x(r,{enumerable:L(0,!1)})):(i(e,M)||A(e,M,L(1,{})),e[M][t]=!0),Y(e,t,r)):A(e,t,r)},q=function(e,t){y(e);for(var r,n=g(t=E(t)),i=0,o=n.length;o>i;)K(e,r=n[i++],t[r]);return e},X=function(e){var t=Z.call(this,e=w(e,!0));return!(this===U&&i(B,e)&&!i(G,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,M)&&this[M][e])||t)},J=function(e,t){if(e=E(e),t=w(t,!0),e!==U||!i(B,t)||i(G,t)){var r=C(e,t);return!r||!i(B,t)||i(e,M)&&e[M][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=k(E(e)),n=[],o=0;r.length>o;)i(B,t=r[o++])||t==M||t==c||n.push(t);return n},ee=function(e){for(var t,r=e===U,n=k(r?G:E(e)),o=[],a=0;n.length>a;)!i(B,t=n[a++])||r&&!i(U,t)||o.push(B[t]);return o};z||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===U&&t.call(G,r),i(this,M)&&i(this[M],e)&&(this[M][e]=!1),Y(this,e,L(1,r))};return o&&H&&Y(U,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",(function(){return this._k})),O.f=J,I.f=K,r(10215).f=S.f=Q,r(66747).f=X,T.f=ee,o&&!r(31897)&&s(U,"propertyIsEnumerable",X,!0),f.f=function(e){return W(h(e))}),a(a.G+a.W+a.F*!z,{Symbol:D});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)h(te[re++]);for(var ne=P(h.store),ie=0;ne.length>ie;)m(ne[ie++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=D(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!z,"Object",{create:function(e,t){return void 0===t?x(e):q(x(e),t)},defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=l((function(){T.f(1)}));a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return T.f(_(e))}}),N&&a(a.S+a.F*(!z||l((function(){var e=D();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))}))),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(b(t)||void 0!==e)&&!$(e))return v(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!$(t))return t}),n[1]=t,R.apply(N,n)}}),D.prototype[j]||r(76494)(D.prototype,j,D.prototype.valueOf),p(D,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},33929:(e,t,r)=>{r(26234)("asyncIterator")},75702:(e,t,r)=>{r(26234)("observable")},20704:(e,t,r)=>{r(4063);for(var n=r(6654),i=r(76494),o=r(15180),a=r(40053)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=n[l],p=u&&u.prototype;p&&!p[a]&&i(p,a,l),o[l]=o.Array}},31615:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=t},64403:(e,t)=>{var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},77447:(e,t,r)=>{"use strict";var n=r(12817),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,a,s,c,l,u=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),l&&document.body.removeChild(l),a()}return u}},67367:(e,t,r)=>{r(19457);var n=r(67290);e.exports=n.Object.values},95831:(e,t,r)=>{r(21682);var n=r(13145);e.exports=n("String","padStart")},89694:(e,t,r)=>{r(66816);var n=r(13145);e.exports=n("String","trimLeft")},66396:(e,t,r)=>{r(52729);var n=r(20127);e.exports=n.f("asyncIterator")},56143:(e,t,r)=>{var n=r(94648);e.exports=n},37460:(e,t,r)=>{var n=r(98518);e.exports=n},25587:(e,t,r)=>{var n=r(50537);e.exports=n},71674:(e,t,r)=>{var n=r(82518);e.exports=n},97676:(e,t,r)=>{var n=r(75277),i=r(28768);e.exports=function(e){if(n(e))return e;throw TypeError(i(e)+" is not a function")}},83875:(e,t,r)=>{var n=r(52786);e.exports=function(e){if(n(e))return e;throw TypeError(String(e)+" is not an object")}},37190:(e,t,r)=>{var n=r(29580),i=r(32565),o=r(47046),a=function(e){return function(t,r,a){var s,c=n(t),l=o(c),u=i(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},79159:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36994:(e,t,r)=>{var n=r(57301),i=r(75277),o=r(79159),a=r(52280)("toStringTag"),s="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?r:s?o(t):"Object"==(n=o(t))&&i(t.callee)?"Arguments":n}},73870:(e,t,r)=>{var n=r(24792),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t){for(var r=i(t),s=a.f,c=o.f,l=0;l<r.length;l++){var u=r[l];n(e,u)||s(e,u,c(t,u))}}},45899:(e,t,r)=>{var n=r(7493),i=r(86385),o=r(69199);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},69199:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},68308:(e,t,r)=>{var n=r(67290),i=r(24792),o=r(20127),a=r(86385).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},7493:(e,t,r)=>{var n=r(79044);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:(e,t,r)=>{var n=r(98363),i=r(52786),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},82647:(e,t,r)=>{var n=r(22773);e.exports=n("navigator","userAgent")||""},11197:(e,t,r)=>{var n,i,o=r(98363),a=r(82647),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u?i=(n=u.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},13145:(e,t,r)=>{var n=r(98363),i=r(98166),o=Function.call;e.exports=function(e,t,r){return i(o,n[e].prototype[t],r)}},48869:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:(e,t,r)=>{var n=r(98363),i=r(66012).f,o=r(45899),a=r(35974),s=r(51621),c=r(73870),l=r(86291);e.exports=function(e,t){var r,u,p,d,h,f=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[f]||s(f,{}):(n[f]||{}).prototype)for(u in t){if(d=t[u],p=e.noTargetGet?(h=i(r,u))&&h.value:r[u],!l(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(e.sham||p&&p.sham)&&o(d,"sham",!0),a(r,u,d,e)}}},79044:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},98166:(e,t,r)=>{var n=r(97676);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},55316:(e,t,r)=>{var n=r(7493),i=r(24792),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},22773:(e,t,r)=>{var n=r(98363),i=r(75277),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},97219:(e,t,r)=>{var n=r(97676);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},98363:(e,t,r)=>{var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},24792:(e,t,r)=>{var n=r(30744),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},47505:e=>{e.exports={}},67548:(e,t,r)=>{var n=r(7493),i=r(79044),o=r(92750);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},78609:(e,t,r)=>{var n=r(79044),i=r(79159),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},56429:(e,t,r)=>{var n=r(75277),i=r(49415),o=Function.toString;n(i.inspectSource)||(i.inspectSource=function(e){return o.call(e)}),e.exports=i.inspectSource},20821:(e,t,r)=>{var n,i,o,a=r(36830),s=r(98363),c=r(52786),l=r(45899),u=r(24792),p=r(49415),d=r(50466),h=r(47505),f="Object already initialized",m=s.WeakMap;if(a||p.state){var g=p.state||(p.state=new m),v=g.get,y=g.has,b=g.set;n=function(e,t){if(y.call(g,e))throw new TypeError(f);return t.facade=e,b.call(g,e,t),t},i=function(e){return v.call(g,e)||{}},o=function(e){return y.call(g,e)}}else{var _=d("state");h[_]=!0,n=function(e,t){if(u(e,_))throw new TypeError(f);return t.facade=e,l(e,_,t),t},i=function(e){return u(e,_)?e[_]:{}},o=function(e){return u(e,_)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},75277:e=>{e.exports=function(e){return"function"==typeof e}},86291:(e,t,r)=>{var n=r(79044),i=r(75277),o=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r==u||r!=l&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},52786:(e,t,r)=>{var n=r(75277);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},21178:e=>{e.exports=!1},66681:(e,t,r)=>{var n=r(75277),i=r(22773),o=r(189);e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return n(t)&&Object(e)instanceof t}},47046:(e,t,r)=>{var n=r(35108);e.exports=function(e){return n(e.length)}},3850:(e,t,r)=>{var n=r(11197),i=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},36830:(e,t,r)=>{var n=r(98363),i=r(75277),o=r(56429),a=n.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},86385:(e,t,r)=>{var n=r(7493),i=r(67548),o=r(83875),a=r(383),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(o(e),t=a(t),o(r),i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:(e,t,r)=>{var n=r(7493),i=r(81513),o=r(69199),a=r(29580),s=r(383),c=r(24792),l=r(67548),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=a(e),t=s(t),l)try{return u(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},87994:(e,t,r)=>{var n=r(18794),i=r(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},89612:(e,t)=>{t.f=Object.getOwnPropertySymbols},18794:(e,t,r)=>{var n=r(24792),i=r(29580),o=r(37190).indexOf,a=r(47505);e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(l,r)||l.push(r));return l}},60667:(e,t,r)=>{var n=r(18794),i=r(48869);e.exports=Object.keys||function(e){return n(e,i)}},81513:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},8765:(e,t,r)=>{var n=r(7493),i=r(60667),o=r(29580),a=r(81513).f,s=function(e){return function(t){for(var r,s=o(t),c=i(s),l=c.length,u=0,p=[];l>u;)r=c[u++],n&&!a.call(s,r)||p.push(e?[r,s[r]]:s[r]);return p}};e.exports={entries:s(!0),values:s(!1)}},17141:(e,t,r)=>{var n=r(75277),i=r(52786);e.exports=function(e,t){var r,o;if("string"===t&&n(r=e.toString)&&!i(o=r.call(e)))return o;if(n(r=e.valueOf)&&!i(o=r.call(e)))return o;if("string"!==t&&n(r=e.toString)&&!i(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},31561:(e,t,r)=>{var n=r(22773),i=r(87994),o=r(89612),a=r(83875);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},67290:(e,t,r)=>{var n=r(98363);e.exports=n},35974:(e,t,r)=>{var n=r(98363),i=r(75277),o=r(24792),a=r(45899),s=r(51621),c=r(56429),l=r(20821),u=r(55316).CONFIGURABLE,p=l.get,d=l.enforce,h=String(String).split("String");(e.exports=function(e,t,r,c){var l,p=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,m=!!c&&!!c.noTargetGet,g=c&&void 0!==c.name?c.name:t;i(r)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(r,"name")||u&&r.name!==g)&&a(r,"name",g),(l=d(r)).source||(l.source=h.join("string"==typeof g?g:""))),e!==n?(p?!m&&e[t]&&(f=!0):delete e[t],f?e[t]=r:a(e,t,r)):f?e[t]=r:s(t,r)})(Function.prototype,"toString",(function(){return i(this)&&p(this).source||c(this)}))},96411:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},51621:(e,t,r)=>{var n=r(98363);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},50466:(e,t,r)=>{var n=r(53580),i=r(34524),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},49415:(e,t,r)=>{var n=r(98363),i=r(51621),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},53580:(e,t,r)=>{var n=r(21178),i=r(49415);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},5167:(e,t,r)=>{var n=r(82647);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},98385:(e,t,r)=>{var n=r(35108),i=r(28967),o=r(26031),a=r(96411),s=Math.ceil,c=function(e){return function(t,r,c){var l,u,p=i(a(t)),d=n(r),h=p.length,f=void 0===c?" ":i(c);return d<=h||""==f?p:(l=d-h,(u=o.call(f,s(l/f.length))).length>l&&(u=u.slice(0,l)),e?p+u:u+p)}};e.exports={start:c(!1),end:c(!0)}},26031:(e,t,r)=>{"use strict";var n=r(14229),i=r(28967),o=r(96411);e.exports=function(e){var t=i(o(this)),r="",a=n(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(r+=t);return r}},68487:(e,t,r)=>{var n=r(55316).PROPER,i=r(79044),o=r(2569);e.exports=function(e){return i((function(){return!!o[e]()||"
"!=="
"[e]()||n&&o[e].name!==e}))}},10287:(e,t,r)=>{var n=r(96411),i=r(28967),o="["+r(2569)+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(e){return function(t){var r=i(n(t));return 1&e&&(r=r.replace(a,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},32565:(e,t,r)=>{var n=r(14229),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},29580:(e,t,r)=>{var n=r(78609),i=r(96411);e.exports=function(e){return n(i(e))}},14229:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){var n=+e;return n!=n||0===n?0:(n>0?r:t)(n)}},35108:(e,t,r)=>{var n=r(14229),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:(e,t,r)=>{var n=r(96411);e.exports=function(e){return Object(n(e))}},21893:(e,t,r)=>{var n=r(52786),i=r(66681),o=r(97219),a=r(17141),s=r(52280)("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,s);if(c){if(void 0===t&&(t="default"),r=c.call(e,t),!n(r)||i(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},383:(e,t,r)=>{var n=r(21893),i=r(66681);e.exports=function(e){var t=n(e,"string");return i(t)?t:String(t)}},57301:(e,t,r)=>{var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},28967:(e,t,r)=>{var n=r(36994);e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},28768:e=>{e.exports=function(e){try{return String(e)}catch(e){return"Object"}}},34524:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},189:(e,t,r)=>{var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},20127:(e,t,r)=>{var n=r(52280);t.f=n},52280:(e,t,r)=>{var n=r(98363),i=r(53580),o=r(24792),a=r(34524),s=r(3850),c=r(189),l=i("wks"),u=n.Symbol,p=c?u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)&&(s||"string"==typeof l[e])||(s&&o(u,e)?l[e]=u[e]:l[e]=p("Symbol."+e)),l[e]}},2569:e=>{e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},19457:(e,t,r)=>{var n=r(19882),i=r(8765).values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},21682:(e,t,r)=>{"use strict";var n=r(19882),i=r(98385).start;n({target:"String",proto:!0,forced:r(5167)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},66816:(e,t,r)=>{"use strict";var n=r(19882),i=r(10287).start,o=r(68487)("trimStart"),a=o?function(){return i(this)}:"".trimStart;n({target:"String",proto:!0,name:"trimStart",forced:o},{trimStart:a,trimLeft:a})},52729:(e,t,r)=>{r(68308)("asyncIterator")},94648:(e,t,r)=>{var n=r(67367);e.exports=n},98518:(e,t,r)=>{var n=r(95831);e.exports=n},50537:(e,t,r)=>{var n=r(89694);e.exports=n},82518:(e,t,r)=>{var n=r(66396);e.exports=n},51041:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var i=e[n]<<16|e[n+1]<<8|e[n+2],o=0;o<4;o++)8*n+6*o<=8*e.length?r.push(t.charAt(i>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n<e.length;i=++n%4)0!=i&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(n))>>>6-2*i);return r}},e.exports=r},33947:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=o(r[0]);i!==r[0]&&(t[r[0]]=i)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},9637:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){void 0===e&&(e=(0,i.default)());try{return e.activeElement}catch(e){}};var i=n(r(62310));e.exports=t.default},88655:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=n(r(73008));e.exports=t.default},73008:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},34973:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=void 0;var i=n(r(88655));t.addClass=i.default;var o=n(r(2734));t.removeClass=o.default;var a=n(r(73008));t.hasClass=a.default;var s={addClass:i.default,removeClass:o.default,hasClass:a.default};t.default=s},2734:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,r){e.classList?e.classList.remove(r):"string"==typeof e.className?e.className=t(e.className,r):e.setAttribute("class",t(e.className&&e.className.baseVal||"",r))}},9105:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=void 0;var i=function(){};n(r(75769)).default&&(i=document.addEventListener?function(e,t,r,n){return e.removeEventListener(t,r,n||!1)}:document.attachEvent?function(e,t,r){return e.detachEvent("on"+t,r)}:void 0);var o=i;t.default=o,e.exports=t.default},85822:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=void 0;var i=function(){};n(r(75769)).default&&(i=document.addEventListener?function(e,t,r,n){return e.addEventListener(t,r,n||!1)}:document.attachEvent?function(e,t,r){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,r.call(e,t)}))}:void 0);var o=i;t.default=o,e.exports=t.default},62310:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){if(e&&e.getRootNode)return e.getRootNode();return e&&e.ownerDocument||document},e.exports=t.default},99607:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t,r){for(;e&&(o(e)||!(0,i.default)(e,t));)e=e===r||o(e)?void 0:e.parentNode;return e};var i=n(r(11637)),o=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},35558:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=void 0;var i=n(r(75769)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):o(e,t)}:o;function o(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=i,e.exports=t.default},72038:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},11637:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){if(!i&&o.default){var r=document.body,n=r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector;i=n?function(e,t){return n.call(e,t)}:s}return i?i(e,t):null};var i,o=n(r(75769)),a=n(r(28082));function s(e,t){for(var r=(0,a.default)(e.document||e.ownerDocument,t),n=0;r[n]&&r[n]!==e;)n++;return!!r[n]}e.exports=t.default},7115:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e),r=(0,o.default)(t),n=t&&t.documentElement,s={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,i.default)(n,e))return s;void 0!==e.getBoundingClientRect&&(s=e.getBoundingClientRect());return s={top:s.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:s.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==s.width?e.offsetWidth:s.width)||0,height:(null==s.height?e.offsetHeight:s.height)||0}};var i=n(r(35558)),o=n(r(72038)),a=n(r(62310));e.exports=t.default},63889:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e),r=e&&e.offsetParent;for(;r&&"html"!==a(e)&&"static"===(0,o.default)(r,"position");)r=r.offsetParent;return r||t.documentElement};var i=n(r(62310)),o=n(r(95463));function a(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},1954:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){var r,n={top:0,left:0};"fixed"===(0,l.default)(e,"position")?r=e.getBoundingClientRect():(t=t||(0,a.default)(e),r=(0,o.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(n=(0,o.default)(t)),n.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,s.default)(t)||0,n.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,c.default)(t)||0);return(0,i.default)({},r,{top:r.top-n.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:r.left-n.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})};var i=n(r(33786)),o=n(r(7115)),a=n(r(63889)),s=n(r(51587)),c=n(r(82653)),l=n(r(95463));e.exports=t.default},28082:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){var i,o="#"===t[0],a="."===t[0],s=o||a?t.slice(1):t;if(r.test(s))return o?(e=e.getElementById?e:document,(i=e.getElementById(s))?[i]:[]):e.getElementsByClassName&&a?n(e.getElementsByClassName(s)):n(e.getElementsByTagName(t));return n(e.querySelectorAll(t))};var r=/^[\w-]*$/,n=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},82653:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){var r=(0,i.default)(e);if(void 0===t)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;r?r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop):e.scrollLeft=t};var i=n(r(72038));e.exports=t.default},51587:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){var r=(0,i.default)(e);if(void 0===t)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;r?r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t):e.scrollTop=t};var i=n(r(72038));e.exports=t.default},45746:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var r=e.style;"float"==(t=(0,i.default)(t))&&(t="styleFloat");var n=e.currentStyle[t]||null;if(null==n&&r&&r[t]&&(n=r[t]),a.test(n)&&!o.test(t)){var s=r.left,c=e.runtimeStyle,l=c&&c.left;l&&(c.left=e.currentStyle.left),r.left="fontSize"===t?"1em":n,n=r.pixelLeft+"px",r.left=s,l&&(c.left=l)}return n}}};var i=n(r(76294)),o=/^(top|right|bottom|left)$/,a=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},95463:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t,r){var n="",u="",p=t;if("string"==typeof t){if(void 0===r)return e.style[(0,i.default)(t)]||(0,a.default)(e).getPropertyValue((0,o.default)(t));(p={})[t]=r}Object.keys(p).forEach((function(t){var r=p[t];r||0===r?(0,l.default)(t)?u+=t+"("+r+") ":n+=(0,o.default)(t)+": "+r+";":(0,s.default)(e,(0,o.default)(t))})),u&&(n+=c.transform+": "+u+";");e.style.cssText+=";"+n};var i=n(r(76294)),o=n(r(74086)),a=n(r(45746)),s=n(r(59298)),c=r(16860),l=n(r(20330));e.exports=t.default},59298:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},20330:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},16860:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,o,a,s,c,l,u,p,d,h,f,m=n(r(75769)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=o,t.transitionDelay=u,t.transitionTiming=l,t.transitionDuration=c,t.transitionProperty=s,t.animationDelay=f,t.animationTiming=h,t.animationDuration=d,t.animationName=p,m.default){var v=function(){for(var e,t,r=document.createElement("div").style,n={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(n),o="",a=0;a<i.length;a++){var s=i[a];if(s+"TransitionProperty"in r){o="-"+s.toLowerCase(),e=n[s]("TransitionEnd"),t=n[s]("AnimationEnd");break}}!e&&"transitionProperty"in r&&(e="transitionend");!t&&"animationName"in r&&(t="animationend");return r=null,{animationEnd:t,transitionEnd:e,prefix:o}}();i=v.prefix,t.transitionEnd=o=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=g=i+"-"+g,t.transitionProperty=s=i+"-transition-property",t.transitionDuration=c=i+"-transition-duration",t.transitionDelay=u=i+"-transition-delay",t.transitionTiming=l=i+"-transition-timing-function",t.animationName=p=i+"-animation-name",t.animationDuration=d=i+"-animation-duration",t.animationTiming=h=i+"-animation-delay",t.animationDelay=f=i+"-animation-timing-function"}var y={transform:g,end:o,property:s,timing:l,delay:u,duration:c};t.default=y},62577:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))};var r=/-(.)/g;e.exports=t.default},76294:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){return(0,i.default)(e.replace(o,"ms-"))};var i=n(r(62577)),o=/^-ms-/;e.exports=t.default},99349:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},74086:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){return(0,i.default)(e).replace(o,"-ms-")};var i=n(r(99349)),o=/^ms-/;e.exports=t.default},75769:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},14347:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){if((!i&&0!==i||e)&&o.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),i=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return i};var i,o=n(r(75769));e.exports=t.default},374:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=new WeakMap,n=new WeakMap;function i(e){const t=r.get(e);return console.assert(null!=t,"'this' is expected an Event object, but got",e),t}function o(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"==typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function a(e,t){r.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=Object.keys(t);for(let e=0;e<n.length;++e){const t=n[e];t in this||Object.defineProperty(this,t,s(t))}}function s(e){return{get(){return i(this).event[e]},set(t){i(this).event[e]=t},configurable:!0,enumerable:!0}}function c(e){return{value(){const t=i(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function l(e){if(null==e||e===Object.prototype)return a;let t=n.get(e);return null==t&&(t=function(e,t){const r=Object.keys(t);if(0===r.length)return e;function n(t,r){e.call(this,t,r)}n.prototype=Object.create(e.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){const o=r[i];if(!(o in e.prototype)){const e="function"==typeof Object.getOwnPropertyDescriptor(t,o).value;Object.defineProperty(n.prototype,o,e?c(o):s(o))}}return n}(l(Object.getPrototypeOf(e)),e),n.set(e,t)),t}function u(e){return i(e).immediateStopped}function p(e,t){i(e).passiveListener=t}a.prototype={get type(){return i(this).event.type},get target(){return i(this).eventTarget},get currentTarget(){return i(this).currentTarget},composedPath(){const e=i(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return i(this).eventPhase},stopPropagation(){const e=i(this);e.stopped=!0,"function"==typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=i(this);e.stopped=!0,e.immediateStopped=!0,"function"==typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(i(this).event.bubbles)},get cancelable(){return Boolean(i(this).event.cancelable)},preventDefault(){o(i(this))},get defaultPrevented(){return i(this).canceled},get composed(){return Boolean(i(this).event.composed)},get timeStamp(){return i(this).timeStamp},get srcElement(){return i(this).eventTarget},get cancelBubble(){return i(this).stopped},set cancelBubble(e){if(!e)return;const t=i(this);t.stopped=!0,"boolean"==typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!i(this).canceled},set returnValue(e){e||o(i(this))},initEvent(){}},Object.defineProperty(a.prototype,"constructor",{value:a,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(a.prototype,window.Event.prototype),n.set(window.Event.prototype,a));const d=new WeakMap;function h(e){return null!==e&&"object"==typeof e}function f(e){const t=d.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function m(e,t){Object.defineProperty(e,`on${t}`,function(e){return{get(){let t=f(this).get(e);for(;null!=t;){if(3===t.listenerType)return t.listener;t=t.next}return null},set(t){"function"==typeof t||h(t)||(t=null);const r=f(this);let n=null,i=r.get(e);for(;null!=i;)3===i.listenerType?null!==n?n.next=i.next:null!==i.next?r.set(e,i.next):r.delete(e):n=i,i=i.next;if(null!==t){const i={listener:t,listenerType:3,passive:!1,once:!1,next:null};null===n?r.set(e,i):n.next=i}},configurable:!0,enumerable:!0}}(t))}function g(e){function t(){v.call(this)}t.prototype=Object.create(v.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let r=0;r<e.length;++r)m(t.prototype,e[r]);return t}function v(){if(!(this instanceof v)){if(1===arguments.length&&Array.isArray(arguments[0]))return g(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return g(e)}throw new TypeError("Cannot call a class as a function")}d.set(this,new Map)}v.prototype={addEventListener(e,t,r){if(null==t)return;if("function"!=typeof t&&!h(t))throw new TypeError("'listener' should be a function or an object.");const n=f(this),i=h(r),o=(i?Boolean(r.capture):Boolean(r))?1:2,a={listener:t,listenerType:o,passive:i&&Boolean(r.passive),once:i&&Boolean(r.once),next:null};let s=n.get(e);if(void 0===s)return void n.set(e,a);let c=null;for(;null!=s;){if(s.listener===t&&s.listenerType===o)return;c=s,s=s.next}c.next=a},removeEventListener(e,t,r){if(null==t)return;const n=f(this),i=(h(r)?Boolean(r.capture):Boolean(r))?1:2;let o=null,a=n.get(e);for(;null!=a;){if(a.listener===t&&a.listenerType===i)return void(null!==o?o.next=a.next:null!==a.next?n.set(e,a.next):n.delete(e));o=a,a=a.next}},dispatchEvent(e){if(null==e||"string"!=typeof e.type)throw new TypeError('"event.type" should be a string.');const t=f(this),r=e.type;let n=t.get(r);if(null==n)return!0;const o=function(e,t){return new(l(Object.getPrototypeOf(t)))(e,t)}(this,e);let a=null;for(;null!=n;){if(n.once?null!==a?a.next=n.next:null!==n.next?t.set(r,n.next):t.delete(r):a=n,p(o,n.passive?n.listener:null),"function"==typeof n.listener)try{n.listener.call(this,o)}catch(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}else 3!==n.listenerType&&"function"==typeof n.listener.handleEvent&&n.listener.handleEvent(o);if(u(o))break;n=n.next}return p(o,null),function(e,t){i(e).eventPhase=t}(o,0),function(e,t){i(e).currentTarget=t}(o,null),!o.defaultPrevented}},Object.defineProperty(v.prototype,"constructor",{value:v,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(v.prototype,window.EventTarget.prototype),t.defineEventAttribute=m,t.EventTarget=v,t.default=v,e.exports=v,e.exports.EventTarget=e.exports.default=v,e.exports.defineEventAttribute=m},5939:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,o,a,l;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):f(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,u=f(c,l);for(r=0;r<l;++r)n(u[r],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},48195:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},60922:(e,t,r)=>{"use strict";(t=e.exports=r(26423).default).default=t},26423:(e,t)=>{"use strict";t.default=function(){function e(t,r,n,i){this.message=t,this.expected=r,this.found=n,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),{SyntaxError:e,parse:function(t){var r,n=arguments.length>1?arguments[1]:{},i={},o={start:Ce},a=Ce,s=function(e){return{type:"messageFormatPattern",elements:e,location:Se()}},c=function(e){var t,r,n,i,o,a="";for(t=0,n=e.length;t<n;t+=1)for(r=0,o=(i=e[t]).length;r<o;r+=1)a+=i[r];return a},l=function(e){return{type:"messageTextElement",value:e,location:Se()}},u=/^[^ \t\n\r,.+={}#]/,p={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},d="{",h={type:"literal",value:"{",description:'"{"'},f=",",m={type:"literal",value:",",description:'","'},g="}",v={type:"literal",value:"}",description:'"}"'},y=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2],location:Se()}},b="number",_={type:"literal",value:"number",description:'"number"'},E="date",w={type:"literal",value:"date",description:'"date"'},L="time",x={type:"literal",value:"time",description:'"time"'},S=function(e,t){return{type:e+"Format",style:t&&t[2],location:Se()}},O="plural",T={type:"literal",value:"plural",description:'"plural"'},I=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options,location:Se()}},P="selectordinal",C={type:"literal",value:"selectordinal",description:'"selectordinal"'},A=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options,location:Se()}},k="select",D={type:"literal",value:"select",description:'"select"'},N=function(e){return{type:"selectFormat",options:e,location:Se()}},R="=",M={type:"literal",value:"=",description:'"="'},j=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t,location:Se()}},Z="offset:",F={type:"literal",value:"offset:",description:'"offset:"'},B=function(e){return e},G=function(e,t){return{type:"pluralFormat",offset:e,options:t,location:Se()}},U={type:"other",description:"whitespace"},z=/^[ \t\n\r]/,V={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},H={type:"other",description:"optionalWhitespace"},Y=/^[0-9]/,W={type:"class",value:"[0-9]",description:"[0-9]"},$=/^[0-9a-f]/i,K={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},q="0",X={type:"literal",value:"0",description:'"0"'},J=/^[1-9]/,Q={type:"class",value:"[1-9]",description:"[1-9]"},ee=function(e){return parseInt(e,10)},te=/^[^{}\\\0-\x1F \t\n\r]/,re={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},ne="\\\\",ie={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},oe=function(){return"\\"},ae="\\#",se={type:"literal",value:"\\#",description:'"\\\\#"'},ce=function(){return"\\#"},le="\\{",ue={type:"literal",value:"\\{",description:'"\\\\{"'},pe=function(){return"{"},de="\\}",he={type:"literal",value:"\\}",description:'"\\\\}"'},fe=function(){return"}"},me="\\u",ge={type:"literal",value:"\\u",description:'"\\\\u"'},ve=function(e){return String.fromCharCode(parseInt(e,16))},ye=function(e){return e.join("")},be=0,_e=0,Ee=[{line:1,column:1,seenCR:!1}],we=0,Le=[],xe=0;if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Se(){return Te(_e,be)}function Oe(e){var r,n,i=Ee[e];if(i)return i;for(r=e-1;!Ee[r];)r--;for(i={line:(i=Ee[r]).line,column:i.column,seenCR:i.seenCR};r<e;)"\n"===(n=t.charAt(r))?(i.seenCR||i.line++,i.column=1,i.seenCR=!1):"\r"===n||"\u2028"===n||"\u2029"===n?(i.line++,i.column=1,i.seenCR=!0):(i.column++,i.seenCR=!1),r++;return Ee[e]=i,i}function Te(e,t){var r=Oe(e),n=Oe(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ie(e){be<we||(be>we&&(we=be,Le=[]),Le.push(e))}function Pe(t,r,n,i){return null!==r&&function(e){var t=1;for(e.sort((function(e,t){return e.description<t.description?-1:e.description>t.description?1:0}));t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}(r),new e(null!==t?t:function(e,t){var r,n=new Array(e.length);for(r=0;r<e.length;r++)n[r]=e[r].description;return"Expected "+(e.length>1?n.slice(0,-1).join(", ")+" or "+n[e.length-1]:n[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(r,n),r,n,i)}function Ce(){return Ae()}function Ae(){var e,t,r;for(e=be,t=[],r=ke();r!==i;)t.push(r),r=ke();return t!==i&&(_e=e,t=s(t)),e=t}function ke(){var e;return(e=Ne())===i&&(e=Me()),e}function De(){var e,r,n,o,a,s;if(e=be,r=[],n=be,(o=We())!==i&&(a=Je())!==i&&(s=We())!==i?n=o=[o,a,s]:(be=n,n=i),n!==i)for(;n!==i;)r.push(n),n=be,(o=We())!==i&&(a=Je())!==i&&(s=We())!==i?n=o=[o,a,s]:(be=n,n=i);else r=i;return r!==i&&(_e=e,r=c(r)),(e=r)===i&&(e=be,e=(r=Ye())!==i?t.substring(e,be):r),e}function Ne(){var e,t;return e=be,(t=De())!==i&&(_e=e,t=l(t)),e=t}function Re(){var e,r,n;if((e=qe())===i){if(e=be,r=[],u.test(t.charAt(be))?(n=t.charAt(be),be++):(n=i,0===xe&&Ie(p)),n!==i)for(;n!==i;)r.push(n),u.test(t.charAt(be))?(n=t.charAt(be),be++):(n=i,0===xe&&Ie(p));else r=i;e=r!==i?t.substring(e,be):r}return e}function Me(){var e,r,n,o,a,s,c;return e=be,123===t.charCodeAt(be)?(r=d,be++):(r=i,0===xe&&Ie(h)),r!==i&&We()!==i&&(n=Re())!==i&&We()!==i?(o=be,44===t.charCodeAt(be)?(a=f,be++):(a=i,0===xe&&Ie(m)),a!==i&&(s=We())!==i&&(c=je())!==i?o=a=[a,s,c]:(be=o,o=i),o===i&&(o=null),o!==i&&(a=We())!==i?(125===t.charCodeAt(be)?(s=g,be++):(s=i,0===xe&&Ie(v)),s!==i?(_e=e,e=r=y(n,o)):(be=e,e=i)):(be=e,e=i)):(be=e,e=i),e}function je(){var e;return(e=Ze())===i&&(e=Fe())===i&&(e=Be())===i&&(e=Ge()),e}function Ze(){var e,r,n,o,a,s;return e=be,t.substr(be,6)===b?(r=b,be+=6):(r=i,0===xe&&Ie(_)),r===i&&(t.substr(be,4)===E?(r=E,be+=4):(r=i,0===xe&&Ie(w)),r===i&&(t.substr(be,4)===L?(r=L,be+=4):(r=i,0===xe&&Ie(x)))),r!==i&&We()!==i?(n=be,44===t.charCodeAt(be)?(o=f,be++):(o=i,0===xe&&Ie(m)),o!==i&&(a=We())!==i&&(s=Je())!==i?n=o=[o,a,s]:(be=n,n=i),n===i&&(n=null),n!==i?(_e=e,e=r=S(r,n)):(be=e,e=i)):(be=e,e=i),e}function Fe(){var e,r,n,o;return e=be,t.substr(be,6)===O?(r=O,be+=6):(r=i,0===xe&&Ie(T)),r!==i&&We()!==i?(44===t.charCodeAt(be)?(n=f,be++):(n=i,0===xe&&Ie(m)),n!==i&&We()!==i&&(o=He())!==i?(_e=e,e=r=I(o)):(be=e,e=i)):(be=e,e=i),e}function Be(){var e,r,n,o;return e=be,t.substr(be,13)===P?(r=P,be+=13):(r=i,0===xe&&Ie(C)),r!==i&&We()!==i?(44===t.charCodeAt(be)?(n=f,be++):(n=i,0===xe&&Ie(m)),n!==i&&We()!==i&&(o=He())!==i?(_e=e,e=r=A(o)):(be=e,e=i)):(be=e,e=i),e}function Ge(){var e,r,n,o,a;if(e=be,t.substr(be,6)===k?(r=k,be+=6):(r=i,0===xe&&Ie(D)),r!==i)if(We()!==i)if(44===t.charCodeAt(be)?(n=f,be++):(n=i,0===xe&&Ie(m)),n!==i)if(We()!==i){if(o=[],(a=ze())!==i)for(;a!==i;)o.push(a),a=ze();else o=i;o!==i?(_e=e,e=r=N(o)):(be=e,e=i)}else be=e,e=i;else be=e,e=i;else be=e,e=i;else be=e,e=i;return e}function Ue(){var e,r,n,o;return e=be,r=be,61===t.charCodeAt(be)?(n=R,be++):(n=i,0===xe&&Ie(M)),n!==i&&(o=qe())!==i?r=n=[n,o]:(be=r,r=i),(e=r!==i?t.substring(e,be):r)===i&&(e=Je()),e}function ze(){var e,r,n,o,a;return e=be,We()!==i&&(r=Ue())!==i&&We()!==i?(123===t.charCodeAt(be)?(n=d,be++):(n=i,0===xe&&Ie(h)),n!==i&&We()!==i&&(o=Ae())!==i&&We()!==i?(125===t.charCodeAt(be)?(a=g,be++):(a=i,0===xe&&Ie(v)),a!==i?(_e=e,e=j(r,o)):(be=e,e=i)):(be=e,e=i)):(be=e,e=i),e}function Ve(){var e,r,n;return e=be,t.substr(be,7)===Z?(r=Z,be+=7):(r=i,0===xe&&Ie(F)),r!==i&&We()!==i&&(n=qe())!==i?(_e=e,e=r=B(n)):(be=e,e=i),e}function He(){var e,t,r,n;if(e=be,(t=Ve())===i&&(t=null),t!==i)if(We()!==i){if(r=[],(n=ze())!==i)for(;n!==i;)r.push(n),n=ze();else r=i;r!==i?(_e=e,e=t=G(t,r)):(be=e,e=i)}else be=e,e=i;else be=e,e=i;return e}function Ye(){var e,r;if(xe++,e=[],z.test(t.charAt(be))?(r=t.charAt(be),be++):(r=i,0===xe&&Ie(V)),r!==i)for(;r!==i;)e.push(r),z.test(t.charAt(be))?(r=t.charAt(be),be++):(r=i,0===xe&&Ie(V));else e=i;return xe--,e===i&&(r=i,0===xe&&Ie(U)),e}function We(){var e,r,n;for(xe++,e=be,r=[],n=Ye();n!==i;)r.push(n),n=Ye();return e=r!==i?t.substring(e,be):r,xe--,e===i&&(r=i,0===xe&&Ie(H)),e}function $e(){var e;return Y.test(t.charAt(be))?(e=t.charAt(be),be++):(e=i,0===xe&&Ie(W)),e}function Ke(){var e;return $.test(t.charAt(be))?(e=t.charAt(be),be++):(e=i,0===xe&&Ie(K)),e}function qe(){var e,r,n,o,a,s;if(e=be,48===t.charCodeAt(be)?(r=q,be++):(r=i,0===xe&&Ie(X)),r===i){if(r=be,n=be,J.test(t.charAt(be))?(o=t.charAt(be),be++):(o=i,0===xe&&Ie(Q)),o!==i){for(a=[],s=$e();s!==i;)a.push(s),s=$e();a!==i?n=o=[o,a]:(be=n,n=i)}else be=n,n=i;r=n!==i?t.substring(r,be):n}return r!==i&&(_e=e,r=ee(r)),e=r}function Xe(){var e,r,n,o,a,s,c,l;return te.test(t.charAt(be))?(e=t.charAt(be),be++):(e=i,0===xe&&Ie(re)),e===i&&(e=be,t.substr(be,2)===ne?(r=ne,be+=2):(r=i,0===xe&&Ie(ie)),r!==i&&(_e=e,r=oe()),(e=r)===i&&(e=be,t.substr(be,2)===ae?(r=ae,be+=2):(r=i,0===xe&&Ie(se)),r!==i&&(_e=e,r=ce()),(e=r)===i&&(e=be,t.substr(be,2)===le?(r=le,be+=2):(r=i,0===xe&&Ie(ue)),r!==i&&(_e=e,r=pe()),(e=r)===i&&(e=be,t.substr(be,2)===de?(r=de,be+=2):(r=i,0===xe&&Ie(he)),r!==i&&(_e=e,r=fe()),(e=r)===i&&(e=be,t.substr(be,2)===me?(r=me,be+=2):(r=i,0===xe&&Ie(ge)),r!==i?(n=be,o=be,(a=Ke())!==i&&(s=Ke())!==i&&(c=Ke())!==i&&(l=Ke())!==i?o=a=[a,s,c,l]:(be=o,o=i),(n=o!==i?t.substring(n,be):o)!==i?(_e=e,e=r=ve(n)):(be=e,e=i)):(be=e,e=i)))))),e}function Je(){var e,t,r;if(e=be,t=[],(r=Xe())!==i)for(;r!==i;)t.push(r),r=Xe();else t=i;return t!==i&&(_e=e,t=ye(t)),e=t}if((r=a())!==i&&be===t.length)return r;throw r!==i&&be<t.length&&Ie({type:"end",description:"end of input"}),Pe(null,Le,we<t.length?t.charAt(we):null,we<t.length?Te(we,we+1):Te(we,we))}}}()},81246:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},11466:(e,t,r)=>{
/*!
localForage -- Offline Storage, Improved
Version 1.10.0
https://localforage.github.io/localForage
(c) 2013-2017 Mozilla, Apache License 2.0
*/
e.exports=function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){var r=t[a][1][e];return i(r||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,n){(function(e){"use strict";var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,r=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;n=!0;for(var r=l.length;r;){for(t=l,l=[],e=-1;++e<r;)t[e]();r=l.length}n=!1}function p(e){1!==l.push(e)||n||r()}t.exports=p}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var n=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function p(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return o.reject(e,t)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}function a(){t(i,n)}var s=f(a);"error"===s.status&&n(s.value)}function f(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}function m(e){return e instanceof this?e:o.resolve(new this(i),e)}function g(e){var t=new this(i);return o.reject(t,e)}function v(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,c=-1,l=new this(i);++c<r;)u(e[c],c);return l;function u(e,i){function c(e){a[i]=e,++s!==r||n||(n=!0,o.resolve(l,a))}t.resolve(e).then(c,(function(e){n||(n=!0,o.reject(l,e))}))}}function y(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(i);++a<r;)c(e[a]);return s;function c(e){t.resolve(e).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}))}}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==c?p(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){p(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){p(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=f(d,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)h(e,n);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},l.resolve=m,l.reject=g,l.all=v,l.race=y},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var 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};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}var a=o();function s(){try{if(!a||!a.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}function c(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),n=0;n<e.length;n+=1)r.append(e[n]);return r.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var l=Promise;function u(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function p(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function d(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function h(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",m=void 0,g={},v=Object.prototype.toString,y="readonly",b="readwrite";function _(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i<t;i++)n[i]=e.charCodeAt(i);return r}function E(e){return new l((function(t){var r=e.transaction(f,b),n=c([""]);r.objectStore(f).put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),r=navigator.userAgent.match(/Edge\//);t(r||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}function w(e){return"boolean"==typeof m?l.resolve(m):E(e).then((function(e){return m=e}))}function L(e){var t=g[e.name],r={};r.promise=new l((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function x(e){var t=g[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function S(e,t){var r=g[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function O(e,t){return new l((function(r,n){if(g[e.name]=g[e.name]||M(),e.db){if(!t)return r(e.db);L(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var o=a.open.apply(a,i);t&&(o.onupgradeneeded=function(t){var r=o.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(f)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),o.onerror=function(e){e.preventDefault(),n(o.error)},o.onsuccess=function(){var t=o.result;t.onversionchange=function(e){e.target.close()},r(t),x(e)}}))}function T(e){return O(e,!1)}function I(e){return O(e,!0)}function P(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.version<e.db.version,i=e.version>e.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||r){if(r){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function C(e){return new l((function(t,r){var n=new FileReader;n.onerror=r,n.onloadend=function(r){var n=btoa(r.target.result||"");t({__local_forage_encoded_blob:!0,data:n,type:e.type})},n.readAsBinaryString(e)}))}function A(e){return c([_(atob(e.data))],{type:e.type})}function k(e){return e&&e.__local_forage_encoded_blob}function D(e){var t=this,r=t._initReady().then((function(){var e=g[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return p(r,e,e),r}function N(e){L(e);for(var t=g[e.name],r=t.forages,n=0;n<r.length;n++){var i=r[n];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,T(e).then((function(t){return e.db=t,P(e)?I(e):t})).then((function(n){e.db=t.db=n;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=n})).catch((function(t){throw S(e,t),t}))}function R(e,t,r,n){void 0===n&&(n=1);try{var i=e.db.transaction(e.storeName,t);r(null,i)}catch(i){if(n>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return l.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),I(e)})).then((function(){return N(e).then((function(){R(e,t,r,n-1)}))})).catch(r);r(i)}}function M(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function j(e){var t=this,r={db:null};if(e)for(var n in e)r[n]=e[n];var i=g[r.name];i||(i=M(),g[r.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=D);var o=[];function a(){return l.resolve()}for(var s=0;s<i.forages.length;s++){var c=i.forages[s];c!==t&&o.push(c._initReady().catch(a))}var u=i.forages.slice(0);return l.all(o).then((function(){return r.db=i.db,T(r)})).then((function(e){return r.db=e,P(r,t._defaultConfig.version)?I(r):e})).then((function(e){r.db=i.db=e,t._dbInfo=r;for(var n=0;n<u.length;n++){var o=u[n];o!==t&&(o._dbInfo.db=r.db,o._dbInfo.version=r.version)}}))}function Z(e,t){var r=this;e=d(e);var n=new l((function(t,n){r.ready().then((function(){R(r._dbInfo,y,(function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),k(e)&&(e=A(e)),t(e)},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))})).catch(n)}));return u(n,t),n}function F(e,t){var r=this,n=new l((function(t,n){r.ready().then((function(){R(r._dbInfo,y,(function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var r=a.result;if(r){var n=r.value;k(n)&&(n=A(n));var i=e(n,r.key,s++);void 0!==i?t(i):r.continue()}else t()},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))})).catch(n)}));return u(n,t),n}function B(e,t,r){var n=this;e=d(e);var i=new l((function(r,i){var o;n.ready().then((function(){return o=n._dbInfo,"[object Blob]"===v.call(t)?w(o.db).then((function(e){return e?t:C(t)})):t})).then((function(t){R(n._dbInfo,b,(function(o,a){if(o)return i(o);try{var s=a.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var c=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),r(t)},a.onabort=a.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}}))})).catch(i)}));return u(i,r),i}function G(e,t){var r=this;e=d(e);var n=new l((function(t,n){r.ready().then((function(){R(r._dbInfo,b,(function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){n(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return u(n,t),n}function U(e){var t=this,r=new l((function(e,r){t.ready().then((function(){R(t._dbInfo,b,(function(n,i){if(n)return r(n);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return u(r,e),r}function z(e){var t=this,r=new l((function(e,r){t.ready().then((function(){R(t._dbInfo,y,(function(n,i){if(n)return r(n);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){r(o.error)}}catch(e){r(e)}}))})).catch(r)}));return u(r,e),r}function V(e,t){var r=this,n=new l((function(t,n){e<0?t(null):r.ready().then((function(){R(r._dbInfo,y,(function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName),s=!1,c=a.openKeyCursor();c.onsuccess=function(){var r=c.result;r?0===e||s?t(r.key):(s=!0,r.advance(e)):t(null)},c.onerror=function(){n(c.error)}}catch(e){n(e)}}))})).catch(n)}));return u(n,t),n}function H(e){var t=this,r=new l((function(e,r){t.ready().then((function(){R(t._dbInfo,y,(function(n,i){if(n)return r(n);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){r(o.error)}}catch(e){r(e)}}))})).catch(r)}));return u(r,e),r}function Y(e,t){t=h.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,i=this;if(e.name){var o=e.name===r.name&&i._dbInfo.db?l.resolve(i._dbInfo.db):T(e).then((function(t){var r=g[e.name],n=r.forages;r.db=t;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=t;return t}));n=e.storeName?o.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var r=t.version+1;L(e);var n=g[e.name],i=n.forages;t.close();for(var o=0;o<i.length;o++){var s=i[o];s._dbInfo.db=null,s._dbInfo.version=r}var c=new l((function(t,n){var i=a.open(e.name,r);i.onerror=function(e){i.result.close(),n(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}}));return c.then((function(e){n.db=e;for(var t=0;t<i.length;t++){var r=i[t];r._dbInfo.db=e,x(r._dbInfo)}})).catch((function(t){throw(S(e,t)||l.resolve()).catch((function(){})),t}))}})):o.then((function(t){L(e);var r=g[e.name],n=r.forages;t.close();for(var i=0;i<n.length;i++)n[i]._dbInfo.db=null;var o=new l((function(t,r){var n=a.deleteDatabase(e.name);n.onerror=function(){var e=n.result;e&&e.close(),r(n.error)},n.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},n.onsuccess=function(){var e=n.result;e&&e.close(),t(e)}}));return o.then((function(e){r.db=e;for(var t=0;t<n.length;t++)x(n[t]._dbInfo)})).catch((function(t){throw(S(e,t)||l.resolve()).catch((function(){})),t}))}))}else n=l.reject("Invalid arguments");return u(n,t),n}var W={_driver:"asyncStorage",_initStorage:j,_support:s(),iterate:F,getItem:Z,setItem:B,removeItem:G,clear:U,length:z,key:V,keys:H,dropInstance:Y};function $(){return"function"==typeof openDatabase}var K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q="~~local_forage_type~",X=/^~~local_forage_type~([^~]+)~/,J="__lfsc__:",Q=J.length,ee="arbf",te="blob",re="si08",ne="ui08",ie="uic8",oe="si16",ae="si32",se="ur16",ce="ui32",le="fl32",ue="fl64",pe=Q+ee.length,de=Object.prototype.toString;function he(e){var t,r,n,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t<s;t+=4)r=K.indexOf(e[t]),n=K.indexOf(e[t+1]),i=K.indexOf(e[t+2]),o=K.indexOf(e[t+3]),u[c++]=r<<2|n>>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l}function fe(e){var t,r=new Uint8Array(e),n="";for(t=0;t<r.length;t+=3)n+=K[r[t]>>2],n+=K[(3&r[t])<<4|r[t+1]>>4],n+=K[(15&r[t+1])<<2|r[t+2]>>6],n+=K[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}function me(e,t){var r="";if(e&&(r=de.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===de.call(e.buffer))){var n,i=J;e instanceof ArrayBuffer?(n=e,i+=ee):(n=e.buffer,"[object Int8Array]"===r?i+=re:"[object Uint8Array]"===r?i+=ne:"[object Uint8ClampedArray]"===r?i+=ie:"[object Int16Array]"===r?i+=oe:"[object Uint16Array]"===r?i+=se:"[object Int32Array]"===r?i+=ae:"[object Uint32Array]"===r?i+=ce:"[object Float32Array]"===r?i+=le:"[object Float64Array]"===r?i+=ue:t(new Error("Failed to get type for BinaryArray"))),t(i+fe(n))}else if("[object Blob]"===r){var o=new FileReader;o.onload=function(){var r=q+e.type+"~"+fe(this.result);t(J+te+r)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}}function ge(e){if(e.substring(0,Q)!==J)return JSON.parse(e);var t,r=e.substring(pe),n=e.substring(Q,pe);if(n===te&&X.test(r)){var i=r.match(X);t=i[1],r=r.substring(i[0].length)}var o=he(r);switch(n){case ee:return o;case te:return c([o],{type:t});case re:return new Int8Array(o);case ne:return new Uint8Array(o);case ie:return new Uint8ClampedArray(o);case oe:return new Int16Array(o);case se:return new Uint16Array(o);case ae:return new Int32Array(o);case ce:return new Uint32Array(o);case le:return new Float32Array(o);case ue:return new Float64Array(o);default:throw new Error("Unkown type: "+n)}}var ve={serialize:me,deserialize:ge,stringToBuffer:he,bufferToString:fe};function ye(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function be(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var i=new l((function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction((function(i){ye(i,r,(function(){t._dbInfo=r,e()}),(function(e,t){n(t)}))}),n)}));return r.serializer=ve,i}function _e(e,t,r,n,i,o){e.executeSql(r,n,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?o(e,a):ye(e,t,(function(){e.executeSql(r,n,i,o)}),o)}),o):o(e,a)}),o)}function Ee(e,t){var r=this;e=d(e);var n=new l((function(t,n){r.ready().then((function(){var i=r._dbInfo;i.db.transaction((function(r){_e(r,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,r){var n=r.rows.length?r.rows.item(0).value:null;n&&(n=i.serializer.deserialize(n)),t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,t),n}function we(e,t){var r=this,n=new l((function(t,n){r.ready().then((function(){var i=r._dbInfo;i.db.transaction((function(r){_e(r,i,"SELECT * FROM "+i.storeName,[],(function(r,n){for(var o=n.rows,a=o.length,s=0;s<a;s++){var c=o.item(s),l=c.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=e(l,c.key,s+1)))return void t(l)}t()}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,t),n}function Le(e,t,r,n){var i=this;e=d(e);var o=new l((function(o,a){i.ready().then((function(){void 0===t&&(t=null);var s=t,c=i._dbInfo;c.serializer.serialize(t,(function(t,l){l?a(l):c.db.transaction((function(r){_e(r,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(n>0)return void o(Le.apply(i,[e,s,r,n-1]));a(t)}}))}))})).catch(a)}));return u(o,r),o}function xe(e,t,r){return Le.apply(this,[e,t,r,1])}function Se(e,t){var r=this;e=d(e);var n=new l((function(t,n){r.ready().then((function(){var i=r._dbInfo;i.db.transaction((function(r){_e(r,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,t),n}function Oe(e){var t=this,r=new l((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){_e(t,n,"DELETE FROM "+n.storeName,[],(function(){e()}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,e),r}function Te(e){var t=this,r=new l((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){_e(t,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],(function(t,r){var n=r.rows.item(0).c;e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,e),r}function Ie(e,t){var r=this,n=new l((function(t,n){r.ready().then((function(){var i=r._dbInfo;i.db.transaction((function(r){_e(r,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,r){var n=r.rows.length?r.rows.item(0).key:null;t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,t),n}function Pe(e){var t=this,r=new l((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){_e(t,n,"SELECT key FROM "+n.storeName,[],(function(t,r){for(var n=[],i=0;i<r.rows.length;i++)n.push(r.rows.item(i).key);e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,e),r}function Ce(e){return new l((function(t,r){e.transaction((function(n){n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(r,n){for(var i=[],o=0;o<n.rows.length;o++)i.push(n.rows.item(o).name);t({db:e,storeNames:i})}),(function(e,t){r(t)}))}),(function(e){r(e)}))}))}function Ae(e,t){t=h.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,i=this;return u(n=e.name?new l((function(t){var n;n=e.name===r.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:n,storeNames:[e.storeName]}):t(Ce(n))})).then((function(e){return new l((function(t,r){e.db.transaction((function(n){function i(e){return new l((function(t,r){n.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){r(t)}))}))}for(var o=[],a=0,s=e.storeNames.length;a<s;a++)o.push(i(e.storeNames[a]));l.all(o).then((function(){t()})).catch((function(e){r(e)}))}),(function(e){r(e)}))}))})):l.reject("Invalid arguments"),t),n}var ke={_driver:"webSQLStorage",_initStorage:be,_support:$(),iterate:we,getItem:Ee,setItem:xe,removeItem:Se,clear:Oe,length:Te,key:Ie,keys:Pe,dropInstance:Ae};function De(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function Ne(e,t){var r=e.name+"/";return e.storeName!==t.storeName&&(r+=e.storeName+"/"),r}function Re(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}function Me(){return!Re()||localStorage.length>0}function je(e){var t=this,r={};if(e)for(var n in e)r[n]=e[n];return r.keyPrefix=Ne(e,t._defaultConfig),Me()?(t._dbInfo=r,r.serializer=ve,l.resolve()):l.reject()}function Ze(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,r=localStorage.length-1;r>=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}}));return u(r,e),r}function Fe(e,t){var r=this;e=d(e);var n=r.ready().then((function(){var t=r._dbInfo,n=localStorage.getItem(t.keyPrefix+e);return n&&(n=t.serializer.deserialize(n)),n}));return u(n,t),n}function Be(e,t){var r=this,n=r.ready().then((function(){for(var t=r._dbInfo,n=t.keyPrefix,i=n.length,o=localStorage.length,a=1,s=0;s<o;s++){var c=localStorage.key(s);if(0===c.indexOf(n)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(i),a++)))return l}}}));return u(n,t),n}function Ge(e,t){var r=this,n=r.ready().then((function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(n.keyPrefix.length)),t}));return u(n,t),n}function Ue(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo,r=localStorage.length,n=[],i=0;i<r;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&n.push(o.substring(e.keyPrefix.length))}return n}));return u(r,e),r}function ze(e){var t=this.keys().then((function(e){return e.length}));return u(t,e),t}function Ve(e,t){var r=this;e=d(e);var n=r.ready().then((function(){var t=r._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return u(n,t),n}function He(e,t,r){var n=this;e=d(e);var i=n.ready().then((function(){void 0===t&&(t=null);var r=t;return new l((function(i,o){var a=n._dbInfo;a.serializer.serialize(t,(function(t,n){if(n)o(n);else try{localStorage.setItem(a.keyPrefix+e,t),i(r)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}}))}))}));return u(i,r),i}function Ye(e,t){if(t=h.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var r=this.config();e.name=e.name||r.name,e.storeName=e.storeName||r.storeName}var n,i=this;return n=e.name?new l((function(t){e.storeName?t(Ne(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}})):l.reject("Invalid arguments"),u(n,t),n}var We={_driver:"localStorageWrapper",_initStorage:je,_support:De(),iterate:Be,getItem:Fe,setItem:He,removeItem:Ve,clear:Ze,length:ze,key:Ge,keys:Ue,dropInstance:Ye},$e=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},Ke=function(e,t){for(var r=e.length,n=0;n<r;){if($e(e[n],t))return!0;n++}return!1},qe=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Xe={},Je={},Qe={INDEXEDDB:W,WEBSQL:ke,LOCALSTORAGE:We},et=[Qe.INDEXEDDB._driver,Qe.WEBSQL._driver,Qe.LOCALSTORAGE._driver],tt=["dropInstance"],rt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),nt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function it(e,t){e[t]=function(){var r=arguments;return e.ready().then((function(){return e[t].apply(e,r)}))}}function ot(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var r in t)t.hasOwnProperty(r)&&(qe(t[r])?arguments[0][r]=t[r].slice():arguments[0][r]=t[r])}return arguments[0]}var at=function(){function e(t){for(var r in i(this,e),Qe)if(Qe.hasOwnProperty(r)){var n=Qe[r],o=n._driver;this[r]=o,Xe[o]||this.defineDriver(n)}this._defaultConfig=ot({},nt),this._config=ot({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":n(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,r){var n=new l((function(t,r){try{var n=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void r(i);for(var o=rt.concat("_initStorage"),a=0,s=o.length;a<s;a++){var c=o[a];if((!Ke(tt,c)||e[c])&&"function"!=typeof e[c])return void r(i)}var p=function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),r=l.reject(t);return u(r,arguments[arguments.length-1]),r}},r=0,n=tt.length;r<n;r++){var i=tt[r];e[i]||(e[i]=t(i))}};p();var d=function(r){Xe[n]&&console.info("Redefining LocalForage driver: "+n),Xe[n]=e,Je[n]=r,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,r):d(!!e._support):d(!0)}catch(e){r(e)}}));return p(n,t,r),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,r){var n=Xe[e]?l.resolve(Xe[e]):l.reject(new Error("Driver not found."));return p(n,t,r),n},e.prototype.getSerializer=function(e){var t=l.resolve(ve);return p(t,e),t},e.prototype.ready=function(e){var t=this,r=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return p(r,e,e),r},e.prototype.setDriver=function(e,t,r){var n=this;qe(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){n._config.driver=n.driver()}function a(e){return n._extend(e),o(),n._ready=n._initStorage(n._config),n._ready}function s(e){return function(){var t=0;function r(){for(;t<e.length;){var i=e[t];return t++,n._dbInfo=null,n._ready=null,n.getDriver(i).then(a).catch(r)}o();var s=new Error("No available storage method found.");return n._driverSet=l.reject(s),n._driverSet}return r()}}var c=null!==this._driverSet?this._driverSet.catch((function(){return l.resolve()})):l.resolve();return this._driverSet=c.then((function(){var e=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(e).then((function(e){n._driver=e._driver,o(),n._wrapLibraryMethodsWithReady(),n._initDriver=s(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return n._driverSet=l.reject(e),n._driverSet})),p(this._driverSet,t,r),this._driverSet},e.prototype.supports=function(e){return!!Je[e]},e.prototype._extend=function(e){ot(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=e[r];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=rt.length;e<t;e++)it(this,rt[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),st=new at;t.exports=st},{3:3}]},{},[4])(4)},34954:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,i=e.length;for(r=0;r<i;r+=1)for(var o in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(t.prototype[o]=n[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,i,o,a,s,c,l,u;switch(c=r*(1-t),l=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=r*(1-(1-s)*t),a%6){case 0:n=r,i=u,o=c;break;case 1:n=l,i=r,o=c;break;case 2:n=c,i=r,o=u;break;case 3:n=c,i=l,o=r;break;case 4:n=u,i=c,o=r;break;case 5:n=r,i=c,o=l}return[n,i,o]}function RGBtoHSV(e,t,r){var n,i=Math.max(e,t,r),o=Math.min(e,t,r),a=i-o,s=0===i?0:a/i,c=i/255;switch(i){case o:n=0;break;case e:n=t-r+a*(t<r?6:0),n/=6*a;break;case t:n=r-e+2*a,n/=6*a;break;case r:n=e-t+4*a,n/=6*a}return[n,s,c]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,r=1,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,i}((function(e){if(o.dataManager||(o.dataManager=function(){function e(i,o){var a,s,c,l,u,d,h=i.length;for(s=0;s<h;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(l=f.length,c=0;c<l;c+=1)if(f[c].pt.k.i)n(f[c].pt.k);else for(d=f[c].pt.k.length,u=0;u<d;u+=1)f[c].pt.k[u].s&&n(f[c].pt.k[u].s[0]),f[c].pt.k[u].e&&n(f[c].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&p(a)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;i<o;i+=1)e[t].ks.k[i].s&&n(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&n(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var o,a=function(){var e=[4,4,14];function t(e){var t,r,n,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(n=void 0,n=(r=e[t]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),s=(o=[4,7,99],function(e){if(e.chars&&!i(o,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),c=function(){var e=[5,7,15];function t(e){var t,r,n=e.length;for(t=0;t<n;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),l=function(){var e=[4,1,9];function t(e){var r,n,i,o=e.length;for(r=0;r<o;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,n=0;n<i;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var r,n,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,n=0;n<i;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,i,o,a,s,c=e.length;for(n=0;n<c;n+=1){if((r=e[n]).hasMask){var l=r.masksProperties;for(o=l.length,i=0;i<o;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(s=l[i].pt.k.length,a=0;a<s;a+=1)l[i].pt.k[a].s&&(l[i].pt.k[a].s[0].c=l[i].cl),l[i].pt.k[a].e&&(l[i].pt.k[a].e[0].c=l[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();function p(e){0===e.t.a.length&&e.t.p}var d={completeData:function(r){r.__complete||(l(r),a(r),s(r),c(r),u(r),e(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,n),e(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return d.checkColors=l,d.checkChars=s,d.checkPathProperties=c,d.checkShapes=u,d.completeLayers=e,d}()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,n,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),n(o);else try{o=e(a),n(o)}catch(e){i&&i(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=n[r];n[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(r+=1);return n[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=t+i}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:t};return o},createImageData:function(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),n={},i=0,o=0;o<r.length;o+=1)2===(t=r[o].split(":")).length&&(n[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var i=t[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[n].cm)}catch(r){try{o.payload=e(t[n].cm)}catch(e){o.payload={name:t[n].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,o=e.layers,a=o.length;for(r=0;r<a;r+=1)for(t=0;t<i;){if(n[t].id===o[r].id){n[t]=o[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,i=0,o=!0,a=!1;function s(e){for(var r=0,i=e.target;r<n;)t[r].animation===i&&(t.splice(r,1),r-=1,n-=1,i.isPaused||u()),r+=1}function c(e,r){if(!e)return null;for(var i=0;i<n;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var o=new AnimationItem;return p(o,e),o.setData(e,r),o}function l(){i+=1,f()}function u(){i-=1}function p(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",l),e.addEventListener("_idle",u),t.push({elem:r,animation:e}),n+=1}function d(e){var s,c=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(c);r=e,i&&!a?window.requestAnimationFrame(d):o=!0}function h(e){r=e,window.requestAnimationFrame(d)}function f(){!a&&i&&o&&(window.requestAnimationFrame(h),o=!1)}return e.registerAnimation=c,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),c(i[n],e);if(t&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),c(s,e)}},e.resize=function(){var e;for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var o;for(o=0;o<n;o+=1)t[o].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,f()},e.setVolume=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,i,o){var a=o||("bez_"+e+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new l([e,r,n,i]);return t[a]=s,s}},t={},r=.1,n="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function a(e){return 3*e}function s(e,t,r){return((i(t,r)*e+o(t,r))*e+a(t))*e}function c(e,t,r){return 3*i(t,r)*e*e+2*o(t,r)*e+a(t)}function l(e){this._p=e,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&n===i?e:0===e?0:1===e?1:s(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=s(n*r,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],i=this._mSampleValues,o=0,a=1;10!==a&&i[a]<=e;++a)o+=r;var l=o+(e-i[--a])/(i[a+1]-i[a])*r,u=c(l,t,n);return u>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var o=c(t,r,n);if(0===o)return t;t-=(s(t,r,n)-e)/o}return t}(e,l,t,n):0===u?l:function(e,t,r,n,i){var o,a,c=0;do{(o=s(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a}while(Math.abs(o)>1e-7&&++c<10);return a}(e,o,o+r,t,n)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,i=e,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:t()},release:function(e){n===i&&(o=pooling.double(o),i*=2),r&&r(e),o[n]=e,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,n,i,o){var a=e*n+t*i+r*o-i*n-o*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,n){var i,o,a,s,c,l,u=getDefaultCurveSegments(),p=0,d=[],h=[],f=bezierLengthPool.newElement();for(a=r.length,i=0;i<u;i+=1){for(c=i/(u-1),l=0,o=0;o<a;o+=1)s=bmPow(1-c,3)*e[o]+3*bmPow(1-c,2)*c*r[o]+3*(1-c)*bmPow(c,2)*n[o]+bmPow(c,3)*t[o],d[o]=s,null!==h[o]&&(l+=bmPow(d[o]-h[o],2)),h[o]=d[o];l&&(p+=l=bmSqrt(l)),f.percents[i]=c,f.lengths[i]=p}return f.addedLength=p,f};function n(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var o,a=(o={},function(e,r,a,s){var c=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[c]){var l,u,p,d,h,f,m,g=getDefaultCurveSegments(),v=0,y=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new n(g);for(p=a.length,l=0;l<g;l+=1){for(m=createSizedArray(p),h=l/(g-1),f=0,u=0;u<p;u+=1)d=bmPow(1-h,3)*e[u]+3*bmPow(1-h,2)*h*(e[u]+a[u])+3*(1-h)*bmPow(h,2)*(r[u]+s[u])+bmPow(h,3)*r[u],m[u]=d,null!==y&&(f+=bmPow(m[u]-y[u],2));v+=f=bmSqrt(f),b.points[l]=new i(f,m),y=m}b.segmentLength=v,o[c]=b}return o[c]});function s(e,t){var r=t.percents,n=t.lengths,i=r.length,o=bmFloor((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===n[o])return r[o];for(var c=n[o]>a?-1:1,l=!0;l;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),l=!1):o+=c,o<0||o>=i-1){if(o===i-1)return r[o];l=!1}return r[o]+(r[o+1]-r[o])*s}var c=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,c=e._length,l=n.lengths,u=0;for(t=0;t<c-1;t+=1)l[t]=r(o[t],o[t+1],a[t],s[t+1]),u+=l[t].addedLength;return i&&c&&(l[t]=r(o[t],o[0],a[t],s[0]),u+=l[t].addedLength),n.totalLength=u,n},getNewSegment:function(t,r,n,i,o,a,l){o<0?o=0:o>1&&(o=1);var u,p=s(o,l),d=s(a=a>1?1:a,l),h=t.length,f=1-p,m=1-d,g=f*f*f,v=p*f*f*3,y=p*p*f*3,b=p*p*p,_=f*f*m,E=p*f*m+f*p*m+f*f*d,w=p*p*m+f*p*d+p*f*d,L=p*p*d,x=f*m*m,S=p*m*m+f*d*m+f*m*d,O=p*d*m+f*d*d+p*m*d,T=p*d*d,I=m*m*m,P=d*m*m+m*d*m+m*m*d,C=d*d*m+m*d*d+d*m*d,A=d*d*d;for(u=0;u<h;u+=1)c[4*u]=e.round(1e3*(g*t[u]+v*n[u]+y*i[u]+b*r[u]))/1e3,c[4*u+1]=e.round(1e3*(_*t[u]+E*n[u]+w*i[u]+L*r[u]))/1e3,c[4*u+2]=e.round(1e3*(x*t[u]+S*n[u]+O*i[u]+T*r[u]))/1e3,c[4*u+3]=e.round(1e3*(I*t[u]+P*n[u]+C*i[u]+A*r[u]))/1e3;return c},getPointInSegment:function(t,r,n,i,o,a){var c=s(o,a),l=1-c;return[e.round(1e3*(l*l*l*t[0]+(c*l*l+l*c*l+l*l*c)*n[0]+(c*c*l+l*c*c+c*l*c)*i[0]+c*c*c*r[0]))/1e3,e.round(1e3*(l*l*l*t[1]+(c*l*l+l*c*l+l*l*c)*n[1]+(c*c*l+l*c*c+c*l*c)*i[1]+c*c*c*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,n,i,o,a,s,c,l,u){if(0===i&&0===s&&0===u)return t(r,n,o,a,c,l);var p,d=e.sqrt(e.pow(o-r,2)+e.pow(a-n,2)+e.pow(s-i,2)),h=e.sqrt(e.pow(c-r,2)+e.pow(l-n,2)+e.pow(u-i,2)),f=e.sqrt(e.pow(c-o,2)+e.pow(l-a,2)+e.pow(u-s,2));return(p=d>h?d>f?d-h-f:f-h-d:f>h?f-h-d:h-d-f)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,o,a,s,c,l,u,p,d,h=t.lastIndex,f=h,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],o=this.keyframes[f+1],f===m-1&&e>=o.t-n){i.h&&(i=o),h=0;break}if(o.t-n>e){h=f;break}f<m-1?f+=1:(h=0,g=!1)}a=this.keyframesMetadata[f]||{};var v,y=o.t-n,b=i.t-n;if(i.to){a.bezierData||(a.bezierData=bez.buildBezierData(i.s,o.s||i.e,i.to,i.ti));var _=a.bezierData;if(e>=y||e<b){var E=e>=y?_.points.length-1:0;for(c=_.points[E].point.length,s=0;s<c;s+=1)r[s]=_.points[E].point[s]}else{a.__fnct?d=a.__fnct:(d=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=d),l=d((e-b)/(y-b));var w,L=_.segmentLength*l,x=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,u=_.points.length;g;){if(x+=_.points[p].partialLength,0===L||0===l||p===_.points.length-1){for(c=_.points[p].point.length,s=0;s<c;s+=1)r[s]=_.points[p].point[s];break}if(L>=x&&L<x+_.points[p+1].partialLength){for(w=(L-x)/_.points[p+1].partialLength,c=_.points[p].point.length,s=0;s<c;s+=1)r[s]=_.points[p].point[s]+(_.points[p+1].point[s]-_.points[p].point[s])*w;break}p<u-1?p+=1:g=!1}t._lastPoint=p,t._lastAddedLength=x-_.points[p].partialLength,t._lastKeyframeIndex=f}}else{var S,O,T,I,P;if(m=i.s.length,v=o.s||i.e,this.sh&&1!==i.h)e>=y?(r[0]=v[0],r[1]=v[1],r[2]=v[2]):e<=b?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(v),(e-b)/(y-b)));else for(f=0;f<m;f+=1)1!==i.h&&(e>=y?l=1:e<b?l=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[f]?d=a.__fnct[f]:(S=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],O=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],T=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],I=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],d=BezierFactory.getBezierEasing(S,O,T,I).get,a.__fnct[f]=d)):a.__fnct?d=a.__fnct:(S=i.o.x,O=i.o.y,T=i.i.x,I=i.i.y,d=BezierFactory.getBezierEasing(S,O,T,I).get,i.keyframeMetadata=d),l=d((e-b)/(y-b)))),v=o.s||i.e,P=1===i.h?i.s[f]:i.s[f]+(v[f]-i.s[f])*l,"multidimensional"===this.propType?r[f]=P:r=P}return t.lastIndex=h,r}function slerp(e,t,r){var n,i,o,a,s,c=[],l=e[0],u=e[1],p=e[2],d=e[3],h=t[0],f=t[1],m=t[2],g=t[3];return(i=l*h+u*f+p*m+d*g)<0&&(i=-i,h=-h,f=-f,m=-m,g=-g),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/o):(a=1-r,s=r),c[0]=a*l+s*h,c[1]=a*u+s*f,c[2]=a*p+s*m,c[3]=a*d+s*g,c}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i),s=Math.asin(2*r*n+2*i*o),c=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(t/2),c=Math.sin(r/2),l=Math.sin(n/2);return[s*c*a+i*o*l,s*o*a+i*c*l,i*c*a-s*o*l,i*o*a-s*c*l]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var i;this.propType="multidimensional";var o,a,s,c,l=t.k.length;for(i=0;i<l-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(o=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,c=t.k[i].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+c[0],a[1]+c[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+c[0],a[1]+c[1],a[2]+c[2]))&&(t.k[i].to=null,t.k[i].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===c[0]&&0===c[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===c[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,i){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,n,i);else switch(r){case 0:o=new KeyframedValueProperty(e,t,n,i);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,n,i)}else o=new ValueProperty(e,t,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=e,o[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var n,i,o,a,s,c,l,u,p,d=r.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)n=h[0].s[0],o=!0,d=0;else if(e>=h[h.length-1].t-this.offsetTime)n=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],o=!0;else{for(var f,m,g,v=d,y=h.length-1,b=!0;b&&(f=h[v],!((m=h[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},d=v,!(o=1===f.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<f.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=_),u=_((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}n=f.s[0]}for(c=t._length,l=n.i[0].length,r.lastIndex=d,a=0;a<c;a+=1)for(s=0;s<l;s+=1)p=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*u,t.i[a][s]=p,p=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*u,t.o[a][s]=p,p=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*u,t.v[a][s]=p}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function c(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,c.prototype.getValue=o,c.prototype.interpolateShape=t,c.prototype.setVValue=i,c.prototype.addEffect=s;var l=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-i,a.v[1][0]=o?t+n:t-n,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+i,a.v[3][0]=o?t-n:t+n,a.v[3][1]=r,a.i[0][0]=o?t-n*e:t+n*e,a.i[0][1]=r-i,a.i[1][0]=o?t+n:t-n,a.i[1][1]=r-i*e,a.i[2][0]=o?t+n*e:t-n*e,a.i[2][1]=r+i,a.i[3][0]=o?t-n:t+n,a.i[3][1]=r+i*e,a.o[0][0]=o?t+n*e:t-n*e,a.o[0][1]=r-i,a.o[1][0]=o?t+n:t-n,a.o[1][1]=r+i*e,a.o[2][0]=o?t-n*e:t+n*e,a.o[2][1]=r+i,a.o[3][0]=o?t-n:t+n,a.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,c=this.ir.v,l=this.os.v,u=this.is.v,p=2*Math.PI*s/(2*i),d=2*Math.PI*c/(2*i),h=-Math.PI/2;h+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=a?l:u,n=a?p:d;var m=(t=a?s:c)*Math.cos(h),g=t*Math.sin(h),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*n*r*f,g-y*n*r*f,m+v*n*r*f,g+y*n*r*f,e,!0),a=!a,h+=o*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var c=n*Math.cos(a),l=n*Math.sin(a),u=0===c&&0===l?0:l/Math.sqrt(c*c+l*l),p=0===c&&0===l?0:-c/Math.sqrt(c*c+l*l);c+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(c,l,c-u*o*i*s,l-p*o*i*s,c+u*o*i*s,l+p*o*i*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+i,e+r,t-n+o,0,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-o,e+r,t+n-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+n,e+r-i,t+n,e+r-o,t+n,2,!0),this.v.setTripleAt(e-r+i,t+n,e-r+o,t+n,e-r+i,t+n,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-i,e-r,t+n-o,4,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+o,e-r,t-n+i,5,!0),this.v.setTripleAt(e-r+i,t-n,e-r+i,t-n,e-r+o,t-n,6,!0),this.v.setTripleAt(e+r-i,t-n,e+r-o,t-n,e+r-i,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+o,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+o,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+o,e+r,t-n+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-n,e+r-i,t-n,e+r-o,t-n,1,!0),this.v.setTripleAt(e-r+i,t-n,e-r+o,t-n,e-r+i,t-n,2,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+i,e-r,t-n+o,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-o,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r+i,t+n,e-r+i,t+n,e-r+o,t+n,5,!0),this.v.setTripleAt(e+r-i,t+n,e+r-o,t+n,e+r-i,t+n,6,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-i,e+r,t+n-o,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+o,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-o,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-o,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),d={getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new c(e,t,r):new a(e,t,r):5===r?n=new p(e,t):6===r?n=new l(e,t):7===r&&(n=new u(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return c}};return d}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function c(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function l(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(r(e),r(t))}function p(n,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function d(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function h(e,t,r,n,i,o,a,s,c,l,u,p,d,h,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=c,this.props[9]=l,this.props[10]=u,this.props[11]=p,this.props[12]=d,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function f(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,n,i,o,a,s,c,l,u,p,d,h,f,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===c&&0===l&&1===u&&0===p)return g[12]=g[12]*e+g[15]*d,g[13]=g[13]*o+g[15]*h,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],_=g[3],E=g[4],w=g[5],L=g[6],x=g[7],S=g[8],O=g[9],T=g[10],I=g[11],P=g[12],C=g[13],A=g[14],k=g[15];return g[0]=v*e+y*i+b*c+_*d,g[1]=v*t+y*o+b*l+_*h,g[2]=v*r+y*a+b*u+_*f,g[3]=v*n+y*s+b*p+_*m,g[4]=E*e+w*i+L*c+x*d,g[5]=E*t+w*o+L*l+x*h,g[6]=E*r+w*a+L*u+x*f,g[7]=E*n+w*s+L*p+x*m,g[8]=S*e+O*i+T*c+I*d,g[9]=S*t+O*o+T*l+I*h,g[10]=S*r+O*a+T*u+I*f,g[11]=S*n+O*s+T*p+I*m,g[12]=P*e+C*i+A*c+k*d,g[13]=P*t+C*o+A*l+k*h,g[14]=P*r+C*a+A*u+k*f,g[15]=P*n+C*s+A*p+k*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function E(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function w(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function L(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function x(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function S(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function O(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function T(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=O(e[t]);return n}function I(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],c=this.props[12],l=this.props[13];n[0]=e[0]*i+e[1]*a+c,n[1]=e[0]*o+e[1]*s+l,n[2]=t[0]*i+t[1]*a+c,n[3]=t[0]*o+t[1]*s+l,n[4]=r[0]*i+r[1]*a+c,n[5]=r[0]*o+r[1]*s+l}return n}function P(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function C(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function A(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function k(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function D(){var e=this.props;return"matrix("+k(e[0])+","+k(e[1])+","+k(e[4])+","+k(e[5])+","+k(e[12])+","+k(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=c,this.skew=u,this.skewFromAxis=p,this.shear=l,this.scale=d,this.setTransform=h,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=E,this.applyToX=w,this.applyToY=L,this.applyToZ=x,this.applyToPointArray=P,this.applyToTriplePoints=I,this.applyToPointStringified=C,this.toCSS=A,this.to2dCSS=D,this.clone=b,this.cloneFromProps=_,this.equals=y,this.inversePoints=T,this.inversePoint=O,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,c=[],l=o.length;for(a=0;a<l;a+=1){var u,p;(s=o[a]).e*i<n||s.s*i>n+r||(u=s.s*i<=n?0:(s.s*i-n)/r,p=s.e*i>=n+r?1:(s.e*i-n)/r,c.push([u,p]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,c,l,u,p,d=this.shapes.length,h=0;if(r===t)for(i=0;i<d;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<d;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<d;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(c=(n=f.shape.paths)._length,p=0,!f.shape._mdf&&f.pathsData.length)p=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),s=0;s<c;s+=1)u=bez.getSegmentsLength(n.shapes[s]),l.push(u),p+=u.totalLength;f.totalShapeLength=p,f.pathsData=l}h+=p,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=t,b=r,_=0;for(i=d-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&d>1?(v=this.calculateShapeEdges(t,r,f.totalShapeLength,_,h),_+=f.totalShapeLength):v=[[y,b]],c=v.length,s=0;s<c;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var E=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var w=E.pop();this.addPaths(E,m),E=this.addShapes(f,g[1],w)}else this.addPaths(E,m),E=this.addShapes(f,g[1]);this.addPaths(E,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,i,o,a,s,c,l,u,p=e.pathsData,d=e.shape.paths.shapes,h=e.shape.paths._length,f=0,m=[],g=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<h;n+=1){for(c=p[n].lengths,r.c=d[n].c,o=d[n].c?c.length:c.length+1,i=1;i<o;i+=1)if(f+(a=c[i-1]).addedLength<t.s)f+=a.addedLength,r.c=!1;else{if(f>t.e){r.c=!1;break}t.s<=f&&t.e>=f+a.addedLength?(this.addSegment(d[n].v[i-1],d[n].o[i-1],d[n].i[i],d[n].v[i],r,s,g),g=!1):(l=bez.getNewSegment(d[n].v[i-1],d[n].v[i],d[n].o[i-1],d[n].i[i],(t.s-f)/a.addedLength,(t.e-f)/a.addedLength,c[i-1]),this.addSegmentFromArray(l,r,s,g),g=!1,r.c=!1),f+=a.addedLength,s+=1}if(d[n].c&&c.length){if(a=c[i-1],f<=t.e){var v=c[i-1].addedLength;t.s<=f&&t.e>=f+v?(this.addSegment(d[n].v[i-1],d[n].o[i-1],d[n].i[0],d[n].v[0],r,s,g),g=!1):(l=bez.getNewSegment(d[n].v[i-1],d[n].v[0],d[n].o[i-1],d[n].i[0],(t.s-f)/v,(t.e-f)/v,c[i-1]),this.addSegmentFromArray(l,r,s,g),g=!1,r.c=!1)}else r.c=!1;f+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>t.e)break;n<h-1&&(r=shapePool.newElement(),g=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)n[0]+=e.v[o][0],n[1]+=e.v[o][1];n[0]/=i,n[1]/=i;var a,s,c,l,u,p,d=shapePool.newElement();for(d.c=e.c,o=0;o<i;o+=1)a=e.v[o][0]+(n[0]-e.v[o][0])*r,s=e.v[o][1]+(n[1]-e.v[o][1])*r,c=e.o[o][0]+(n[0]-e.o[o][0])*-r,l=e.o[o][1]+(n[1]-e.o[o][1])*-r,u=e.i[o][0]+(n[0]-e.i[o][0])*-r,p=e.i[o][1]+(n[1]-e.i[o][1])*-r,d.setTripleAt(a,s,c,l,u,p,o);return d},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amount.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,i=t.or.k.length;for(n=0;n<i;n+=1)t.or.k[n].to=null,t.or.k[n].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var o=Math.sqrt(n)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],n[0]),a=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,i,o){if(boxIntersect(e,t))if(r>=o||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)i.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,n,i,o),intersectsImpl(a[0],s[1],r+1,n,i,o),intersectsImpl(a[1],s[0],r+1,n,i,o),intersectsImpl(a[1],s[1],r+1,n,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],c=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,o,a){var s=r-Math.PI/2,c=r+Math.PI/2,l=t[0]+Math.cos(r)*n*i,u=t[1]-Math.sin(r)*n*i;e.setTripleAt(l,u,l+Math.cos(s)*o,u-Math.sin(s)*o,l+Math.cos(c)*a,u-Math.sin(c)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,o,a){var s=getProjectingAngle(t,r),c=t.v[r%t._length],l=t.v[0===r?t._length-1:r-1],u=t.v[(r+1)%t._length],p=2===o?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0,d=2===o?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],s,a,n,d/(2*(i+1)),p/(2*(i+1)),o)}function zigZagSegment(e,t,r,n,i,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),c=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,l=t.normalAngle(s);setPoint(e,t.point(s),l,o,r,c/(2*(n+1)),c/(2*(n+1)),i),o=-o}return o}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,i,o,a,s,c;r=(c=linearOffset(e.points[0],e.points[1],t))[0],n=c[1],i=(c=linearOffset(e.points[1],e.points[2],t))[0],o=c[1],a=(c=linearOffset(e.points[2],e.points[3],t))[0],s=c[1];var l=lineIntersection(r,n,i,o);null===l&&(l=n);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(r,l,u,s)}function joinLines(e,t,r,n,i){var o=t.points[3],a=r.points[0];if(3===n)return o;if(pointEqual(o,a))return o;if(2===n){var s=-t.tangentAngle(1),c=-r.tangentAngle(0)+Math.PI,l=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=l?pointDistance(l,o):pointDistance(o,a)/2,p=polarOffset(o,s,2*u*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(a,c,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],e.length()),a}var d=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return d&&pointDistance(d,o)<i?(e.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],e.length()),d):o}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(r[e.length-1]=e[e.length-1].split(i[0])[0],n[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(i=e.split(a[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,i,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),c=n.s.v[1]+(1-n.s.v[1])*(1-i);e.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*a*i),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/s:s,o?1/c:c),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,i,o,a=!1;if(this._mdf||e){var s,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<c,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var u=this.elemsData[n].it,p=u[u.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}o+=1}this._currentCopies=c;var d=this.o.v,h=d%1,f=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,_=0;if(d>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),_+=h)}else if(d<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),_-=h)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==_){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)r[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)r[y]=this.matrix.props[y];_+=1,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,n+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var i,o,a,s,c,l,u,p,d,h,f,m,g=e._length,v=0;for(r=0;r<g;r+=1)i=e.v[r],a=e.o[r],o=e.i[r],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=f=i[0]+(s[0]-i[0])*l,p=m=i[1]-(i[1]-s[1])*l,d=u-(u-i[0])*roundCorner,h=p-(p-i[1])*roundCorner,n.setTripleAt(u,p,d,h,f,m,v),v+=1,s=r===g-1?e.v[0]:e.v[r+1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=d=i[0]+(s[0]-i[0])*l,p=h=i[1]+(s[1]-i[1])*l,f=u-(u-i[0])*roundCorner,m=p-(p-i[1])*roundCorner,n.setTripleAt(u,p,d,h,f,m,v),v+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],v),v+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],v),v+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.rd.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),o=lerpPoint(r,n,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,n,a);for(var c=0;c<i;c+=1)a=zigZagSegment(o,s,t,r,n,-a),s=c!==i-1||e.c?PolynomialBezier.shapeSegment(e,(c+1)%i):null,zigZagCorner(o,e,c+1,t,r,n,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c,l,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var i=shapePool.newElement();i.c=e.c;var o,a,s,c=e.length();e.c||(c-=1);var l=[];for(o=0;o<c;o+=1)s=PolynomialBezier.shapeSegment(e,o),l.push(offsetSegmentSplit(s,t));if(!e.c)for(o=c-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),l.push(offsetSegmentSplit(s,t));l=pruneIntersections(l);var u=null,p=null;for(o=0;o<l.length;o+=1){var d=l[o];for(p&&(u=joinLines(i,p,d[0],r,n)),p=d[d.length-1],a=0;a<d.length;a+=1)s=d[a],u&&pointEqual(s.points[0],u)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),u=s.points[3]}return l.length&&joinLines(i,p,l[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amount.v,l=this.miterLimit.v,u=this.lineJoin;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c,u,l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,i=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:n,w:i,parent:r}}function o(e,t){var r,n=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var c=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};c.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},c.isZeroWidthJoiner=function(e){return 8205===e},c.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},c.isRegionalCode=s,c.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},c.isRegionalFlag=function(e,t){var n=a(e.substr(t,2));if(n!==r)return!1;var i=0;for(t+=2;i<5;){if((n=a(e.substr(t,2)))<917601||n>917626)return!1;i+=1,t+=2}return 917631===a(e.substr(t,2))},c.isVariationSelector=function(e){return 65039===e},c.BLACK_FLAG_CODE_POINT=r;var l={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(r=0,n=!1;r<o;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),o+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=o(e),e.cache={}})),void(this.fonts=e.list);var r,n=e.list,a=n.length,s=a;for(r=0;r<a;r+=1){var c,l,u=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(u=!1),u){var p=createTag("style");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("f-family",n[r].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(p)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<c.length;l+=1)-1!==c[l].href.indexOf(n[r].fPath)&&(u=!1);if(u){var d=createTag("link");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.type="text/css",d.rel="stylesheet",d.href=n[r].fPath,document.body.appendChild(d)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<c.length;l+=1)n[r].fPath===c[l].src&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",n[r].fPath),t.appendChild(h)}}}else n[r].loaded=!0,s-=1;n[r].helper=o(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,n)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var n=this.getFontByName(t),i=e;if(!n.cache[i]){var o=n.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");n.cache[i]=(a-s)/100}else n.cache[i]=o.measureText(e)/100}return n.cache[i]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,i=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return c.prototype=l,c}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],t,this);break;case 1:n=new AngleEffect(o[r],t,this);break;case 2:n=new ColorEffect(o[r],t,this);break;case 3:n=new PointEffect(o[r],t,this);break;case 4:case 7:n=new CheckboxEffect(o[r],t,this);break;case 10:n=new LayerIndexEffect(o[r],t,this);break;case 11:n=new MaskIndexEffect(o[r],t,this);break;case 5:n=new EffectsManager(o[r],t,this);break;default:n=new NoValueEffect(o[r],t,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),i=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,r):e.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,c,l,u,p,d,h=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(n=0;n<a;n+=1)if(("a"!==h[n].mode&&"n"!==h[n].mode||h[n].inv||100!==h[n].o.k||h[n].o.x)&&(v="mask",y="mask"),"s"!==h[n].mode&&"i"!==h[n].mode||0!==f?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),i=createNS("path"),"n"===h[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(f+=1,i.setAttribute("fill","s"===h[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==h[n].x.k?(v="mask",y="mask",d=PropertyFactory.getProp(this.element,h[n].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),u.appendChild(p),o.appendChild(u),i.setAttribute("stroke","s"===h[n].mode?"#000000":"#ffffff")):(p=null,d=null),this.storedData[n]={elem:i,x:d,expan:p,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===h[n].mode){c=m.length;var _=createNS("g");for(s=0;s<c;s+=1)_.appendChild(m[s]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",g+"_"+f),E.appendChild(i),o.appendChild(E),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(_)}else m.push(i);h[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),invRect:l},this.viewData[n].prop.k||this.drawPath(h[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(v),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,a=t.length;for(r=0;r<a;r+=1)o=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,n=1;n<i;n+=1)o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&i>1&&(o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var c=e.data.ef[t].ty;registeredEffects$1[c]&&(r=new(0,registeredEffects$1[c].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,i,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var c=createNS("g");s.appendChild(c),t=createElementID(),r=filtersFactory.createFilter(t);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),r.appendChild(l);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),l.appendChild(u),this.globalData.defs.appendChild(r);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),c.appendChild(p),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),c.appendChild(p),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,i=e.length;n<i;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,a=t.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)i=createNS("stop"),n.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),c=createElementID();o.setAttribute("id",c);var l=createNS(1===e.t?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),u.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=l,this.ms=o,this.ost=u,this.maskId=c,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,c=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&t&&(c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),c+="z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var o,a,s,c,l,u,p,d,h,f,m=n.styles.length,g=n.lvl;for(u=0;u<m;u+=1){if(c=n.sh._mdf||i,n.styles[u].lvl<g){for(d=t.reset(),h=g-n.styles[u].lvl,f=n.transformers.length-1;!c&&h>0;)c=n.transformers[f].mProps._mdf||c,h-=1,f-=1;if(c)for(h=g-n.styles[u].lvl,f=n.transformers.length-1;h>0;)d.multiply(n.transformers[f].mProps.v),h-=1,f-=1}else d=e;if(a=(p=n.sh.paths)._length,c){for(s="",o=0;o<a;o+=1)(l=p.shapes[o])&&l._length&&(s+=buildShapeString(l,l._length,l.c,d));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=c||n.styles[u]._mdf}}function o(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,r){s(e,t,r),c(0,t,r)}function s(e,t,r){var n,i,o,a,s,c=t.gf,l=t.g._hasOpacity,u=t.s.v,p=t.e.v;if(t.o._mdf||r){var d="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(d,t.o.v)}if(t.s._mdf||r){var h=1===e.t?"x1":"cx",f="x1"===h?"y1":"cy";c.setAttribute(h,u[0]),c.setAttribute(f,u[1]),l&&!t.g._collapsable&&(t.of.setAttribute(h,u[0]),t.of.setAttribute(f,u[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(o=n.length,i=0;i<o;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(l&&(t.g._omdf||r)){var g=t.g.o;for(o=(n=t.g._collapsable?t.cst:t.ost).length,i=0;i<o;i+=1)a=n[i],t.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(c.setAttribute("x2",p[0]),c.setAttribute("y2",p[1]),l&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-p[0],2)+Math.pow(u[1]-p[1],2)),c.setAttribute("r",s),l&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-p[0],2)+Math.pow(u[1]-p[1],2)));var v=Math.atan2(p[1]-u[1],p[0]-u[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,_=Math.cos(v+t.a.v)*b+u[0],E=Math.sin(v+t.a.v)*b+u[1];c.setAttribute("fx",_),c.setAttribute("fy",E),l&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",E))}}function c(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,i,o){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),i=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,n)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,i,o,a){var s,c,l,u,p,d,h=[].concat(o),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((d=this.searchProcessedElement(e[s]))?t[s]=r[d-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)d?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(d)for(l=t[s].it.length,c=0;c<l;c+=1)t[s].prevViewData[c]=t[s].it[c];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,h,a),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(d||(t[s]=this.createTransformElement(e[s],n)),u=t[s].transform,h.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(d||(t[s]=this.createShapeElement(e[s],h,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(d?(p=t[s]).closed=!1:((p=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),g.push(p)):"rp"===e[s].ty&&(d?(p=t[s]).closed=!0:(p=ShapeModifiers.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),a=!1),g.push(p));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],i=0,o=e.length,a=!1,s=!1,c="";i<o;)a=s,s=!1,t=e.charCodeAt(i),c=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?c=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(c=e.substr(i,2),a=!0):c=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(n[n.length-1]+=c,a=!1):n.push(c),i+=c.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,i,o,a,s,c=this.elem.globalData.fontManager,l=this.data,u=[],p=0,d=l.m.g,h=0,f=0,m=0,g=[],v=0,y=0,b=c.getFontByName(e.f),_=0,E=getFontProperties(b);e.fWeight=E.weight,e.fStyle=E.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var w,L=e.tr/1e3*e.finalSize;if(e.sz)for(var x,S,O=!0,T=e.sz[0],I=e.sz[1];O;){x=0,v=0,r=(S=this.buildFinalText(e.t)).length,L=e.tr/1e3*e.finalSize;var P=-1;for(t=0;t<r;t+=1)w=S[t].charCodeAt(0),n=!1," "===S[t]?P=t:13!==w&&3!==w||(v=0,n=!0,x+=e.finalLineHeight||1.2*e.finalSize),c.chars?(s=c.getCharData(S[t],b.fStyle,b.fFamily),_=n?0:s.w*e.finalSize/100):_=c.measureText(S[t],e.f,e.finalSize),v+_>T&&" "!==S[t]?(-1===P?r+=1:t=P,x+=e.finalLineHeight||1.2*e.finalSize,S.splice(t,P===t?1:0,"\r"),P=-1,v=0):(v+=_,v+=L);x+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&I<x?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=S,r=e.finalText.length,O=!1)}v=-L,_=0;var C,A=0;for(t=0;t<r;t+=1)if(n=!1,13===(w=(C=e.finalText[t]).charCodeAt(0))||3===w?(A=0,g.push(v),y=v>y?v:y,v=-2*L,i="",n=!0,m+=1):i=C,c.chars?(s=c.getCharData(C,b.fStyle,c.getFontByName(e.f).fFamily),_=n?0:s.w*e.finalSize/100):_=c.measureText(i,e.f,e.finalSize)," "===C?A+=_+L:(v+=_+L+A,A=0),u.push({l:_,an:_,add:h,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(h+=_,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(h-=_);f<=t;)u[f].an=h,u[f].ind=p,u[f].extra=_,f+=1;p+=1,h=0}}else if(3==d){if(h+=_,""===i||t===r-1){for(""===i&&(h-=_);f<=t;)u[f].an=h,u[f].ind=p,u[f].extra=_,f+=1;h=0,p+=1}}else u[p].ind=p,u[p].extra=0,p+=1;if(e.l=u,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var k,D,N,R,M=l.a;a=M.length;var j=[];for(o=0;o<a;o+=1){for((k=M[o]).a.sc&&(e.strokeColorAnim=!0),k.a.sw&&(e.strokeWidthAnim=!0),(k.a.fc||k.a.fh||k.a.fs||k.a.fb)&&(e.fillColorAnim=!0),R=0,N=k.s.b,t=0;t<r;t+=1)(D=u[t]).anIndexes[o]=R,(1==N&&""!==D.val||2==N&&""!==D.val&&" "!==D.val||3==N&&(D.n||" "==D.val||t==r-1)||4==N&&(D.n||t==r-1))&&(1===k.s.rn&&j.push(R),R+=1);l.a[o].s.totalChars=R;var Z,F=-1;if(1===k.s.rn)for(t=0;t<r;t+=1)F!=(D=u[t]).anIndexes[o]&&(F=D.anIndexes[o],Z=j.splice(Math.floor(Math.random()*j.length),1)[0]),D.anIndexes[o]=Z}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var c=BezierFactory.getBezierEasing(i,o,a,s).get,l=0,u=this.finalS,p=this.finalE,d=this.data.sh;if(2===d)l=c(l=p===u?n>=p?1:0:e(0,t(.5/(p-u)+(n-u)/(p-u),1)));else if(3===d)l=c(l=p===u?n>=p?0:1:1-e(0,t(.5/(p-u)+(n-u)/(p-u),1)));else if(4===d)p===u?l=0:(l=e(0,t(.5/(p-u)+(n-u)/(p-u),1)))<.5?l*=2:l=1-2*(l-.5),l=c(l);else if(5===d){if(p===u)l=0;else{var h=p-u,f=-h/2+(n=t(e(0,n+.5-u),p-u)),m=h/2;l=Math.sqrt(1-f*f/(m*m))}l=c(l)}else 6===d?(p===u?l=0:(n=t(e(0,n+.5-u),p-u),l=(1+Math.cos(Math.PI+2*Math.PI*n/(p-u)))/2),l=c(l)):(n>=r(u)&&(l=e(0,t(n-u<0?t(p,1)-(u-n):p-n,1))),l=c(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/g)>1&&(l=1)}return l*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,r):n,rx:o.rx?i(e,o.rx,0,degToRads,r):n,ry:o.ry?i(e,o.ry,0,degToRads,r):n,sk:o.sk?i(e,o.sk,0,degToRads,r):n,sa:o.sa?i(e,o.sa,0,degToRads,r):n,s:o.s?i(e,o.s,1,.01,r):n,a:o.a?i(e,o.a,1,0,r):n,o:o.o?i(e,o.o,0,.01,r):n,p:o.p?i(e,o.p,1,0,r):n,sw:o.sw?i(e,o.sw,0,0,r):n,sc:o.sc?i(e,o.sc,1,0,r):n,fc:o.fc?i(e,o.fc,1,0,r):n,fh:o.fh?i(e,o.fh,0,0,r):n,fs:o.fs?i(e,o.fs,0,.01,r):n,fb:o.fb?i(e,o.fb,0,.01,r):n,t:o.t?i(e,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,a,s,c,l,u,p,d,h,f,m,g,v,y,b,_,E=this._moreOptions.alignment.v,w=this._animatorsData,L=this._textData,x=this.mHelper,S=this._renderType,O=this.renderedLetters.length,T=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var I,P=_.v;for(this._pathData.r.v&&(P=P.reverse()),a={tLength:0,segments:[]},o=P._length-1,v=0,i=0;i<o;i+=1)I=bez.buildBezierData(P.v[i],P.v[i+1],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[i+1][0]-P.v[i+1][0],P.i[i+1][1]-P.v[i+1][1]]),a.tLength+=I.segmentLength,a.segments.push(I),v+=I.segmentLength;i=o,_.v.c&&(I=bez.buildBezierData(P.v[i],P.v[0],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),a.tLength+=I.segmentLength,a.segments.push(I),v+=I.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,d=0,p=1,l=0,u=!0,m=a.segments,s<0&&_.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),p=(f=m[d=m.length-1].points).length-1;s<0;)s+=f[p].partialLength,(p-=1)<0&&(p=(f=m[d-=1].points).length-1);h=(f=m[d].points)[p-1],g=(c=f[p]).partialLength}o=T.length,r=0,n=0;var C,A,k,D,N,R=1.2*e.finalSize*.714,M=!0;k=w.length;var j,Z,F,B,G,U,z,V,H,Y,W,$,K=-1,q=s,X=d,J=p,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,ie=2===e.j?-.5:-1,oe=0,ae=!0;for(i=0;i<o;i+=1)if(T[i].n){for(re&&(re+=ne);oe<i;)T[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(A=0;A<k;A+=1)(C=w[A].a).t.propType&&(ae&&2===e.j&&(ne+=C.t.v*ie),(N=w[A].s.getMult(T[i].anIndexes[A],L.a[A].s.totalChars)).length?re+=C.t.v*N[0]*ie:re+=C.t.v*N*ie);ae=!1}for(re&&(re+=ne);oe<i;)T[oe].animatorJustifyOffset=re,oe+=1}for(i=0;i<o;i+=1){if(x.reset(),B=1,T[i].n)r=0,n+=e.yOffset,n+=M?1:0,s=q,M=!1,this._hasMaskedPath&&(p=J,h=(f=m[d=X].points)[p-1],g=(c=f[p]).partialLength,l=0),ee="",W="",H="",$="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==T[i].line){switch(e.j){case 1:s+=v-e.lineWidths[T[i].line];break;case 2:s+=(v-e.lineWidths[T[i].line])/2}Q=T[i].line}K!==T[i].ind&&(T[K]&&(s+=T[K].extra),s+=T[i].an/2,K=T[i].ind),s+=E[0]*T[i].an*.005;var se=0;for(A=0;A<k;A+=1)(C=w[A].a).p.propType&&((N=w[A].s.getMult(T[i].anIndexes[A],L.a[A].s.totalChars)).length?se+=C.p.v[0]*N[0]:se+=C.p.v[0]*N),C.a.propType&&((N=w[A].s.getMult(T[i].anIndexes[A],L.a[A].s.totalChars)).length?se+=C.a.v[0]*N[0]:se+=C.a.v[0]*N);for(u=!0,this._pathData.a.v&&(s=.5*T[0].an+(v-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*K/(o-1),s+=this._pathData.f.v);u;)l+g>=s+se||!f?(y=(s+se-l)/c.partialLength,Z=h.point[0]+(c.point[0]-h.point[0])*y,F=h.point[1]+(c.point[1]-h.point[1])*y,x.translate(-E[0]*T[i].an*.005,-E[1]*R*.01),u=!1):f&&(l+=c.partialLength,(p+=1)>=f.length&&(p=0,m[d+=1]?f=m[d].points:_.v.c?(p=0,f=m[d=0].points):(l-=c.partialLength,f=null)),f&&(h=c,g=(c=f[p]).partialLength));j=T[i].an/2-T[i].add,x.translate(-j,0,0)}else j=T[i].an/2-T[i].add,x.translate(-j,0,0),x.translate(-E[0]*T[i].an*.005,-E[1]*R*.01,0);for(A=0;A<k;A+=1)(C=w[A].a).t.propType&&(N=w[A].s.getMult(T[i].anIndexes[A],L.a[A].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?N.length?s+=C.t.v*N[0]:s+=C.t.v*N:N.length?r+=C.t.v*N[0]:r+=C.t.v*N));for(e.strokeWidthAnim&&(U=e.sw||0),e.strokeColorAnim&&(G=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(z=[e.fc[0],e.fc[1],e.fc[2]]),A=0;A<k;A+=1)(C=w[A].a).a.propType&&((N=w[A].s.getMult(T[i].anIndexes[A],L.a[A].s.totalChars)).length?x.translate(-C.a.v[0]*N[0],-C.a.v[1]*N[1],C.a.v[2]*N[2]):x.translate(-C.a.v[0]*N,-C.a.v[1]*N,C.a.v[2]*N));for(A=0;A<k;A+=1)(C=w[A].a).s.propType&&((N=w[A].s.getMult(T[i].anIndexes[A],L.a[A].s.totalChars)).length?x.scale(1+(C.s.v[0]-1)*N[0],1+(C.s.v[1]-1)*N[1],1):x.scale(1+(C.s.v[0]-1)*N,1+(C.s.v[1]-1)*N,1));for(A=0;A<k;A+=1){if(C=w[A].a,N=w[A].s.getMult(T[i].anIndexes[A],L.a[A].s.totalChars),C.sk.propType&&(N.length?x.skewFromAxis(-C.sk.v*N[0],C.sa.v*N[1]):x.skewFromAxis(-C.sk.v*N,C.sa.v*N)),C.r.propType&&(N.length?x.rotateZ(-C.r.v*N[2]):x.rotateZ(-C.r.v*N)),C.ry.propType&&(N.length?x.rotateY(C.ry.v*N[1]):x.rotateY(C.ry.v*N)),C.rx.propType&&(N.length?x.rotateX(C.rx.v*N[0]):x.rotateX(C.rx.v*N)),C.o.propType&&(N.length?B+=(C.o.v*N[0]-B)*N[0]:B+=(C.o.v*N-B)*N),e.strokeWidthAnim&&C.sw.propType&&(N.length?U+=C.sw.v*N[0]:U+=C.sw.v*N),e.strokeColorAnim&&C.sc.propType)for(V=0;V<3;V+=1)N.length?G[V]+=(C.sc.v[V]-G[V])*N[0]:G[V]+=(C.sc.v[V]-G[V])*N;if(e.fillColorAnim&&e.fc){if(C.fc.propType)for(V=0;V<3;V+=1)N.length?z[V]+=(C.fc.v[V]-z[V])*N[0]:z[V]+=(C.fc.v[V]-z[V])*N;C.fh.propType&&(z=N.length?addHueToRGB(z,C.fh.v*N[0]):addHueToRGB(z,C.fh.v*N)),C.fs.propType&&(z=N.length?addSaturationToRGB(z,C.fs.v*N[0]):addSaturationToRGB(z,C.fs.v*N)),C.fb.propType&&(z=N.length?addBrightnessToRGB(z,C.fb.v*N[0]):addBrightnessToRGB(z,C.fb.v*N))}}for(A=0;A<k;A+=1)(C=w[A].a).p.propType&&(N=w[A].s.getMult(T[i].anIndexes[A],L.a[A].s.totalChars),this._hasMaskedPath?N.length?x.translate(0,C.p.v[1]*N[0],-C.p.v[2]*N[1]):x.translate(0,C.p.v[1]*N,-C.p.v[2]*N):N.length?x.translate(C.p.v[0]*N[0],C.p.v[1]*N[1],-C.p.v[2]*N[2]):x.translate(C.p.v[0]*N,C.p.v[1]*N,-C.p.v[2]*N));if(e.strokeWidthAnim&&(H=U<0?0:U),e.strokeColorAnim&&(Y="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),e.fillColorAnim&&e.fc&&(W="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(x.translate(0,-e.ls),x.translate(0,E[1]*R*.01+n,0),this._pathData.p.v){b=(c.point[1]-h.point[1])/(c.point[0]-h.point[0]);var ce=180*Math.atan(b)/Math.PI;c.point[0]<h.point[0]&&(ce+=180),x.rotate(-ce*Math.PI/180)}x.translate(Z,F,0),s-=E[0]*T[i].an*.005,T[i+1]&&K!==T[i+1].ind&&(s+=T[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(x.translate(r,n,0),e.ps&&x.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:x.translate(T[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[i].line]),0,0);break;case 2:x.translate(T[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[i].line])/2,0,0)}x.translate(0,-e.ls),x.translate(j,0,0),x.translate(E[0]*T[i].an*.005,E[1]*R*.01,0),r+=T[i].l+.001*e.tr*e.finalSize}"html"===S?ee=x.toCSS():"svg"===S?ee=x.to2dCSS():te=[x.props[0],x.props[1],x.props[2],x.props[3],x.props[4],x.props[5],x.props[6],x.props[7],x.props[8],x.props[9],x.props[10],x.props[11],x.props[12],x.props[13],x.props[14],x.props[15]],$=B}O<=i?(D=new LetterProps($,H,Y,W,ee,te),this.renderedLetters.push(D),O+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update($,H,Y,W,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,i=t.length,o="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,o+=buildShapeString(n,n.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=t.title,this.svgElement.appendChild(n),r+=i}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(i),i=""):i+=e[t],t+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],c=!!this.globalData.fontManager.chars;t=s.length;var l=this.mHelper,u=this.data.singleShape,p=0,d=0,h=!0,f=.001*r.tr*r.finalSize;if(!u||c||r.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!c||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(c?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,c){var v=createNS("g");a.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),u&&(s[e].n&&(p=-f,d+=r.yOffset,d+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(r,l,s[e].line,p,d),p+=s[e].l||0,p+=f),c){var y;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var E=this.textContainer,w="start";switch(r.j){case 1:w="end";break;case 2:w="middle";break;default:w="start"}E.setAttribute("text-anchor",w),E.setAttribute("letter-spacing",f);var L=this.buildTextContents(r.finalText);for(t=L.length,d=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=L[e],a.setAttribute("x",0),a.setAttribute("y",d),a.style.display="inherit",E.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,d+=r.finalLineHeight;this.layerElement.appendChild(E)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,n,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=o[e],n=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=t[n].getMatte(this.layers[e].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r=0,n=e.transforms.length,i=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function i(){var i,o,a;t||(i=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(a),i.appendChild(o),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return t||i(),t.width=n.width,t.height=n.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[e].v,t=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(t[0],t[1]);var c=n._length;for(s=1;s<c;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(a={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(a),r[i].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,i){var o,a,s,c,l,u,p=e.length-1,d=[],h=[],f=[].concat(i);for(o=p;o>=0;o-=1){if((c=this.searchProcessedElement(e[o]))?t[o]=r[c-1]:e[o]._shouldRender=n,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)c?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],f),d.push(t[o].style);else if("gr"===e[o].ty){if(c)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,n,f)}else"tr"===e[o].ty?(c||(u=this.createTransformElement(e[o]),t[o]=u),f.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?c||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(c?(l=t[o]).closed=!1:((l=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=l,this.shapeModifiers.push(l)),h.push(l)):"rp"===e[o].ty&&(c?(l=t[o]).closed=!0:(l=ShapeModifiers.getModifier(e[o].ty),t[o]=l,l.init(this,e,o,t),this.shapeModifiers.push(l),n=!1),h.push(l));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),p=h.length,o=0;o<p;o+=1)h[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,i,o,a,s,c,l=this.stylesList.length,u=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<l;e+=1)if(("st"!==(s=(c=this.stylesList[e]).type)&&"gs"!==s||0!==c.wi)&&c.data._shouldRender&&0!==c.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=c.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?c.co:c.grd),u.ctxLineWidth(c.wi),u.ctxLineCap(c.lc),u.ctxLineJoin(c.lj),u.ctxMiterLimit(c.ml||0)):u.ctxFillStyle("fl"===s?c.co:c.grd),u.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),u.ctxTransform(c.preTransforms.finalTransform.props),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),c.da&&(p.setLineDash(c.da),p.lineDashOffset=c.do)),i=(a=o[t].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?p.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?p.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),c.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(c.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var i,o;for(o=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(o=r[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],o):"st"===t[i].ty?this.renderStroke(t[i],r[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var c=e.transforms.finalTransform;for(i=0;i<s;i+=1){var l=a.shapes[i];if(l&&l.v){for(n=l._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===n&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&n&&(o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a=this.globalData.canvasContext,s=t.s.v,c=t.e.v;if(1===e.t)n=a.createLinearGradient(s[0],s[1],c[0],c[1]);else{var l=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),u=Math.atan2(c[1]-s[1],c[0]-s[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var d=l*p,h=Math.cos(u+t.a.v)*d+s[0],f=Math.sin(u+t.a.v)*d+s[1];n=a.createRadialGradient(h,f,0,s[0],s[1],l)}var m=e.g.p,g=t.g.c,v=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*o+1]),n.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+v+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,i,o,a,s,c,l,u,p,d,h,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,v=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,_=0,E=0,w=!0,L=0;for(n=0;n<i;n+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},v.reset(),y&&g[n].n&&(_=-b,E+=e.yOffset,E+=w?1:0,w=!1),p=(l=a.shapes?a.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[n].line,_,E),h=createSizedArray(p-1);var x=0;for(u=0;u<p;u+=1)if("sh"===l[u].ty){for(c=l[u].ks.k.i.length,d=l[u].ks.k,f=[],s=1;s<c;s+=1)1===s&&f.push(v.applyToX(d.v[0][0],d.v[0][1],0),v.applyToY(d.v[0][0],d.v[0][1],0)),f.push(v.applyToX(d.o[s-1][0],d.o[s-1][1],0),v.applyToY(d.o[s-1][0],d.o[s-1][1],0),v.applyToX(d.i[s][0],d.i[s][1],0),v.applyToY(d.i[s][0],d.i[s][1],0),v.applyToX(d.v[s][0],d.v[s][1],0),v.applyToY(d.v[s][0],d.v[s][1],0));f.push(v.applyToX(d.o[s-1][0],d.o[s-1][1],0),v.applyToY(d.o[s-1][0],d.o[s-1][1],0),v.applyToX(d.i[0][0],d.i[0][1],0),v.applyToY(d.i[0][0],d.i[0][1],0),v.applyToX(d.v[0][0],d.v[0][1],0),v.applyToY(d.v[0][0],d.v[0][1],0)),h[x]=f,x+=1}y&&(_+=g[n].l,_+=b),this.textSpans[L]?this.textSpans[L].elem=h:this.textSpans[L]={elem:h},L+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,i,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;t=c.length;var l,u,p=null,d=null,h=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!c[e].n){if((a=s[e])&&(f.save(),f.ctxTransform(a.p),f.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(f.ctxFillStyle(a.fc),p=a.fc):p!==this.values.fill&&(p=this.values.fill,f.ctxFillStyle(this.values.fill)),n=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=l[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(a&&a.sw?h!==a.sw&&(h=a.sw,f.ctxLineWidth(a.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),a&&a.sc?d!==a.sc&&(d=a.sc,f.ctxStrokeStyle(a.sc)):d!==this.values.stroke&&(d=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),n=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=l[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===c||a<s&&"xMidYMid slice"!==c?t=(r=o)*s:r=(t=i)/s,n.drawImage(this.img,(i-t)/2,(o-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,i,o;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",c=a[0]||"xMidYMid",l=c.substr(0,4),u=c.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,i,o,a,s=e.sh.v,c=e.transformers,l=s._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[r+1]),a=this.getTransformedPoint(c,s.v[r+1]),this.checkBounds(n,i,o,a,t);s.c&&(n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[0]),a=this.getTransformedPoint(c,s.v[0]),this.checkBounds(n,i,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,i){this.getBoundsOfCurve(e,t,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var i,o,a,s,c,l,u,p=[[e[0],n[0]],[e[1],n[1]]],d=0;d<2;++d)o=6*e[d]-12*t[d]+6*r[d],i=-3*e[d]+9*t[d]-9*r[d]+3*n[d],a=3*t[d]-3*e[d],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&p[d].push(this.calculateF(s,e,t,r,n,d)):(c=o*o-4*a*i)>=0&&((l=(-o+bmSqrt(c))/(2*i))>0&&l<1&&p[d].push(this.calculateF(l,e,t,r,n,d)),(u=(-o-bmSqrt(c))/(2*i))>0&&u<1&&p[d].push(this.calculateF(u,e,t,r,n,d))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*n[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var i=e.keyframes[n].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,i,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var c,l,u,p=e.l;i=p.length;var d,h=this.mHelper,f="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:((c=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(l=this.textSpans[m]).children[0]:((l=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(c),styleDiv(l)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(l=this.textSpans[m],c=this.textPaths[m]):(styleDiv(l=createTag("span")),styleDiv(c=createTag("span")),l.appendChild(c)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(e.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,h.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(h,d),c.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(l),g&&g.shapes){document.body.appendChild(u);var y=u.getBBox();u.setAttribute("width",y.width+2),u.setAttribute("height",y.height+2),u.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=u.style,_="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=_,b.webkitTransform=_,p[n].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);l.appendChild(u)}}else if(c.textContent=p[n].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(l);var E=c.style,w="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=w,E.webkitTransform=w}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=l,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,o,a,s=0,c=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(n=l.length,r=0;r<n;r+=1)l[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],i=c[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),c=Math.atan2(a[1],s),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var p,d,h;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(u){var f=this.mat.toCSS();(h=p.container.style).transform=f,h.webkitTransform=f}this.pe._mdf&&((d=p.perspectiveElem.style).perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=s,n.webkitTransform=s}i.appendChild(o);var c={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var r=this,n=256,i=t.pow(n,6),o=t.pow(2,52),a=2*o,s=255;function c(e){var t,r=e.length,i=this,o=0,a=i.i=i.j=0,c=i.S=[];for(r||(e=[r++]);o<n;)c[o]=o++;for(o=0;o<n;o++)c[o]=c[a=s&a+e[o%r]+(t=c[o])],c[a]=t;i.g=function(e){for(var t,r=0,o=i.i,a=i.j,c=i.S;e--;)t=c[o=s&o+1],r=r*n+c[s&(c[o]=c[a=s&a+t])+(c[a]=t)];return i.i=o,i.j=a,r}}function l(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function u(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(u(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function p(e,t){for(var r,n=e+"",i=0;i<n.length;)t[s&i]=s&(r^=19*t[s&i])+n.charCodeAt(i++);return d(t)}function d(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(s,h,f){var m=[],g=p(u((h=!0===h?{entropy:!0}:h||{}).entropy?[s,d(e)]:null===s?function(){try{var t=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(t),d(t)}catch(t){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,d(e)]}}():s,3),m),v=new c(m),y=function(){for(var e=v.g(6),t=i,r=0;e<o;)e=(e+r)*n,t*=n,r=v.g(1);for(;e>=a;)e/=2,t/=2,r>>>=1;return(e+r)/t};return y.int32=function(){return 0|v.g(4)},y.quick=function(){return v.g(4)/4294967296},y.double=y,p(d(v.S),e),(h.pass||f||function(e,r,n,i){return i&&(i.S&&l(i,v),e.state=function(){return l(v,{})}),n?(t.random=e,r):e})(y,g,"global"in h?h.global:this==t,h.state)},p(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]*t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]/t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],i=e[1],o=e[2],a=Math.max(n,i,o),s=Math.min(n,i,o),c=(a+s)/2;if(a===s)t=0,r=0;else{var l=a-s;switch(r=c>.5?l/(2-a-s):l/(a+s),a){case n:t=(i-o)/l+(i<o?6:0);break;case i:t=(o-n)/l+2;break;case o:t=(n-i)/l+4}t/=6}return[t,r,c,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,i=e[0],o=e[1],a=e[2];if(0===o)t=a,n=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,c=2*a-s;t=hue2rgb(c,s,i+1/3),r=hue2rgb(c,s,i),n=hue2rgb(c,s,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if(void 0!==n&&void 0!==i||(n=t,i=r,t=0,r=1),r<t){var o=r;r=t,t=o}if(e<=t)return n;if(e>=r)return i;var a,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*s;var c=n.length,l=createTypedArray("float32",c);for(a=0;a<c;a+=1)l[a]=n[a]+(i[a]-n[a])*s;return l}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=e[r]+o*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var i,o=e.length,a=shapePool.newElement();a.setPathData(!!n,o);var s,c,l=[0,0];for(i=0;i<o;i+=1)s=t&&t[i]?t[i]:l,c=r&&r[i]?r[i]:l,a.setTripleAt(e[i][0],e[i][1],c[0]+e[i][0],c[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)o[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,c=s-Math.floor(s),l=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)l[n]=this.pv[n]+o[n]+(-t+2*t*BMMath.random())*c;return l}return this.pv+o[0]+(-t+2*t*BMMath.random())*c}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,i){return applyEase(easeOutBez,e,t,r,n,i)}function easeIn(e,t,r,n,i){return applyEase(easeInBez,e,t,r,n,i)}function ease(e,t,r,n,i){return applyEase(easeInOutBez,e,t,r,n,i)}function applyEase(e,t,r,n,i,o){void 0===i?(i=r,o=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,c=i.length,l=createTypedArray("float32",c);for(s=0;s<c;s+=1)l[s]=(o[s]-i[s])*a+i[s];return l}return(o-i)*a+i}function nearestKey(e){var t,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(e){var t,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=i.length,r=0;r<n;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(n){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv*n,o=new Number(i);return o.value=i,r(o,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*n,o.value!==i&&((o=new Number(i)).value=i,r(o,t,"unidimensional")),o}}(i):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,r(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*n,o[t]=a[t];return o}}(i):n}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,i,o;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[r(),n(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function c(){return[1,1,1,1]}return function(l){var u;function p(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=a,p.applyPoint=o,p.toWorld=r,p.toWorldVec=t,p.fromWorld=i,p.fromWorldVec=n,p.toComp=r,p.fromComp=s,p.sampleImage=c,p.sourceRectAtTime=l.sourceRectAtTime.bind(l),p._elem=l;var d=getDescriptor(u=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return u}},active:{get:function(){return l.isInRange}}}),p.startTime=l.data.st,p.index=l.data.ind,p.source=l.data.refId,p.height=0===l.data.ty?l.data.h:100,p.width=0===l.data.ty?l.data.w:100,p.inPoint=l.data.ip/l.comp.globalData.frameRate,p.outPoint=l.data.op/l.comp.globalData.frameRate,p._name=l.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,l)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,n,i,o){function a(e){for(var t=r.ef,n=0,i=t.length;n<i;){if(e===t[n].nm||e===t[n].mn||e===t[n].ix)return 5===t[n].ty?l[n]:l[n]();n+=1}throw new Error}var s,c=propertyGroupFactory(a,i),l=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?l.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):l.push(t(n.effectElements[s],r.ef[s].ty,o,c));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return l[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:c}}),a.enabled=0!==r.en,a.active=a.enabled,a}function t(e,t,r,n){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var n,i=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(e(o[n],t.effectsManager.effectElements[n],r,t));var s=t.data.ef||[],c=function(e){for(n=0,a=s.length;n<a;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(c,"numProperties",{get:function(){return s.length}}),c}return null}}}(),ShapePathInterface=function(e,t,r){var n=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,a,d){var h,f=[],m=e?e.length:0;for(h=0;h<m;h+=1)"gr"===e[h].ty?f.push(t(e[h],a[h],d)):"fl"===e[h].ty?f.push(r(e[h],a[h],d)):"st"===e[h].ty?f.push(i(e[h],a[h],d)):"tm"===e[h].ty?f.push(o(e[h],a[h],d)):"tr"===e[h].ty||("el"===e[h].ty?f.push(s(e[h],a[h],d)):"sr"===e[h].ty?f.push(c(e[h],a[h],d)):"sh"===e[h].ty?f.push(ShapePathInterface(e[h],a[h],d)):"rc"===e[h].ty?f.push(l(e[h],a[h],d)):"rd"===e[h].ty?f.push(u(e[h],a[h],d)):"rp"===e[h].ty?f.push(p(e[h],a[h],d)):"gf"===e[h].ty?f.push(n(e[h],a[h],d)):f.push((e[h],a[h],function(){return null})));return f}function t(t,r,n){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var o=function(t,r,n){var i,o=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};o.propertyGroup=propertyGroupFactory(o,n),i=e(t.it,r.it,o.propertyGroup),o.numProperties=i.length;var s=a(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,i.propertyGroup),s=a(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(e,t,r){var n,i=propertyGroupFactory(l,r),o=propertyGroupFactory(c,i);function a(r){Object.defineProperty(c,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,c={};for(n=0;n<s;n+=1)a(n),t.d.dataProps[n].p.setGroupProperty(o);function l(e){return"Color"===e||"color"===e?l.color:"Opacity"===e||"opacity"===e?l.opacity:"Stroke Width"===e||"stroke width"===e?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return c}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),l}function o(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function a(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var i=propertyGroupFactory(n,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function s(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function l(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function p(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var i;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return n})),i=e(t,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var i=e.indexOf(t);if(-1!==i){var o=parseInt(e.substr(i+t.length),10);return"object"===_typeof(r=r[o])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var i;for(i=0;i<t.length;i+=1)n+=Math.pow(r[i]-t[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,i=this.getValueAtTime(e),o=this.getValueAtTime(e+n);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(o[r]-i[r])/n;else t=(o-i)/n;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[l.length-1].t;if(c<=u)return this.pv;if(r?i=u-(n=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>l.length-1)&&(t=l.length-1),n=u-(i=l[l.length-1-t].t)),"pingpong"===e){if(Math.floor((c-i)/n)%2!=0)return this.getValueAtTime((n-(c-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0),f=Math.floor((c-i)/n);if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=(d[o]-p[o])*f+h[o];return s}return(d-p)*f+h}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*((c-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-u)/.001*(m-g)}}return this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[0].t;if(c>=u)return this.pv;if(r?i=u+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>l.length-1)&&(t=l.length-1),n=(i=l[t].t)-u),"pingpong"===e){if(Math.floor((u-c)/n)%2==0)return this.getValueAtTime(((u-c)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime((n-(u-c)%n+u)/this.comp.globalData.frameRate,0),f=Math.floor((u-c)/n)+1;if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=h[o]-(d[o]-p[o])*f;return s}return h-(d-p)*f}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*(u-c)/.001;return s}return m+(m-g)*(u-c)/.001}}return this.getValueAtTime((n-((u-c)%n+u))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-e,a=t>1?(i+e-o)/(t-1):1,s=0,c=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(o+s*a),this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]+=n[c];else r+=n;s+=1}if(this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]/=t;else r/=t;return r}function n(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),c=this.ry.getValueAtTime(e),l=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),d=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,d*this.py.mult,-h*this.pz.mult)}else t.translate(p*this.px.mult,d*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=o(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,s,c){var l=a(n,i,o,s,c);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=e,l.loopIn=t,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===i.a?i.k.length:0,l.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,i,l),l.k&&c.addDynamicProperty(l),l};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var i=n._length,o=n[e],a=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===e||"o"===e?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,o=i.lengths,a=i.totalLength*e,s=0,c=o.length,l=0;s<c;){if(l+o[s].addedLength>a){var u=s,p=r.c&&s===c-1?0:s+1,d=(a-l)/o[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[p],r.o[u],r.i[p],d,o[s]);break}l+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-n[0],a=i[1]-n[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],s),extendPrototype([l],c),c.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},c.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var o=u(e,t,r,n,i);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",n+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,r,n,i){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",n+"_drop_shadow_1"),c.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=l,e.appendChild(l);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(u);var p=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),c=n.getTotalLength();o="0 0 0 "+c*a+" ";var l,u=c*(s-a),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(u/p);for(l=0;l<d;l+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*c+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+t[0],o=n[1]+" "+r[1]+" "+t[1],a=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,i){for(var o,a,s=0,c=Math.min(e,t),l=Math.max(e,t),u=Array.call(null,{length:256}),p=0,d=i-n,h=t-e;s<=256;)a=(o=s/256)<=c?h<0?i:n:o>=l?h<0?n:i:n+d*Math.pow((o-e)/h,1/r),u[p]=a,p+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,i=r.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(t,r),o.appendChild(t.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,i=1===t[2].p.v,o=t[3].p.v,a=i?o:t[4].p.v,s=t[5].p.v,c=t[6].p.v,l=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-s*degToRads,(c+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},59614:(e,t,r)=>{var n,i,o,a,s;n=r(51041),i=r(31615).utf8,o=r(81246),a=r(31615).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):i.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var r=n.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,p=-1732584194,d=271733878,h=0;h<r.length;h++)r[h]=16711935&(r[h]<<8|r[h]>>>24)|4278255360&(r[h]<<24|r[h]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var f=s._ff,m=s._gg,g=s._hh,v=s._ii;for(h=0;h<r.length;h+=16){var y=l,b=u,_=p,E=d;l=f(l,u,p,d,r[h+0],7,-680876936),d=f(d,l,u,p,r[h+1],12,-389564586),p=f(p,d,l,u,r[h+2],17,606105819),u=f(u,p,d,l,r[h+3],22,-1044525330),l=f(l,u,p,d,r[h+4],7,-176418897),d=f(d,l,u,p,r[h+5],12,1200080426),p=f(p,d,l,u,r[h+6],17,-1473231341),u=f(u,p,d,l,r[h+7],22,-45705983),l=f(l,u,p,d,r[h+8],7,1770035416),d=f(d,l,u,p,r[h+9],12,-1958414417),p=f(p,d,l,u,r[h+10],17,-42063),u=f(u,p,d,l,r[h+11],22,-1990404162),l=f(l,u,p,d,r[h+12],7,1804603682),d=f(d,l,u,p,r[h+13],12,-40341101),p=f(p,d,l,u,r[h+14],17,-1502002290),l=m(l,u=f(u,p,d,l,r[h+15],22,1236535329),p,d,r[h+1],5,-165796510),d=m(d,l,u,p,r[h+6],9,-1069501632),p=m(p,d,l,u,r[h+11],14,643717713),u=m(u,p,d,l,r[h+0],20,-373897302),l=m(l,u,p,d,r[h+5],5,-701558691),d=m(d,l,u,p,r[h+10],9,38016083),p=m(p,d,l,u,r[h+15],14,-660478335),u=m(u,p,d,l,r[h+4],20,-405537848),l=m(l,u,p,d,r[h+9],5,568446438),d=m(d,l,u,p,r[h+14],9,-1019803690),p=m(p,d,l,u,r[h+3],14,-187363961),u=m(u,p,d,l,r[h+8],20,1163531501),l=m(l,u,p,d,r[h+13],5,-1444681467),d=m(d,l,u,p,r[h+2],9,-51403784),p=m(p,d,l,u,r[h+7],14,1735328473),l=g(l,u=m(u,p,d,l,r[h+12],20,-1926607734),p,d,r[h+5],4,-378558),d=g(d,l,u,p,r[h+8],11,-2022574463),p=g(p,d,l,u,r[h+11],16,1839030562),u=g(u,p,d,l,r[h+14],23,-35309556),l=g(l,u,p,d,r[h+1],4,-1530992060),d=g(d,l,u,p,r[h+4],11,1272893353),p=g(p,d,l,u,r[h+7],16,-155497632),u=g(u,p,d,l,r[h+10],23,-1094730640),l=g(l,u,p,d,r[h+13],4,681279174),d=g(d,l,u,p,r[h+0],11,-358537222),p=g(p,d,l,u,r[h+3],16,-722521979),u=g(u,p,d,l,r[h+6],23,76029189),l=g(l,u,p,d,r[h+9],4,-640364487),d=g(d,l,u,p,r[h+12],11,-421815835),p=g(p,d,l,u,r[h+15],16,530742520),l=v(l,u=g(u,p,d,l,r[h+2],23,-995338651),p,d,r[h+0],6,-198630844),d=v(d,l,u,p,r[h+7],10,1126891415),p=v(p,d,l,u,r[h+14],15,-1416354905),u=v(u,p,d,l,r[h+5],21,-57434055),l=v(l,u,p,d,r[h+12],6,1700485571),d=v(d,l,u,p,r[h+3],10,-1894986606),p=v(p,d,l,u,r[h+10],15,-1051523),u=v(u,p,d,l,r[h+1],21,-2054922799),l=v(l,u,p,d,r[h+8],6,1873313359),d=v(d,l,u,p,r[h+15],10,-30611744),p=v(p,d,l,u,r[h+6],15,-1560198380),u=v(u,p,d,l,r[h+13],21,1309151649),l=v(l,u,p,d,r[h+4],6,-145523070),d=v(d,l,u,p,r[h+11],10,-1120210379),p=v(p,d,l,u,r[h+2],15,718787259),u=v(u,p,d,l,r[h+9],21,-343485551),l=l+y>>>0,u=u+b>>>0,p=p+_>>>0,d=d+E>>>0}return n.endian([l,u,p,d])})._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(s(e,t));return t&&t.asBytes?r:t&&t.asString?a.bytesToString(r):n.bytesToHex(r)}},92652:function(e,t,r){!function(e,t,r,n){"use strict";var i="default"in r?r.default:r,o=void 0,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},s=(function(){function e(e){this.value=e}function t(t){var r,n;function i(e,t){return new Promise((function(i,a){var s={key:e,arg:t,resolve:i,reject:a,next:null};n?n=n.next=s:(r=n=s,o(e,t))}))}function o(r,n){try{var i=t[r](n),s=i.value;s instanceof e?Promise.resolve(s.value).then((function(e){o("next",e)}),(function(e){o("throw",e)})):a(i.done?"return":"normal",i.value)}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?o(r.key,r.arg):n=null}this._invoke=i,"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),c=function(){function e(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.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},p=function(){function e(){s(this,e),this.listeners=[]}return c(e,[{key:"on",value:function(e){var t=this;return this.listeners.push(e),function(){var r=t.listeners.indexOf(e);-1!==r&&t.listeners.splice(r,1)}}},{key:"emit",value:function(e){this.listeners.forEach((function(t){return t(e)}))}}]),e}(),d={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},h={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=y&&y(Object),_=function e(t,r,n){if("string"!=typeof r){if(b){var i=y(r);i&&i!==b&&e(t,i,n)}var o=m(r);g&&(o=o.concat(g(r)));for(var a=0;a<o.length;++a){var s=o[a];if(!(d[s]||h[s]||n&&n[s])){var c=v(r,s);try{f(t,s,c)}catch(e){}}}return t}return t};function E(e){function r(r,n,i,o,a,s){for(var c=arguments.length,l=Array(c>6?c-6:0),u=6;u<c;u++)l[u-6]=arguments[u];return t.untracked((function(){if(o=o||"<<anonymous>>",s=s||i,null==n[i]){if(r){var t=null===n[i]?"null":"undefined";return new Error("The "+a+" `"+s+"` is marked as required in `"+o+"`, but its value is `"+t+"`.")}return null}return e.apply(void 0,[n,i,o,a,s].concat(l))}))}var n=r.bind(null,!1);return n.isRequired=r.bind(null,!0),n}function w(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function L(e){var t=void 0===e?"undefined":a(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":w(t,e)?"symbol":t}function x(e){var t=L(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function S(e,r){return E((function(n,i,o,a,s){return t.untracked((function(){if(e&&L(n[i])===r.toLowerCase())return null;var a=void 0;switch(r){case"Array":a=t.isObservableArray;break;case"Object":a=t.isObservableObject;break;case"Map":a=t.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+r)}var c=n[i];if(!a(c)){var l=x(c),u=e?" or javascript `"+r.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+r+"`"+u+".")}return null}))}))}function O(e,r){return E((function(n,i,o,a,s){for(var c=arguments.length,l=Array(c>5?c-5:0),u=5;u<c;u++)l[u-5]=arguments[u];return t.untracked((function(){if("function"!=typeof r)return new Error("Property `"+s+"` of component `"+o+"` has invalid PropType notation.");var t=S(e,"Array")(n,i,o);if(t instanceof Error)return t;for(var c=n[i],u=0;u<c.length;u++)if((t=r.apply(void 0,[c,u,o,a,s+"["+u+"]"].concat(l)))instanceof Error)return t;return null}))}))}var T=S(!1,"Array"),I=O.bind(null,!1),P=S(!1,"Map"),C=S(!1,"Object"),A=S(!0,"Array"),k=O.bind(null,!0),D=S(!0,"Object"),N=Object.freeze({observableArray:T,observableArrayOf:I,observableMap:P,observableObject:C,arrayOrObservableArray:A,arrayOrObservableArrayOf:k,objectOrObservableObject:D});function R(e){return!(e.prototype&&e.prototype.render)}var M={mobxStores:D};Object.seal(M);var j={contextTypes:{get:function(){return M},set:function(e){console.warn("Mobx Injector: you are trying to attach `contextTypes` on an component decorated with `inject` (or `observer`) HOC. Please specify the contextTypes on the wrapped component instead. It is accessible through the `wrappedComponent`")},configurable:!0,enumerable:!1},isMobxInjector:{value:!0,writable:!0,configurable:!0,enumerable:!0}};function Z(e,t,n){var i,o,a="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");n&&(a+="-with-"+n);var p=(o=i=function(n){function i(){var e,t,r;s(this,i);for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return t=r=u(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(o))),r.storeRef=function(e){r.wrappedInstance=e},u(r,t)}return l(i,n),c(i,[{key:"render",value:function(){var n={};for(var i in this.props)this.props.hasOwnProperty(i)&&(n[i]=this.props[i]);var o=e(this.context.mobxStores||{},n,this.context)||{};for(var a in o)n[a]=o[a];return R(t)||(n.ref=this.storeRef),r.createElement(t,n)}}]),i}(r.Component),i.displayName=a,o);return _(p,t),p.wrappedComponent=t,Object.defineProperties(p,j),p}function F(e){return function(t,r){return e.forEach((function(e){if(!(e in r)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");r[e]=t[e]}})),r}}function B(){var e=void 0;if("function"==typeof arguments[0])return e=arguments[0],function(t){var r=Z(e,t);return r.isMobxInjector=!1,(r=te(r)).isMobxInjector=!0,r};for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e=F(t),function(r){return Z(e,r,t.join("-"))}}var G=!1,U=!1,z=!1,V="undefined"!=typeof WeakMap?new WeakMap:void 0,H=new p;function Y(e){if(n.findDOMNode)try{return n.findDOMNode(e)}catch(e){return null}return null}function W(e){var t=Y(e);t&&V&&V.set(t,e),H.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function $(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");G||(G=!0)}function K(e){U=e}var q=new p;function X(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e[t],i=ee[t],o=n?!0===r?function(){i.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),i.apply(this,arguments)}:i;e[t]=o}function J(e,t){if(Q(e,t))return!0;if("object"!==(void 0===e?"undefined":a(e))||null===e||"object"!==(void 0===t?"undefined":a(t))||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!hasOwnProperty.call(t,r[i])||!Q(e[r[i]],t[r[i]]))return!1;return!0}function Q(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var ee={componentWillMount:function(){var e=this;if(!0!==U){var n=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"<component>",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,o=!1,a=!1;d.call(this,"props"),d.call(this,"state");var s=this.render.bind(this),c=null,l=!1,u=function(){return(c=new t.Reaction(n+"#"+i+".render()",(function(){if(!l&&(l=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{a=!0,o||r.Component.prototype.forceUpdate.call(e),t=!1}finally{a=!1,t&&c.dispose()}}}))).reactComponent=e,p.$mobx=c,e.render=p,p()},p=function(){l=!1;var r=void 0,n=void 0;if(c.track((function(){G&&(e.__$mobRenderStart=Date.now());try{n=t.extras.allowStateChanges(!1,s)}catch(e){r=e}G&&(e.__$mobRenderEnd=Date.now())})),r)throw q.emit(r),r;return n};this.render=u}function d(e){var r=this[e],n=new t.Atom("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return n.reportObserved(),r},set:function(e){a||J(r,e)?r=e:(r=e,o=!0,n.reportChanged(),o=!1)}})}},componentWillUnmount:function(){if(!0!==U&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,G)){var e=Y(this);e&&V&&V.delete(e),H.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){G&&W(this)},componentDidUpdate:function(){G&&W(this)},shouldComponentUpdate:function(e,t){return U&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!J(this.props,e)}};function te(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return z||(z=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?B.apply(null,e)(te(t)):function(t){return te(e,t)};var n,i,o=e;if(!0===o.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof o||o.prototype&&o.prototype.render||o.isReactClass||r.Component.isPrototypeOf(o)))return te((i=n=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),c(t,[{key:"render",value:function(){return o.call(this,this.props,this.context)}}]),t}(r.Component),n.displayName=o.displayName||o.name,n.contextTypes=o.contextTypes,n.propTypes=o.propTypes,n.defaultProps=o.defaultProps,i));if(!o)throw new Error("Please pass a valid component to 'observer'");return re(o.prototype||o),o.isMobXReactObserver=!0,o}function re(e){X(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach((function(t){X(e,t)})),e.shouldComponentUpdate||(e.shouldComponentUpdate=ee.shouldComponentUpdate)}var ne=te((function(e){var t=e.children,r=e.inject,n=e.render,o=t||n;if(void 0===o)return null;if(!r)return o();var a=B(r)(o);return i.createElement(a,null)}));ne.displayName="Observer";var ie,oe,ae=function(e,t,r,n,i){var o="children"===t?"render":"children";return"function"==typeof e[t]&&"function"==typeof e[o]?new Error("Invalid prop,do not use children and render in the same time in`"+r):"function"!=typeof e[t]&&"function"!=typeof e[o]?new Error("Invalid prop `"+i+"` of type `"+a(e[t])+"` supplied to `"+r+"`, expected `function`."):void 0};ne.propTypes={render:ae,children:ae};var se={children:!0,key:!0,ref:!0},ce=(oe=ie=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),c(t,[{key:"render",value:function(){return r.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var r in t)e[r]=t[r];for(var n in this.props)se[n]||"suppressChangedStoreWarning"===n||(e[n]=this.props[n]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var t in e)se[t]||this.props[t]===e[t]||console.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t}(r.Component),ie.contextTypes={mobxStores:D},ie.childContextTypes={mobxStores:D.isRequired},oe);if(!r.Component)throw new Error("mobx-react requires React to be available");if(!t.extras)throw new Error("mobx-react requires mobx to be available");"function"==typeof n.unstable_batchedUpdates?t.extras.setReactionScheduler(n.unstable_batchedUpdates):"function"==typeof o&&t.extras.setReactionScheduler(o);var le=function(e){return q.on(e)};if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":a(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var ue={spy:t.spy,extras:t.extras},pe={renderReporter:H,componentByNodeRegistery:V,trackComponents:$};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(pe,ue)}e.propTypes=N,e.PropTypes=N,e.onError=le,e.observer=te,e.Observer=ne,e.renderReporter=H,e.componentByNodeRegistery=V,e.trackComponents=$,e.useStaticRendering=K,e.Provider=ce,e.inject=B,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(50265),r(89526),r(73961))},62631:(e,t,r)=>{"use strict";r.d(t,{Pi:()=>q,ng:()=>k});var n=r(50265),i=r(89526),o=r(73961),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},s=(function(){function e(e){this.value=e}function t(t){var r,n;function i(r,n){try{var a=t[r](n),s=a.value;s instanceof e?Promise.resolve(s.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?i(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};n?n=n.next=s:(r=n=s,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),c=function(){function e(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.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},p=function(){function e(){s(this,e),this.listeners=[]}return c(e,[{key:"on",value:function(e){var t=this;return this.listeners.push(e),function(){var r=t.listeners.indexOf(e);-1!==r&&t.listeners.splice(r,1)}}},{key:"emit",value:function(e){this.listeners.forEach((function(t){return t(e)}))}}]),e}(),d={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},h={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=y&&y(Object),_=function e(t,r,n){if("string"!=typeof r){if(b){var i=y(r);i&&i!==b&&e(t,i,n)}var o=m(r);g&&(o=o.concat(g(r)));for(var a=0;a<o.length;++a){var s=o[a];if(!(d[s]||h[s]||n&&n[s])){var c=v(r,s);try{f(t,s,c)}catch(e){}}}return t}return t};function E(e){function t(t,r,i,o,a,s){for(var c=arguments.length,l=Array(c>6?c-6:0),u=6;u<c;u++)l[u-6]=arguments[u];return(0,n.untracked)((function(){if(o=o||"<<anonymous>>",s=s||i,null==r[i]){if(t){var n=null===r[i]?"null":"undefined";return new Error("The "+a+" `"+s+"` is marked as required in `"+o+"`, but its value is `"+n+"`.")}return null}return e.apply(void 0,[r,i,o,a,s].concat(l))}))}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function w(e){var t=void 0===e?"undefined":a(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function L(e,t){return E((function(r,i,o,a,s){return(0,n.untracked)((function(){if(e&&w(r[i])===t.toLowerCase())return null;var a=void 0;switch(t){case"Array":a=n.isObservableArray;break;case"Object":a=n.isObservableObject;break;case"Map":a=n.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=r[i];if(!a(c)){var l=function(e){var t=w(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(c),u=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+u+".")}return null}))}))}function x(e,t){return E((function(r,i,o,a,s){for(var c=arguments.length,l=Array(c>5?c-5:0),u=5;u<c;u++)l[u-5]=arguments[u];return(0,n.untracked)((function(){if("function"!=typeof t)return new Error("Property `"+s+"` of component `"+o+"` has invalid PropType notation.");var n=L(e,"Array")(r,i,o);if(n instanceof Error)return n;for(var c=r[i],u=0;u<c.length;u++)if((n=t.apply(void 0,[c,u,o,a,s+"["+u+"]"].concat(l)))instanceof Error)return n;return null}))}))}var S=L(!1,"Array"),O=x.bind(null,!1),T=L(!1,"Map"),I=L(!1,"Object"),P=L(!0,"Array"),C=x.bind(null,!0),A=L(!0,"Object"),k=Object.freeze({observableArray:S,observableArrayOf:O,observableMap:T,observableObject:I,arrayOrObservableArray:P,arrayOrObservableArrayOf:C,objectOrObservableObject:A});var D={mobxStores:A};Object.seal(D);var N={contextTypes:{get:function(){return D},set:function(e){console.warn("Mobx Injector: you are trying to attach `contextTypes` on an component decorated with `inject` (or `observer`) HOC. Please specify the contextTypes on the wrapped component instead. It is accessible through the `wrappedComponent`")},configurable:!0,enumerable:!1},isMobxInjector:{value:!0,writable:!0,configurable:!0,enumerable:!0}};function R(e,t,r){var n,o,a="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");r&&(a+="-with-"+r);var p=(o=n=function(r){function n(){var e,t,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=r=u(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(o))),r.storeRef=function(e){r.wrappedInstance=e},u(r,t)}return l(n,r),c(n,[{key:"render",value:function(){var r={};for(var n in this.props)this.props.hasOwnProperty(n)&&(r[n]=this.props[n]);var o=e(this.context.mobxStores||{},r,this.context)||{};for(var a in o)r[a]=o[a];return function(e){return!(e.prototype&&e.prototype.render)}(t)||(r.ref=this.storeRef),(0,i.createElement)(t,r)}}]),n}(i.Component),n.displayName=a,o);return _(p,t),p.wrappedComponent=t,Object.defineProperties(p,N),p}function M(e){return function(t,r){return e.forEach((function(e){if(!(e in r)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");r[e]=t[e]}})),r}}function j(){var e=void 0;if("function"==typeof arguments[0])return e=arguments[0],function(t){var r=R(e,t);return r.isMobxInjector=!1,(r=q(r)).isMobxInjector=!0,r};for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e=M(t),function(r){return R(e,r,t.join("-"))}}var Z=!1,F=!1,B=!1,G="undefined"!=typeof WeakMap?new WeakMap:void 0,U=new p;function z(e){if(o.findDOMNode)try{return(0,o.findDOMNode)(e)}catch(e){return null}return null}function V(e){var t=z(e);t&&G&&G.set(t,e),U.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}var H=new p;function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e[t],i=K[t],o=n?!0===r?function(){i.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),i.apply(this,arguments)}:i;e[t]=o}function W(e,t){if($(e,t))return!0;if("object"!==(void 0===e?"undefined":a(e))||null===e||"object"!==(void 0===t?"undefined":a(t))||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!hasOwnProperty.call(t,r[i])||!$(e[r[i]],t[r[i]]))return!1;return!0}function $(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var K={componentWillMount:function(){var e=this;if(!0!==F){var t=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"<component>",r=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,o=!1,a=!1;p.call(this,"props"),p.call(this,"state");var s=this.render.bind(this),c=null,l=!1,u=function(){l=!1;var t=void 0,r=void 0;if(c.track((function(){Z&&(e.__$mobRenderStart=Date.now());try{r=n.extras.allowStateChanges(!1,s)}catch(e){t=e}Z&&(e.__$mobRenderEnd=Date.now())})),t)throw H.emit(t),t;return r};this.render=function(){return(c=new n.Reaction(t+"#"+r+".render()",(function(){if(!l&&(l=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{a=!0,o||i.Component.prototype.forceUpdate.call(e),t=!1}finally{a=!1,t&&c.dispose()}}}))).reactComponent=e,u.$mobx=c,e.render=u,u()}}function p(e){var t=this[e],r=new n.Atom("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return r.reportObserved(),t},set:function(e){a||W(t,e)?t=e:(t=e,o=!0,r.reportChanged(),o=!1)}})}},componentWillUnmount:function(){if(!0!==F&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,Z)){var e=z(this);e&&G&&G.delete(e),U.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){Z&&V(this)},componentDidUpdate:function(){Z&&V(this)},shouldComponentUpdate:function(e,t){return F&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!W(this.props,e)}};function q(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return B||(B=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?j.apply(null,e)(q(t)):function(t){return q(e,t)};var r,n,o=e;if(!0===o.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof o||o.prototype&&o.prototype.render||o.isReactClass||i.Component.isPrototypeOf(o)))return q((n=r=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),c(t,[{key:"render",value:function(){return o.call(this,this.props,this.context)}}]),t}(i.Component),r.displayName=o.displayName||o.name,r.contextTypes=o.contextTypes,r.propTypes=o.propTypes,r.defaultProps=o.defaultProps,n));if(!o)throw new Error("Please pass a valid component to 'observer'");return function(e){Y(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach((function(t){Y(e,t)})),e.shouldComponentUpdate||(e.shouldComponentUpdate=K.shouldComponentUpdate)}(o.prototype||o),o.isMobXReactObserver=!0,o}var X=q((function(e){var t=e.children,r=e.inject,n=e.render,o=t||n;if(void 0===o)return null;if(!r)return o();var a=j(r)(o);return i.createElement(a,null)}));X.displayName="Observer";var J,Q,ee=function(e,t,r,n,i){var o="children"===t?"render":"children";return"function"==typeof e[t]&&"function"==typeof e[o]?new Error("Invalid prop,do not use children and render in the same time in`"+r):"function"!=typeof e[t]&&"function"!=typeof e[o]?new Error("Invalid prop `"+i+"` of type `"+a(e[t])+"` supplied to `"+r+"`, expected `function`."):void 0};X.propTypes={render:ee,children:ee};var te={children:!0,key:!0,ref:!0};Q=J=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),c(t,[{key:"render",value:function(){return i.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var r in t)e[r]=t[r];for(var n in this.props)te[n]||"suppressChangedStoreWarning"===n||(e[n]=this.props[n]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var t in e)te[t]||this.props[t]===e[t]||console.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t}(i.Component),J.contextTypes={mobxStores:A},J.childContextTypes={mobxStores:A.isRequired};if(!i.Component)throw new Error("mobx-react requires React to be available");if(!n.extras)throw new Error("mobx-react requires mobx to be available");"function"==typeof o.unstable_batchedUpdates&&n.extras.setReactionScheduler(o.unstable_batchedUpdates);if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":a(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var re={spy:n.spy,extras:n.extras},ne={renderReporter:U,componentByNodeRegistery:G,trackComponents:function(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");Z||(Z=!0)}};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(ne,re)}},50265:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Atom:()=>a,BaseAtom:()=>o,IDerivationState:()=>xt,ObservableMap:()=>qe,Reaction:()=>lr,action:()=>Q,asFlat:()=>vr,asMap:()=>yr,asReference:()=>mr,asStructure:()=>gr,autorun:()=>pe,autorunAsync:()=>he,comparer:()=>ue,computed:()=>wr,createTransformer:()=>Ir,default:()=>Nr,expr:()=>Or,extendObservable:()=>Ce,extendShallowObservable:()=>Ae,extras:()=>Pr,intercept:()=>Sr,isAction:()=>re,isArrayLike:()=>_t,isBoxedObservable:()=>Z,isComputed:()=>Lr,isModifierDescriptor:()=>Ge,isObservable:()=>Ie,isObservableArray:()=>R,isObservableMap:()=>Je,isObservableObject:()=>Te,isStrictModeEnabled:()=>V,map:()=>Xe,observable:()=>Fe,observe:()=>xr,reaction:()=>fe,runInAction:()=>te,spy:()=>b,toJS:()=>Tr,trace:()=>sr,transaction:()=>$e,untracked:()=>tr,useStrict:()=>z,when:()=>de,whyRun:()=>ar});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var 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])};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){function e(e){void 0===e&&(e="Atom@"+tt()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=xt.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){Ht(this)},e.prototype.reportChanged=function(){zt(),function(e){if(e.lowestObserverState===xt.STALE)return;e.lowestObserverState=xt.STALE;var t=e.observers,r=t.length;for(;r--;){var n=t[r];n.dependenciesState===xt.UP_TO_DATE&&(n.isTracing!==St.NONE&&Yt(n,e),n.onBecomeStale()),n.dependenciesState=xt.STALE}}(this),Vt()},e.prototype.toString=function(){return this.name},e}(),a=function(e){function t(t,r,n){void 0===t&&(t="Atom@"+tt()),void 0===r&&(r=st),void 0===n&&(n=st);var i=e.call(this,t)||this;return i.name=t,i.onBecomeObservedHandler=r,i.onBecomeUnobservedHandler=n,i.isPendingUnobservation=!1,i.isBeingTracked=!1,i}return i(t,e),t.prototype.reportObserved=function(){return zt(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),Vt(),!!It.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(o),s=bt("Atom",o);function c(e){return e.interceptors&&e.interceptors.length>0}function l(e,t){var r=e.interceptors||(e.interceptors=[]);return r.push(t),at((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function u(e,t){var r=rr();try{var n=e.interceptors;if(n)for(var i=0,o=n.length;i<o&&(nt(!(t=n[i](t))||t.type,"Intercept handlers should return nothing or a change object"),t);i++);return t}finally{nr(r)}}function p(e){return e.changeListeners&&e.changeListeners.length>0}function d(e,t){var r=e.changeListeners||(e.changeListeners=[]);return r.push(t),at((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function h(e,t){var r=rr(),n=e.changeListeners;if(n){for(var i=0,o=(n=n.slice()).length;i<o;i++)n[i](t);nr(r)}}function f(){return!!It.spyListeners.length}function m(e){if(It.spyListeners.length)for(var t=It.spyListeners,r=0,n=t.length;r<n;r++)t[r](e)}function g(e){m(dt({},e,{spyReportStart:!0}))}var v={spyReportEnd:!0};function y(e){m(e?dt({},e,v):v)}function b(e){return It.spyListeners.push(e),at((function(){var t=It.spyListeners.indexOf(e);-1!==t&&It.spyListeners.splice(t,1)}))}var _="__$$iterating";function E(e){nt(!0!==e.__$$iterating,"Illegal state: cannot recycle array as iterator"),gt(e,_,!0);var t=-1;return gt(e,"next",(function(){return{done:++t>=this.length,value:t<this.length?this[t]:void 0}})),e}function w(e,t){gt(e,"function"==typeof Symbol&&Symbol.iterator||"@@iterator",t)}var L,x,S=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),O=0,T=function(){};L=T,x=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(L.prototype,x):void 0!==L.prototype.__proto__?L.prototype.__proto__=x:L.prototype=x,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(T.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var I=function(){function e(e,t,r,n){this.array=r,this.owned=n,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new o(e||"ObservableArray@"+tt()),this.enhancer=function(r,n){return t(r,n,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer?e.map(this.dehancer):e},e.prototype.intercept=function(e){return l(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),d(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var r=new Array(e-t),n=0;n<e-t;n++)r[n]=void 0;this.spliceWithArray(t,0,r)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>O&&D(e+t+1)},e.prototype.spliceWithArray=function(e,t,r){var n=this;Jt(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===r&&(r=[]),c(this)){var o=u(this,{object:this.array,type:"splice",index:e,removedCount:t,added:r});if(!o)return Qe;t=o.removedCount,r=o.added}var a=(r=r.map((function(e){return n.enhancer(e,void 0)}))).length-t;this.updateArrayLength(i,a);var s=this.spliceItemsIntoValues(e,t,r);return 0===t&&0===r.length||this.notifyArraySplice(e,r,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,r){if(r.length<1e4)return(n=this.values).splice.apply(n,[e,t].concat(r));var n,i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(r,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,r){var n=!this.owned&&f(),i=p(this),o=i||n?{object:this.array,type:"update",index:e,newValue:t,oldValue:r}:null;n&&g(o),this.atom.reportChanged(),i&&h(this,o),n&&y()},e.prototype.notifyArraySplice=function(e,t,r){var n=!this.owned&&f(),i=p(this),o=i||n?{object:this.array,type:"splice",index:e,removed:r,added:t,removedCount:r.length,addedCount:t.length}:null;n&&g(o),this.atom.reportChanged(),i&&h(this,o),n&&y()},e}(),P=function(e){function t(t,r,n,i){void 0===n&&(n="ObservableArray@"+tt()),void 0===i&&(i=!1);var o=e.call(this)||this,a=new I(n,r,o,i);return gt(o,"$mobx",a),t&&t.length&&o.spliceWithArray(0,0,t),S&&Object.defineProperty(a.array,"0",C),o}return i(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return R(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,r){void 0===r&&(r=0);var n=this.findIndex.apply(this,arguments);return-1===n?void 0:this.get(n)},t.prototype.findIndex=function(e,t,r){void 0===r&&(r=0);for(var n=this.peek(),i=n.length,o=r;o<i;o++)if(e.call(t,n[o],o,this))return o;return-1},t.prototype.splice=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,r)},t.prototype.spliceWithArray=function(e,t,r){return this.$mobx.spliceWithArray(e,t,r)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.$mobx;return r.spliceWithArray(r.values.length,0,e),r.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.$mobx;return r.spliceWithArray(0,0,e),r.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function r(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(r.call(this,e),r.call(this,t),e!==t){var n,i=this.$mobx.values;n=e<t?i.slice(0,e).concat(i.slice(e+1,t+1),[i[e]],i.slice(t+1)):i.slice(0,t).concat([i[e]],i.slice(t,e),i.slice(e+1)),this.replace(n)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var r=this.$mobx,n=r.values;if(e<n.length){Jt(r.atom);var i=n[e];if(c(r)){var o=u(r,{type:"update",object:this,index:e,newValue:t});if(!o)return;t=o.newValue}(t=r.enhancer(t,i))!==i&&(n[e]=t,r.notifyArrayChildUpdate(e,t,i))}else{if(e!==n.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+n.length);r.spliceWithArray(e,0,[t])}},t}(T);w(P.prototype,(function(){return E(this.slice())})),Object.defineProperty(P.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];nt("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),mt(P.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),function(e,t){for(var r=0;r<t.length;r++)mt(e,t[r],e[t[r]])}(P.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var C=A(0);function A(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function k(e){Object.defineProperty(P.prototype,""+e,A(e))}function D(e){for(var t=O;t<e;t++)k(t);O=e}D(1e3);var N=bt("ObservableArrayAdministration",I);function R(e){return ut(e)&&N(e.$mobx)}var M={},j=function(e){function t(t,r,n,i){void 0===n&&(n="ObservableValue@"+tt()),void 0===i&&(i=!0);var o=e.call(this,n)||this;return o.enhancer=r,o.hasUnreportedChange=!1,o.dehancer=void 0,o.value=r(t,void 0,n),i&&f()&&m({type:"create",object:o,newValue:o.value}),o}return i(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==M){var r=f();r&&g({type:"update",object:this,newValue:e,oldValue:t}),this.setNewValue(e),r&&y()}},t.prototype.prepareNewValue=function(e){if(Jt(this),c(this)){var t=u(this,{object:this,type:"update",newValue:e});if(!t)return M;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.value!==e?e:M},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),p(this)&&h(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return l(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),d(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return Lt(this.get())},t}(o);j.prototype[wt()]=j.prototype.valueOf;var Z=bt("ObservableValue",j),F={m001:"It is not allowed to assign new values to @action fields",m002:"`runInAction` expects a function",m003:"`runInAction` expects a function without arguments",m004:"autorun expects a function",m005:"Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.",m006:"Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.",m007:"reaction only accepts 2 or 3 arguments. If migrating from MobX 2, please provide an options object",m008:"wrapping reaction expression in `asReference` is no longer supported, use options object instead",m009:"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.",m010:"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'",m011:"First argument to `computed` should be an expression. If using computed as decorator, don't pass it arguments",m012:"computed takes one or two arguments if used as function",m013:"[mobx.expr] 'expr' should only be used inside other reactive functions.",m014:"extendObservable expected 2 or more arguments",m015:"extendObservable expects an object as first argument",m016:"extendObservable should not be used on maps, use map.merge instead",m017:"all arguments of extendObservable should be objects",m018:"extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540",m019:"[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.",m020:"modifiers can only be used for individual object properties",m021:"observable expects zero or one arguments",m022:"@observable can not be used on getters, use @computed instead",m024:"whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.",m025:"whyRun can only be used on reactions and computed values",m026:"`action` can only be invoked on functions",m028:"It is not allowed to set `useStrict` when a derivation is running",m029:"INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row",m030a:"Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ",m030b:"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ",m031:"Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: ",m032:"* This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).",m033:"`observe` doesn't support the fire immediately property for observable maps.",m034:"`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead",m035:"Cannot make the designated object observable; it is not extensible",m036:"It is not possible to get index atoms from arrays",m037:'Hi there! I\'m sorry you have just run into an exception.\nIf your debugger ends up here, know that some reaction (like the render() of an observer component, autorun or reaction)\nthrew an exception and that mobx caught it, to avoid that it brings the rest of your application down.\nThe original cause of the exception (the code that caused this reaction to run (again)), is still in the stack.\n\nHowever, more interesting is the actual stack trace of the error itself.\nHopefully the error is an instanceof Error, because in that case you can inspect the original stack of the error from where it was thrown.\nSee `error.stack` property, or press the very subtle "(...)" link you see near the console.error message that probably brought you here.\nThat stack is more interesting than the stack of this console.error itself.\n\nIf the exception you see is an exception you created yourself, make sure to use `throw new Error("Oops")` instead of `throw "Oops"`,\nbecause the javascript environment will only preserve the original stack trace in the first form.\n\nYou can also make sure the debugger pauses the next time this very same exception is thrown by enabling "Pause on caught exception".\n(Note that it might pause on many other, unrelated exception as well).\n\nIf that all doesn\'t help you out, feel free to open an issue https://github.com/mobxjs/mobx/issues!\n',m038:"Missing items in this list?\n 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"};function B(e){return F[e]}function G(e,t){nt("function"==typeof t,B("m026")),nt("string"==typeof e&&e.length>0,"actions should have valid names, got: '"+e+"'");var r=function(){return U(e,t,this,arguments)};return r.originalFn=t,r.isMobxAction=!0,r}function U(e,t,r,n){var i=function(e,t,r,n){var i=f()&&!!e,o=0;if(i){o=Date.now();var a=n&&n.length||0,s=new Array(a);if(a>0)for(var c=0;c<a;c++)s[c]=n[c];g({type:"action",name:e,fn:t,object:r,arguments:s})}var l=rr();zt();var u=H(!0);return{prevDerivation:l,prevAllowStateChanges:u,notifySpy:i,startTime:o}}(e,t,r,n);try{return t.apply(r,n)}finally{!function(e){Y(e.prevAllowStateChanges),Vt(),nr(e.prevDerivation),e.notifySpy&&y({time:Date.now()-e.startTime})}(i)}}function z(e){nt(null===It.trackingDerivation,B("m028")),It.strictMode=e,It.allowStateChanges=!e}function V(){return It.strictMode}function H(e){var t=It.allowStateChanges;return It.allowStateChanges=e,t}function Y(e){It.allowStateChanges=e}function W(e,t,r,n,i){function o(o,a,s,c,l){if(void 0===l&&(l=0),nt(i||q(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),s){ft(o,"__mobxLazyInitializers")||mt(o,"__mobxLazyInitializers",o.__mobxLazyInitializers&&o.__mobxLazyInitializers.slice()||[]);var u=s.value,p=s.initializer;return o.__mobxLazyInitializers.push((function(t){e(t,a,p?p.call(t):u,c,s)})),{enumerable:n,configurable:!0,get:function(){return!0!==this.__mobxDidRunLazyInitializers&&K(this),t.call(this,a)},set:function(e){!0!==this.__mobxDidRunLazyInitializers&&K(this),r.call(this,a,e)}}}var d={enumerable:n,configurable:!0,get:function(){return this.__mobxInitializedProps&&!0===this.__mobxInitializedProps[a]||$(this,a,void 0,e,c,s),t.call(this,a)},set:function(t){this.__mobxInitializedProps&&!0===this.__mobxInitializedProps[a]?r.call(this,a,t):$(this,a,t,e,c,s)}};return(arguments.length<3||5===arguments.length&&l<3)&&Object.defineProperty(o,a,d),d}return i?function(){if(q(arguments))return o.apply(null,arguments);var e=arguments,t=arguments.length;return function(r,n,i){return o(r,n,i,e,t)}}:o}function $(e,t,r,n,i,o){ft(e,"__mobxInitializedProps")||mt(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,n(e,t,r,i,o)}function K(e){!0!==e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers&&(mt(e,"__mobxDidRunLazyInitializers",!0),e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers.forEach((function(t){return t(e)})))}function q(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]}var X=W((function(e,t,r,n,i){var o=n&&1===n.length?n[0]:r.name||t||"<unnamed action>";mt(e,t,Q(o,r))}),(function(e){return this[e]}),(function(){nt(!1,B("m001"))}),!1,!0),J=W((function(e,t,r){ne(e,t,r)}),(function(e){return this[e]}),(function(){nt(!1,B("m001"))}),!1,!1),Q=function(e,t,r,n){return 1===arguments.length&&"function"==typeof e?G(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?G(e,t):1===arguments.length&&"string"==typeof e?ee(e):ee(t).apply(null,arguments)};function ee(e){return function(t,r,n){if(n&&"function"==typeof n.value)return n.value=G(e,n.value),n.enumerable=!1,n.configurable=!0,n;if(void 0!==n&&void 0!==n.get)throw new Error("[mobx] action is not expected to be used with getters");return X(e).apply(this,arguments)}}function te(e,t,r){var n="string"==typeof e?e:e.name||"<unnamed action>",i="function"==typeof e?e:t,o="function"==typeof e?t:r;return nt("function"==typeof i,B("m002")),nt(0===i.length,B("m003")),nt("string"==typeof n&&n.length>0,"actions should have valid names, got: '"+n+"'"),U(n,i,o,void 0)}function re(e){return"function"==typeof e&&!0===e.isMobxAction}function ne(e,t,r){var n=function(){return U(t,r,e,arguments)};n.isMobxAction=!0,mt(e,t,n)}function ie(e,t){return oe(e,t)}function oe(e,t,r,n){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;return("function"===i||"object"===i||"object"==typeof t)&&function(e,t,r,n){e=se(e),t=se(t);var i=ae.call(e);if(i!==ae.call(t))return!1;switch(i){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)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!("function"==typeof a&&a instanceof a&&"function"==typeof s&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];var c=(r=r||[]).length;for(;c--;)if(r[c]===e)return n[c]===t;if(r.push(e),n.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!oe(e[c],t[c],r,n))return!1}else{var l,u=Object.keys(e);if(c=u.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!ce(t,l=u[c])||!oe(e[l],t[l],r,n))return!1}return r.pop(),n.pop(),!0}(e,t,r,n)}Q.bound=function(e,t,r){if("function"==typeof e){var n=G("<not yet bound action>",e);return n.autoBind=!0,n}return J.apply(null,arguments)};var ae=Object.prototype.toString;function se(e){return R(e)?e.peek():Je(e)?e.entries():Et(e)?function(e){var t=[];for(;;){var r=e.next();if(r.done)break;t.push(r.value)}return t}(e.entries()):e}function ce(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function le(e,t){return e===t}var ue={identity:le,structural:function(e,t){return ie(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||le(e,t)}};function pe(e,t,r){var n,i,o;"string"==typeof e?(n=e,i=t,o=r):(n=e.name||"Autorun@"+tt(),i=e,o=t),nt("function"==typeof i,B("m004")),nt(!1===re(i),B("m005")),o&&(i=i.bind(o));var a=new lr(n,(function(){this.track(s)}));function s(){i(a)}return a.schedule(),a.getDisposer()}function de(e,t,r,n){var i,o,a,s;return"string"==typeof e?(i=e,o=t,a=r,s=n):(i="When@"+tt(),o=e,a=t,s=r),pe(i,(function(e){if(o.call(s)){e.dispose();var t=rr();a.call(s),nr(t)}}))}function he(e,t,r,n){var i,o,a,s;"string"==typeof e?(i=e,o=t,a=r,s=n):(i=e.name||"AutorunAsync@"+tt(),o=e,a=t,s=r),nt(!1===re(o),B("m006")),void 0===a&&(a=1),s&&(o=o.bind(s));var c=!1,l=new lr(i,(function(){c||(c=!0,setTimeout((function(){c=!1,l.isDisposed||l.track(u)}),a))}));function u(){o(l)}return l.schedule(),l.getDisposer()}function fe(e,t,r){var n;arguments.length>3&&rt(B("m007")),Ge(e)&&rt(B("m008")),(n="object"==typeof r?r:{}).name=n.name||e.name||t.name||"Reaction@"+tt(),n.fireImmediately=!0===r||!0===n.fireImmediately,n.delay=n.delay||0,n.compareStructural=n.compareStructural||n.struct||!1,t=Q(n.name,n.context?t.bind(n.context):t),n.context&&(e=e.bind(n.context));var i,o=!0,a=!1,s=n.equals?n.equals:n.compareStructural||n.struct?ue.structural:ue.default,c=new lr(n.name,(function(){o||n.delay<1?l():a||(a=!0,setTimeout((function(){a=!1,l()}),n.delay))}));function l(){if(!c.isDisposed){var r=!1;c.track((function(){var t=e(c);r=o||!s(i,t),i=t})),o&&n.fireImmediately&&t(i,c),o||!0!==r||t(i,c),o&&(o=!1)}}return c.schedule(),c.getDisposer()}var me=function(){function e(e,t,r,n,i){this.derivation=e,this.scope=t,this.equals=r,this.dependenciesState=xt.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=xt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+tt(),this.value=new $t(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=St.NONE,this.name=n||"ComputedValue@"+tt(),i&&(this.setter=G(n+"-setter",i))}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==xt.UP_TO_DATE)return;e.lowestObserverState=xt.POSSIBLY_STALE;var t=e.observers,r=t.length;for(;r--;){var n=t[r];n.dependenciesState===xt.UP_TO_DATE&&(n.dependenciesState=xt.POSSIBLY_STALE,n.isTracing!==St.NONE&&Yt(n,e),n.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){er(this),this.value=void 0},e.prototype.get=function(){nt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===It.inBatch?(zt(),qt(this)&&(this.isTracing!==St.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),Vt()):(Ht(this),qt(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===xt.STALE)return;e.lowestObserverState=xt.STALE;var t=e.observers,r=t.length;for(;r--;){var n=t[r];n.dependenciesState===xt.POSSIBLY_STALE?n.dependenciesState=xt.STALE:n.dependenciesState===xt.UP_TO_DATE&&(e.lowestObserverState=xt.UP_TO_DATE)}}(this));var e=this.value;if(Kt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(Kt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){nt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else nt(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){f()&&m({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.dependenciesState===xt.NOT_TRACKING,r=this.value=this.computeValue(!0);return t||Kt(e)||Kt(r)||!this.equals(e,r)},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,It.computationDepth++,e)t=Qt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new $t(e)}return It.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var r=this,n=!0,i=void 0;return pe((function(){var o=r.get();if(!n||t){var a=rr();e({type:"update",object:r,newValue:o,oldValue:i}),nr(a)}n=!1,i=o}))},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Lt(this.get())},e.prototype.whyRun=function(){var e=Boolean(It.trackingDerivation),t=ct(this.isComputing?this.newObserving:this.observing).map((function(e){return e.name})),r=ct(Ft(this).map((function(e){return e.name})));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===xt.NOT_TRACKING?B("m032"):" * This computation will re-run if any of the following observables changes:\n "+lt(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n "+B("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+lt(r)+"\n")},e}();me.prototype[wt()]=me.prototype.valueOf;var ge=bt("ComputedValue",me),ve=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return nt(!0!==t,"`observe` doesn't support the fire immediately property for observable objects."),d(this,e)},e.prototype.intercept=function(e){return l(this,e)},e}();function ye(e,t){if(Te(e)&&e.hasOwnProperty("$mobx"))return e.$mobx;nt(Object.isExtensible(e),B("m035")),pt(e)||(t=(e.constructor.name||"ObservableObject")+"@"+tt()),t||(t="ObservableObject@"+tt());var r=new ve(e,t);return gt(e,"$mobx",r),r}function be(e,t,r,n){if(e.values[t]&&!ge(e.values[t]))return nt("value"in r,"The property "+t+" in "+e.name+" is already observable, cannot redefine it as computed property"),void(e.target[t]=r.value);if("value"in r)if(Ge(r.value)){var i=r.value;_e(e,t,i.initialValue,i.enhancer)}else re(r.value)&&!0===r.value.autoBind?ne(e.target,t,r.value.originalFn):ge(r.value)?function(e,t,r){var n=e.name+"."+t;r.name=n,r.scope||(r.scope=e.target);e.values[t]=r,Object.defineProperty(e.target,t,xe(t))}(e,t,r.value):_e(e,t,r.value,n);else Ee(e,t,r.get,r.set,ue.default,!0)}function _e(e,t,r,n){if(yt(e.target,t),c(e)){var i=u(e,{object:e.target,name:t,type:"add",newValue:r});if(!i)return;r=i.newValue}r=(e.values[t]=new j(r,n,e.name+"."+t,!1)).value,Object.defineProperty(e.target,t,function(e){return we[e]||(we[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){Se(this,e,t)}})}(t)),function(e,t,r,n){var i=p(e),o=f(),a=i||o?{type:"add",object:t,name:r,newValue:n}:null;o&&g(a);i&&h(e,a);o&&y()}(e,e.target,t,r)}function Ee(e,t,r,n,i,o){o&&yt(e.target,t),e.values[t]=new me(r,e.target,i,e.name+"."+t,n),o&&Object.defineProperty(e.target,t,xe(t))}var we={},Le={};function xe(e){return Le[e]||(Le[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function Se(e,t,r){var n=e.$mobx,i=n.values[t];if(c(n)){if(!(s=u(n,{type:"update",object:e,name:t,newValue:r})))return;r=s.newValue}if((r=i.prepareNewValue(r))!==M){var o=p(n),a=f(),s=o||a?{type:"update",object:e,oldValue:i.value,name:t,newValue:r}:null;a&&g(s),i.setNewValue(r),o&&h(n,s),a&&y()}}var Oe=bt("ObservableObjectAdministration",ve);function Te(e){return!!ut(e)&&(K(e),Oe(e.$mobx))}function Ie(e,t){if(null==e)return!1;if(void 0!==t){if(R(e)||Je(e))throw new Error(B("m019"));if(Te(e)){var r=e.$mobx;return r.values&&!!r.values[t]}return!1}return Te(e)||!!e.$mobx||s(e)||fr(e)||ge(e)}function Pe(e){return nt(!!e,":("),W((function(t,r,n,i,o){yt(t,r),nt(!o||!o.get,B("m022")),_e(ye(t,void 0),r,n,e)}),(function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()}),(function(e,t){Se(this,e,t)}),!0,!1)}function Ce(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ke(e,ze,t)}function Ae(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ke(e,He,t)}function ke(e,t,r){nt(arguments.length>=2,B("m014")),nt("object"==typeof e,B("m015")),nt(!Je(e),B("m016")),r.forEach((function(e){nt("object"==typeof e,B("m017")),nt(!Ie(e),B("m018"))}));for(var n=ye(e),i={},o=r.length-1;o>=0;o--){var a=r[o];for(var s in a)if(!0!==i[s]&&ft(a,s)){if(i[s]=!0,e===a&&!vt(e,s))continue;var c=Object.getOwnPropertyDescriptor(a,s);be(n,s,c,t)}}return e}var De=Pe(ze),Ne=Pe(Ve),Re=Pe(He),Me=Pe(Ye),je=Pe(We);var Ze={box:function(e,t){return arguments.length>2&&Be("box"),new j(e,ze,t)},shallowBox:function(e,t){return arguments.length>2&&Be("shallowBox"),new j(e,He,t)},array:function(e,t){return arguments.length>2&&Be("array"),new P(e,ze,t)},shallowArray:function(e,t){return arguments.length>2&&Be("shallowArray"),new P(e,He,t)},map:function(e,t){return arguments.length>2&&Be("map"),new qe(e,ze,t)},shallowMap:function(e,t){return arguments.length>2&&Be("shallowMap"),new qe(e,He,t)},object:function(e,t){arguments.length>2&&Be("object");var r={};return ye(r,t),Ce(r,e),r},shallowObject:function(e,t){arguments.length>2&&Be("shallowObject");var r={};return ye(r,t),Ae(r,e),r},ref:function(){return arguments.length<2?Ue(He,arguments[0]):Re.apply(null,arguments)},shallow:function(){return arguments.length<2?Ue(Ve,arguments[0]):Ne.apply(null,arguments)},deep:function(){return arguments.length<2?Ue(ze,arguments[0]):De.apply(null,arguments)},struct:function(){return arguments.length<2?Ue(Ye,arguments[0]):Me.apply(null,arguments)}},Fe=function(e){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return De.apply(null,arguments);if(nt(arguments.length<=1,B("m021")),nt(!Ge(e),B("m020")),Ie(e))return e;var t=ze(e,void 0,void 0);return t!==e?t:Fe.box(e)};function Be(e){rt("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function Ge(e){return"object"==typeof e&&null!==e&&!0===e.isMobxModifierDescriptor}function Ue(e,t){return nt(!Ge(t),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function ze(e,t,r){return Ge(e)&&rt("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),Ie(e)?e:Array.isArray(e)?Fe.array(e,r):pt(e)?Fe.object(e,r):Et(e)?Fe.map(e,r):e}function Ve(e,t,r){return Ge(e)&&rt("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),null==e||Te(e)||R(e)||Je(e)?e:Array.isArray(e)?Fe.shallowArray(e,r):pt(e)?Fe.shallowObject(e,r):Et(e)?Fe.shallowMap(e,r):rt("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function He(e){return e}function Ye(e,t,r){if(ie(e,t))return t;if(Ie(e))return e;if(Array.isArray(e))return new P(e,Ye,r);if(Et(e))return new qe(e,Ye,r);if(pt(e)){var n={};return ye(n,r),ke(n,Ye,[e]),n}return e}function We(e,t,r){return ie(e,t)?t:e}function $e(e,t){void 0===t&&(t=void 0),zt();try{return e.apply(t)}finally{Vt()}}Object.keys(Ze).forEach((function(e){return Fe[e]=Ze[e]})),Fe.deep.struct=Fe.struct,Fe.ref.struct=function(){return arguments.length<2?Ue(We,arguments[0]):je.apply(null,arguments)};var Ke={},qe=function(){function e(e,t,r){void 0===t&&(t=ze),void 0===r&&(r="ObservableMap@"+tt()),this.enhancer=t,this.name=r,this.$mobx=Ke,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new P(void 0,He,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return void 0!==this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var r=this._has(e);if(c(this)){var n=u(this,{type:r?"update":"add",object:this,newValue:t,name:e});if(!n)return this;t=n.newValue}return r?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((this.assertValidKey(e),e=""+e,c(this))&&!(i=u(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var r=f(),n=p(this),i=n||r?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return r&&g(i),$e((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0})),n&&h(this,i),r&&y(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var r=this._hasMap[e];return r?r.setNewValue(t):r=this._hasMap[e]=new j(t,He,this.name+"."+e+"?",!1),r},e.prototype._updateValue=function(e,t){var r=this._data[e];if((t=r.prepareNewValue(t))!==M){var n=f(),i=p(this),o=i||n?{type:"update",object:this,oldValue:r.value,name:e,newValue:t}:null;n&&g(o),r.setNewValue(t),i&&h(this,o),n&&y()}},e.prototype._addValue=function(e,t){var r=this;$e((function(){var n=r._data[e]=new j(t,r.enhancer,r.name+"."+e,!1);t=n.value,r._updateHasMapEntry(e,!0),r._keys.push(e)}));var n=f(),i=p(this),o=i||n?{type:"add",object:this,name:e,newValue:t}:null;n&&g(o),i&&h(this,o),n&&y()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return E(this._keys.slice())},e.prototype.values=function(){return E(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return E(this._keys.map((function(t){return[t,e.get(t)]})))},e.prototype.forEach=function(e,t){var r=this;this.keys().forEach((function(n){return e.call(t,r.get(n),n,r)}))},e.prototype.merge=function(e){var t=this;return Je(e)&&(e=e.toJS()),$e((function(){pt(e)?Object.keys(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)})):Et(e)?e.forEach((function(e,r){return t.set(r,e)})):null!=e&&rt("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;$e((function(){tr((function(){e.keys().forEach(e.delete,e)}))}))},e.prototype.replace=function(e){var t=this;return $e((function(){var r,n=pt(r=e)?Object.keys(r):Array.isArray(r)?r.map((function(e){return e[0]})):Et(r)?Array.from(r.keys()):Je(r)?r.keys():rt("Cannot get keys from "+r);t.keys().filter((function(e){return-1===n.indexOf(e)})).forEach((function(e){return t.delete(e)})),t.merge(e)})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach((function(r){return t[r]=e.get(r)})),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!=e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map((function(t){return t+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return nt(!0!==t,B("m033")),d(this,e)},e.prototype.intercept=function(e){return l(this,e)},e}();function Xe(e){return ot("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Fe.map(e)}w(qe.prototype,(function(){return this.entries()}));var Je=bt("ObservableMap",qe),Qe=[];function et(){return"undefined"!=typeof window?window:r.g}function tt(){return++It.mobxGuid}function rt(e,t){throw nt(!1,e,t),"X"}function nt(e,t,r){if(!e)throw new Error("[mobx] Invariant failed: "+t+(r?" in '"+r+"'":""))}Object.freeze(Qe);var it=[];function ot(e){return-1===it.indexOf(e)&&(it.push(e),console.error("[mobx] Deprecated: "+e),!0)}function at(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var st=function(){};function ct(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),t}function lt(e,t,r){return void 0===t&&(t=100),void 0===r&&(r=" - "),e?e.slice(0,t).join(r)+(e.length>t?" (... and "+(e.length-t)+"more)":""):""}function ut(e){return null!==e&&"object"==typeof e}function pt(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function dt(){for(var e=arguments[0],t=1,r=arguments.length;t<r;t++){var n=arguments[t];for(var i in n)ft(n,i)&&(e[i]=n[i])}return e}var ht=Object.prototype.hasOwnProperty;function ft(e,t){return ht.call(e,t)}function mt(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function gt(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function vt(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!r||!1!==r.configurable&&!1!==r.writable}function yt(e,t){nt(vt(e,t),"Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function bt(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(e){return ut(e)&&!0===e[r]}}function _t(e){return Array.isArray(e)||R(e)}function Et(e){return void 0!==et().Map&&e instanceof et().Map}function wt(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function Lt(e){return null===e?null:"object"==typeof e?""+e:e}var xt,St,Ot=["mobxGuid","resetId","spyListeners","strictMode","runId"],Tt=function(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]},It=new Tt,Pt=!1,Ct=!1,At=!1,kt=et();function Dt(e,t){if("object"==typeof e&&null!==e){if(R(e))return nt(void 0===t,B("m036")),e.$mobx.atom;if(Je(e)){var r=e;return void 0===t?Dt(r._keys):(nt(!!(n=r._data[t]||r._hasMap[t]),"the entry '"+t+"' does not exist in the observable map '"+Rt(e)+"'"),n)}var n;if(K(e),t&&!e.$mobx&&e[t],Te(e))return t?(nt(!!(n=e.$mobx.values[t]),"no observable property '"+t+"' found on the observable object '"+Rt(e)+"'"),n):rt("please specify a property");if(s(e)||ge(e)||fr(e))return e}else if("function"==typeof e&&fr(e.$mobx))return e.$mobx;return rt("Cannot obtain atom from "+e)}function Nt(e,t){return nt(e,"Expecting some object"),void 0!==t?Nt(Dt(e,t)):s(e)||ge(e)||fr(e)||Je(e)?e:(K(e),e.$mobx?e.$mobx:void nt(!1,"Cannot obtain administration from "+e))}function Rt(e,t){return(void 0!==t?Dt(e,t):Te(e)||Je(e)?Nt(e):Dt(e)).name}function Mt(e,t){return jt(Dt(e,t))}function jt(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=ct(e.observing).map(jt)),t}function Zt(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=Ft(e).map(Zt)),t}function Ft(e){return e.observers}function Bt(e,t){var r=e.observers.length;r&&(e.observersIndexes[t.__mapid]=r),e.observers[r]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Gt(e,t){if(1===e.observers.length)e.observers.length=0,Ut(e);else{var r=e.observers,n=e.observersIndexes,i=r.pop();if(i!==t){var o=n[t.__mapid]||0;o?n[i.__mapid]=o:delete n[i.__mapid],r[o]=i}delete n[t.__mapid]}}function Ut(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,It.pendingUnobservations.push(e))}function zt(){It.inBatch++}function Vt(){if(0==--It.inBatch){dr();for(var e=It.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,0===r.observers.length&&r.onBecomeUnobserved()}It.pendingUnobservations=[]}}function Ht(e){var t=It.trackingDerivation;null!==t?t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e):0===e.observers.length&&Ut(e)}function Yt(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===St.BREAK){var r=[];Wt(Mt(e),r,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof me?e.derivation.toString():"")+"\n\nThe dependencies for this derivation are:\n\n"+r.join("\n")+"\n*/\n ")()}}function Wt(e,t,r){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(r).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Wt(e,t,r+1)})))}kt.__mobxInstanceCount?(kt.__mobxInstanceCount++,setTimeout((function(){Pt||Ct||At||(At=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))}))):kt.__mobxInstanceCount=1,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"}(xt||(xt={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(St||(St={}));var $t=function(e){this.cause=e};function Kt(e){return e instanceof $t}function qt(e){switch(e.dependenciesState){case xt.UP_TO_DATE:return!1;case xt.NOT_TRACKING:case xt.STALE:return!0;case xt.POSSIBLY_STALE:for(var t=rr(),r=e.observing,n=r.length,i=0;i<n;i++){var o=r[i];if(ge(o)){try{o.get()}catch(e){return nr(t),!0}if(e.dependenciesState===xt.STALE)return nr(t),!0}}return ir(e),nr(t),!1}}function Xt(){return null!==It.trackingDerivation}function Jt(e){var t=e.observers.length>0;It.computationDepth>0&&t&&rt(B("m031")+e.name),!It.allowStateChanges&&t&&rt(B(It.strictMode?"m030a":"m030b")+e.name)}function Qt(e,t,r){ir(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++It.runId;var n,i=It.trackingDerivation;It.trackingDerivation=e;try{n=t.call(r)}catch(e){n=new $t(e)}return It.trackingDerivation=i,function(e){for(var t=e.observing,r=e.observing=e.newObserving,n=xt.UP_TO_DATE,i=0,o=e.unboundDepsCount,a=0;a<o;a++){0===(s=r[a]).diffValue&&(s.diffValue=1,i!==a&&(r[i]=s),i++),s.dependenciesState>n&&(n=s.dependenciesState)}r.length=i,e.newObserving=null,o=t.length;for(;o--;){0===(s=t[o]).diffValue&&Gt(s,e),s.diffValue=0}for(;i--;){var s;1===(s=r[i]).diffValue&&(s.diffValue=0,Bt(s,e))}n!==xt.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}(e),n}function er(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)Gt(t[r],e);e.dependenciesState=xt.NOT_TRACKING}function tr(e){var t=rr(),r=e();return nr(t),r}function rr(){var e=It.trackingDerivation;return It.trackingDerivation=null,e}function nr(e){It.trackingDerivation=e}function ir(e){if(e.dependenciesState!==xt.UP_TO_DATE){e.dependenciesState=xt.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=xt.UP_TO_DATE}}function or(e){return console.log(e),e}function ar(e,t){return ot("`whyRun` is deprecated in favor of `trace`"),(e=cr(arguments))?ge(e)||fr(e)?or(e.whyRun()):rt(B("m025")):or(B("m024"))}function sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=!1;"boolean"==typeof e[e.length-1]&&(r=e.pop());var n=cr(e);if(!n)return rt("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");n.isTracing===St.NONE&&console.log("[mobx.trace] '"+n.name+"' tracing enabled"),n.isTracing=r?St.BREAK:St.LOG}function cr(e){switch(e.length){case 0:return It.trackingDerivation;case 1:return Dt(e[0]);case 2:return Dt(e[0],e[1])}}var lr=function(){function e(e,t){void 0===e&&(e="Reaction@"+tt()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=xt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+tt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=St.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,It.pendingReactions.push(this),dr())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(zt(),this._isScheduled=!1,qt(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&f()&&m({object:this,type:"scheduled-reaction"})),Vt())},e.prototype.track=function(e){zt();var t,r=f();r&&(t=Date.now(),g({object:this,type:"reaction",fn:e})),this._isRunning=!0;var n=Qt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&er(this),Kt(n)&&this.reportExceptionInDerivation(n.cause),r&&y({time:Date.now()-t}),Vt()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{var r="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,n=B("m037");console.error(r||n,e),f()&&m({type:"error",message:r,error:e,object:this}),It.globalReactionErrorHandlers.forEach((function(r){return r(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(zt(),er(this),Vt()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=ur,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=ct(this._isRunning?this.newObserving:this.observing).map((function(e){return e.name}));return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+lt(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+B("m038")+"\n"},e.prototype.trace=function(e){void 0===e&&(e=!1),sr(this,e)},e}();function ur(e){nt(this&&this.$mobx&&fr(this.$mobx),"Invalid `this`"),nt(!this.$mobx.errorHandler,"Only one onErrorHandler can be registered"),this.$mobx.errorHandler=e}var pr=function(e){return e()};function dr(){It.inBatch>0||It.isRunningReactions||pr(hr)}function hr(){It.isRunningReactions=!0;for(var e=It.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].runReaction()}It.isRunningReactions=!1}var fr=bt("Reaction",lr);function mr(e){return ot("asReference is deprecated, use observable.ref instead"),Fe.ref(e)}function gr(e){return ot("asStructure is deprecated. Use observable.struct, computed.struct or reaction options instead."),Fe.struct(e)}function vr(e){return ot("asFlat is deprecated, use observable.shallow instead"),Fe.shallow(e)}function yr(e){return ot("asMap is deprecated, use observable.map or observable.shallowMap instead"),Fe.map(e||{})}function br(e){return W((function(t,r,n,i,o){nt(void 0!==o,B("m009")),nt("function"==typeof o.get,B("m010")),Ee(ye(t,""),r,o.get,o.set,e,!1)}),(function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()}),(function(e,t){this.$mobx.values[e].set(t)}),!1,!1)}var _r=br(ue.default),Er=br(ue.structural),wr=function(e,t,r){if("string"==typeof t)return _r.apply(null,arguments);nt("function"==typeof e,B("m011")),nt(arguments.length<3,B("m012"));var n="object"==typeof t?t:{};n.setter="function"==typeof t?t:n.setter;var i=n.equals?n.equals:n.compareStructural||n.struct?ue.structural:ue.default;return new me(e,n.context,i,n.name||e.name||"",n.setter)};function Lr(e,t){if(null==e)return!1;if(void 0!==t){if(!1===Te(e))return!1;if(!e.$mobx.values[t])return!1;var r=Dt(e,t);return ge(r)}return ge(e)}function xr(e,t,r,n){return"function"==typeof r?function(e,t,r,n){return Nt(e,t).observe(r,n)}(e,t,r,n):function(e,t,r){return Nt(e).observe(t,r)}(e,t,r)}function Sr(e,t,r){return"function"==typeof r?function(e,t,r){return Nt(e,t).intercept(r)}(e,t,r):function(e,t){return Nt(e).intercept(t)}(e,t)}function Or(e,t){return Xt()||console.warn(B("m013")),wr(e,{context:t}).get()}function Tr(e,t,r){function n(n){return t&&r.push([e,n]),n}if(void 0===t&&(t=!0),void 0===r&&(r=[]),Ie(e)){if(t&&null===r&&(r=[]),t&&null!==e&&"object"==typeof e)for(var i=0,o=r.length;i<o;i++)if(r[i][0]===e)return r[i][1];if(R(e)){var a=n([]),s=e.map((function(e){return Tr(e,t,r)}));a.length=s.length;for(i=0,o=s.length;i<o;i++)a[i]=s[i];return a}if(Te(e)){a=n({});for(var c in e)a[c]=Tr(e[c],t,r);return a}if(Je(e)){var l=n({});return e.forEach((function(e,n){return l[n]=Tr(e,t,r)})),l}if(Z(e))return Tr(e.get(),t,r)}return e}function Ir(e,t){nt("function"==typeof e&&e.length<2,"createTransformer expects a function that accepts one argument");var r={},n=It.resetId,o=function(n){function o(t,r){var i=n.call(this,(function(){return e(r)}),void 0,ue.default,"Transformer-"+e.name+"-"+t,void 0)||this;return i.sourceIdentifier=t,i.sourceObject=r,i}return i(o,n),o.prototype.onBecomeUnobserved=function(){var e=this.value;n.prototype.onBecomeUnobserved.call(this),delete r[this.sourceIdentifier],t&&t(e,this.sourceObject)},o}(me);return function(e){n!==It.resetId&&(r={},n=It.resetId);var t=function(e){if("string"==typeof e||"number"==typeof e)return e;if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object or primitive value, got: "+e);var t=e.$transformId;void 0===t&&mt(e,"$transformId",t=tt());return t}(e),i=r[t];return i?i.get():(i=r[t]=new o(t,e)).get()}}wr.struct=Er,wr.equals=br;var Pr={allowStateChanges:function(e,t){var r,n=H(e);try{r=t()}finally{Y(n)}return r},deepEqual:ie,getAtom:Dt,getDebugName:Rt,getDependencyTree:Mt,getAdministration:Nt,getGlobalState:function(){return It},getObserverTree:function(e,t){return Zt(Dt(e,t))},interceptReads:function(e,t,r){var n;if(Je(e)||R(e)||Z(e))n=Nt(e);else{if(!Te(e))return rt("Expected observable map, object or array as first array");if("string"!=typeof t)return rt("InterceptReads can only be used with a specific property, not with an object in general");n=Nt(e,t)}return void 0!==n.dehancer?rt("An intercept reader was already established"):(n.dehancer="function"==typeof t?t:r,function(){n.dehancer=void 0})},isComputingDerivation:Xt,isSpyEnabled:f,onReactionError:function(e){return It.globalReactionErrorHandlers.push(e),function(){var t=It.globalReactionErrorHandlers.indexOf(e);t>=0&&It.globalReactionErrorHandlers.splice(t,1)}},reserveArrayBuffer:D,resetGlobalState:function(){It.resetId++;var e=new Tt;for(var t in e)-1===Ot.indexOf(t)&&(It[t]=e[t]);It.allowStateChanges=!It.strictMode},isolateGlobalState:function(){Ct=!0,et().__mobxInstanceCount--},shareGlobalState:function(){ot("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),Pt=!0;var e=et(),t=It;if(e.__mobservableTrackingStack||e.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(e.__mobxGlobal&&e.__mobxGlobal.version!==t.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");e.__mobxGlobal?It=e.__mobxGlobal:e.__mobxGlobal=t},spyReport:m,spyReportEnd:y,spyReportStart:g,setReactionScheduler:function(e){var t=pr;pr=function(r){return e((function(){return t(r)}))}}},Cr={Reaction:lr,untracked:tr,Atom:a,BaseAtom:o,useStrict:z,isStrictModeEnabled:V,spy:b,comparer:ue,asReference:mr,asFlat:vr,asStructure:gr,asMap:yr,isModifierDescriptor:Ge,isObservableObject:Te,isBoxedObservable:Z,isObservableArray:R,ObservableMap:qe,isObservableMap:Je,map:Xe,transaction:$e,observable:Fe,computed:wr,isObservable:Ie,isComputed:Lr,extendObservable:Ce,extendShallowObservable:Ae,observe:xr,intercept:Sr,autorun:pe,autorunAsync:he,when:de,reaction:fe,action:Q,isAction:re,runInAction:te,expr:Or,toJS:Tr,createTransformer:Ir,whyRun:ar,isArrayLike:_t,extras:Pr},Ar=!1,kr=function(e){var t=Cr[e];Object.defineProperty(Cr,e,{get:function(){return Ar||(Ar=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),t}})};for(var Dr in Cr)kr(Dr);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:b,extras:Pr});const Nr=Cr},99813:e=>{"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,c=i(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))r.call(a,u)&&(c[u]=a[u]);if(t){s=t(a);for(var p=0;p<s.length;p++)n.call(a,s[p])&&(c[s[p]]=a[s[p]])}}return c}},89368:(e,t,r)=>{"use strict";var n=r(82530);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var a={resolve:function(){for(var e,t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=n.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,r=47===s.charCodeAt(0))}return t=o(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,o=n-r,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var c=t.length-s,l=o<c?o:c,u=-1,p=0;p<=l;++p){if(p===l){if(c>l){if(47===t.charCodeAt(s+p))return t.slice(s+p+1);if(0===p)return t.slice(s+p)}else o>l&&(47===e.charCodeAt(r+p)?u=p:0===p&&(u=0));break}var d=e.charCodeAt(r+p);if(d!==t.charCodeAt(s+p))break;47===d&&(u=p)}var h="";for(p=r+u+1;p<=n;++p)p!==n&&47!==e.charCodeAt(p)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){n=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return n===o?o=c:-1===o&&(o=e.length),e.slice(n,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(n,o)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===n&&(o=!1,n=s+1),46===c?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){r=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),o=47===n;o?(t.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,l=!0,u=e.length-1,p=0;u>=r;--u)if(47!==(n=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===n?-1===a?a=u:1!==p&&(p=1):-1!==a&&(p=-1);else if(!l){s=u+1;break}return-1===a||-1===c||0===p||1===p&&a===c-1&&a===s+1?-1!==c&&(t.base=t.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(s,a),t.base=e.slice(s,c)),t.ext=e.slice(a,c)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},82530:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,c=[],l=!1,u=-1;function p(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&d())}function d(){if(!l){var e=a(p);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}n.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];c.push(new h(e,t)),1!==c.length||l||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},61926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},i=a(r(89526)),o=a(r(6734));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,r,o,a){var s=e[t],c=void 0===s?"undefined":n(s);return i.default.isValidElement(s)?new Error("Invalid "+o+" `"+a+"` of type ReactElement supplied to `"+r+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===c&&"function"==typeof s.render||1===s.nodeType?null:new Error("Invalid "+o+" `"+a+"` of value `"+s+"` supplied to `"+r+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},73925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n,i=r(92327),o=(n=i)&&n.__esModule?n:{default:n};var a={};function s(e,t){return function(r,n,i,s,c){var l=i||"<<anonymous>>",u=c||n;if(null!=r[n]){var p=i+"."+n;(0,o.default)(a[p],"The "+s+" `"+u+"` of `"+l+"` is deprecated. "+t+"."),a[p]=!0}for(var d=arguments.length,h=Array(d>5?d-5:0),f=5;f<d;f++)h[f-5]=arguments[f];return e.apply(void 0,[r,n,i,s,c].concat(h))}}s._resetWarned=function(){a={}},e.exports=t.default},50855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(89526)),i=r(338),o=a(r(6734));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,r,o,a){var s=e[t];return n.default.isValidElement(s)?new Error("Invalid "+o+" `"+a+"` of type ReactElement supplied to `"+r+"`,expected an element type (a string , component class, or function component)."):(0,i.isValidElementType)(s)?null:new Error("Invalid "+o+" `"+a+"` of value `"+s+"` supplied to `"+r+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},6734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,r,n,i,o,a){var s=i||"<<anonymous>>",c=a||n;if(null==r[n])return t?new Error("Required "+o+" `"+c+"` was not specified in `"+s+"`."):null;for(var l=arguments.length,u=Array(l>6?l-6:0),p=6;p<l;p++)u[p-6]=arguments[p];return e.apply(void 0,[r,n,s,o,c].concat(u))}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r},e.exports=t.default},92327:e=>{"use strict";var t=function(){};e.exports=t},5372:(e,t,r)=>{"use strict";var n=r(49567);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},2652:(e,t,r)=>{e.exports=r(5372)()},49567:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21947:function(e,t,r){var n;/*! https://mths.be/punycode v1.4.1 by @mathias */e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,c=36,l=/^xn--/,u=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,f=String.fromCharCode;function m(e){throw new RangeError(d[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(p,".")).split("."),t).join(".")}function y(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=c)e=h(e/35);return h(n+36*e/(e+38))}function w(e){var t,r,n,i,o,a,l,u,p,d,f,g=[],v=e.length,y=0,_=128,w=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&m("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=y,a=1,l=c;i>=v&&m("invalid-input"),((u=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:c)>=c||u>h((s-y)/a))&&m("overflow"),y+=u*a,!(u<(p=l<=w?1:l>=w+26?26:l-w));l+=c)a>h(s/(d=c-p))&&m("overflow"),a*=d;w=E(y-o,t=g.length+1,0==o),h(y/t)>s-_&&m("overflow"),_+=h(y/t),y%=t,g.splice(y++,0,_)}return b(g)}function L(e){var t,r,n,i,o,a,l,u,p,d,g,v,b,w,L,x=[];for(v=(e=y(e)).length,t=128,r=0,o=72,a=0;a<v;++a)(g=e[a])<128&&x.push(f(g));for(n=i=x.length,i&&x.push("-");n<v;){for(l=s,a=0;a<v;++a)(g=e[a])>=t&&g<l&&(l=g);for(l-t>h((s-r)/(b=n+1))&&m("overflow"),r+=(l-t)*b,t=l,a=0;a<v;++a)if((g=e[a])<t&&++r>s&&m("overflow"),g==t){for(u=r,p=c;!(u<(d=p<=o?1:p>=o+26?26:p-o));p+=c)L=u-d,w=c-d,x.push(f(_(d+L%w,0))),u=h(L/w);x.push(f(_(u,0))),o=E(r,b,n==i),r=0,++n}++r,++t}return x.join("")}a={version:"1.4.1",ucs2:{decode:y,encode:b},decode:w,encode:L,toASCII:function(e){return v(e,(function(e){return u.test(e)?"xn--"+L(e):e}))},toUnicode:function(e){return v(e,(function(e){return l.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},57799:(e,t,r)=>{"use strict";
/** @license React v16.14.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=r(89526),i=r(99813),o=r(72851);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(a(227));function s(e,t,r,n,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(e){this.onError(e)}}var c=!1,l=null,u=!1,p=null,d={onError:function(e){c=!0,l=e}};function h(e,t,r,n,i,o,a,u,p){c=!1,l=null,s.apply(d,arguments)}var f=null,m=null,g=null;function v(e,t,r){var n=e.type||"unknown-event";e.currentTarget=g(r),function(e,t,r,n,i,o,s,d,f){if(h.apply(this,arguments),c){if(!c)throw Error(a(198));var m=l;c=!1,l=null,u||(u=!0,p=m)}}(n,t,void 0,e),e.currentTarget=null}var y=null,b={};function _(){if(y)for(var e in b){var t=b[e],r=y.indexOf(e);if(!(-1<r))throw Error(a(96,e));if(!w[r]){if(!t.extractEvents)throw Error(a(97,e));for(var n in w[r]=t,r=t.eventTypes){var i=void 0,o=r[n],s=t,c=n;if(L.hasOwnProperty(c))throw Error(a(99,c));L[c]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&E(l[i],s,c);i=!0}else o.registrationName?(E(o.registrationName,s,c),i=!0):i=!1;if(!i)throw Error(a(98,n,e))}}}}function E(e,t,r){if(x[e])throw Error(a(100,e));x[e]=t,S[e]=t.eventTypes[r].dependencies}var w=[],L={},x={},S={};function O(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!b.hasOwnProperty(t)||b[t]!==n){if(b[t])throw Error(a(102,t));b[t]=n,r=!0}}r&&_()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),I=null,P=null,C=null;function A(e){if(e=m(e)){if("function"!=typeof I)throw Error(a(280));var t=e.stateNode;t&&(t=f(t),I(e.stateNode,e.type,t))}}function k(e){P?C?C.push(e):C=[e]:P=e}function D(){if(P){var e=P,t=C;if(C=P=null,A(e),t)for(e=0;e<t.length;e++)A(t[e])}}function N(e,t){return e(t)}function R(e,t,r,n,i){return e(t,r,n,i)}function M(){}var j=N,Z=!1,F=!1;function B(){null===P&&null===C||(M(),D())}function G(e,t,r){if(F)return e(t,r);F=!0;try{return j(e,t,r)}finally{F=!1,B()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,z=Object.prototype.hasOwnProperty,V={},H={};function Y(e,t,r,n,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new Y(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new Y(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new Y(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new Y(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){W[e]=new Y(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new Y(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new Y(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new Y(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new Y(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function K(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,K);W[t]=new Y(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,K);W[t]=new Y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,K);W[t]=new Y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new Y(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new Y(e,1,!1,e.toLowerCase(),null,!0)}));var q=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,r,n){var i=W.hasOwnProperty(t)?W[t]:null;(null!==i?0===i.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!z.call(H,e)||!z.call(V,e)&&(U.test(e)?H[e]=!0:(V[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}q.hasOwnProperty("ReactCurrentDispatcher")||(q.ReactCurrentDispatcher={current:null}),q.hasOwnProperty("ReactCurrentBatchConfig")||(q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Q="function"==typeof Symbol&&Symbol.for,ee=Q?Symbol.for("react.element"):60103,te=Q?Symbol.for("react.portal"):60106,re=Q?Symbol.for("react.fragment"):60107,ne=Q?Symbol.for("react.strict_mode"):60108,ie=Q?Symbol.for("react.profiler"):60114,oe=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,se=Q?Symbol.for("react.concurrent_mode"):60111,ce=Q?Symbol.for("react.forward_ref"):60112,le=Q?Symbol.for("react.suspense"):60113,ue=Q?Symbol.for("react.suspense_list"):60120,pe=Q?Symbol.for("react.memo"):60115,de=Q?Symbol.for("react.lazy"):60116,he=Q?Symbol.for("react.block"):60121,fe="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case re:return"Fragment";case te:return"Portal";case ie:return"Profiler";case ne:return"StrictMode";case le:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return ge(e.type);case he:return ge(e.render);case de:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,i=e._debugSource,o=ge(e.type);r=null,n&&(r=ge(n.type)),n=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":r&&(o=" (created by "+r+")"),r="\n in "+(n||"Unknown")+o}t+=r,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=be(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function we(e,t){var r=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Le(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=ye(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xe(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Se(e,t){xe(e,t);var r=ye(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,r):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Te(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ie(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Pe(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ye(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ce(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:ye(r)}}function ke(e,t){var r=ye(t.value),n=ye(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function De(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ne="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Me(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function je(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Me(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ze,Fe,Be=(Fe=function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((Ze=Ze||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return Fe(e,t)}))}:Fe);function Ge(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function Ue(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ze={animationend:Ue("Animation","AnimationEnd"),animationiteration:Ue("Animation","AnimationIteration"),animationstart:Ue("Animation","AnimationStart"),transitionend:Ue("Transition","TransitionEnd")},Ve={},He={};function Ye(e){if(Ve[e])return Ve[e];if(!ze[e])return e;var t,r=ze[e];for(t in r)if(r.hasOwnProperty(t)&&t in He)return Ve[e]=r[t];return e}T&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete ze.animationend.animation,delete ze.animationiteration.animation,delete ze.animationstart.animation),"TransitionEvent"in window||delete ze.transitionend.transition);var We=Ye("animationend"),$e=Ye("animationiteration"),Ke=Ye("animationstart"),qe=Ye("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"==typeof WeakMap?WeakMap:Map);function Qe(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function et(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function rt(e){if(et(e)!==e)throw Error(a(188))}function nt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return rt(i),e;if(o===n)return rt(i),t;o=o.sibling}throw Error(a(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,c=i.child;c;){if(c===r){s=!0,r=i,n=o;break}if(c===n){s=!0,n=i,r=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===r){s=!0,r=o,n=i;break}if(c===n){s=!0,n=o,r=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function it(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var at=null;function st(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)v(e,t[n],r[n]);else t&&v(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ct(e){if(null!==e&&(at=it(at,e)),e=at,at=null,e){if(ot(e,st),at)throw Error(a(95));if(u)throw e=p,u=!1,p=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var pt=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>pt.length&&pt.push(e)}function ht(e,t,r,n){if(pt.length){var i=pt.pop();return i.topLevelType=e,i.eventSystemFlags=n,i.nativeEvent=t,i.targetInst=r,i}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function ft(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=Cr(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var i=lt(e.nativeEvent);n=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===r&&(a|=64);for(var s=null,c=0;c<w.length;c++){var l=w[c];l&&(l=l.extractEvents(n,t,o,i,a))&&(s=it(s,l))}ct(s)}}function mt(e,t,r){if(!r.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":ut(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&$t(e,t)}r.set(e,null)}}var gt,vt,yt,bt=!1,_t=[],Et=null,wt=null,Lt=null,xt=new Map,St=new Map,Ot=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),It="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,r,n,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:i,container:n}}function Ct(e,t){switch(e){case"focus":case"blur":Et=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":Lt=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function At(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e=Pt(t,r,n,i,o),null!==t&&(null!==(t=Ar(t))&&vt(t)),e):(e.eventSystemFlags|=n,e)}function kt(e){var t=Cr(e.target);if(null!==t){var r=et(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=tt(r)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){yt(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;var t=Qt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=Ar(t);return null!==r&&vt(r),e.blockedOn=t,!1}return!0}function Nt(e,t,r){Dt(e)&&r.delete(t)}function Rt(){for(bt=!1;0<_t.length;){var e=_t[0];if(null!==e.blockedOn){null!==(e=Ar(e.blockedOn))&>(e);break}var t=Qt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:_t.shift()}null!==Et&&Dt(Et)&&(Et=null),null!==wt&&Dt(wt)&&(wt=null),null!==Lt&&Dt(Lt)&&(Lt=null),xt.forEach(Nt),St.forEach(Nt)}function Mt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Rt)))}function jt(e){function t(t){return Mt(t,e)}if(0<_t.length){Mt(_t[0],e);for(var r=1;r<_t.length;r++){var n=_t[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Et&&Mt(Et,e),null!==wt&&Mt(wt,e),null!==Lt&&Mt(Lt,e),xt.forEach(t),St.forEach(t),r=0;r<Ot.length;r++)(n=Ot[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Ot.length&&null===(r=Ot[0]).blockedOn;)kt(r),null===r.blockedOn&&Ot.shift()}var Zt={},Ft=new Map,Bt=new Map,Gt=["abort","abort",We,"animationEnd",$e,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",qe,"transitionEnd","waiting","waiting"];function Ut(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],eventPriority:t},Bt.set(n,t),Ft.set(n,o),Zt[i]=o}}Ut("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ut("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ut(Gt,2);for(var zt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Vt=0;Vt<zt.length;Vt++)Bt.set(zt[Vt],0);var Ht=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,Wt=!0;function $t(e,t){Kt(t,e,!1)}function Kt(e,t,r){var n=Bt.get(t);switch(void 0===n?2:n){case 0:n=qt.bind(null,t,1,e);break;case 1:n=Xt.bind(null,t,1,e);break;default:n=Jt.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function qt(e,t,r,n){Z||M();var i=Jt,o=Z;Z=!0;try{R(i,e,t,r,n)}finally{(Z=o)||B()}}function Xt(e,t,r,n){Yt(Ht,Jt.bind(null,e,t,r,n))}function Jt(e,t,r,n){if(Wt)if(0<_t.length&&-1<Tt.indexOf(e))e=Pt(null,e,t,r,n),_t.push(e);else{var i=Qt(e,t,r,n);if(null===i)Ct(e,n);else if(-1<Tt.indexOf(e))e=Pt(i,e,t,r,n),_t.push(e);else if(!function(e,t,r,n,i){switch(t){case"focus":return Et=At(Et,e,t,r,n,i),!0;case"dragenter":return wt=At(wt,e,t,r,n,i),!0;case"mouseover":return Lt=At(Lt,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return xt.set(o,At(xt.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,St.set(o,At(St.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n)){Ct(e,n),e=ht(e,n,null,t);try{G(ft,e)}finally{dt(e)}}}}function Qt(e,t,r,n){if(null!==(r=Cr(r=lt(n)))){var i=et(r);if(null===i)r=null;else{var o=i.tag;if(13===o){if(null!==(r=tt(i)))return r;r=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}e=ht(e,n,r,t);try{G(ft,e)}finally{dt(e)}return null}var er={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tr=["Webkit","ms","Moz","O"];function rr(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||er.hasOwnProperty(e)&&er[e]?(""+t).trim():t+"px"}function nr(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=rr(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(er).forEach((function(e){tr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),er[t]=er[e]}))}));var ir=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function or(e,t){if(t){if(ir[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function ar(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sr=Ne;function cr(e,t){var r=Qe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var n=0;n<t.length;n++)mt(t[n],e,r)}function lr(){}function ur(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var r,n=pr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pr(n)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=ur();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=ur((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr="$?",vr="$!",yr=null,br=null;function _r(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Er(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wr="function"==typeof setTimeout?setTimeout:void 0,Lr="function"==typeof clearTimeout?clearTimeout:void 0;function xr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Sr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||r===vr||r===gr){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Or=Math.random().toString(36).slice(2),Tr="__reactInternalInstance$"+Or,Ir="__reactEventHandlers$"+Or,Pr="__reactContainere$"+Or;function Cr(e){var t=e[Tr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Pr]||r[Tr]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Sr(e);null!==e;){if(r=e[Tr])return r;e=Sr(e)}return t}r=(e=r).parentNode}return null}function Ar(e){return!(e=e[Tr]||e[Pr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function kr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Dr(e){return e[Ir]||null}function Nr(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t){var r=e.stateNode;if(!r)return null;var n=f(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(a(231,t,typeof r));return r}function Mr(e,t,r){(t=Rr(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=it(r._dispatchListeners,t),r._dispatchInstances=it(r._dispatchInstances,e))}function jr(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=Nr(t);for(t=r.length;0<t--;)Mr(r[t],"captured",e);for(t=0;t<r.length;t++)Mr(r[t],"bubbled",e)}}function Zr(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Rr(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=it(r._dispatchListeners,t),r._dispatchInstances=it(r._dispatchInstances,e))}function Fr(e){e&&e.dispatchConfig.registrationName&&Zr(e._targetInst,null,e)}function Br(e){ot(e,jr)}var Gr=null,Ur=null,zr=null;function Vr(){if(zr)return zr;var e,t,r=Ur,n=r.length,i="value"in Gr?Gr.value:Gr.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return zr=i.slice(e,1<t?1-t:void 0)}function Hr(){return!0}function Yr(){return!1}function Wr(e,t,r,n){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(r):"target"===i?this.target=n:this[i]=r[i]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Hr:Yr,this.isPropagationStopped=Yr,this}function $r(e,t,r,n){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,r,n),i}return new this(e,t,r,n)}function Kr(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function qr(e){e.eventPool=[],e.getPooled=$r,e.release=Kr}i(Wr.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hr)},persist:function(){this.isPersistent=Hr},isPersistent:Yr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Yr,this._dispatchInstances=this._dispatchListeners=null}}),Wr.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wr.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return i(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=i({},n.Interface,e),r.extend=n.extend,qr(r),r},qr(Wr);var Xr=Wr.extend({data:null}),Jr=Wr.extend({data:null}),Qr=[9,13,27,32],en=T&&"CompositionEvent"in window,tn=null;T&&"documentMode"in document&&(tn=document.documentMode);var rn=T&&"TextEvent"in window&&!tn,nn=T&&(!en||tn&&8<tn&&11>=tn),on=String.fromCharCode(32),an={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},sn=!1;function cn(e,t){switch(e){case"keyup":return-1!==Qr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var un=!1;var pn={eventTypes:an,extractEvents:function(e,t,r,n){var i;if(en)e:{switch(e){case"compositionstart":var o=an.compositionStart;break e;case"compositionend":o=an.compositionEnd;break e;case"compositionupdate":o=an.compositionUpdate;break e}o=void 0}else un?cn(e,r)&&(o=an.compositionEnd):"keydown"===e&&229===r.keyCode&&(o=an.compositionStart);return o?(nn&&"ko"!==r.locale&&(un||o!==an.compositionStart?o===an.compositionEnd&&un&&(i=Vr()):(Ur="value"in(Gr=n)?Gr.value:Gr.textContent,un=!0)),o=Xr.getPooled(o,t,r,n),i?o.data=i:null!==(i=ln(r))&&(o.data=i),Br(o),i=o):i=null,(e=rn?function(e,t){switch(e){case"compositionend":return ln(t);case"keypress":return 32!==t.which?null:(sn=!0,on);case"textInput":return(e=t.data)===on&&sn?null:e;default:return null}}(e,r):function(e,t){if(un)return"compositionend"===e||!en&&cn(e,t)?(e=Vr(),zr=Ur=Gr=null,un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nn&&"ko"!==t.locale?null:t.data}}(e,r))?((t=Jr.getPooled(an.beforeInput,t,r,n)).data=e,Br(t)):t=null,null===i?t:null===t?i:[i,t]}},dn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!dn[e.type]:"textarea"===t}var fn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function mn(e,t,r){return(e=Wr.getPooled(fn.change,e,t,r)).type="change",k(r),Br(e),e}var gn=null,vn=null;function yn(e){ct(e)}function bn(e){if(Ee(kr(e)))return e}function _n(e,t){if("change"===e)return t}var En=!1;function wn(){gn&&(gn.detachEvent("onpropertychange",Ln),vn=gn=null)}function Ln(e){if("value"===e.propertyName&&bn(vn))if(e=mn(vn,e,lt(e)),Z)ct(e);else{Z=!0;try{N(yn,e)}finally{Z=!1,B()}}}function xn(e,t,r){"focus"===e?(wn(),vn=r,(gn=t).attachEvent("onpropertychange",Ln)):"blur"===e&&wn()}function Sn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return bn(vn)}function On(e,t){if("click"===e)return bn(t)}function Tn(e,t){if("input"===e||"change"===e)return bn(t)}T&&(En=ut("input")&&(!document.documentMode||9<document.documentMode));var In={eventTypes:fn,_isInputEventSupported:En,extractEvents:function(e,t,r,n){var i=t?kr(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=_n;else if(hn(i))if(En)a=Tn;else{a=Sn;var s=xn}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=On);if(a&&(a=a(e,t)))return mn(a,r,n);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},Pn=Wr.extend({view:null,detail:null}),Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function kn(){return An}var Dn=0,Nn=0,Rn=!1,Mn=!1,jn=Pn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:kn,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Dn;return Dn=e.screenX,Rn?"mousemove"===e.type?e.screenX-t:0:(Rn=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Nn;return Nn=e.screenY,Mn?"mousemove"===e.type?e.screenY-t:0:(Mn=!0,0)}}),Zn=jn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Fn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Bn={eventTypes:Fn,extractEvents:function(e,t,r,n,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(r.relatedTarget||r.fromElement)||!a&&!o)return null;(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=r.relatedTarget||r.toElement)?Cr(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=jn,c=Fn.mouseLeave,l=Fn.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Zn,c=Fn.pointerLeave,l=Fn.pointerEnter,u="pointer");if(e=null==a?o:kr(a),o=null==t?o:kr(t),(c=s.getPooled(c,a,r,n)).type=u+"leave",c.target=e,c.relatedTarget=o,(r=s.getPooled(l,t,r,n)).type=u+"enter",r.target=o,r.relatedTarget=e,u=t,(n=a)&&u)e:{for(l=u,a=0,e=s=n;e;e=Nr(e))a++;for(e=0,t=l;t;t=Nr(t))e++;for(;0<a-e;)s=Nr(s),a--;for(;0<e-a;)l=Nr(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=Nr(s),l=Nr(l)}s=null}else s=null;for(l=s,s=[];n&&n!==l&&(null===(a=n.alternate)||a!==l);)s.push(n),n=Nr(n);for(n=[];u&&u!==l&&(null===(a=u.alternate)||a!==l);)n.push(u),u=Nr(u);for(u=0;u<s.length;u++)Zr(s[u],"bubbled",c);for(u=n.length;0<u--;)Zr(n[u],"captured",r);return 0==(64&i)?[c]:[c,r]}};var Gn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Un=Object.prototype.hasOwnProperty;function zn(e,t){if(Gn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!Un.call(t,r[n])||!Gn(e[r[n]],t[r[n]]))return!1;return!0}var Vn=T&&"documentMode"in document&&11>=document.documentMode,Hn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Yn=null,Wn=null,$n=null,Kn=!1;function qn(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Kn||null==Yn||Yn!==ur(r)?null:("selectionStart"in(r=Yn)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},$n&&zn($n,r)?null:($n=r,(e=Wr.getPooled(Hn.select,Wn,e,t)).type="select",e.target=Yn,Br(e),e))}var Xn={eventTypes:Hn,extractEvents:function(e,t,r,n,i,o){if(!(o=!(i=o||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{i=Qe(i),o=S.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?kr(t):window,e){case"focus":(hn(i)||"true"===i.contentEditable)&&(Yn=i,Wn=t,$n=null);break;case"blur":$n=Wn=Yn=null;break;case"mousedown":Kn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Kn=!1,qn(r,n);case"selectionchange":if(Vn)break;case"keydown":case"keyup":return qn(r,n)}return null}},Jn=Wr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qn=Wr.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ei=Pn.extend({relatedTarget:null});function ti(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ri={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ni={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ii=Pn.extend({key:function(e){if(e.key){var t=ri[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ti(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ni[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:kn,charCode:function(e){return"keypress"===e.type?ti(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ti(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),oi=jn.extend({dataTransfer:null}),ai=Pn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:kn}),si=Wr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ci=jn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),li={eventTypes:Zt,extractEvents:function(e,t,r,n){var i=Ft.get(e);if(!i)return null;switch(e){case"keypress":if(0===ti(r))return null;case"keydown":case"keyup":e=ii;break;case"blur":case"focus":e=ei;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=jn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=oi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ai;break;case We:case $e:case Ke:e=Jn;break;case qe:e=si;break;case"scroll":e=Pn;break;case"wheel":e=ci;break;case"copy":case"cut":case"paste":e=Qn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Zn;break;default:e=Wr}return Br(t=e.getPooled(i,t,r,n)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),f=Dr,m=Ar,g=kr,O({SimpleEventPlugin:li,EnterLeaveEventPlugin:Bn,ChangeEventPlugin:In,SelectEventPlugin:Xn,BeforeInputEventPlugin:pn});var ui=[],pi=-1;function di(e){0>pi||(e.current=ui[pi],ui[pi]=null,pi--)}function hi(e,t){pi++,ui[pi]=e.current,e.current=t}var fi={},mi={current:fi},gi={current:!1},vi=fi;function yi(e,t){var r=e.type.contextTypes;if(!r)return fi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function bi(e){return null!=(e=e.childContextTypes)}function _i(){di(gi),di(mi)}function Ei(e,t,r){if(mi.current!==fi)throw Error(a(168));hi(mi,t),hi(gi,r)}function wi(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(a(108,ge(t)||"Unknown",o));return i({},r,{},n)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,vi=mi.current,hi(mi,e),hi(gi,gi.current),!0}function xi(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=wi(e,t,vi),n.__reactInternalMemoizedMergedChildContext=e,di(gi),di(mi),hi(mi,e)):di(gi),hi(gi,r)}var Si=o.unstable_runWithPriority,Oi=o.unstable_scheduleCallback,Ti=o.unstable_cancelCallback,Ii=o.unstable_requestPaint,Pi=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,Ai=o.unstable_ImmediatePriority,ki=o.unstable_UserBlockingPriority,Di=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Mi={},ji=o.unstable_shouldYield,Zi=void 0!==Ii?Ii:function(){},Fi=null,Bi=null,Gi=!1,Ui=Pi(),zi=1e4>Ui?Pi:function(){return Pi()-Ui};function Vi(){switch(Ci()){case Ai:return 99;case ki:return 98;case Di:return 97;case Ni:return 96;case Ri:return 95;default:throw Error(a(332))}}function Hi(e){switch(e){case 99:return Ai;case 98:return ki;case 97:return Di;case 96:return Ni;case 95:return Ri;default:throw Error(a(332))}}function Yi(e,t){return e=Hi(e),Si(e,t)}function Wi(e,t,r){return e=Hi(e),Oi(e,t,r)}function $i(e){return null===Fi?(Fi=[e],Bi=Oi(Ai,qi)):Fi.push(e),Mi}function Ki(){if(null!==Bi){var e=Bi;Bi=null,Ti(e)}qi()}function qi(){if(!Gi&&null!==Fi){Gi=!0;var e=0;try{var t=Fi;Yi(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Fi=null}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),Oi(Ai,Ki),t}finally{Gi=!1}}}function Xi(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function Ji(e,t){if(e&&e.defaultProps)for(var r in t=i({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var Qi={current:null},eo=null,to=null,ro=null;function no(){ro=to=eo=null}function io(e){var t=Qi.current;di(Qi),e.type._context._currentValue=t}function oo(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function ao(e,t){eo=e,ro=to=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Na=!0),e.firstContext=null)}function so(e,t){if(ro!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ro=e,t=1073741823),t={context:e,observedBits:t,next:null},null===to){if(null===eo)throw Error(a(308));to=t,eo.dependencies={expirationTime:0,firstContext:t,responders:null}}else to=to.next=t;return e._currentValue}var co=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function po(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ho(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function fo(e,t){var r=e.alternate;null!==r&&uo(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function mo(e,t,r,n){var o=e.updateQueue;co=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,o.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=s))}if(null!==a){c=a.next;var l=o.baseState,u=0,p=null,d=null,h=null;if(null!==c)for(var f=c;;){if((s=f.expirationTime)<n){var m={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===h?(d=h=m,p=l):h=h.next=m,s>u&&(u=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),hc(s,f.suspenseConfig);e:{var g=e,v=f;switch(s=t,m=r,v.tag){case 1:if("function"==typeof(g=v.payload)){l=g.call(m,l,s);break e}l=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(m,l,s):g))break e;l=i({},l,s);break e;case 2:co=!0}}null!==f.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[f]:s.push(f))}if(null===(f=f.next)||f===c){if(null===(s=o.shared.pending))break;f=a.next=s.next,s.next=c,o.baseQueue=a=s,o.shared.pending=null}}null===h?p=l:h.next=d,o.baseState=p,o.baseQueue=h,fc(u),e.expirationTime=u,e.memoizedState=l}}function go(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=i,i=r,"function"!=typeof n)throw Error(a(191,n));n.call(i)}}}var vo=q.ReactCurrentBatchConfig,yo=(new n.Component).refs;function bo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:i({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var _o={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=ec(),i=vo.suspense;(i=po(n=tc(n,e,i),i)).payload=t,null!=r&&(i.callback=r),ho(e,i),rc(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=ec(),i=vo.suspense;(i=po(n=tc(n,e,i),i)).tag=1,i.payload=t,null!=r&&(i.callback=r),ho(e,i),rc(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=ec(),n=vo.suspense;(n=po(r=tc(r,e,n),n)).tag=2,null!=t&&(n.callback=t),ho(e,n),rc(e,r)}};function Eo(e,t,r,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!zn(r,n)||!zn(i,o))}function wo(e,t,r){var n=!1,i=fi,o=t.contextType;return"object"==typeof o&&null!==o?o=so(o):(i=bi(t)?vi:mi.current,o=(n=null!=(n=t.contextTypes))?yi(e,i):fi),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=_o,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Lo(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&_o.enqueueReplaceState(t,t.state,null)}function xo(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=yo,lo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=so(o):(o=bi(t)?vi:mi.current,i.context=yi(e,o)),mo(e,r,i,n),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(bo(e,t,o,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&_o.enqueueReplaceState(i,i.state,null),mo(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var So=Array.isArray;function Oo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=n.refs;t===yo&&(t=n.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function To(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Io(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Nc(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,r,n){return null===t||6!==t.tag?((t=jc(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function l(e,t,r,n){return null!==t&&t.elementType===r.type?((n=i(t,r.props)).ref=Oo(e,t,r),n.return=e,n):((n=Rc(r.type,r.key,r.props,null,e.mode,n)).ref=Oo(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Zc(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function p(e,t,r,n,o){return null===t||7!==t.tag?((t=Mc(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=jc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=Rc(t.type,t.key,t.props,null,e.mode,r)).ref=Oo(e,null,t),r.return=e,r;case te:return(t=Zc(t,e.mode,r)).return=e,t}if(So(t)||me(t))return(t=Mc(t,e.mode,r,null)).return=e,t;To(e,t)}return null}function h(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==i?null:c(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return r.key===i?r.type===re?p(e,t,r.props.children,n,i):l(e,t,r,n):null;case te:return r.key===i?u(e,t,r,n):null}if(So(r)||me(r))return null!==i?null:p(e,t,r,n,null);To(e,r)}return null}function f(e,t,r,n,i){if("string"==typeof n||"number"==typeof n)return c(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return e=e.get(null===n.key?r:n.key)||null,n.type===re?p(t,e,n.props.children,i,n.key):l(t,e,n,i);case te:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i)}if(So(n)||me(n))return p(t,e=e.get(r)||null,n,i,null);To(t,n)}return null}function m(i,a,s,c){for(var l=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var v=h(i,p,s[m],c);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?l=v:u.sibling=v,u=v,p=g}if(m===s.length)return r(i,p),l;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],c))&&(a=o(p,a,m),null===u?l=p:u.sibling=p,u=p);return l}for(p=n(i,p);m<s.length;m++)null!==(g=f(p,i,m,s[m],c))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?l=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),l}function g(i,s,c,l){var u=me(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var p=u=null,m=s,g=s=0,v=null,y=c.next();null!==m&&!y.done;g++,y=c.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(i,m,y.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===p?u=b:p.sibling=b,p=b,m=v}if(y.done)return r(i,m),u;if(null===m){for(;!y.done;g++,y=c.next())null!==(y=d(i,y.value,l))&&(s=o(y,s,g),null===p?u=y:p.sibling=y,p=y);return u}for(m=n(i,m);!y.done;g++,y=c.next())null!==(y=f(m,i,g,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===p?u=y:p.sibling=y,p=y);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,n,o,c){var l="object"==typeof o&&null!==o&&o.type===re&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,l=n;null!==l;){if(l.key===u){if(7===l.tag){if(o.type===re){r(e,l.sibling),(n=i(l,o.props.children)).return=e,e=n;break e}}else if(l.elementType===o.type){r(e,l.sibling),(n=i(l,o.props)).ref=Oo(e,l,o),n.return=e,e=n;break e}r(e,l);break}t(e,l),l=l.sibling}o.type===re?((n=Mc(o.props.children,e.mode,c,o.key)).return=e,e=n):((c=Rc(o.type,o.key,o.props,null,e.mode,c)).ref=Oo(e,n,o),c.return=e,e=c)}return s(e);case te:e:{for(l=o.key;null!==n;){if(n.key===l){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(e,n.sibling),(n=i(n,o.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Zc(o,e.mode,c)).return=e,e=n}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(r(e,n.sibling),(n=i(n,o)).return=e,e=n):(r(e,n),(n=jc(o,e.mode,c)).return=e,e=n),s(e);if(So(o))return m(e,n,o,c);if(me(o))return g(e,n,o,c);if(u&&To(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return r(e,n)}}var Po=Io(!0),Co=Io(!1),Ao={},ko={current:Ao},Do={current:Ao},No={current:Ao};function Ro(e){if(e===Ao)throw Error(a(174));return e}function Mo(e,t){switch(hi(No,t),hi(Do,e),hi(ko,Ao),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,"");break;default:t=je(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}di(ko),hi(ko,t)}function jo(){di(ko),di(Do),di(No)}function Zo(e){Ro(No.current);var t=Ro(ko.current),r=je(t,e.type);t!==r&&(hi(Do,e),hi(ko,r))}function Fo(e){Do.current===e&&(di(ko),di(Do))}var Bo={current:0};function Go(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||r.data===gr||r.data===vr))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Uo(e,t){return{responder:e,props:t}}var zo=q.ReactCurrentDispatcher,Vo=q.ReactCurrentBatchConfig,Ho=0,Yo=null,Wo=null,$o=null,Ko=!1;function qo(){throw Error(a(321))}function Xo(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Gn(e[r],t[r]))return!1;return!0}function Jo(e,t,r,n,i,o){if(Ho=o,Yo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,zo.current=null===e||null===e.memoizedState?Ea:wa,e=r(n,i),t.expirationTime===Ho){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,$o=Wo=null,t.updateQueue=null,zo.current=La,e=r(n,i)}while(t.expirationTime===Ho)}if(zo.current=_a,t=null!==Wo&&null!==Wo.next,Ho=0,$o=Wo=Yo=null,Ko=!1,t)throw Error(a(300));return e}function Qo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$o?Yo.memoizedState=$o=e:$o=$o.next=e,$o}function ea(){if(null===Wo){var e=Yo.alternate;e=null!==e?e.memoizedState:null}else e=Wo.next;var t=null===$o?Yo.memoizedState:$o.next;if(null!==t)$o=t,Wo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Wo=e).memoizedState,baseState:Wo.baseState,baseQueue:Wo.baseQueue,queue:Wo.queue,next:null},null===$o?Yo.memoizedState=$o=e:$o=$o.next=e}return $o}function ta(e,t){return"function"==typeof t?t(e):t}function ra(e){var t=ea(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=Wo,i=n.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(null!==i){i=i.next,n=n.baseState;var c=s=o=null,l=i;do{var u=l.expirationTime;if(u<Ho){var p={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=p,o=n):c=c.next=p,u>Yo.expirationTime&&(Yo.expirationTime=u,fc(u))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),hc(u,l.suspenseConfig),n=l.eagerReducer===e?l.eagerState:e(n,l.action);l=l.next}while(null!==l&&l!==i);null===c?o=n:c.next=s,Gn(n,t.memoizedState)||(Na=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function na(e){var t=ea(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Gn(o,t.memoizedState)||(Na=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function ia(e){var t=Qo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e}).dispatch=ba.bind(null,Yo,e),[t.memoizedState,e]}function oa(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Yo.updateQueue)?(t={lastEffect:null},Yo.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function aa(){return ea().memoizedState}function sa(e,t,r,n){var i=Qo();Yo.effectTag|=e,i.memoizedState=oa(1|t,r,void 0,void 0===n?null:n)}function ca(e,t,r,n){var i=ea();n=void 0===n?null:n;var o=void 0;if(null!==Wo){var a=Wo.memoizedState;if(o=a.destroy,null!==n&&Xo(n,a.deps))return void oa(t,r,o,n)}Yo.effectTag|=e,i.memoizedState=oa(1|t,r,o,n)}function la(e,t){return sa(516,4,e,t)}function ua(e,t){return ca(516,4,e,t)}function pa(e,t){return ca(4,2,e,t)}function da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ha(e,t,r){return r=null!=r?r.concat([e]):null,ca(4,2,da.bind(null,t,e),r)}function fa(){}function ma(e,t){return Qo().memoizedState=[e,void 0===t?null:t],e}function ga(e,t){var r=ea();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Xo(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function va(e,t){var r=ea();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Xo(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function ya(e,t,r){var n=Vi();Yi(98>n?98:n,(function(){e(!0)})),Yi(97<n?97:n,(function(){var n=Vo.suspense;Vo.suspense=void 0===t?null:t;try{e(!1),r()}finally{Vo.suspense=n}}))}function ba(e,t,r){var n=ec(),i=vo.suspense;i={expirationTime:n=tc(n,e,i),suspenseConfig:i,action:r,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Yo||null!==o&&o===Yo)Ko=!0,i.expirationTime=Ho,Yo.expirationTime=Ho;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.eagerReducer=o,i.eagerState=s,Gn(s,a))return}catch(e){}rc(e,n)}}var _a={readContext:so,useCallback:qo,useContext:qo,useEffect:qo,useImperativeHandle:qo,useLayoutEffect:qo,useMemo:qo,useReducer:qo,useRef:qo,useState:qo,useDebugValue:qo,useResponder:qo,useDeferredValue:qo,useTransition:qo},Ea={readContext:so,useCallback:ma,useContext:so,useEffect:la,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,sa(4,2,da.bind(null,t,e),r)},useLayoutEffect:function(e,t){return sa(4,2,e,t)},useMemo:function(e,t){var r=Qo();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Qo();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ba.bind(null,Yo,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Qo().memoizedState=e},useState:ia,useDebugValue:fa,useResponder:Uo,useDeferredValue:function(e,t){var r=ia(e),n=r[0],i=r[1];return la((function(){var r=Vo.suspense;Vo.suspense=void 0===t?null:t;try{i(e)}finally{Vo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ia(!1),r=t[0];return t=t[1],[ma(ya.bind(null,t,e),[t,e]),r]}},wa={readContext:so,useCallback:ga,useContext:so,useEffect:ua,useImperativeHandle:ha,useLayoutEffect:pa,useMemo:va,useReducer:ra,useRef:aa,useState:function(){return ra(ta)},useDebugValue:fa,useResponder:Uo,useDeferredValue:function(e,t){var r=ra(ta),n=r[0],i=r[1];return ua((function(){var r=Vo.suspense;Vo.suspense=void 0===t?null:t;try{i(e)}finally{Vo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ra(ta),r=t[0];return t=t[1],[ga(ya.bind(null,t,e),[t,e]),r]}},La={readContext:so,useCallback:ga,useContext:so,useEffect:ua,useImperativeHandle:ha,useLayoutEffect:pa,useMemo:va,useReducer:na,useRef:aa,useState:function(){return na(ta)},useDebugValue:fa,useResponder:Uo,useDeferredValue:function(e,t){var r=na(ta),n=r[0],i=r[1];return ua((function(){var r=Vo.suspense;Vo.suspense=void 0===t?null:t;try{i(e)}finally{Vo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=na(ta),r=t[0];return t=t[1],[ga(ya.bind(null,t,e),[t,e]),r]}},xa=null,Sa=null,Oa=!1;function Ta(e,t){var r=kc(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Ia(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Pa(e){if(Oa){var t=Sa;if(t){var r=t;if(!Ia(e,t)){if(!(t=xr(r.nextSibling))||!Ia(e,t))return e.effectTag=-1025&e.effectTag|2,Oa=!1,void(xa=e);Ta(xa,r)}xa=e,Sa=xr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Oa=!1,xa=e}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function Aa(e){if(e!==xa)return!1;if(!Oa)return Ca(e),Oa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Er(t,e.memoizedProps))for(t=Sa;t;)Ta(e,t),t=xr(t.nextSibling);if(Ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Sa=xr(e.nextSibling);break e}t--}else"$"!==r&&r!==vr&&r!==gr||t++}e=e.nextSibling}Sa=null}}else Sa=xa?xr(e.stateNode.nextSibling):null;return!0}function ka(){Sa=xa=null,Oa=!1}var Da=q.ReactCurrentOwner,Na=!1;function Ra(e,t,r,n){t.child=null===e?Co(t,null,r,n):Po(t,e.child,r,n)}function Ma(e,t,r,n,i){r=r.render;var o=t.ref;return ao(t,i),n=Jo(e,t,r,n,o,i),null===e||Na?(t.effectTag|=1,Ra(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ja(e,t,i))}function ja(e,t,r,n,i,o){if(null===e){var a=r.type;return"function"!=typeof a||Dc(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Rc(r.type,null,n,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Za(e,t,a,n,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(r=null!==(r=r.compare)?r:zn)(i,n)&&e.ref===t.ref)?Ja(e,t,o):(t.effectTag|=1,(e=Nc(a,n)).ref=t.ref,e.return=t,t.child=e)}function Za(e,t,r,n,i,o){return null!==e&&zn(e.memoizedProps,n)&&e.ref===t.ref&&(Na=!1,i<o)?(t.expirationTime=e.expirationTime,Ja(e,t,o)):Ba(e,t,r,n,o)}function Fa(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function Ba(e,t,r,n,i){var o=bi(r)?vi:mi.current;return o=yi(t,o),ao(t,i),r=Jo(e,t,r,n,o,i),null===e||Na?(t.effectTag|=1,Ra(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ja(e,t,i))}function Ga(e,t,r,n,i){if(bi(r)){var o=!0;Li(t)}else o=!1;if(ao(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),wo(t,r,n),xo(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=r.contextType;"object"==typeof l&&null!==l?l=so(l):l=yi(t,l=bi(r)?vi:mi.current);var u=r.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==l)&&Lo(t,a,n,l),co=!1;var d=t.memoizedState;a.state=d,mo(t,n,a,i),c=t.memoizedState,s!==n||d!==c||gi.current||co?("function"==typeof u&&(bo(t,r,u,n),c=t.memoizedState),(s=co||Eo(t,r,s,n,d,c,l))?(p||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),n=!1)}else a=t.stateNode,uo(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Ji(t.type,s),c=a.context,"object"==typeof(l=r.contextType)&&null!==l?l=so(l):l=yi(t,l=bi(r)?vi:mi.current),(p="function"==typeof(u=r.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==l)&&Lo(t,a,n,l),co=!1,c=t.memoizedState,a.state=c,mo(t,n,a,i),d=t.memoizedState,s!==n||c!==d||gi.current||co?("function"==typeof u&&(bo(t,r,u,n),d=t.memoizedState),(u=co||Eo(t,r,s,n,c,d,l))?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,d,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=d),a.props=n,a.state=d,a.context=l,n=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),n=!1);return Ua(e,t,r,n,o,i)}function Ua(e,t,r,n,i,o){Fa(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return i&&xi(t,r,!1),Ja(e,t,o);n=t.stateNode,Da.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&a?(t.child=Po(t,e.child,null,o),t.child=Po(t,null,s,o)):Ra(e,t,s,o),t.memoizedState=n.state,i&&xi(t,r,!0),t.child}function za(e){var t=e.stateNode;t.pendingContext?Ei(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ei(0,t.context,!1),Mo(e,t.containerInfo)}var Va,Ha,Ya,Wa={dehydrated:null,retryTime:0};function $a(e,t,r){var n,i=t.mode,o=t.pendingProps,a=Bo.current,s=!1;if((n=0!=(64&t.effectTag))||(n=0!=(2&a)&&(null===e||null!==e.memoizedState)),n?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),hi(Bo,1&a),null===e){if(void 0!==o.fallback&&Pa(t),s){if(s=o.fallback,(o=Mc(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Mc(s,i,r,null)).return=t,o.sibling=r,t.memoizedState=Wa,t.child=o,r}return i=o.children,t.memoizedState=null,t.child=Co(t,null,i,r)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(r=Nc(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=s;null!==s;)s.return=r,s=s.sibling;return(i=Nc(i,o)).return=t,r.sibling=i,r.childExpirationTime=0,t.memoizedState=Wa,t.child=r,i}return r=Po(t,e.child,o.children,r),t.memoizedState=null,t.child=r}if(e=e.child,s){if(s=o.fallback,(o=Mc(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Mc(s,i,r,null)).return=t,o.sibling=r,r.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Wa,t.child=o,r}return t.memoizedState=null,t.child=Po(t,e,o.children,r)}function Ka(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),oo(e.return,t)}function qa(e,t,r,n,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Xa(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Ra(e,t,n.children,r),0!=(2&(n=Bo.current)))n=1&n|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ka(e,r);else if(19===e.tag)Ka(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(hi(Bo,n),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===Go(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),qa(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Go(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}qa(t,!0,r,null,o,t.lastEffect);break;case"together":qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ja(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&fc(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=Nc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Nc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Qa(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function es(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return bi(t.type)&&_i(),null;case 3:return jo(),di(gi),di(mi),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!Aa(t)||(t.effectTag|=4),null;case 5:Fo(t),r=Ro(No.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ha(e,t,o,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ro(ko.current),Aa(t)){n=t.stateNode,o=t.type;var s=t.memoizedProps;switch(n[Tr]=t,n[Ir]=s,o){case"iframe":case"object":case"embed":$t("load",n);break;case"video":case"audio":for(e=0;e<Xe.length;e++)$t(Xe[e],n);break;case"source":$t("error",n);break;case"img":case"image":case"link":$t("error",n),$t("load",n);break;case"form":$t("reset",n),$t("submit",n);break;case"details":$t("toggle",n);break;case"input":Le(n,s),$t("invalid",n),cr(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!s.multiple},$t("invalid",n),cr(r,"onChange");break;case"textarea":Ae(n,s),$t("invalid",n),cr(r,"onChange")}for(var c in or(o,s),e=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?n.textContent!==l&&(e=["children",l]):"number"==typeof l&&n.textContent!==""+l&&(e=["children",""+l]):x.hasOwnProperty(c)&&null!=l&&cr(r,c)}switch(o){case"input":_e(n),Oe(n,s,!0);break;case"textarea":_e(n),De(n);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(n.onclick=lr)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(c=9===r.nodeType?r:r.ownerDocument,e===sr&&(e=Me(o)),e===sr?"script"===o?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=c.createElement(o,{is:n.is}):(e=c.createElement(o),"select"===o&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,o),e[Tr]=t,e[Ir]=n,Va(e,t),t.stateNode=e,c=ar(o,n),o){case"iframe":case"object":case"embed":$t("load",e),l=n;break;case"video":case"audio":for(l=0;l<Xe.length;l++)$t(Xe[l],e);l=n;break;case"source":$t("error",e),l=n;break;case"img":case"image":case"link":$t("error",e),$t("load",e),l=n;break;case"form":$t("reset",e),$t("submit",e),l=n;break;case"details":$t("toggle",e),l=n;break;case"input":Le(e,n),l=we(e,n),$t("invalid",e),cr(r,"onChange");break;case"option":l=Ie(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},l=i({},n,{value:void 0}),$t("invalid",e),cr(r,"onChange");break;case"textarea":Ae(e,n),l=Ce(e,n),$t("invalid",e),cr(r,"onChange");break;default:l=n}or(o,l);var u=l;for(s in u)if(u.hasOwnProperty(s)){var p=u[s];"style"===s?nr(e,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&Be(e,p):"children"===s?"string"==typeof p?("textarea"!==o||""!==p)&&Ge(e,p):"number"==typeof p&&Ge(e,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(x.hasOwnProperty(s)?null!=p&&cr(r,s):null!=p&&X(e,s,p,c))}switch(o){case"input":_e(e),Oe(e,n,!1);break;case"textarea":_e(e),De(e);break;case"option":null!=n.value&&e.setAttribute("value",""+ye(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?Pe(e,!!n.multiple,r,!1):null!=n.defaultValue&&Pe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=lr)}_r(o,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(0,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(a(166));r=Ro(No.current),Ro(ko.current),Aa(t)?(r=t.stateNode,n=t.memoizedProps,r[Tr]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Tr]=t,t.stateNode=r)}return null;case 13:return di(Bo),n=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Aa(t):(n=null!==(o=e.memoizedState),r||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Bo.current)?Rs===Is&&(Rs=Ps):(Rs!==Is&&Rs!==Ps||(Rs=Cs),0!==Bs&&null!==ks&&(Gc(ks,Ns),Uc(ks,Bs)))),(r||n)&&(t.effectTag|=4),null);case 4:return jo(),null;case 10:return io(t),null;case 19:if(di(Bo),null===(n=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=n.rendering)){if(o)Qa(n,!1);else if(Rs!==Is||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Go(s))){for(t.effectTag|=64,Qa(n,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)s=r,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),n=n.sibling;return hi(Bo,1&Bo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Go(s))){if(t.effectTag|=64,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),Qa(n,!0),null===n.tail&&"hidden"===n.tailMode&&!s.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,o=!0,Qa(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=n.last)?r.sibling=s:t.child=s,n.last=s)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=zi()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=zi(),r.sibling=null,t=Bo.current,hi(Bo,o?1&t|2:1&t),r):null}throw Error(a(156,t.tag))}function ts(e){switch(e.tag){case 1:bi(e.type)&&_i();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(jo(),di(gi),di(mi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Fo(e),null;case 13:return di(Bo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return di(Bo),null;case 4:return jo(),null;case 10:return io(e),null;default:return null}}function rs(e,t){return{value:e,source:t,stack:ve(t)}}Va=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ha=function(e,t,r,n,o){var a=e.memoizedProps;if(a!==n){var s,c,l=t.stateNode;switch(Ro(ko.current),e=null,r){case"input":a=we(l,a),n=we(l,n),e=[];break;case"option":a=Ie(l,a),n=Ie(l,n),e=[];break;case"select":a=i({},a,{value:void 0}),n=i({},n,{value:void 0}),e=[];break;case"textarea":a=Ce(l,a),n=Ce(l,n),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof n.onClick&&(l.onclick=lr)}for(s in or(r,n),r=null,a)if(!n.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in l=a[s])l.hasOwnProperty(c)&&(r||(r={}),r[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(x.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in n){var u=n[s];if(l=null!=a?a[s]:void 0,n.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(r||(r={}),r[c]="");for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(r||(r={}),r[c]=u[c])}else r||(e||(e=[]),e.push(s,r)),r=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(x.hasOwnProperty(s)?(null!=u&&cr(o,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}r&&(e=e||[]).push("style",r),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Ya=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var ns="function"==typeof WeakSet?WeakSet:Set;function is(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=ve(r)),null!==r&&ge(r.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function os(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Oc(e,t)}else t.current=null}function as(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Ji(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function ss(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function cs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ls(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void cs(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:Ji(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&go(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}go(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&_r(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&jt(r)))))}throw Error(a(163))}function us(e,t,r){switch("function"==typeof Cc&&Cc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;Yi(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var i=t;try{r()}catch(e){Oc(i,e)}}e=e.next}while(e!==n)}))}break;case 1:os(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Oc(e,t)}}(t,r);break;case 5:os(t);break;case 4:gs(e,t,r)}}function ps(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ps(t)}function ds(e){return 5===e.tag||3===e.tag||4===e.tag}function hs(e){e:{for(var t=e.return;null!==t;){if(ds(t)){var r=t;break e}t=t.return}throw Error(a(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(a(161))}16&r.effectTag&&(Ge(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||ds(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?fs(e,r,t):ms(e,r,t)}function fs(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=lr));else if(4!==n&&null!==(e=e.child))for(fs(e,t,r),e=e.sibling;null!==e;)fs(e,t,r),e=e.sibling}function ms(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ms(e,t,r),e=e.sibling;null!==e;)ms(e,t,r),e=e.sibling}function gs(e,t,r){for(var n,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(n=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:n=n.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var c=e,l=o,u=r,p=l;;)if(us(c,p,u),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===l)break e;for(;null===p.sibling;){if(null===p.return||p.return===l)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}i?(c=n,l=o.stateNode,8===c.nodeType?c.parentNode.removeChild(l):c.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(us(e,o,r),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function vs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ss(3,t);case 1:case 12:case 17:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,i=null!==e?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(r[Ir]=n,"input"===e&&"radio"===n.type&&null!=n.name&&xe(r,n),ar(e,i),t=ar(e,n),i=0;i<o.length;i+=2){var s=o[i],c=o[i+1];"style"===s?nr(r,c):"dangerouslySetInnerHTML"===s?Be(r,c):"children"===s?Ge(r,c):X(r,s,c,t)}switch(e){case"input":Se(r,n);break;case"textarea":ke(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?Pe(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?Pe(r,!!n.multiple,n.defaultValue,!0):Pe(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,jt(t.containerInfo)));case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Us=zi()),null!==r)e:for(e=r;;){if(5===e.tag)o=e.stateNode,n?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=rr("display",i));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ys(t);case 19:return void ys(t)}throw Error(a(163))}function ys(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new ns),t.forEach((function(t){var n=Ic.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var bs="function"==typeof WeakMap?WeakMap:Map;function _s(e,t,r){(r=po(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Vs||(Vs=!0,Hs=n),is(e,t)},r}function Es(e,t,r){(r=po(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return is(e,t),n(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Ys?Ys=new Set([this]):Ys.add(this),is(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var ws,Ls=Math.ceil,xs=q.ReactCurrentDispatcher,Ss=q.ReactCurrentOwner,Os=16,Ts=32,Is=0,Ps=3,Cs=4,As=0,ks=null,Ds=null,Ns=0,Rs=Is,Ms=null,js=1073741823,Zs=1073741823,Fs=null,Bs=0,Gs=!1,Us=0,zs=null,Vs=!1,Hs=null,Ys=null,Ws=!1,$s=null,Ks=90,qs=null,Xs=0,Js=null,Qs=0;function ec(){return 0!=(48&As)?1073741821-(zi()/10|0):0!==Qs?Qs:Qs=1073741821-(zi()/10|0)}function tc(e,t,r){if(0==(2&(t=t.mode)))return 1073741823;var n=Vi();if(0==(4&t))return 99===n?1073741823:1073741822;if(0!=(As&Os))return Ns;if(null!==r)e=Xi(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Xi(e,150,100);break;case 97:case 96:e=Xi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==ks&&e===Ns&&--e,e}function rc(e,t){if(50<Xs)throw Xs=0,Js=null,Error(a(185));if(null!==(e=nc(e,t))){var r=Vi();1073741823===t?0!=(8&As)&&0==(48&As)?sc(e):(oc(e),0===As&&Ki()):oc(e),0==(4&As)||98!==r&&99!==r||(null===qs?qs=new Map([[e,t]]):(void 0===(r=qs.get(e))||r>t)&&qs.set(e,t))}}function nc(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,i=null;if(null===n&&3===e.tag)i=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){i=n.stateNode;break}n=n.return}return null!==i&&(ks===i&&(fc(t),Rs===Cs&&Gc(i,Ns)),Uc(i,t)),i}function ic(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Bc(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function oc(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=$i(sc.bind(null,e));else{var t=ic(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=ec();if(1073741823===t?n=99:1===t||2===t?n=95:n=0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=n)return;r!==Mi&&Ti(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?$i(sc.bind(null,e)):Wi(n,ac.bind(null,e),{timeout:10*(1073741821-t)-zi()}),e.callbackNode=t}}}function ac(e,t){if(Qs=0,t)return zc(e,t=ec()),oc(e),null;var r=ic(e);if(0!==r){if(t=e.callbackNode,0!=(48&As))throw Error(a(327));if(Lc(),e===ks&&r===Ns||uc(e,r),null!==Ds){var n=As;As|=Os;for(var i=dc();;)try{gc();break}catch(t){pc(e,t)}if(no(),As=n,xs.current=i,1===Rs)throw t=Ms,uc(e,r),Gc(e,r),oc(e),t;if(null===Ds)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Rs,ks=null,n){case Is:case 1:throw Error(a(345));case 2:zc(e,2<r?2:r);break;case Ps:if(Gc(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bc(i)),1073741823===js&&10<(i=Us+500-zi())){if(Gs){var o=e.lastPingedTime;if(0===o||o>=r){e.lastPingedTime=r,uc(e,r);break}}if(0!==(o=ic(e))&&o!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=wr(_c.bind(null,e),i);break}_c(e);break;case Cs:if(Gc(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bc(i)),Gs&&(0===(i=e.lastPingedTime)||i>=r)){e.lastPingedTime=r,uc(e,r);break}if(0!==(i=ic(e))&&i!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==Zs?n=10*(1073741821-Zs)-zi():1073741823===js?n=0:(n=10*(1073741821-js)-5e3,0>(n=(i=zi())-n)&&(n=0),(r=10*(1073741821-r)-i)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ls(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=wr(_c.bind(null,e),n);break}_c(e);break;case 5:if(1073741823!==js&&null!==Fs){o=js;var s=Fs;if(0>=(n=0|s.busyMinDurationMs)?n=0:(i=0|s.busyDelayMs,n=(o=zi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+n-o),10<n){Gc(e,r),e.timeoutHandle=wr(_c.bind(null,e),n);break}}_c(e);break;default:throw Error(a(329))}if(oc(e),e.callbackNode===t)return ac.bind(null,e)}}return null}function sc(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&As))throw Error(a(327));if(Lc(),e===ks&&t===Ns||uc(e,t),null!==Ds){var r=As;As|=Os;for(var n=dc();;)try{mc();break}catch(t){pc(e,t)}if(no(),As=r,xs.current=n,1===Rs)throw r=Ms,uc(e,t),Gc(e,t),oc(e),r;if(null!==Ds)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ks=null,_c(e),oc(e)}return null}function cc(e,t){var r=As;As|=1;try{return e(t)}finally{0===(As=r)&&Ki()}}function lc(e,t){var r=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=r)&&Ki()}}function uc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Lr(r)),null!==Ds)for(r=Ds.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&_i();break;case 3:jo(),di(gi),di(mi);break;case 5:Fo(n);break;case 4:jo();break;case 13:case 19:di(Bo);break;case 10:io(n)}r=r.return}ks=e,Ds=Nc(e.current,null),Ns=t,Rs=Is,Ms=null,Zs=js=1073741823,Fs=null,Bs=0,Gs=!1}function pc(e,t){for(;;){try{if(no(),zo.current=_a,Ko)for(var r=Yo.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Ho=0,$o=Wo=Yo=null,Ko=!1,null===Ds||null===Ds.return)return Rs=1,Ms=t,Ds=null;e:{var i=e,o=Ds.return,a=Ds,s=t;if(t=Ns,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&Bo.current),p=o;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var f=p.memoizedProps;d=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!u)}}if(d){var m=p.updateQueue;if(null===m){var g=new Set;g.add(c),p.updateQueue=g}else m.add(c);if(0==(2&p.mode)){if(p.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=po(1073741823,null);v.tag=2,ho(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new bs,s=new Set,y.set(c,s)):void 0===(s=y.get(c))&&(s=new Set,y.set(c,s)),!s.has(a)){s.add(a);var b=Tc.bind(null,i,c,a);c.then(b,b)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Rs&&(Rs=2),s=rs(s,a),p=o;do{switch(p.tag){case 3:c=s,p.effectTag|=4096,p.expirationTime=t,fo(p,_s(p,c,t));break e;case 1:c=s;var _=p.type,E=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Ys||!Ys.has(E)))){p.effectTag|=4096,p.expirationTime=t,fo(p,Es(p,c,t));break e}}p=p.return}while(null!==p)}Ds=yc(Ds)}catch(e){t=e;continue}break}}function dc(){var e=xs.current;return xs.current=_a,null===e?_a:e}function hc(e,t){e<js&&2<e&&(js=e),null!==t&&e<Zs&&2<e&&(Zs=e,Fs=t)}function fc(e){e>Bs&&(Bs=e)}function mc(){for(;null!==Ds;)Ds=vc(Ds)}function gc(){for(;null!==Ds&&!ji();)Ds=vc(Ds)}function vc(e){var t=ws(e.alternate,e,Ns);return e.memoizedProps=e.pendingProps,null===t&&(t=yc(e)),Ss.current=null,t}function yc(e){Ds=e;do{var t=Ds.alternate;if(e=Ds.return,0==(2048&Ds.effectTag)){if(t=es(t,Ds,Ns),1===Ns||1!==Ds.childExpirationTime){for(var r=0,n=Ds.child;null!==n;){var i=n.expirationTime,o=n.childExpirationTime;i>r&&(r=i),o>r&&(r=o),n=n.sibling}Ds.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ds.firstEffect),null!==Ds.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ds.firstEffect),e.lastEffect=Ds.lastEffect),1<Ds.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ds:e.firstEffect=Ds,e.lastEffect=Ds))}else{if(null!==(t=ts(Ds)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ds.sibling))return t;Ds=e}while(null!==Ds);return Rs===Is&&(Rs=5),null}function bc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function _c(e){var t=Vi();return Yi(99,Ec.bind(null,e,t)),null}function Ec(e,t){do{Lc()}while(null!==$s);if(0!=(48&As))throw Error(a(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=bc(r);if(e.firstPendingTime=i,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ks&&(Ds=ks=null,Ns=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,i=r.firstEffect):i=r:i=r.firstEffect,null!==i){var o=As;As|=Ts,Ss.current=null,yr=Wt;var s=fr();if(mr(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var u=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{c.nodeType,p.nodeType}catch(e){c=null;break e}var d=0,h=-1,f=-1,m=0,g=0,v=s,y=null;t:for(;;){for(var b;v!==c||0!==u&&3!==v.nodeType||(h=d+u),v!==p||0!==l&&3!==v.nodeType||(f=d+l),3===v.nodeType&&(d+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===c&&++m===u&&(h=d),y===p&&++g===l&&(f=d),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}c=-1===h||-1===f?null:{start:h,end:f}}else c=null}c=c||{start:0,end:0}}else c=null;br={activeElementDetached:null,focusedElem:s,selectionRange:c},Wt=!1,zs=i;do{try{wc()}catch(e){if(null===zs)throw Error(a(330));Oc(zs,e),zs=zs.nextEffect}}while(null!==zs);zs=i;do{try{for(s=e,c=t;null!==zs;){var _=zs.effectTag;if(16&_&&Ge(zs.stateNode,""),128&_){var E=zs.alternate;if(null!==E){var w=E.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&_){case 2:hs(zs),zs.effectTag&=-3;break;case 6:hs(zs),zs.effectTag&=-3,vs(zs.alternate,zs);break;case 1024:zs.effectTag&=-1025;break;case 1028:zs.effectTag&=-1025,vs(zs.alternate,zs);break;case 4:vs(zs.alternate,zs);break;case 8:gs(s,u=zs,c),ps(u)}zs=zs.nextEffect}}catch(e){if(null===zs)throw Error(a(330));Oc(zs,e),zs=zs.nextEffect}}while(null!==zs);if(w=br,E=fr(),_=w.focusedElem,c=w.selectionRange,E!==_&&_&&_.ownerDocument&&hr(_.ownerDocument.documentElement,_)){null!==c&&mr(_)&&(E=c.start,void 0===(w=c.end)&&(w=E),"selectionStart"in _?(_.selectionStart=E,_.selectionEnd=Math.min(w,_.value.length)):(w=(E=_.ownerDocument||document)&&E.defaultView||window).getSelection&&(w=w.getSelection(),u=_.textContent.length,s=Math.min(c.start,u),c=void 0===c.end?s:Math.min(c.end,u),!w.extend&&s>c&&(u=c,c=s,s=u),u=dr(_,s),p=dr(_,c),u&&p&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==p.node||w.focusOffset!==p.offset)&&((E=E.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),s>c?(w.addRange(E),w.extend(p.node,p.offset)):(E.setEnd(p.node,p.offset),w.addRange(E))))),E=[];for(w=_;w=w.parentNode;)1===w.nodeType&&E.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<E.length;_++)(w=E[_]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Wt=!!yr,br=yr=null,e.current=r,zs=i;do{try{for(_=e;null!==zs;){var L=zs.effectTag;if(36&L&&ls(_,zs.alternate,zs),128&L){E=void 0;var x=zs.ref;if(null!==x){var S=zs.stateNode;zs.tag,E=S,"function"==typeof x?x(E):x.current=E}}zs=zs.nextEffect}}catch(e){if(null===zs)throw Error(a(330));Oc(zs,e),zs=zs.nextEffect}}while(null!==zs);zs=null,Zi(),As=o}else e.current=r;if(Ws)Ws=!1,$s=e,Ks=t;else for(zs=i;null!==zs;)t=zs.nextEffect,zs.nextEffect=null,zs=t;if(0===(t=e.firstPendingTime)&&(Ys=null),1073741823===t?e===Js?Xs++:(Xs=0,Js=e):Xs=0,"function"==typeof Pc&&Pc(r.stateNode,n),oc(e),Vs)throw Vs=!1,e=Hs,Hs=null,e;return 0!=(8&As)||Ki(),null}function wc(){for(;null!==zs;){var e=zs.effectTag;0!=(256&e)&&as(zs.alternate,zs),0==(512&e)||Ws||(Ws=!0,Wi(97,(function(){return Lc(),null}))),zs=zs.nextEffect}}function Lc(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Yi(e,xc)}}function xc(){if(null===$s)return!1;var e=$s;if($s=null,0!=(48&As))throw Error(a(331));var t=As;for(As|=Ts,e=e.current.firstEffect;null!==e;){try{var r=e;if(0!=(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:case 22:ss(5,r),cs(5,r)}}catch(t){if(null===e)throw Error(a(330));Oc(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return As=t,Ki(),!0}function Sc(e,t,r){ho(e,t=_s(e,t=rs(r,t),1073741823)),null!==(e=nc(e,1073741823))&&oc(e)}function Oc(e,t){if(3===e.tag)Sc(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Sc(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Ys||!Ys.has(n))){ho(r,e=Es(r,e=rs(t,e),1073741823)),null!==(r=nc(r,1073741823))&&oc(r);break}}r=r.return}}function Tc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),ks===e&&Ns===r?Rs===Cs||Rs===Ps&&1073741823===js&&zi()-Us<500?uc(e,Ns):Gs=!0:Bc(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,oc(e)))}function Ic(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(t=tc(t=ec(),e,null)),null!==(e=nc(e,t))&&oc(e)}ws=function(e,t,r){var n=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||gi.current)Na=!0;else{if(n<r){switch(Na=!1,t.tag){case 3:za(t),ka();break;case 5:if(Zo(t),4&t.mode&&1!==r&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:bi(t.type)&&Li(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,i=t.type._context,hi(Qi,i._currentValue),i._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?$a(e,t,r):(hi(Bo,1&Bo.current),null!==(t=Ja(e,t,r))?t.sibling:null);hi(Bo,1&Bo.current);break;case 19:if(n=t.childExpirationTime>=r,0!=(64&e.effectTag)){if(n)return Xa(e,t,r);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),hi(Bo,Bo.current),!n)return null}return Ja(e,t,r)}Na=!1}}else Na=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=yi(t,mi.current),ao(t,r),i=Jo(null,t,n,e,i,r),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(n)){var o=!0;Li(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,lo(t);var s=n.getDerivedStateFromProps;"function"==typeof s&&bo(t,n,s,e),i.updater=_o,t.stateNode=i,i._reactInternalFiber=t,xo(t,n,e,r),t=Ua(null,t,n,!0,o,r)}else t.tag=0,Ra(null,t,i,r),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Dc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===pe)return 14}return 2}(i),e=Ji(i,e),o){case 0:t=Ba(null,t,i,e,r);break e;case 1:t=Ga(null,t,i,e,r);break e;case 11:t=Ma(null,t,i,e,r);break e;case 14:t=ja(null,t,i,Ji(i.type,e),n,r);break e}throw Error(a(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,Ba(e,t,n,i=t.elementType===n?i:Ji(n,i),r);case 1:return n=t.type,i=t.pendingProps,Ga(e,t,n,i=t.elementType===n?i:Ji(n,i),r);case 3:if(za(t),n=t.updateQueue,null===e||null===n)throw Error(a(282));if(n=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,uo(e,t),mo(t,n,null,r),(n=t.memoizedState.element)===i)ka(),t=Ja(e,t,r);else{if((i=t.stateNode.hydrate)&&(Sa=xr(t.stateNode.containerInfo.firstChild),xa=t,i=Oa=!0),i)for(r=Co(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Ra(e,t,n,r),ka();t=t.child}return t;case 5:return Zo(t),null===e&&Pa(t),n=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Er(n,i)?s=null:null!==o&&Er(n,o)&&(t.effectTag|=16),Fa(e,t),4&t.mode&&1!==r&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ra(e,t,s,r),t=t.child),t;case 6:return null===e&&Pa(t),null;case 13:return $a(e,t,r);case 4:return Mo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Po(t,null,n,r):Ra(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Ma(e,t,n,i=t.elementType===n?i:Ji(n,i),r);case 7:return Ra(e,t,t.pendingProps,r),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var c=t.type._context;if(hi(Qi,c._currentValue),c._currentValue=o,null!==s)if(c=s.value,0===(o=Gn(c,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(c,o):1073741823))){if(s.children===i.children&&!gi.current){t=Ja(e,t,r);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===n&&0!=(u.observedBits&o)){1===c.tag&&((u=po(r,null)).tag=2,ho(c,u)),c.expirationTime<r&&(c.expirationTime=r),null!==(u=c.alternate)&&u.expirationTime<r&&(u.expirationTime=r),oo(c.return,r),l.expirationTime<r&&(l.expirationTime=r);break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Ra(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=(o=t.pendingProps).children,ao(t,r),n=n(i=so(i,o.unstable_observedBits)),t.effectTag|=1,Ra(e,t,n,r),t.child;case 14:return o=Ji(i=t.type,t.pendingProps),ja(e,t,i,o=Ji(i.type,o),n,r);case 15:return Za(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ji(n,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,bi(n)?(e=!0,Li(t)):e=!1,ao(t,r),wo(t,n,i),xo(t,n,i,r),Ua(null,t,n,!0,e,r);case 19:return Xa(e,t,r)}throw Error(a(156,t.tag))};var Pc=null,Cc=null;function Ac(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function kc(e,t,r,n){return new Ac(e,t,r,n)}function Dc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nc(e,t){var r=e.alternate;return null===r?((r=kc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Rc(e,t,r,n,i,o){var s=2;if(n=e,"function"==typeof e)Dc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case re:return Mc(r.children,i,o,t);case se:s=8,i|=7;break;case ne:s=8,i|=1;break;case ie:return(e=kc(12,r,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case le:return(e=kc(13,r,t,i)).type=le,e.elementType=le,e.expirationTime=o,e;case ue:return(e=kc(19,r,t,i)).elementType=ue,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case ce:s=11;break e;case pe:s=14;break e;case de:s=16,n=null;break e;case he:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=kc(s,r,t,i)).elementType=e,t.type=n,t.expirationTime=o,t}function Mc(e,t,r,n){return(e=kc(7,e,n,t)).expirationTime=r,e}function jc(e,t,r){return(e=kc(6,e,null,t)).expirationTime=r,e}function Zc(e,t,r){return(t=kc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Bc(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function Gc(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Uc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function zc(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function Vc(e,t,r,n){var i=t.current,o=ec(),s=vo.suspense;o=tc(o,i,s);e:if(r){t:{if(et(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(a(170));var c=r;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(bi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===r.tag){var l=r.type;if(bi(l)){r=wi(r,l,c);break e}}r=c}else r=fi;return null===t.context?t.context=r:t.pendingContext=r,(t=po(o,s)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),ho(i,t),rc(i,o),o}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Wc(e,t){Yc(e,t),(e=e.alternate)&&Yc(e,t)}function $c(e,t,r){var n=new Fc(e,t,r=null!=r&&!0===r.hydrate),i=kc(3,null,null,2===t?7:1===t?3:0);n.current=i,i.stateNode=n,lo(i),e[Pr]=n.current,r&&0!==t&&function(e,t){var r=Qe(t);Tt.forEach((function(e){mt(e,t,r)})),It.forEach((function(e){mt(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qc(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}Vc(t,a,e,i)}else{if(o=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new $c(e,0,t?{hydrate:!0}:void 0)}(r,n),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var e=Hc(a);c.call(e)}}lc((function(){Vc(t,a,e,i)}))}return Hc(a)}function Xc(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function Jc(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(a(200));return Xc(e,t,null,r)}$c.prototype.render=function(e){Vc(e,this._internalRoot,null,null)},$c.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Vc(null,e,null,(function(){t[Pr]=null}))},gt=function(e){if(13===e.tag){var t=Xi(ec(),150,100);rc(e,t),Wc(e,t)}},vt=function(e){13===e.tag&&(rc(e,3),Wc(e,3))},yt=function(e){if(13===e.tag){var t=ec();rc(e,t=tc(t,e,null)),Wc(e,t)}},I=function(e,t,r){switch(t){case"input":if(Se(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Dr(n);if(!i)throw Error(a(90));Ee(n),Se(n,i)}}}break;case"textarea":ke(e,r);break;case"select":null!=(t=r.value)&&Pe(e,!!r.multiple,t,!1)}},N=cc,R=function(e,t,r,n,i){var o=As;As|=4;try{return Yi(98,e.bind(null,t,r,n,i))}finally{0===(As=o)&&Ki()}},M=function(){0==(49&As)&&(function(){if(null!==qs){var e=qs;qs=null,e.forEach((function(e,t){zc(t,e),oc(t)})),Ki()}}(),Lc())},j=function(e,t){var r=As;As|=2;try{return e(t)}finally{0===(As=r)&&Ki()}};var Qc={Events:[Ar,kr,Dr,O,L,Br,function(e){ot(e,Fr)},k,D,Jt,ct,Lc,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);Pc=function(e){try{t.onCommitFiberRoot(r,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Cc=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Cr,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qc,t.createPortal=Jc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&As))throw Error(a(187));var r=As;As|=1;try{return Yi(99,e.bind(null,t))}finally{As=r,Ki()}},t.hydrate=function(e,t,r){if(!Kc(t))throw Error(a(200));return qc(null,e,t,!0,r)},t.render=function(e,t,r){if(!Kc(t))throw Error(a(200));return qc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Kc(e))throw Error(a(40));return!!e._reactRootContainer&&(lc((function(){qc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Pr]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_createPortal=function(e,t){return Jc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Kc(r))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return qc(e,t,r,!1,n)},t.version="16.14.0"},73961:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(57799)},15439:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,l,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(!o(e[c],a[c]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!o(e[l[c]],a[l[c]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},24821:(e,t)=>{"use strict";
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=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,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case p:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case c:return e;default:return t}}case i:return t}}}function w(e){return E(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||E(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===s||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},338:(e,t,r)=>{"use strict";e.exports=r(24821)},19018:(e,t,r)=>{"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function o(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,a=null,s=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==s){var c=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:()=>a}),n.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},40777:(e,t,r)=>{"use strict";t.__esModule=!0;var n=l(r(2652)),i=l(r(61926)),o=l(r(89526)),a=l(r(73961)),s=l(r(59509)),c=l(r(81081));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var r,n;u(this,t);for(var i=arguments.length,l=Array(i),d=0;d<i;d++)l[d]=arguments[d];return r=n=p(this,e.call.apply(e,[this].concat(l))),n._mountOverlayTarget=function(){n._overlayTarget||(n._overlayTarget=document.createElement("div"),n._portalContainerNode=(0,s.default)(n.props.container,(0,c.default)(n).body),n._portalContainerNode.appendChild(n._overlayTarget))},n._unmountOverlayTarget=function(){n._overlayTarget&&(n._portalContainerNode.removeChild(n._overlayTarget),n._overlayTarget=null),n._portalContainerNode=null},n._renderOverlay=function(){var e=n.props.children?o.default.Children.only(n.props.children):null;if(null!==e){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=a.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){t&&n.props.onRendered&&n.props.onRendered()}))}else n._unrenderOverlay(),n._unmountOverlayTarget()},n._unrenderOverlay=function(){n._overlayTarget&&(a.default.unmountComponentAtNode(n._overlayTarget),n._overlayInstance=null)},n.getMountNode=function(){return n._overlayTarget},p(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,s.default)(e.container,(0,c.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(o.default.Component);d.displayName="Portal",d.propTypes={container:n.default.oneOfType([i.default,n.default.func]),onRendered:n.default.func},t.default=d,e.exports=t.default},22919:(e,t,r)=>{"use strict";t.__esModule=!0;var n=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=w(r(9637)),o=w(r(35558)),a=w(r(75769)),s=w(r(2652)),c=w(r(61926)),l=w(r(73925)),u=w(r(50855)),p=r(89526),d=w(p),h=w(r(73961)),f=w(r(89198)),m=w(r(90395)),g=w(r(83698)),v=w(r(81182)),y=w(r(88243)),b=w(r(83735)),_=w(r(59509)),E=w(r(81081));function w(e){return e&&e.__esModule?e:{default:e}}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var S=new m.default,O=function(e){function t(){var r,n;L(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=x(this,e.call.apply(e,[this].concat(o))),T.call(n),x(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.omitProps=function(e,t){var r=Object.keys(e),n={};return r.map((function(r){Object.prototype.hasOwnProperty.call(t,r)||(n[r]=e[r])})),n},t.prototype.render=function(){var e=this.props,r=e.show,i=e.container,o=e.children,a=e.transition,s=e.backdrop,c=e.className,l=e.style,u=e.onExit,h=e.onExiting,f=e.onEnter,m=e.onEntering,y=e.onEntered,b=d.default.Children.only(o),_=this.omitProps(this.props,t.propTypes);if(!(r||a&&!this.state.exited))return null;var E=b.props,w=E.role,L=E.tabIndex;return void 0!==w&&void 0!==L||(b=(0,p.cloneElement)(b,{role:void 0===w?"document":w,tabIndex:null==L?"-1":L})),a&&(b=d.default.createElement(a,{appear:!0,unmountOnExit:!0,in:r,onExit:u,onExiting:h,onExited:this.handleHidden,onEnter:f,onEntering:m,onEntered:y},b)),d.default.createElement(g.default,{ref:this.setMountNode,container:i,onRendered:this.onPortalRendered},d.default.createElement("div",n({ref:this.setModalNodeRef,role:w||"dialog"},_,{style:l,className:c}),s&&this.renderBackdrop(),d.default.createElement(v.default,{ref:this.setDialogRef},b)))},t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.componentWillUpdate=function(e){!this.props.show&&e.show&&this.checkForFocus()},t.prototype.componentDidMount=function(){this._isMounted=!0,this.props.show&&this.onShow()},t.prototype.componentDidUpdate=function(e){var t=this.props.transition;!e.show||this.props.show||t?!e.show&&this.props.show&&this.onShow():this.onHide()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.show,r=e.transition;this._isMounted=!1,(t||r&&!this.state.exited)&&this.onHide()},t.prototype.autoFocus=function(){if(this.props.autoFocus){var e=this.getDialogElement(),t=(0,i.default)((0,E.default)(this));e&&!(0,o.default)(e,t)&&(this.lastFocus=t,e.hasAttribute("tabIndex")||((0,f.default)(!1,'The modal content node does not accept focus. For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'),e.setAttribute("tabIndex",-1)),e.focus())}},t.prototype.restoreLastFocus=function(){this.lastFocus&&this.lastFocus.focus&&(this.lastFocus.focus(),this.lastFocus=null)},t.prototype.getDialogElement=function(){return h.default.findDOMNode(this.dialog)},t.prototype.isTopModal=function(){return this.props.manager.isTopModal(this)},t}(d.default.Component);O.propTypes=n({},g.default.propTypes,{show:s.default.bool,container:s.default.oneOfType([c.default,s.default.func]),onShow:s.default.func,onHide:s.default.func,backdrop:s.default.oneOfType([s.default.bool,s.default.oneOf(["static"])]),renderBackdrop:s.default.func,onEscapeKeyDown:s.default.func,onEscapeKeyUp:(0,l.default)(s.default.func,"Please use onEscapeKeyDown instead for consistency"),onBackdropClick:s.default.func,backdropStyle:s.default.object,backdropClassName:s.default.string,containerClassName:s.default.string,keyboard:s.default.bool,transition:u.default,backdropTransition:u.default,autoFocus:s.default.bool,enforceFocus:s.default.bool,restoreFocus:s.default.bool,onEnter:s.default.func,onEntering:s.default.func,onEntered:s.default.func,onExit:s.default.func,onExiting:s.default.func,onExited:s.default.func,manager:s.default.object.isRequired}),O.defaultProps={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:S,renderBackdrop:function(e){return d.default.createElement("div",e)}};var T=function(){var e=this;this.state={exited:!this.props.show},this.renderBackdrop=function(){var t=e.props,r=t.backdropStyle,n=t.backdropClassName,i=t.renderBackdrop,o=t.backdropTransition,a=i({ref:function(t){return e.backdrop=t},style:r,className:n,onClick:e.handleBackdropClick});return o&&(a=d.default.createElement(o,{appear:!0,in:e.props.show},a)),a},this.onPortalRendered=function(){e.autoFocus(),e.props.onShow&&e.props.onShow()},this.onShow=function(){var t=(0,E.default)(e),r=(0,_.default)(e.props.container,t.body);e.props.manager.add(e,r,e.props.containerClassName),e._onDocumentKeydownListener=(0,y.default)(t,"keydown",e.handleDocumentKeyDown),e._onDocumentKeyupListener=(0,y.default)(t,"keyup",e.handleDocumentKeyUp),e._onFocusinListener=(0,b.default)(e.enforceFocus)},this.onHide=function(){e.props.manager.remove(e),e._onDocumentKeydownListener.remove(),e._onDocumentKeyupListener.remove(),e._onFocusinListener.remove(),e.props.restoreFocus&&e.restoreLastFocus()},this.setMountNode=function(t){e.mountNode=t?t.getMountNode():t},this.setModalNodeRef=function(t){e.modalNode=t},this.setDialogRef=function(t){e.dialog=t},this.handleHidden=function(){var t;(e.setState({exited:!0}),e.onHide(),e.props.onExited)&&(t=e.props).onExited.apply(t,arguments)},this.handleBackdropClick=function(t){t.target===t.currentTarget&&(e.props.onBackdropClick&&e.props.onBackdropClick(t),!0===e.props.backdrop&&e.props.onHide())},this.handleDocumentKeyDown=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&(e.props.onEscapeKeyDown&&e.props.onEscapeKeyDown(t),e.props.onHide())},this.handleDocumentKeyUp=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&e.props.onEscapeKeyUp&&e.props.onEscapeKeyUp(t)},this.checkForFocus=function(){a.default&&(e.lastFocus=(0,i.default)())},this.enforceFocus=function(){if(e.props.enforceFocus&&e._isMounted&&e.isTopModal()){var t=e.getDialogElement(),r=(0,i.default)((0,E.default)(e));t&&!(0,o.default)(t,r)&&t.focus()}}};O.Manager=m.default,t.default=O,e.exports=t.default},90395:(e,t,r)=>{"use strict";t.__esModule=!0;var n=c(r(34973)),i=c(r(95463)),o=c(r(14347)),a=c(r(50669)),s=r(97771);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){return r=function(e){return-1!==e.modals.indexOf(t)},n=-1,e.some((function(e,t){if(r(e,t))return n=t,!0})),n;var r,n}function p(e,t){var r={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(r.paddingRight=parseInt((0,i.default)(t,"paddingRight")||0,10)+(0,o.default)()+"px"),(0,i.default)(t,r)}function d(e,t){var r=e.style;Object.keys(r).forEach((function(e){return t.style[e]=r[e]}))}t.default=function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.hideSiblingNodes,o=void 0===i||i,c=r.handleContainerOverflow,h=void 0===c||c;l(this,e),this.add=function(e,r,i){var o=t.modals.indexOf(e),c=t.containers.indexOf(r);if(-1!==o)return o;if(o=t.modals.length,t.modals.push(e),t.hideSiblingNodes&&(0,s.hideSiblings)(r,e.mountNode),-1!==c)return t.data[c].modals.push(e),o;var l={modals:[e],classes:i?i.split(/\s+/):[],overflowing:(0,a.default)(r)};return t.handleContainerOverflow&&p(l,r),l.classes.forEach(n.default.addClass.bind(null,r)),t.containers.push(r),t.data.push(l),o},this.remove=function(e){var r=t.modals.indexOf(e);if(-1!==r){var i=u(t.data,e),o=t.data[i],a=t.containers[i];o.modals.splice(o.modals.indexOf(e),1),t.modals.splice(r,1),0===o.modals.length?(o.classes.forEach(n.default.removeClass.bind(null,a)),t.handleContainerOverflow&&d(o,a),t.hideSiblingNodes&&(0,s.showSiblings)(a,e.mountNode),t.containers.splice(i,1),t.data.splice(i,1)):t.hideSiblingNodes&&(0,s.ariaHidden)(!1,o.modals[o.modals.length-1].mountNode)}},this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e},this.hideSiblingNodes=o,this.handleContainerOverflow=h,this.modals=[],this.containers=[],this.data=[]},e.exports=t.default},83698:(e,t,r)=>{"use strict";t.__esModule=!0;var n=u(r(2652)),i=u(r(61926)),o=u(r(89526)),a=u(r(73961)),s=u(r(59509)),c=u(r(81081)),l=u(r(40777));function u(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var r,n;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=d(this,e.call.apply(e,[this].concat(o))),n.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;n._portalContainerNode=(0,s.default)(e.container,(0,c.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},d(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?a.default.createPortal(this.props.children,this._portalContainerNode):null},t}(o.default.Component);h.displayName="Portal",h.propTypes={container:n.default.oneOfType([i.default,n.default.func]),onRendered:n.default.func},t.default=a.default.createPortal?h:l.default,e.exports=t.default},81182:(e,t,r)=>{"use strict";t.__esModule=!0;var n=o(r(2652)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c={children:n.default.node},l=function(e){function t(){return a(this,t),s(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return this.props.children},t}(i.default.Component);l.propTypes=c,t.default=l,e.exports=t.default},28630:(e,t,r)=>{"use strict";t.__esModule=!0;var n=l(r(35558)),i=l(r(2652)),o=l(r(89526)),a=l(r(73961)),s=l(r(88243)),c=l(r(81081));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r,i));return o.addEventListeners=function(){var e=o.props.event,t=(0,c.default)(o);o.documentMouseCaptureListener=(0,s.default)(t,e,o.handleMouseCapture,!0),o.documentMouseListener=(0,s.default)(t,e,o.handleMouse),o.documentKeyupListener=(0,s.default)(t,"keyup",o.handleKeyUp)},o.removeEventListeners=function(){o.documentMouseCaptureListener&&o.documentMouseCaptureListener.remove(),o.documentMouseListener&&o.documentMouseListener.remove(),o.documentKeyupListener&&o.documentKeyupListener.remove()},o.handleMouseCapture=function(e){o.preventMouseRootClose=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||!function(e){return 0===e.button}(e)||(0,n.default)(a.default.findDOMNode(o),e.target)},o.handleMouse=function(e){!o.preventMouseRootClose&&o.props.onRootClose&&o.props.onRootClose(e)},o.handleKeyUp=function(e){27===e.keyCode&&o.props.onRootClose&&o.props.onRootClose(e)},o.preventMouseRootClose=!1,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(o.default.Component);u.displayName="RootCloseWrapper",u.propTypes={onRootClose:i.default.func,children:i.default.element,disabled:i.default.bool,event:i.default.oneOf(["click","mousedown"])},u.defaultProps={event:"click"},t.default=u,e.exports=t.default},88243:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r,o){return(0,n.default)(e,t,r,o),{remove:function(){(0,i.default)(e,t,r,o)}}};var n=o(r(85822)),i=o(r(9105));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},83735:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=!document.addEventListener,r=void 0;t?(document.attachEvent("onfocusin",e),r=function(){return document.detachEvent("onfocusin",e)}):(document.addEventListener("focus",e,!0),r=function(){return document.removeEventListener("focus",e,!0)});return{remove:r}},e.exports=t.default},59509:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,o.default.findDOMNode(e)||t};var n,i=r(73961),o=(n=i)&&n.__esModule?n:{default:n};e.exports=t.default},50669:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return(0,n.default)(e)||function(e){return e&&"body"===e.tagName.toLowerCase()}(e)?function(e){var t=(0,i.default)(e),r=(0,n.default)(t).innerWidth;if(!r){var o=t.documentElement.getBoundingClientRect();r=o.right-Math.abs(o.left)}return t.body.clientWidth<r}(e):e.scrollHeight>e.clientHeight};var n=o(r(72038)),i=o(r(62310));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},97771:(e,t)=>{"use strict";t.__esModule=!0,t.ariaHidden=i,t.hideSiblings=function(e,t){n(e,t,(function(e){return i(!0,e)}))},t.showSiblings=function(e,t){n(e,t,(function(e){return i(!1,e)}))};var r=["template","script","style"],n=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,(function(e){var i,o,a;-1===t.indexOf(e)&&(o=(i=e).nodeType,a=i.tagName,1===o&&-1===r.indexOf(a.toLowerCase()))&&n(e)}))};function i(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}},81081:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return(0,i.default)(n.default.findDOMNode(e))};var n=o(r(73961)),i=o(r(62310));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},80919:e=>{"use strict";var t=function(){};e.exports=t},86520:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(2652)),i=s(r(89526)),o=s(r(73961)),a=r(19018);r(97169);function s(e){return e&&e.__esModule?e:{default:e}}var c="unmounted";t.UNMOUNTED=c;var l="exited";t.EXITED=l;var u="entering";t.ENTERING=u;var p="entered";t.ENTERED=p;var d="exiting";t.EXITING=d;var h=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var i,o=r.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=l,n.appearStatus=u):i=p:i=t.unmountOnExit||t.mountOnEnter?c:l,n.state={status:i},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==p&&(t=u):r!==u&&r!==p||(t=d)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=o.default.findDOMNode(this);t===u?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:c})},a.performEnter=function(e,t){var r=this,n=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||n?(this.props.onEnter(e,i),this.safeSetState({status:u},(function(){r.props.onEntering(e,i),r.onTransitionEnd(e,a,(function(){r.safeSetState({status:p},(function(){r.props.onEntered(e,i)}))}))}))):this.safeSetState({status:p},(function(){r.props.onEntered(e)}))},a.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:d},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var o=i.default.Children.only(r);return i.default.cloneElement(o,n)},n}(i.default.Component);function f(){}h.contextTypes={transitionGroup:n.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var m=(0,a.polyfill)(h);t.default=m},97169:(e,t,r)=>{"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=r(2652))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},13169:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(68513),i=r(61194),o=r.n(i),a=r(14864),s=r(77810),c=r(55e3),l=r(97965),u=r(89526);function p(e){var t;t="undefined"!=typeof window?window:"undefined"!=typeof self?self:r.g;var n,i,o="undefined"!=typeof document&&document.attachEvent;if(!o){var a=(i=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)},function(e){return i(e)}),s=(n=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout,function(e){return n(e)}),c=function(e){var t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,i=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,i.style.width=r.offsetWidth+1+"px",i.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},l=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;c(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))}},u=!1,p="",d="animationstart",h="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m=document.createElement("fakeelement");if(void 0!==m.style.animationName&&(u=!0),!1===u)for(var g=0;g<h.length;g++)if(void 0!==m.style[h[g]+"AnimationName"]){p="-"+h[g].toLowerCase()+"-",d=f[g],u=!0;break}var v="resizeanim",y="@"+p+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",b=p+"animation: 1ms "+v+"; "}return{addResizeListener:function(r,n){if(o)r.attachEvent("onresize",n);else{if(!r.__resizeTriggers__){var i=r.ownerDocument,a=t.getComputedStyle(r);a&&"static"==a.position&&(r.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var r=(y||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',n=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(t.createTextNode(r)),n.appendChild(i)}}(i),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=i.createElement("div")).className="resize-triggers",r.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',r.appendChild(r.__resizeTriggers__),c(r),r.addEventListener("scroll",l,!0),d&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName==v&&c(r)},r.__resizeTriggers__.addEventListener(d,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var d=function(e){function t(){var e,r,n,i;(0,a.Z)(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=(0,c.Z)(this,(e=t.__proto__||o()(t)).call.apply(e,[this].concat(l))),n.state={height:n.props.defaultHeight||0,width:n.props.defaultWidth||0},n._onResize=function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(n._parentNode){var o=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,s=window.getComputedStyle(n._parentNode)||{},c=parseInt(s.paddingLeft,10)||0,l=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,p=parseInt(s.paddingBottom,10)||0,d=o-u-p,h=a-c-l;(!t&&n.state.height!==d||!r&&n.state.width!==h)&&(n.setState({height:o-u-p,width:a-c-l}),i({height:o,width:a}))}},n._setRef=function(e){n._autoSizer=e},i=r,(0,c.Z)(n,i)}return(0,l.Z)(t,e),(0,s.Z)(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=p(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,i=e.disableHeight,o=e.disableWidth,a=e.style,s=this.state,c=s.height,l=s.width,p={overflow:"visible"},d={};return i||(p.height=0,d.height=c),o||(p.width=0,d.width=l),u.createElement("div",{className:r,ref:this._setRef,style:(0,n.Z)({},p,a)},t(d))}}]),t}(u.PureComponent);d.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},d.propTypes=null;const h=d},41199:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(68513),i=r(88771),o=r(61194),a=r.n(o),s=r(14864),c=r(77810),l=r(55e3),u=r(97965),p=r(89526),d=r(64403),h=r.n(d),f=r(19018),m=r(14858),g=r.n(m);function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(r){var n=r.callback,i=r.indices,o=g()(i),a=!e||o.every((function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0})),s=o.length!==g()(t).length||o.some((function(e){var r=t[e],n=i[e];return Array.isArray(n)?r.join(",")!==n.join(","):r!==n}));t=i,a&&s&&n(i)}}var y=r(14347),b=r.n(y),_="observed",E="requested",w=function(e){function t(){var e;(0,s.Z)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=(0,l.Z)(this,(e=t.__proto__||a()(t)).call.apply(e,[this].concat(n)));return o.state={isScrolling:!1,scrollLeft:0,scrollTop:0},o._calculateSizeAndPositionDataOnNextUpdate=!1,o._onSectionRenderedMemoizer=v(),o._onScrollMemoizer=v(!1),o._invokeOnSectionRenderedHelper=function(){var e=o.props,t=e.cellLayoutManager,r=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})},o._setScrollingContainerRef=function(e){o._scrollingContainer=e},o._updateScrollPositionForScrollToCell=function(){var e=o.props,t=e.cellLayoutManager,r=e.height,n=e.scrollToAlignment,i=e.scrollToCell,a=e.width,s=o.state,c=s.scrollLeft,l=s.scrollTop;if(i>=0){var u=t.getScrollPositionForCell({align:n,cellIndex:i,height:r,scrollLeft:c,scrollTop:l,width:a});u.scrollLeft===c&&u.scrollTop===l||o._setScrollPosition(u)}},o._onScroll=function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,r=t.cellLayoutManager,n=t.height,i=t.isScrollingChange,a=t.width,s=o._scrollbarSize,c=r.getTotalSize(),l=c.height,u=c.width,p=Math.max(0,Math.min(u-a+s,e.target.scrollLeft)),d=Math.max(0,Math.min(l-n+s,e.target.scrollTop));if(o.state.scrollLeft!==p||o.state.scrollTop!==d){var h=e.cancelable?_:E;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:p,scrollPositionChangeReason:h,scrollTop:d})}o._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:d,totalWidth:u,totalHeight:l})}},o._scrollbarSize=b()(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return(0,u.Z)(t,e),(0,c.Z)(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,r=e.scrollLeft,n=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=b()(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(r>=0||i>=0)&&this._setScrollPosition({scrollLeft:r,scrollTop:i}),this._invokeOnSectionRenderedHelper();var o=t.getTotalSize(),a=o.height,s=o.width;this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:i||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,n=r.height,i=r.scrollToAlignment,o=r.scrollToCell,a=r.width,s=this.state,c=s.scrollLeft,l=s.scrollPositionChangeReason,u=s.scrollTop;l===E&&(c>=0&&c!==t.scrollLeft&&c!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=c),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),n===e.height&&i===e.scrollToAlignment&&o===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,r=e.cellCount,i=e.cellLayoutManager,o=e.className,a=e.height,s=e.horizontalOverscanSize,c=e.id,l=e.noContentRenderer,u=e.style,d=e.verticalOverscanSize,f=e.width,m=this.state,g=m.isScrolling,v=m.scrollLeft,y=m.scrollTop;(this._lastRenderedCellCount!==r||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=r,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var b=i.getTotalSize(),_=b.height,E=b.width,w=Math.max(0,v-s),L=Math.max(0,y-d),x=Math.min(E,v+f+s),S=Math.min(_,y+a+d),O=a>0&&f>0?i.cellRenderers({height:S-L,isScrolling:g,width:x-w,x:w,y:L}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},I=_>a?this._scrollbarSize:0,P=E>f?this._scrollbarSize:0;return T.overflowX=E+I<=f?"hidden":"auto",T.overflowY=_+P<=a?"hidden":"auto",p.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:h()("ReactVirtualized__Collection",o),id:c,onScroll:this._onScroll,role:"grid",style:(0,n.Z)({},T,u),tabIndex:0},r>0&&p.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:_,maxHeight:_,maxWidth:E,overflow:"hidden",pointerEvents:g?"none":"",width:E}},O),0===r&&l())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,i=e.totalHeight,o=e.totalWidth;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:r,scrollTop:n,scrollWidth:o})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:E};t>=0&&(n.scrollLeft=t),r>=0&&(n.scrollTop=r),(t>=0&&t!==this.state.scrollLeft||r>=0&&r!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop}:null:{scrollLeft:0,scrollTop:0}}}]),t}(p.PureComponent);w.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},w.propTypes={},(0,f.polyfill)(w);const L=w;const x=function(){function e(t){var r=t.height,n=t.width,i=t.x,o=t.y;(0,s.Z)(this,e),this.height=r,this.width=n,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return(0,c.Z)(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}();const S=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;(0,s.Z)(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return(0,c.Z)(e,[{key:"getCellIndices",value:function(e){var t=e.height,r=e.width,n=e.x,i=e.y,o={};return this.getSections({height:t,width:r,x:n,y:i}).forEach((function(e){return e.getCellIndices().forEach((function(e){o[e]=e}))})),g()(o).map((function(e){return o[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,r=e.width,n=e.x,i=e.y,o=Math.floor(n/this._sectionSize),a=Math.floor((n+r-1)/this._sectionSize),s=Math.floor(i/this._sectionSize),c=Math.floor((i+t-1)/this._sectionSize),l=[],u=o;u<=a;u++)for(var p=s;p<=c;p++){var d=u+"."+p;this._sections[d]||(this._sections[d]=new x({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:p*this._sectionSize})),l.push(this._sections[d])}return l}},{key:"getTotalSectionCount",value:function(){return g()(this._sections).length}},{key:"toString",value:function(){var e=this;return g()(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,r=e.index;this._cellMetadata[r]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:r})}))}}]),e}();function O(e){var t=e.align,r=void 0===t?"auto":t,n=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,s=n,c=s-o+i;switch(r){case"start":return s;case"end":return c;case"center":return s-(o-i)/2;default:return Math.max(c,Math.min(s,a))}}var T=function(e){function t(e,r){(0,s.Z)(this,t);var n=(0,l.Z)(this,(t.__proto__||a()(t)).call(this,e,r));return n._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(n),n._setCollectionViewRef=n._setCollectionViewRef.bind(n),n}return(0,u.Z)(t,e),(0,c.Z)(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=(0,i.Z)(this.props,[]);return p.createElement(L,(0,n.Z)({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,i=[],o=new S(n),a=0,s=0,c=0;c<t;c++){var l=r({index:c});if(null==l.height||isNaN(l.height)||null==l.width||isNaN(l.width)||null==l.x||isNaN(l.x)||null==l.y||isNaN(l.y))throw Error("Invalid metadata returned for cell "+c+":\n x:"+l.x+", y:"+l.y+", width:"+l.width+", height:"+l.height);a=Math.max(a,l.y+l.height),s=Math.max(s,l.x+l.width),i[c]=l,o.registerCell({cellMetadatum:l,index:c})}return{cellMetadata:i,height:a,sectionManager:o,width:s}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,r=e.cellIndex,n=e.height,i=e.scrollLeft,o=e.scrollTop,a=e.width,s=this.props.cellCount;if(r>=0&&r<s){var c=this._cellMetadata[r];i=O({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:i,targetIndex:r}),o=O({align:t,cellOffset:c.y,cellSize:c.height,containerSize:n,currentOffset:o,targetIndex:r})}return{scrollLeft:i,scrollTop:o}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,r=e.height,n=e.isScrolling,i=e.width,o=e.x,a=e.y,s=this.props,c=s.cellGroupRenderer,l=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:r,width:i,x:o,y:a}),c({cellCache:this._cellCache,cellRenderer:l,cellSizeAndPositionGetter:function(e){var r=e.index;return t._sectionManager.getCellMetadata({index:r})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(p.PureComponent);T.defaultProps={"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,r=e.cellRenderer,n=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map((function(e){var i=n({index:e}),a={index:e,isScrolling:o,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return o?(e in t||(t[e]=r(a)),t[e]):r(a)})).filter((function(e){return!!e}))}};const I=T;T.propTypes={}},13218:(e,t,r)=>{"use strict";
/** @license React v16.14.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=r(99813),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,p=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,f=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||y}function E(){}function w(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=_.prototype;var L=w.prototype=new E;L.constructor=w,n(L,_.prototype),L.isPureReactComponent=!0;var x={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var n,i={},a=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,n)&&!O.hasOwnProperty(n)&&(i[n]=t[n]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in c=e.defaultProps)void 0===i[n]&&(i[n]=c[n]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:x.current}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var P=/\/+/g,C=[];function A(e,t,r,n){if(C.length){var i=C.pop();return i.result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function k(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>C.length&&C.push(e)}function D(e,t,r,n){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return r(n,e,""===t?"."+R(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=t+R(i=e[c],c);s+=D(i,l,r,n)}else if(null===e||"object"!=typeof e?l=null:l="function"==typeof(l=g&&e[g]||e["@@iterator"])?l:null,"function"==typeof l)for(e=l.call(e),c=0;!(i=e.next()).done;)s+=D(i=i.value,l=t+R(i,c++),r,n);else if("object"===i)throw r=""+e,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return s}function N(e,t,r){return null==e?0:D(e,"",t,r)}function R(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 M(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Z(e,n,r,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+r)),n.push(e))}function Z(e,t,r,n,i){var o="";null!=r&&(o=(""+r).replace(P,"$&/")+"/"),N(e,j,t=A(t,o,n,i)),k(t)}var F={current:null};function B(){var e=F.current;if(null===e)throw Error(v(321));return e}var G={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Z(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;N(e,M,t=A(null,null,t,r)),k(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return Z(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(v(143));return e}},t.Component=_,t.Fragment=s,t.Profiler=l,t.PureComponent=w,t.StrictMode=c,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,t.cloneElement=function(e,t,r){if(null==e)throw Error(v(267,e));var i=n({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!O.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var p=0;p<u;p++)l[p]=arguments[p+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return B().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,r){return B().useReducer(e,t,r)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},89526:(e,t,r)=>{"use strict";e.exports=r(13218)},32390:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.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,n){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new I(n||[]);return o._invoke=function(e,t,r){var n=p;return function(i,o){if(n===h)throw new Error("Generator is already running");if(n===f){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=u(e,t,r);if("normal"===c.type){if(n=r.done?f:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=f,r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",f="completed",m={};function g(){}function v(){}function y(){}var b={};c(b,o,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(P([])));E&&E!==r&&n.call(E,o)&&(b=E);var w=y.prototype=g.prototype=Object.create(b);function L(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=u(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:C}}function C(){return{value:t,done:!0}}return v.prototype=y,c(w,"constructor",y),c(y,"constructor",v),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(w),e},e.awrap=function(e){return{__await:e}},L(x.prototype),c(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new x(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(w),c(w,s,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},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 r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):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),m},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),T(r),m}},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 i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},10536:(e,t,r)=>{"use strict";var n=r(32389),i=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,s=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,c=/[\. ]+$/;function l(e,t){if("string"!=typeof e)throw new Error("Input must be string");var r=e.replace(i,t).replace(o,t).replace(a,t).replace(s,t).replace(c,t);return n(r,255)}e.exports=function(e,t){var r=t&&t.replacement||"",n=l(e,r);return""===r?n:l(n,"")}},41196:(e,t)=>{"use strict";
/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r,n,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,l=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(l,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(l,0))},n=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var g=d.now();t.unstable_now=function(){return d.now()-g}}var v=!1,y=null,b=-1,_=5,E=0;o=function(){return t.unstable_now()>=E},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,L=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+_;try{y(!0,e)?L.postMessage(null):(v=!1,y=null)}catch(e){throw L.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,L.postMessage(null))},n=function(e,r){b=h((function(){e(t.unstable_now())}),r)},i=function(){f(b),b=-1}}function x(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(!(void 0!==i&&0<T(i,t)))break e;e[n]=t,e[r]=i,r=n}}function S(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>T(a,r))void 0!==c&&0>T(c,a)?(e[n]=c,e[s]=r,n=s):(e[n]=a,e[o]=r,n=o);else{if(!(void 0!==c&&0>T(c,r)))break e;e[n]=c,e[s]=r,n=s}}}return t}return null}function T(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var I=[],P=[],C=1,A=null,k=3,D=!1,N=!1,R=!1;function M(e){for(var t=S(P);null!==t;){if(null===t.callback)O(P);else{if(!(t.startTime<=e))break;O(P),t.sortIndex=t.expirationTime,x(I,t)}t=S(P)}}function j(e){if(R=!1,M(e),!N)if(null!==S(I))N=!0,r(Z);else{var t=S(P);null!==t&&n(j,t.startTime-e)}}function Z(e,r){N=!1,R&&(R=!1,i()),D=!0;var a=k;try{for(M(r),A=S(I);null!==A&&(!(A.expirationTime>r)||e&&!o());){var s=A.callback;if(null!==s){A.callback=null,k=A.priorityLevel;var c=s(A.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?A.callback=c:A===S(I)&&O(I),M(r)}else O(I);A=S(I)}if(null!==A)var l=!0;else{var u=S(P);null!==u&&n(j,u.startTime-r),l=!1}return l}finally{A=null,k=a,D=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||D||(N=!0,r(Z))},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_getFirstCallbackNode=function(){return S(I)},t.unstable_next=function(e){switch(k){case 1:case 2:case 3:var t=3;break;default:t=k}var r=k;k=t;try{return e()}finally{k=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=k;k=e;try{return t()}finally{k=r}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:F(e)}else a=F(e),c=s;return e={id:C++,callback:o,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,x(P,e),null===S(I)&&e===S(P)&&(R?i():R=!0,n(j,c-s))):(e.sortIndex=a,x(I,e),N||D||(N=!0,r(Z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var r=S(I);return r!==A&&null!==A&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<A.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=k;return function(){var r=k;k=t;try{return e.apply(this,arguments)}finally{k=r}}}},72851:(e,t,r)=>{"use strict";e.exports=r(41196)},72106:e=>{e.exports=function(e,t){for(var r=e.split("."),n=t.split("."),i=0;i<3;i++){var o=Number(r[i]),a=Number(n[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return 0}},74765:(e,t,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=i;const o=r(4681),{re:a,t:s}=r(79720),c=r(97221),l=r(36638),u=r(53292),p=r(83514)},83514:(e,t,r)=>{class n{constructor(e,t){if(t=o(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=((this.options.includePrerelease&&f)|(this.options.loose&&m))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,o=n?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,P(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],p),s("comparator trim",e);let c=(e=(e=(e=e.replace(l[u.TILDETRIM],d)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));n&&(c=c.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",c);const v=new Map,y=c.map((e=>new a(e,this.options)));for(const e of y){if(g(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const _=[...v.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(C(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const i=new(r(25271))({max:1e3}),o=r(4681),a=r(74765),s=r(36638),c=r(53292),{re:l,t:u,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:h}=r(79720),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:m}=r(31087),g=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},b=(e,t)=>(s("comp",e,t),e=L(e,t),s("caret",e),e=E(e,t),s("tildes",e),e=S(e,t),s("xrange",e),e=T(e,t),s("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const r=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),_(r)?a="":_(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:_(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},L=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{s("caret",e,t);const r=t.loose?l[u.CARETLOOSE]:l[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let c;return s("caret",e,t,r,i,o,a),_(r)?c="":_(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(o)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",c),c}))},S=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(r,((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const l=_(i),u=l||_(o),p=u||_(a),d=p;return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r}))},T=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),I=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),P=e=>(t,r,n,i,o,a,s,c,l,u,p,d,h)=>`${r=_(n)?"":_(i)?`>=${n}.0.0${e?"-0":""}`:_(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=_(l)?"":_(u)?`<${+l+1}.0.0-0`:_(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:`<=${c}`}`.trim(),C=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},53292:(e,t,r)=>{const n=r(36638),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(31087),{re:a,t:s}=r(79720),c=r(4681),{compareIdentifiers:l}=r(32283);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const r=this.build[t],i=e.build[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},97221:(e,t,r)=>{const n=r(56355),i=r(62556),o=r(30873),a=r(54148),s=r(31258),c=r(95256);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return i(e,r,l);case">":return o(e,r,l);case">=":return a(e,r,l);case"<":return s(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},7569:(e,t,r)=>{const n=r(53292);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},56355:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>0===n(e,t,r)},30873:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>n(e,t,r)>0},54148:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>n(e,t,r)>=0},31258:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>n(e,t,r)<0},95256:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>n(e,t,r)<=0},62556:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>0!==n(e,t,r)},93286:(e,t,r)=>{const n=r(83514);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},31087:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},36638:(e,t,r)=>{var n=r(82530);const i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},32283:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},4681:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},79720:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(31087),i=r(36638),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;i(e,n,t),s[e]=n,a[n]=t,o[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),l("FULL",`^${a[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),l("LOOSE",`^${a[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),l("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",a[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},25271:(e,t,r)=>{"use strict";const n=r(70475),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),p=Symbol("lruList"),d=Symbol("cache"),h=Symbol("updateAgeOnGet"),f=()=>1;const m=(e,t,r)=>{const n=e[d].get(t);if(n){const t=n.value;if(g(e,t)){if(y(e,n),!e[s])return}else r&&(e[h]&&(n.value.now=Date.now()),e[p].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},v=e=>{if(e[o]>e[i])for(let t=e[p].tail;e[o]>e[i]&&null!==t;){const r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){const r=t.value;e[l]&&e[l](r.key,r.value),e[o]-=r.length,e[d].delete(r.key),e[p].removeNode(t)}};class b{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const _=(e,t,r,n)=>{let i=r.value;g(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||f;if(this[a]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,v(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[o]=0,this[p].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),v(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let r=this[p].tail;null!==r;){const n=r.prev;_(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[p].head;null!==r;){const n=r.next;_(this,e,r,t),r=n}}keys(){return this[p].toArray().map((e=>e.key))}values(){return this[p].toArray().map((e=>e.value))}reset(){this[l]&&this[p]&&this[p].length&&this[p].forEach((e=>this[l](e.key,e.value))),this[d]=new Map,this[p]=new n,this[o]=0}dump(){return this[p].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[p]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](t,e);if(this[d].has(e)){if(s>this[i])return y(this,this[d].get(e)),!1;const a=this[d].get(e).value;return this[l]&&(this[u]||this[l](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),v(this),!0}const h=new b(e,t,s,n,r);return h.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=h.length,this[p].unshift(h),this[d].set(e,this[p].head),v(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[p].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[d].forEach(((e,t)=>m(this,t,!1)))}}},50241:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},70475:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;var a=[];for(n=0;o&&n<t;n++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(50241)(n)}catch(e){}},72704:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},29449:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},12817:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},32389:(e,t,r)=>{"use strict";var n=r(17823),i=r(45322);e.exports=n.bind(null,i)},17823:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}e.exports=function(e,n,i){if("string"!=typeof n)throw new Error("Input must be string");for(var o,a,s=n.length,c=0,l=0;l<s;l+=1){if(o=n.charCodeAt(l),a=n[l],t(o)&&r(n.charCodeAt(l+1))&&(a+=n[l+=1]),(c+=e(a))===i)return n.slice(0,l+1);if(c>i)return n.slice(0,l-a.length+1)}return n}},20859:function(e,t){var r,n,i;n=[],void 0===(i="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 i(i){var o="";e[i.charAt(0)]&&(o=i.charAt(0),i=i.substring(1));var a="",s="",c=!0,l=!1,u=!1;"+"==o?c=!1:"."==o?(s=".",a="."):"/"==o?(s="/",a="/"):"#"==o?(s="#",c=!1):";"==o?(s=";",a=";",l=!0,u=!0):"?"==o?(s="?",a="&",l=!0):"&"==o&&(s="&",a="&",l=!0);for(var p=[],d=i.split(","),h=[],f={},m=0;m<d.length;m++){var g=d[m],v=null;if(-1!=g.indexOf(":")){var y=g.split(":");g=y[0],v=parseInt(y[1])}for(var b={};t[g.charAt(g.length-1)];)b[g.charAt(g.length-1)]=!0,g=g.substring(0,g.length-1);var _={truncate:v,name:g,suffices:b};h.push(_),f[g]=_,p.push(g)}var E=function(e){for(var t="",n=0,i=0;i<h.length;i++){var o=h[i],p=e(o.name);if(null==p||Array.isArray(p)&&0==p.length||"object"==typeof p&&0==Object.keys(p).length)n++;else if(t+=i==n?s:a||",",Array.isArray(p)){l&&(t+=o.name+"=");for(var d=0;d<p.length;d++)d>0&&(t+=o.suffices["*"]&&a||",",o.suffices["*"]&&l&&(t+=o.name+"=")),t+=c?encodeURIComponent(p[d]).replace(/!/g,"%21"):r(p[d])}else if("object"==typeof p){l&&!o.suffices["*"]&&(t+=o.name+"=");var f=!0;for(var m in p)f||(t+=o.suffices["*"]&&a||","),f=!1,t+=c?encodeURIComponent(m).replace(/!/g,"%21"):r(m),t+=o.suffices["*"]?"=":",",t+=c?encodeURIComponent(p[m]).replace(/!/g,"%21"):r(p[m])}else l&&(t+=o.name,u&&""==p||(t+="=")),null!=o.truncate&&(p=p.substring(0,o.truncate)),t+=c?encodeURIComponent(p).replace(/!/g,"%21"):r(p)}return t},w=function(e,t,r){if(s&&(e=e.substring(s.length)),1==h.length&&h[0].suffices["*"]){for(var i=(L=h[0]).name,o=L.suffices["*"]?e.split(a||","):[e],u=c&&-1!=e.indexOf("="),p=1;p<o.length;p++)e=o[p],u&&-1==e.indexOf("=")&&(o[p-1]+=(a||",")+e,o.splice(p,1),p--);for(p=0;p<o.length;p++)e=o[p],c&&-1!=e.indexOf("=")&&(u=!0),1==(y=e.split(",")).length?o[p]=y[0]:o[p]=y;if(l||u){for(var d=t[i]||{},m=0;m<o.length;m++){var g=e;if(!l||g){if("string"==typeof o[m]){var v=(e=o[m]).split("=",1)[0];if(e=e.substring(v.length+1),c){if(r&&!n(e))return;e=decodeURIComponent(e)}g=e}else{if(v=(e=o[m][0]).split("=",1)[0],e=e.substring(v.length+1),c){if(r&&!n(e))return;e=decodeURIComponent(e)}o[m][0]=e,g=o[m]}if(c){if(r&&!n(v))return;v=decodeURIComponent(v)}void 0!==d[v]?Array.isArray(d[v])?d[v].push(g):d[v]=[d[v],g]:d[v]=g}}1==Object.keys(d).length&&void 0!==d[i]?t[i]=d[i]:t[i]=d}else{if(c)for(m=0;m<o.length;m++){var y=o[m];if(Array.isArray(y))for(var b=0;b<y.length;b++){if(r&&!n(y[b]))return;y[b]=decodeURIComponent(y[b])}else{if(r&&!n(y))return;o[m]=decodeURIComponent(y)}}void 0!==t[i]?Array.isArray(t[i])?t[i]=t[i].concat(o):t[i]=[t[i]].concat(o):1!=o.length||L.suffices["*"]?t[i]=o:t[i]=o[0]}}else{o=1==h.length?[e]:e.split(a||",");var _={};for(p=0;p<o.length;p++){for(var E=0;E<h.length-1&&E<p&&!h[E].suffices["*"];E++);if(E!=p){for(var w=h.length-1;w>0&&h.length-w<o.length-p&&!h[w].suffices["*"];w--);h.length-w!=o.length-p?_[p]=E:_[p]=w}else _[p]=p}for(p=0;p<o.length;p++)if((e=o[p])||!l){if(y=e.split(","),u=!1,l){i=(e=y[0]).split("=",1)[0],e=e.substring(i.length+1),y[0]=e;var L=f[i]||h[0]}else i=(L=h[_[p]]).name;for(m=0;m<y.length;m++)if(c){if(r&&!n(y[m]))return;y[m]=decodeURIComponent(y[m])}(l||L.suffices["*"])&&void 0!==t[i]?Array.isArray(t[i])?t[i]=t[i].concat(y):t[i]=[t[i]].concat(y):1!=y.length||L.suffices["*"]?t[i]=y:t[i]=y[0]}}return 1};return{varNames:p,prefix:s,substitution:E,unSubstitution:w}}function o(e){if(!(this instanceof o))return new o(e);for(var t=e.split("{"),r=[t.shift()],n=[],a=[],s=[],c=[];t.length>0;){var l=t.shift(),u=l.split("}")[0],p=l.substring(u.length+1),d=i(u);a.push(d.substitution),s.push(d.unSubstitution),n.push(d.prefix),r.push(p),c=c.concat(d.varNames)}this.fill=function(e){if(e&&"function"!=typeof e){var t=e;e=function(e){return t[e]}}for(var n=r[0],i=0;i<a.length;i++)n+=(0,a[i])(e),n+=r[i+1];return n},this.fromUri=function(e,t){t=t||{};for(var i={},o=0;o<r.length;o++){var a=r[o];if(e.substring(0,a.length)!==a)return;if(e=e.substring(a.length),o>=r.length-1){if(""==e)break;return}var c=n[o];if(!c||e.substring(0,c.length)===c){for(var l=r[o+1],u=o;;){if(u==r.length-2){var p=e.substring(e.length-l.length);if(p!==l)return;var d=e.substring(0,e.length-l.length);e=p}else if(l){var h=e.indexOf(l);d=e.substring(0,h),e=e.substring(h)}else if(n[u+1])-1===(h=e.indexOf(n[u+1]))&&(h=e.length),d=e.substring(0,h),e=e.substring(h);else{if(r.length>u+2){u++,l=r[u+1];continue}d=e,e=""}break}if(!s[o](d,i,t.strict))return}}return i},this.varNames=c,this.template=e}return o.prototype={toString:function(){return this.template},fillFromObject:function(e){return this.fill(e)},test:function(e,t){return!!this.fromUri(e,t)}},o})?r.apply(t,n):r)||(e.exports=i)},45322:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var n=e.length,i=0,o=null,a=null,s=0;s<n;s++)r(o=e.charCodeAt(s))?null!=a&&t(a)?i+=1:i+=3:o<=127?i+=1:o>=128&&o<=2047?i+=2:o>=2048&&o<=65535&&(i+=3),a=o;return i}},50586:(e,t,r)=>{var n=r(36589),i=r(22708),o=i;o.v1=n,o.v4=i,e.exports=o},98726:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},76338:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},36589:(e,t,r)=>{var n,i,o=r(76338),a=r(98726),s=0,c=0;e.exports=function(e,t,r){var l=t&&r||0,u=t||[],p=(e=e||{}).node||n,d=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==d){var h=o();null==p&&(p=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==d&&(d=i=16383&(h[6]<<8|h[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=f-s+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||f>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,c=m,i=d;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var y=f/4294967296*1e4&268435455;u[l++]=y>>>8&255,u[l++]=255&y,u[l++]=y>>>24&15|16,u[l++]=y>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var b=0;b<6;++b)u[l+b]=p[b];return t||a(u)}},22708:(e,t,r)=>{var n=r(76338),i=r(98726);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},89198:e=>{"use strict";e.exports=function(){}},20286:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},83462:(e,t,r)=>{function n(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}n.prototype.parseFromString=function(e,t){var r=this.options,n=new l,o=r.domBuilder||new i,s=r.errorHandler,c=r.locator,u=r.xmlns||{},p={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),n.errorHandler=function(e,t,r){if(!e){if(t instanceof i)return t;e=t}var n={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(r){e(t,r)}:e),n[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(r))}||function(){}}return r=r||{},s("warning"),s("error"),s("fatalError"),n}(s,o,c),n.domBuilder=r.domBuilder||o,/\/x?html?$/.test(t)&&(p.nbsp=" ",p.copy="©",u[""]="http://www.w3.org/1999/xhtml"),u.xml=u.xml||"http://www.w3.org/XML/1998/namespace",e?n.parse(e,u,p):n.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new u).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var i=this.doc,a=i.createElementNS(e,r||t),s=n.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var l=0;l<s;l++){e=n.getURI(l);var u=n.getValue(l),p=(r=n.getQName(l),i.createAttributeNS(e,r));this.locator&&o(n.getLocator(l),p),p.value=p.nodeValue=u,a.setAttributeNode(p)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName;this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,r),c(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=s.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&o(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=s.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&o(this.locator,n),c(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(e,t,r);this.locator&&o(this.locator,i),c(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){i.prototype[e]=function(){return null}}));var l=r(31284).G,u=r(24929).DOMImplementation;r(24929),t.a=n},24929:(e,t)=>{function r(e,t){for(var r in e)t[r]=e[r]}function n(e,t){var n=e.prototype;if(Object.create){var i=Object.create(t.prototype);n.__proto__=i}if(!(n instanceof t)){function o(){}o.prototype=t.prototype,r(n,o=new o),e.prototype=n=o}n.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),n.constructor=e)}var i={},o=i.ELEMENT_NODE=1,a=i.ATTRIBUTE_NODE=2,s=i.TEXT_NODE=3,c=i.CDATA_SECTION_NODE=4,l=i.ENTITY_REFERENCE_NODE=5,u=i.ENTITY_NODE=6,p=i.PROCESSING_INSTRUCTION_NODE=7,d=i.COMMENT_NODE=8,h=i.DOCUMENT_NODE=9,f=i.DOCUMENT_TYPE_NODE=10,m=i.DOCUMENT_FRAGMENT_NODE=11,g=i.NOTATION_NODE=12,v={},y={},b=(v.INDEX_SIZE_ERR=(y[1]="Index size error",1),v.DOMSTRING_SIZE_ERR=(y[2]="DOMString size error",2),v.HIERARCHY_REQUEST_ERR=(y[3]="Hierarchy request error",3)),_=(v.WRONG_DOCUMENT_ERR=(y[4]="Wrong document",4),v.INVALID_CHARACTER_ERR=(y[5]="Invalid character",5),v.NO_DATA_ALLOWED_ERR=(y[6]="No data allowed",6),v.NO_MODIFICATION_ALLOWED_ERR=(y[7]="No modification allowed",7),v.NOT_FOUND_ERR=(y[8]="Not found",8)),E=(v.NOT_SUPPORTED_ERR=(y[9]="Not supported",9),v.INUSE_ATTRIBUTE_ERR=(y[10]="Attribute in use",10));v.INVALID_STATE_ERR=(y[11]="Invalid state",11),v.SYNTAX_ERR=(y[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(y[13]="Invalid modification",13),v.NAMESPACE_ERR=(y[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(y[15]="Invalid access",15);function w(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,y[e]),this.message=y[e],Error.captureStackTrace&&Error.captureStackTrace(this,w);return r.code=e,t&&(this.message=this.message+": "+t),r}function L(){}function x(e,t){this._node=e,this._refresh=t,S(this)}function S(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);ne(e,"length",n.length),r(n,e),e._inc=t}}function O(){}function T(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function I(e,t,r,n){if(n?t[T(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&R(i,e,n),function(e,t,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==r.namespaceURI&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(i,e,r))}}function P(e,t,r){var n=T(t,r);if(!(n>=0))throw w(_,new Error(e.tagName+"@"+r));for(var i=t.length-1;n<i;)t[n]=t[++n];if(t.length=i,e){var o=e.ownerDocument;o&&(R(o,e,r),r.ownerElement=null)}}function C(e){if(this._features={},e)for(var t in e)this._features=e[t]}function A(){}function k(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function D(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(D(e,t))return!0}while(e=e.nextSibling)}function N(){}function R(e,t,r,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==r.namespaceURI&&delete t._nsMap[r.prefix?r.localName:""]}function M(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var i=t.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o}}}function j(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,M(e.ownerDocument,e),t}function Z(e,t,r){var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===m){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=r?r.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=r,a?a.nextSibling=i:e.firstChild=i,null==r?e.lastChild=o:r.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return M(e.ownerDocument||e,e),t.nodeType==m&&(t.firstChild=t.lastChild=null),t}function F(){this._nsMap={}}function B(){}function G(){}function U(){}function z(){}function V(){}function H(){}function Y(){}function W(){}function $(){}function K(){}function q(){}function X(){}function J(e,t){var r=[],n=9==this.nodeType?this.documentElement:this,i=n.prefix,o=n.namespaceURI;if(o&&null==i&&null==(i=n.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return ee(this,r,e,t,a),r.join("")}function Q(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!n&&!i)return!1;if("xml"===n&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=r.length;o--;){var a=r[o];if(a.prefix==n)return a.namespace!=i}return!0}function ee(e,t,r,n,i){if(n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case o:i||(i=[]);i.length;var u=e.attributes,g=u.length,v=e.firstChild,y=e.tagName;r="http://www.w3.org/1999/xhtml"===e.namespaceURI||r,t.push("<",y);for(var b=0;b<g;b++){"xmlns"==(_=u.item(b)).prefix?i.push({prefix:_.localName,namespace:_.value}):"xmlns"==_.nodeName&&i.push({prefix:"",namespace:_.value})}for(b=0;b<g;b++){var _;if(Q(_=u.item(b),0,i)){var E=_.prefix||"",w=_.namespaceURI,L=E?" xmlns:"+E:" xmlns";t.push(L,'="',w,'"'),i.push({prefix:E,namespace:w})}ee(_,t,r,n,i)}if(Q(e,0,i)){E=e.prefix||"",w=e.namespaceURI,L=E?" xmlns:"+E:" xmlns";t.push(L,'="',w,'"'),i.push({prefix:E,namespace:w})}if(v||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(y)){if(t.push(">"),r&&/^script$/i.test(y))for(;v;)v.data?t.push(v.data):ee(v,t,r,n,i),v=v.nextSibling;else for(;v;)ee(v,t,r,n,i),v=v.nextSibling;t.push("</",y,">")}else t.push("/>");return;case h:case m:for(v=e.firstChild;v;)ee(v,t,r,n,i),v=v.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,k),'"');case s:return t.push(e.data.replace(/[<&]/g,k));case c:return t.push("<![CDATA[",e.data,"]]>");case d:return t.push("\x3c!--",e.data,"--\x3e");case f:var x=e.publicId,S=e.systemId;if(t.push("<!DOCTYPE ",e.name),x)t.push(' PUBLIC "',x),S&&"."!=S&&t.push('" "',S),t.push('">');else if(S&&"."!=S)t.push(' SYSTEM "',S,'">');else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case p:return t.push("<?",e.target," ",e.data,"?>");case l:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,r){var n;switch(t.nodeType){case o:(n=t.cloneNode(!1)).ownerDocument=e;case m:break;case a:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var i=t.firstChild;i;)n.appendChild(te(e,i,r)),i=i.nextSibling;return n}function re(e,t,r){var n=new t.constructor;for(var i in t){var s=t[i];"object"!=typeof s&&s!=n[i]&&(n[i]=s)}switch(t.childNodes&&(n.childNodes=new L),n.ownerDocument=e,n.nodeType){case o:var c=t.attributes,l=n.attributes=new O,u=c.length;l._ownerElement=n;for(var p=0;p<u;p++)n.setAttributeNode(re(e,c.item(p),!0));break;case a:r=!0}if(r)for(var d=t.firstChild;d;)n.appendChild(re(e,d,r)),d=d.nextSibling;return n}function ne(e,t,r){e[t]=r}w.prototype=Error.prototype,r(v,w),L.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)ee(this[n],r,e,t);return r.join("")}},x.prototype.item=function(e){return S(this),this[e]},n(x,L),O.prototype={length:0,item:L.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new w(E);var r=this.getNamedItem(e.nodeName);return I(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new w(E);return t=this.getNamedItemNS(e.namespaceURI,e.localName),I(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return P(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return P(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},C.prototype={hasFeature:function(e,t){var r=this._features[e.toLowerCase()];return!(!r||t&&!(t in r))},createDocument:function(e,t,r){var n=new N;if(n.implementation=this,n.childNodes=new L,n.doctype=r,r&&n.appendChild(r),t){var i=n.createElementNS(e,t);n.appendChild(i)}return n},createDocumentType:function(e,t,r){var n=new H;return n.name=e,n.nodeName=e,n.publicId=t,n.systemId=r,n}},A.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Z(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return j(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return re(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==s&&e.nodeType==s?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(r[n]==e)return n;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&e in r)return r[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},r(i,A),r(i,A.prototype),N.prototype={nodeName:"#document",nodeType:h,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==m){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return null==this.documentElement&&e.nodeType==o&&(this.documentElement=e),Z(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),j(this,e)},importNode:function(e,t){return te(this,e,t)},getElementById:function(e){var t=null;return D(this.documentElement,(function(r){if(r.nodeType==o&&r.getAttribute("id")==e)return t=r,!0})),t},createElement:function(e){var t=new F;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new L,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new K;return e.ownerDocument=this,e.childNodes=new L,e},createTextNode:function(e){var t=new U;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new z;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new q;return r.ownerDocument=this,r.tagName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new B;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new $;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new F,n=t.split(":"),i=r.attributes=new O;return r.childNodes=new L,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r},createAttributeNS:function(e,t){var r=new B,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},n(N,A),F.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===m?this.insertBefore(e,null):function(e,t){var r=t.parentNode;if(r){var n=e.lastChild;r.removeChild(t),n=e.lastChild}return n=e.lastChild,t.parentNode=e,t.previousSibling=n,t.nextSibling=null,n?n.nextSibling=t:e.firstChild=t,e.lastChild=t,M(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new x(this,(function(t){var r=[];return D(t,(function(n){n===t||n.nodeType!=o||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new x(this,(function(r){var n=[];return D(r,(function(i){i===r||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||n.push(i)})),n}))}},N.prototype.getElementsByTagName=F.prototype.getElementsByTagName,N.prototype.getElementsByTagNameNS=F.prototype.getElementsByTagNameNS,n(F,A),B.prototype.nodeType=a,n(B,A),G.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(y[b])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},n(G,A),U.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},n(U,G),z.prototype={nodeName:"#comment",nodeType:d},n(z,G),V.prototype={nodeName:"#cdata-section",nodeType:c},n(V,G),H.prototype.nodeType=f,n(H,A),Y.prototype.nodeType=g,n(Y,A),W.prototype.nodeType=u,n(W,A),$.prototype.nodeType=l,n($,A),K.prototype.nodeName="#document-fragment",K.prototype.nodeType=m,n(K,A),q.prototype.nodeType=p,n(q,A),X.prototype.serializeToString=function(e,t,r){return J.call(e,t,r)},A.prototype.toString=J;try{if(Object.defineProperty){function ie(e){switch(e.nodeType){case o:case m:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(ie(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(x.prototype,"length",{get:function(){return S(this),this.$$length}}),Object.defineProperty(A.prototype,"textContent",{get:function(){return ie(this)},set:function(e){switch(this.nodeType){case o:case m:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ne=function(e,t,r){e["$$"+t]=r}}}catch(oe){}t.DOMImplementation=C},31284:(e,t)=>{var r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+r.source+n.source+"*(?::"+r.source+n.source+"*)?$");function o(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,r,n,i,o){for(var a,s=++t,c=0;;){var l=e.charAt(s);switch(l){case"=":if(1===c)a=e.slice(t,s),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(l,t))>0))throw new Error("attribute value no end '"+l+"' match");u=e.slice(t,s).replace(/&#?\w+;/g,i),r.add(a,u,t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');u=e.slice(t,s).replace(/&#?\w+;/g,i),r.add(a,u,t),o.warning('attribute "'+a+'" missed start quot('+l+")!!"),t=s+1,c=5}break;case"/":switch(c){case 0:r.setTagName(e.slice(t,s));case 5:case 6:case 7:c=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&r.setTagName(e.slice(t,s)),s;case">":switch(c){case 0:r.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=e.slice(t,s)).slice(-1)&&(r.closed=!0,u=u.slice(0,-1));case 2:2===c&&(u=a),4==c?(o.warning('attribute "'+u+'" missed quot(")!!'),r.add(a,u.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===n[""]&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),r.add(u,u,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"":l=" ";default:if(l<=" ")switch(c){case 0:r.setTagName(e.slice(t,s)),c=6;break;case 1:a=e.slice(t,s),c=2;break;case 4:var u=e.slice(t,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+u+'" missed quot(")!!'),r.add(a,u,t);case 5:c=6}else switch(c){case 2:r.tagName;"http://www.w3.org/1999/xhtml"===n[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),r.add(a,a,t),t=s,c=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:c=1,t=s;break;case 3:c=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function c(e,t,r){for(var n=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,c=a.value;if((h=s.indexOf(":"))>0)var l=a.prefix=s.slice(0,h),u=s.slice(h+1),d="xmlns"===l&&u;else u=s,l=null,d="xmlns"===s&&"";a.localName=u,!1!==d&&(null==i&&(i={},p(r,r={})),r[d]=i[d]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(d,c))}for(o=e.length;o--;){(l=(a=e[o]).prefix)&&("xml"===l&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(a.uri=r[l||""]))}var h;(h=n.indexOf(":"))>0?(l=e.prefix=n.slice(0,h),u=e.localName=n.slice(h+1)):(l=null,u=e.localName=n);var f=e.uri=r[l||""];if(t.startElement(f,u,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=i,!0;if(t.endElement(f,u,n),i)for(l in i)t.endPrefixMapping(l)}function l(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("</"+r+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(r)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,n),i.characters(a,0,a.length),o)}return t+1}function u(e,t,r,n){var i=n[r];return null==i&&((i=e.lastIndexOf("</"+r+">"))<t&&(i=e.lastIndexOf("</"+r)),n[r]=i),i<t}function p(e,t){for(var r in e)t[r]=e[r]}function d(e,t,r,n){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(r.comment(e,t+4,i-t-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,i-t-9),r.endCDATA(),i+3}var o=function(e,t){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);for(;r=i.exec(e);)if(n.push(r),r[1])return n}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],c=a>3&&/^public$/i.test(o[2][0])&&o[3][0],l=a>4&&o[4][0],u=o[a-1];return r.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),l&&l.replace(/^(['"])(.*?)\1$/,"$2")),r.endDTD(),u.index+u[0].length}return-1}function h(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function f(e){}function m(e,t){return e.__proto__=t,e}o.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),p(t,t={}),function(e,t,r,n,i){function o(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function p(e){var t=e.slice(1,-1);return t in r?r[t]:"#"===t.charAt(0)?o(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function m(t){if(t>L){var r=e.substring(L,t).replace(/&#?\w+;/g,p);_&&g(L),n.characters(r,0,t-L),L=t}}function g(t,r){for(;t>=y&&(r=b.exec(e));)v=r.index,y=v+r[0].length,_.lineNumber++;_.columnNumber=t-v+1}var v=0,y=0,b=/.*(?:\r\n?|\n)|.*$/g,_=n.locator,E=[{currentNSMap:t}],w={},L=0;for(;;){try{var x=e.indexOf("<",L);if(x<0){if(!e.substr(L).match(/^\s*$/)){var S=n.doc,O=S.createTextNode(e.substr(L));S.appendChild(O),n.currentElement=O}return}switch(x>L&&m(x),e.charAt(x+1)){case"/":var T=e.indexOf(">",x+3),I=e.substring(x+2,T),P=E.pop();T<0?(I=e.substring(x+2).replace(/[\s<].*/,""),i.error("end tag name: "+I+" is not complete:"+P.tagName),T=x+1+I.length):I.match(/\s</)&&(I=I.replace(/[\s<].*/,""),i.error("end tag name: "+I+" maybe not complete"),T=x+1+I.length);var C=P.localNSMap,A=P.tagName==I;if(A||P.tagName&&P.tagName.toLowerCase()==I.toLowerCase()){if(n.endElement(P.uri,P.localName,I),C)for(var k in C)n.endPrefixMapping(k);A||i.fatalError("end tag name: "+I+" is not match the current start tagName:"+P.tagName)}else E.push(P);T++;break;case"?":_&&g(x),T=h(e,x,n);break;case"!":_&&g(x),T=d(e,x,n,i);break;default:_&&g(x);var D=new f,N=E[E.length-1].currentNSMap,R=(T=s(e,x,D,N,p,i),D.length);if(!D.closed&&u(e,T,D.tagName,w)&&(D.closed=!0,r.nbsp||i.warning("unclosed xml attribute")),_&&R){for(var M=a(_,{}),j=0;j<R;j++){var Z=D[j];g(Z.offset),Z.locator=a(_,{})}n.locator=M,c(D,n,N)&&E.push(D),n.locator=_}else c(D,n,N)&&E.push(D);"http://www.w3.org/1999/xhtml"!==D.uri||D.closed?T++:T=l(e,T,D.tagName,p,n)}}catch(e){i.error("element parse error: "+e),T=-1}T>L?L=T:m(Math.max(x,L)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}},f.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,r){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},m({},m.prototype)instanceof m||(m=function(e,t){function r(){}for(t in r.prototype=t,r=new r,e)r[t]=e[t];return r}),t.G=o},28972:()=>{try{const e=(window.nodeRequire||require)("module").Module,t=e._resolveLookupPaths.bind(e);e._resolveLookupPaths=(e,r)=>{const n=r.paths;r.paths=[],n?.length>0&&r.paths.push(n[0]);const i=t(e,r);return r.paths=n,i}}catch(e){console.log("Error applying module path restriction:",e)}},92188:(e,t,r)=>{window.ccLibrariesPublicPath&&(r.p=window.ccLibrariesPublicPath)},28069:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AH404Error-usage",viewBox:"18.37 17 134.63 87",url:r.p+"resources/icons.svg#AH404Error",toString:function(){return this.url}}},79337:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AHEmptyLibrary-usage",viewBox:"0 0 310 215",url:r.p+"resources/icons.svg#AHEmptyLibrary",toString:function(){return this.url}}},35213:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ActivateFonts-usage",viewBox:"0 0 26 26",url:r.p+"resources/icons.svg#ActivateFonts",toString:function(){return this.url}}},11867:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ActivateFontsSpinner-usage",viewBox:"0 0 26 26",url:r.p+"resources/icons.svg#ActivateFontsSpinner",toString:function(){return this.url}}},65403:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Add-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Add",toString:function(){return this.url}}},49331:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Add12-usage",viewBox:"0 0 12 12",url:r.p+"resources/icons.svg#Add12",toString:function(){return this.url}}},1963:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Add14-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#Add14",toString:function(){return this.url}}},6791:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddAnimation-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#AddAnimation",toString:function(){return this.url}}},15406:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddBrush-usage",viewBox:"-0.5 0.5 42 42",url:r.p+"resources/icons.svg#AddBrush",toString:function(){return this.url}}},37461:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCCLibrary-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddCCLibrary",toString:function(){return this.url}}},69035:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCharacterStyle-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddCharacterStyle",toString:function(){return this.url}}},92846:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCircle-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddCircle",toString:function(){return this.url}}},28506:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCircleOutline-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddCircleOutline",toString:function(){return this.url}}},70793:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddComponent-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#AddComponent",toString:function(){return this.url}}},18434:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCopy-usage",viewBox:"0 0 37 37",url:r.p+"resources/icons.svg#AddCopy",toString:function(){return this.url}}},33433:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddDropdown-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddDropdown",toString:function(){return this.url}}},4931:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddGroup-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddGroup",toString:function(){return this.url}}},9981:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddImage-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddImage",toString:function(){return this.url}}},752:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddLayerStyle-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddLayerStyle",toString:function(){return this.url}}},29451:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddLink-usage",viewBox:"0 0 96 37",url:r.p+"resources/icons.svg#AddLink",toString:function(){return this.url}}},64978:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddLook-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddLook",toString:function(){return this.url}}},99743:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddModel-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddModel",toString:function(){return this.url}}},52576:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddParagraphStyle-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddParagraphStyle",toString:function(){return this.url}}},30571:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddStock-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddStock",toString:function(){return this.url}}},1360:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddText-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#AddText",toString:function(){return this.url}}},62344:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AdobeFonts-usage",viewBox:"0 0 36 36",url:r.p+"resources/icons.svg#AdobeFonts",toString:function(){return this.url}}},20568:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Alert-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Alert",toString:function(){return this.url}}},32903:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AlertOutline-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#AlertOutline",toString:function(){return this.url}}},95852:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AllFilterIcon-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AllFilterIcon",toString:function(){return this.url}}},42964:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ArrowDown-usage",viewBox:"0 0 8 10",url:r.p+"resources/icons.svg#ArrowDown",toString:function(){return this.url}}},78027:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ArrowUp-usage",viewBox:"0 0 8 10",url:r.p+"resources/icons.svg#ArrowUp",toString:function(){return this.url}}},31651:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetBrokenElement-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#AssetBrokenElement",toString:function(){return this.url}}},29179:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetBrokenLink-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AssetBrokenLink",toString:function(){return this.url}}},54104:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetLinked-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AssetLinked",toString:function(){return this.url}}},27481:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetRestricted-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AssetRestricted",toString:function(){return this.url}}},70474:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetUpdate-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AssetUpdate",toString:function(){return this.url}}},49864:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetUploading-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AssetUploading",toString:function(){return this.url}}},61659:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Back-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Back",toString:function(){return this.url}}},46787:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"BackArrow-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#BackArrow",toString:function(){return this.url}}},48907:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Browse-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#Browse",toString:function(){return this.url}}},58389:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"BrowseTeamLibrary-usage",viewBox:"0 0 72 72",url:r.p+"resources/icons.svg#BrowseTeamLibrary",toString:function(){return this.url}}},67012:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Building-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Building",toString:function(){return this.url}}},56586:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCLibrary-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CCLibrary",toString:function(){return this.url}}},19161:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCLibrary16-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#CCLibrary16",toString:function(){return this.url}}},6598:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCLibraryLocked-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#CCLibraryLocked",toString:function(){return this.url}}},99910:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateBrandPlus-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CCXCreateBrandPlus",toString:function(){return this.url}}},33666:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateColor-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateColor",toString:function(){return this.url}}},69177:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateFont-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateFont",toString:function(){return this.url}}},23130:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateImage-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateImage",toString:function(){return this.url}}},13558:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateLogo-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateLogo",toString:function(){return this.url}}},21425:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateTemplate-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateTemplate",toString:function(){return this.url}}},57864:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXDiscoverLibraries-usage",viewBox:"0 0 350 199.792",url:r.p+"resources/icons.svg#CCXDiscoverLibraries",toString:function(){return this.url}}},53211:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXEmptyBrands-usage",viewBox:"0 0 350 199.792",url:r.p+"resources/icons.svg#CCXEmptyBrands",toString:function(){return this.url}}},60458:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXEmptyLibrary-usage",viewBox:"0 0 95.721 130.756",url:r.p+"resources/icons.svg#CCXEmptyLibrary",toString:function(){return this.url}}},44326:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXGenericLibraries-usage",viewBox:"0 0 95 82",url:r.p+"resources/icons.svg#CCXGenericLibraries",toString:function(){return this.url}}},60832:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXLibraryLarge-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXLibraryLarge",toString:function(){return this.url}}},21105:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Capture-usage",viewBox:"0 0 240 234",url:r.p+"resources/icons.svg#Capture",toString:function(){return this.url}}},46922:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChangeCloud-usage",viewBox:"0 0 20 13",url:r.p+"resources/icons.svg#ChangeCloud",toString:function(){return this.url}}},48567:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Checkmark-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Checkmark",toString:function(){return this.url}}},31719:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CheckmarkCircle-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CheckmarkCircle",toString:function(){return this.url}}},42625:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CheckmarkRounded-usage",viewBox:"0 0 12 12",url:r.p+"resources/icons.svg#CheckmarkRounded",toString:function(){return this.url}}},49386:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronDownMedium-usage",viewBox:"0 0 10 6",url:r.p+"resources/icons.svg#ChevronDownMedium",toString:function(){return this.url}}},73453:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronDownSmall-usage",viewBox:"0 0 8 6",url:r.p+"resources/icons.svg#ChevronDownSmall",toString:function(){return this.url}}},78714:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronLeftMedium-usage",viewBox:"0 0 6 10",url:r.p+"resources/icons.svg#ChevronLeftMedium",toString:function(){return this.url}}},20776:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronLeftSmall-usage",viewBox:"0 0 6 8",url:r.p+"resources/icons.svg#ChevronLeftSmall",toString:function(){return this.url}}},506:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronRightMedium-usage",viewBox:"0 0 6 10",url:r.p+"resources/icons.svg#ChevronRightMedium",toString:function(){return this.url}}},75797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronRightSmall-usage",viewBox:"0 0 6 8",url:r.p+"resources/icons.svg#ChevronRightSmall",toString:function(){return this.url}}},9126:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Clock-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Clock",toString:function(){return this.url}}},80351:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Close-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#Close",toString:function(){return this.url}}},7007:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Cloud-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Cloud",toString:function(){return this.url}}},27327:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Copy-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Copy",toString:function(){return this.url}}},40880:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateATeamLibrary-usage",viewBox:"0 0 72 72",url:r.p+"resources/icons.svg#CreateATeamLibrary",toString:function(){return this.url}}},26222:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateColor-usage",viewBox:"0 0 18 18.002",url:r.p+"resources/icons.svg#CreateColor",toString:function(){return this.url}}},94275:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateColortheme-usage",viewBox:"0 0 18 18.002",url:r.p+"resources/icons.svg#CreateColortheme",toString:function(){return this.url}}},33949:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateFont-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CreateFont",toString:function(){return this.url}}},14484:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateImage-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CreateImage",toString:function(){return this.url}}},62159:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateLogo-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CreateLogo",toString:function(){return this.url}}},453:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateTemplate-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CreateTemplate",toString:function(){return this.url}}},58823:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreativeCloud-usage",viewBox:"0 0 96 96",url:r.p+"resources/icons.svg#CreativeCloud",toString:function(){return this.url}}},242:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreativeCloudAlert-usage",viewBox:"0 0 70 70",url:r.p+"resources/icons.svg#CreativeCloudAlert",toString:function(){return this.url}}},46690:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreativeCloudError-usage",viewBox:"0 0 70 70",url:r.p+"resources/icons.svg#CreativeCloudError",toString:function(){return this.url}}},13068:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Date-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Date",toString:function(){return this.url}}},97991:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Delete-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Delete",toString:function(){return this.url}}},86346:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"DiscoverLibraries-usage",viewBox:"0 0 100 100",url:r.p+"resources/icons.svg#DiscoverLibraries",toString:function(){return this.url}}},94878:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"DocumentAssets-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#DocumentAssets",toString:function(){return this.url}}},64172:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"DownArrow-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#DownArrow",toString:function(){return this.url}}},64851:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Duplicate-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Duplicate",toString:function(){return this.url}}},51371:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Edit-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Edit",toString:function(){return this.url}}},23087:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"EmptyLibrary-usage",viewBox:"0 0 250 250",url:r.p+"resources/icons.svg#EmptyLibrary",toString:function(){return this.url}}},838:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"EmptyLibrary1-usage",viewBox:"0 0 136 136",url:r.p+"resources/icons.svg#EmptyLibrary1",toString:function(){return this.url}}},42699:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"EmptyLibrary2-usage",viewBox:"0 0 136 136",url:r.p+"resources/icons.svg#EmptyLibrary2",toString:function(){return this.url}}},4471:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"EmptyLibrary3-usage",viewBox:"0 0 136 136",url:r.p+"resources/icons.svg#EmptyLibrary3",toString:function(){return this.url}}},41791:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Error-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#Error",toString:function(){return this.url}}},22370:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Filter-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Filter",toString:function(){return this.url}}},74989:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Filter16-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Filter16",toString:function(){return this.url}}},85394:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"FilterApplied-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#FilterApplied",toString:function(){return this.url}}},93038:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"FilterNotification16-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#FilterNotification16",toString:function(){return this.url}}},22209:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"FilterWarning-usage",viewBox:"0 0 48.7 50.6",url:r.p+"resources/icons.svg#FilterWarning",toString:function(){return this.url}}},82261:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Flag-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Flag",toString:function(){return this.url}}},81764:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Folder-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Folder",toString:function(){return this.url}}},48538:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"FolderOpen-usage",viewBox:"0 0 36 36",url:r.p+"resources/icons.svg#FolderOpen",toString:function(){return this.url}}},29575:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Globe-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Globe",toString:function(){return this.url}}},8332:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"GlobeSearch-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#GlobeSearch",toString:function(){return this.url}}},97365:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"GridView-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#GridView",toString:function(){return this.url}}},73344:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Group-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Group",toString:function(){return this.url}}},51546:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"HelpOutline-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#HelpOutline",toString:function(){return this.url}}},28902:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"IlluAccessAssetsEverywhere-usage",viewBox:"0 0 280 250",url:r.p+"resources/icons.svg#IlluAccessAssetsEverywhere",toString:function(){return this.url}}},16825:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Info-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#Info",toString:function(){return this.url}}},32548:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"InfoOutline-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#InfoOutline",toString:function(){return this.url}}},83383:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Invite-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Invite",toString:function(){return this.url}}},86080:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Leave-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Leave",toString:function(){return this.url}}},34533:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LibraryAccess-usage",viewBox:"0 0 28 32",url:r.p+"resources/icons.svg#LibraryAccess",toString:function(){return this.url}}},30998:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Link-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Link",toString:function(){return this.url}}},4005:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LinkedDocumentLibrary_CanEdit-usage",viewBox:"0 0 150 150",url:r.p+"resources/icons.svg#LinkedDocumentLibrary_CanEdit",toString:function(){return this.url}}},56016:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LinkedDocumentLibrary_CanView-usage",viewBox:"0 0 150 150",url:r.p+"resources/icons.svg#LinkedDocumentLibrary_CanView",toString:function(){return this.url}}},61439:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LinkedLibrary-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#LinkedLibrary",toString:function(){return this.url}}},46089:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ListView-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#ListView",toString:function(){return this.url}}},29932:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Lock-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Lock",toString:function(){return this.url}}},14904:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LockMenu-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#LockMenu",toString:function(){return this.url}}},72836:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LockPopup-usage",viewBox:"0 0 36 36",url:r.p+"resources/icons.svg#LockPopup",toString:function(){return this.url}}},98618:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Logos-usage",viewBox:"0 0 49 49",url:r.p+"resources/icons.svg#Logos",toString:function(){return this.url}}},87584:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Magnify-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Magnify",toString:function(){return this.url}}},24861:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"MissingFontWarning-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#MissingFontWarning",toString:function(){return this.url}}},17296:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"More-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#More",toString:function(){return this.url}}},4006:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Move-usage",viewBox:"0 0 19 19",url:r.p+"resources/icons.svg#Move",toString:function(){return this.url}}},21296:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"NamingOrder-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#NamingOrder",toString:function(){return this.url}}},61419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Next-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Next",toString:function(){return this.url}}},68857:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"NoSearchResults-usage",viewBox:"0 0 100 100",url:r.p+"resources/icons.svg#NoSearchResults",toString:function(){return this.url}}},29974:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Note-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#Note",toString:function(){return this.url}}},99576:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"OnboardingCCLibrary-usage",viewBox:"0 0 184 184",url:r.p+"resources/icons.svg#OnboardingCCLibrary",toString:function(){return this.url}}},36652:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"OpenIn-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#OpenIn",toString:function(){return this.url}}},1704:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Organisations-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Organisations",toString:function(){return this.url}}},9801:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"PathView-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#PathView",toString:function(){return this.url}}},11537:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"PlaceOnCanvas-usage",viewBox:"0 0 26 26",url:r.p+"resources/icons.svg#PlaceOnCanvas",toString:function(){return this.url}}},41464:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Plus-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Plus",toString:function(){return this.url}}},42110:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"PlusDrag-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#PlusDrag",toString:function(){return this.url}}},54721:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Projects-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Projects",toString:function(){return this.url}}},53225:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"PublishRemove-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#PublishRemove",toString:function(){return this.url}}},17529:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Question-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Question",toString:function(){return this.url}}},83742:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ReadOnly-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#ReadOnly",toString:function(){return this.url}}},91355:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Rename-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Rename",toString:function(){return this.url}}},36346:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ReuseUpdateAssets-usage",viewBox:"0 0 100 100",url:r.p+"resources/icons.svg#ReuseUpdateAssets",toString:function(){return this.url}}},39895:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Buildings-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Buildings",toString:function(){return this.url}}},66529:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Delete-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Delete",toString:function(){return this.url}}},93567:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Edit-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Edit",toString:function(){return this.url}}},9997:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Filter-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Filter",toString:function(){return this.url}}},3367:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Flag-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Flag",toString:function(){return this.url}}},61383:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_GlobeGrid-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#SX_GlobeGrid",toString:function(){return this.url}}},58530:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Invite-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Invite",toString:function(){return this.url}}},78295:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Leave-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#SX_Leave",toString:function(){return this.url}}},75151:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_PublishRemove-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_PublishRemove",toString:function(){return this.url}}},90618:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Rename-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Rename",toString:function(){return this.url}}},16314:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Search-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Search",toString:function(){return this.url}}},77729:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_SortOrderDown-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_SortOrderDown",toString:function(){return this.url}}},60791:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_SortOrderUp-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_SortOrderUp",toString:function(){return this.url}}},21549:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_User-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#SX_User",toString:function(){return this.url}}},60569:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_UserGroup-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#SX_UserGroup",toString:function(){return this.url}}},7280:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"S_MoveTo_18_N-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#S_MoveTo_18_N",toString:function(){return this.url}}},4465:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Settings-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Settings",toString:function(){return this.url}}},26246:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ShareAssets-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#ShareAssets",toString:function(){return this.url}}},62458:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Shop-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Shop",toString:function(){return this.url}}},57325:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ShoppingCart-usage",viewBox:"0 0 36 36",url:r.p+"resources/icons.svg#ShoppingCart",toString:function(){return this.url}}},73557:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ShowMenu-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#ShowMenu",toString:function(){return this.url}}},2548:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Sort-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Sort",toString:function(){return this.url}}},93065:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SortDescending-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#SortDescending",toString:function(){return this.url}}},87295:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"StockLicensedBadge-usage",viewBox:"0 0 46 40",url:r.p+"resources/icons.svg#StockLicensedBadge",toString:function(){return this.url}}},45071:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Subscribed-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#Subscribed",toString:function(){return this.url}}},29184:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SyncAlert-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#SyncAlert",toString:function(){return this.url}}},32797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SyncDefault-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#SyncDefault",toString:function(){return this.url}}},47403:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SyncError-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#SyncError",toString:function(){return this.url}}},69543:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Syncing-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Syncing",toString:function(){return this.url}}},8404:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SyncingSpinner-usage",viewBox:"0 0 26 26",url:r.p+"resources/icons.svg#SyncingSpinner",toString:function(){return this.url}}},73671:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"TraditionalLibrary_CanEdit-usage",viewBox:"0 0 150 150",url:r.p+"resources/icons.svg#TraditionalLibrary_CanEdit",toString:function(){return this.url}}},88998:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"TraditionalLibrary_CanView-usage",viewBox:"0 0 150 150",url:r.p+"resources/icons.svg#TraditionalLibrary_CanView",toString:function(){return this.url}}},57067:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"TreeView-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#TreeView",toString:function(){return this.url}}},23687:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UploadDocAssets-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#UploadDocAssets",toString:function(){return this.url}}},88864:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UploadImage-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#UploadImage",toString:function(){return this.url}}},7317:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UseAsBrand-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#UseAsBrand",toString:function(){return this.url}}},52449:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UseAsLibrary-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#UseAsLibrary",toString:function(){return this.url}}},39100:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"User-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#User",toString:function(){return this.url}}},33380:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UserGroup-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#UserGroup",toString:function(){return this.url}}},95861:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"VerifyContentAuthenticity-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#VerifyContentAuthenticity",toString:function(){return this.url}}},7237:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Visibility-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Visibility",toString:function(){return this.url}}},71001:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"XDFile-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#XDFile",toString:function(){return this.url}}},9142:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a,s=r(89526),c=r(2652),l=r.n(c),u=r(62631),p=r(50265),d=r(27611),h=r(84824),f=r(72279);let m=(0,u.Pi)((a=class extends s.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="pageInput",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.onKeyDown=e=>{const t=parseInt(this.pageInput,10);switch(e.key){case"ArrowUp":case"Up":this.changePage(t+1);break;case"ArrowDown":case"Down":this.changePage(t-1);break;case" ":this.changePage(t)}},this.changePage=e=>{this.isInvalidPage(e)||(this.pageInput=e,this.props.onPageChange(e))},this.onPageInputBlur=()=>{this.props.currentPage!==this.pageInput&&(this.pageInput=this.props.currentPage)},this.onNext=()=>{this.changePage(this.props.currentPage+1)},this.onPrevious=()=>{this.changePage(this.props.currentPage-1)},this.onInputChangeEvent=e=>{const t=e.target.value;""!==t&&this.isInvalidPage(t)?e.target.value=""!==this.pageInput?this.props.currentPage:"":(this.pageInput=t,t&&this.changePage(t))},this.onButtonKeyPress=(e,t)=>{"Enter"===e.key&&t()}}componentDidUpdate(e){e.currentPage!==this.props.currentPage&&this.changePage(this.props.currentPage)}isInvalidPage(e){const t=this.props.totalPages;return!!isNaN(e)||((e=parseInt(e,10))<1||t&&e>t)}get pageDisplay(){return s.createElement("div",{className:"pagination-controls-number-display"},this.props.allowInput?this.inputDisplay:this.noInputDisplay)}get inputDisplay(){return s.createElement(s.Fragment,null,s.createElement("input",{type:"text","data-test-id":"spectrum-pagination-input",value:this.pageInput,onBlur:this.onPageInputBlur,onKeyDown:this.onKeyDown,onChange:this.onInputChangeEvent}),s.createElement("span",{"data-test-id":"spectrum-pagination-total",className:"spectrum-Body--secondary spectrum-Pagination-counter"},(0,h.Iu)("DL_INFO_INPUT_PAGINATION_COUNT",{totalPages:this.props.totalPages})))}get noInputDisplay(){return s.createElement("span",{"data-test-id":"spectrum-pagination-total"},(0,h.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.props.currentPage,totalPages:this.props.totalPages}))}render(){return s.createElement("div",{className:"spectrum-Pagination spectrum-Pagination--explicit pagination-wrapper","data-test-id":"spectrum-pagination"},s.createElement(f.Z,{className:"pagination-controls-arrow","data-test-id":"spectrum-pagination-previous",onClick:this.onPrevious},s.createElement(d.Z,{id:"ChevronLeftMedium",height:10})),this.pageDisplay,s.createElement(f.Z,{className:"pagination-controls-arrow","data-test-id":"spectrum-pagination-next",onClick:this.onNext},s.createElement(d.Z,{id:"ChevronRightMedium",height:10})))}},a.defaultProps={allowInput:!1},a.propTypes={totalPages:l().number.isRequired,onPageChange:l().func.isRequired,currentPage:l().number.isRequired,allowInput:l().bool},g=(i=a).prototype,v="pageInput",y=[p.observable],b={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}},E={},Object.keys(b).forEach((function(e){E[e]=b[e]})),E.enumerable=!!E.enumerable,E.configurable=!!E.configurable,("value"in E||E.initializer)&&(E.writable=!0),E=y.slice().reverse().reduce((function(e,t){return t(g,v,e)||e}),E),_&&void 0!==E.initializer&&(E.value=E.initializer?E.initializer.call(_):void 0,E.initializer=void 0),void 0===E.initializer&&(Object.defineProperty(g,v,E),E=null),o=E,n=i))||n;var g,v,y,b,_,E;class w extends s.Component{get navigationControls(){return s.createElement("div",{className:"info-panel-controller-nav-controls"},s.createElement(m,{currentPage:this.props.currentStopIndex+1,totalPages:this.props.controllerData.length,onPageChange:this.props.onChange}))}get navigationRow(){return s.createElement("div",{className:"details-row details-navigation-row"},s.createElement("div",{className:"details-label details-label-stop-navigation"},(0,h.Iu)(this.props.stopLabel)),s.createElement("div",{className:"details-value"},this.navigationControls))}get details(){const e=this.props.controllerData[this.props.currentStopIndex].data.map((e=>{const t=`info-panel-controller-detail-${e.label.toLowerCase().replace(/[^0-9a-z]/gi,"-")}`;return s.createElement("div",{className:"details-row",key:t,"data-test-id":t},s.createElement("div",{className:"details-label"},e.label),s.createElement("div",{className:"details-value"},e.value))}));return s.createElement("div",{className:"info-panel-controller-details"},s.createElement("div",{className:"details-row details-navigation-row-container"},this.navigationRow),e)}render(){return this.props.controllerData.length?s.createElement("div",{className:"info-panel-controller-wrapper","data-test-id":"info-panel-controller"},this.props.displayBar,this.details):null}}w.defaultProps={stopLabel:"DL_INFO_GRADIENT_STOP"},w.propTypes={displayBar:l().node.isRequired,controllerData:l().arrayOf(l().object).isRequired,onChange:l().func.isRequired,currentStopIndex:l().number.isRequired,stopLabel:l().string}},72279:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n=r(89526),i=r(2652),o=r.n(i),a=r(50265),s=r(62631),c=r(40743),l=r(99767),u=r(64403),p=r.n(u),d=r(76485),h=r(52844);const f=["variant","children","disabled","selected","quiet"],m=["children"];var g,v,y,b;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 E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){w(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 w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(){return L=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},L.apply(this,arguments)}function x(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let S=(0,s.Pi)((b=class extends n.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="active",i=this,(n=y)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.onClick=e=>{this.props.onClick&&!this.props.disabled&&this.props.onClick(e)},this.onDrop=()=>{!this.props.disabled&&this.props.onDrop()},this.onMouseDown=e=>{!this.props.disabled&&this.props.onMouseDown(e)},this.onActive=()=>this.active=!0,this.onInactive=()=>this.active=!1}get classes(){return d.Z.hasNativeControlStyles&&this.props.variant?this.props.className:p()(this.props.className,"base-button",{"div-image-button":!d.Z.supportsImagesInButtons,disabled:this.props.disabled,selected:this.props.selected,active:this.active})}get buttonView(){const e=this.props,t=e.variant,r=e.children,i=e.disabled,o=e.selected,a=e.quiet,s=x(e,f);if(!d.Z.supportsImagesInButtons&&!t)return this.divView;const l=n.createElement("button",L({},(0,c.default)(s),{tabIndex:"0","data-test-id":this.props["data-test-id"]||"button",className:this.classes,onClick:this.onClick,onDrop:this.onDrop,onMouseDown:this.onMouseDown,disabled:i}),r),u=E(E({},(0,c.default)(s)),{},{quiet:a,variant:t,tabIndex:"0","data-test-id":this.props["data-test-id"]||"button",onClick:this.onClick,onDrop:this.onDrop,onMouseDown:this.onMouseDown,selected:o||null,disabled:i||null,className:this.classes});return t&&"action"!==t?n.createElement(h.Z,L({fallback:l},u),r):(delete u.variant,n.createElement(h.Z,L({variant:"action",fallback:l},u),r))}get divView(){const e=this.props,t=e.children,r=x(e,m);return n.createElement("div",L({},(0,c.default)(r),{"data-test-id":this.props["data-test-id"]||"button",tabIndex:"0",className:p()("uxp-imgButton",this.classes),onClick:this.onClick,onDrop:this.onDrop,onMouseDown:e=>{this.onActive(),this.onMouseDown(e)},onMouseUp:this.onInactive,onMouseLeave:this.onInactive}),t)}render(){return this.props.tooltip?n.createElement(l.Z,{placement:"top-start",content:this.props.tooltip,featureId:this.props.featureId},this.buttonView):this.buttonView}},b.defaultProps={selected:!1,disabled:!1,onMouseDown:()=>{},onDrop:()=>{}},b.propTypes={onClick:o().func,onDrop:o().func,onMouseDown:o().func,className:o().string,children:o().node,tooltip:o().string,selected:o().bool,disabled:o().bool,variant:o().oneOf(["cta","primary","secondary","warning","action","accent"]),"data-test-id":o().string,featureId:o().string,quiet:o().bool},O=(v=b).prototype,T="active",I=[a.observable],P={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},A={},Object.keys(P).forEach((function(e){A[e]=P[e]})),A.enumerable=!!A.enumerable,A.configurable=!!A.configurable,("value"in A||A.initializer)&&(A.writable=!0),A=I.slice().reverse().reduce((function(e,t){return t(O,T,e)||e}),A),C&&void 0!==A.initializer&&(A.value=A.initializer?A.initializer.call(C):void 0,A.initializer=void 0),void 0===A.initializer&&(Object.defineProperty(O,T,A),A=null),y=A,g=v))||g;var O,T,I,P,C,A},63498:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n=r(89526),i=r(2652),o=r.n(i),a=r(30222),s=r(83377),c=r(28086),l=r(94859),u=r(82530);const p=["className","orientation"],d=["className","value","multiple","orientation","onChange"];function h(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?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var y=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(y,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function b(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))}}const _=(0,l.Z)(r(74911)).default;let E,w;u.env.EXCLUDE_SWC||(E=new c.t(["sp-button-group"],b(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(4051)]).then(r.bind(r,88629));case 2:return t=e.sent,n=t.ButtonGroup,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))),w=new c.t(["sp-action-group"],b(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(1255)]).then(r.bind(r,62938));case 2:return t=e.sent,n=t.ActionGroup,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const L=(0,s.Z)({displayName:"ButtonGroup",fallback:_,swcLoader:E,swcProps:e=>{const t=e.className,r=e.orientation,n=g(e,p),i="vertical"===r||void 0,o=a.ww?{variant:r,align:"center"}:{vertical:i};return f(f(f({},n),o),{},{class:t})},tagName:"sp-button-group"}),x=(0,s.Z)({displayName:"ActionGroup",fallback:_,swcLoader:w,SWCWrapper:function(e){const t=(0,n.useRef)(null),r=e.className,i=e.value,o=e.multiple,s=e.orientation,c=e.onChange,l=g(e,d),u="vertical"===s||void 0,p=o?"multiple":"single",h="multiple"===p?i:[i].flat(),m=a.ww?{variant:s,align:"center"}:f({vertical:u,selected:JSON.stringify(h)},p&&{selects:p});(0,n.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;null==c||c(t.selected)};return e&&c&&e.addEventListener("change",r),()=>{e&&c&&e.removeEventListener("change",r)}}),[c,i]);const v=(0,a.Co)("sp-action-group");return n.createElement(v,f(f(f(f({ref:t},l),m),(0,a.cd)({vertical:u})),{},{class:r}))},tagName:"sp-action-group"}),S=(0,n.forwardRef)((function(e,t){return e.onChange?n.createElement(x,f(f({},e),{},{ref:t})):n.createElement(L,f(f({},e),{},{ref:t}))}));class O extends n.Component{render(){const e=this.props.preferSpectrumFallback?void 0:n.createElement(n.Fragment,null,this.props.children);return n.createElement(S,{"data-test-id":"button-group",className:this.props.className,fallback:e,orientation:this.props.orientation},this.props.children)}}O.defaultProps={orientation:"horizontal"},O.propTypes={orientation:o().oneOf(["horizontal","vertical"]),preferSpectrumFallback:o().bool,className:o().string,children:o().node}},51702:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(89526),i=r(2652),o=r.n(i),a=r(27611),s=r(72279),c=r(24937);const l="w2B",u="AK4";var p,d,h=r(62631),f=r(85080);let m=(0,h.Pi)(((d=class extends n.Component{constructor(...e){super(...e),this.overlayState=new f.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleClick=e=>{e.stopPropagation(),this.overlayState.toggleOverlay();const t=this.customLabelRef.getBoundingClientRect();this.context.viewState.setContextMenuPositionState({x:t.left,y:t.bottom}),this.props.onContextMenuClick(e)},this.setCustomLabelRef=e=>{this.customLabelRef=e}}render(){return n.createElement("div",{ref:this.setCustomLabelRef},n.createElement(s.Z,{variant:"action",className:l,quiet:this.props.quiet,selected:this.overlayState.isOpen,"data-test-id":"context-menu-button",onClick:this.handleClick,onKeyDown:e=>"Enter"===e.key?this.handleClick(e):null},n.createElement(a.Z,{id:this.props.icon,className:u,height:18})))}}).contextType=c.r,d.defaultProps={quiet:!1,icon:"More"},d.propTypes={onContextMenuClick:o().func.isRequired,quiet:o().bool,icon:o().string,dataTestId:o().string},p=d))||p},36791:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(89526),i=r(2652),o=r.n(i),a=r(27611),s=r(72279),c=r(64403),l=r.n(c);const u="PwA",p="I5d",d="bJL",h="xKd",f="jVH",m="bik",g="cpZ",v="u4n",y="Ijd",b="Frh",_="ba6",E="xFe",w="OS4",L="d8y";var x=r(99767),S=r(84824),O=r(5837),T=r(76485);class I extends n.Component{constructor(...e){super(...e),this.onClick=e=>{e.stopPropagation(),this.props.disabled||this.props.onClick(e)}}get graphicsViewContents(){return n.createElement("div",{className:"create-card-contents"},n.createElement("div",{className:v},n.createElement("div",{className:_}),n.createElement(a.Z,{id:this.props.icon,height:32,className:y}),n.createElement("div",{className:b},n.createElement(a.Z,{id:"Add",height:18,className:w}))),this.createCardButton)}get createCardButton(){return T.Z.isMobileView?n.createElement("span",{className:L,"data-test-id":`create-card-text-${this.props.shortType}`},this.props.buttonText):n.createElement(s.Z,{quiet:!0,variant:"accent",disabled:this.props.disabled,"data-test-id":`create-card-button-${this.props.shortType}`},this.props.buttonText)}get smallIcon(){return n.createElement("div",{className:g},n.createElement(a.Z,{id:`Create${this.props.shortType.charAt(0).toUpperCase()+this.props.shortType.slice(1)}`,height:18,className:w}))}get fullWidthContents(){const e=this.props.shortType.toUpperCase();return n.createElement("div",{className:h},this.smallIcon,n.createElement("div",{className:f,"data-test-id":`create-card-title-${this.props.shortType}`},n.createElement(O.Z,{html:(0,S.Iu)(`DL_ADD_TITLE_${e}`)})),n.createElement("div",{className:m,"data-test-id":`create-card-subtitle-${this.props.shortType}`},(0,S.Iu)(`DL_ADD_SUBTITLE_${e}`)))}render(){const e=l()(p,`create-card-${this.props.shortType}`,{[E]:this.props.disabled,[d]:this.props.fullWidth}),t=this.props.disabled?(0,S.Iu)("DL_INSERT_TOOLTIP_LIMIT"):"";return n.createElement(x.Z,{content:t,placement:"top",className:u},n.createElement("div",{className:e,onClick:this.onClick,"data-test-id":`create-card-${this.props.shortType}`},this.props.fullWidth?this.fullWidthContents:this.graphicsViewContents))}}I.defaultProps={disabled:!1,fullWidth:!1},I.propTypes={disabled:o().bool,icon:o().string.isRequired,onClick:o().func,shortType:o().string.isRequired,buttonText:o().string,fullWidth:o().bool}},75157:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,i,o=r(89526),a=r(62631),s=r(76485),c=r(24937);let l=(0,a.Pi)(((i=class extends o.Component{render(){return this.context.dialogManager.dialog&&s.Z.openCustomDialog&&!this.context.dialogManager.isDialogAlwaysInline?(s.Z.openCustomDialog(),null):this.context.dialogManager.dialog||null}}).contextType=c.r,n=i))||n},98405:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n,i,o,a=r(89526),s=r(50265),c=r(62631),l=r(84824),u=r(27611),p=r(99386),d=r(76485),h=r(51461),f=r(24937),m=r(52844);let g=(0,c.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this._revealRootView=()=>{h.ZP.reportEvent("Navigation","Library Panel","click","root-view",{content:{category:"Empty Document Assets"}}),this.context.viewState.showRootView()},this._browseSharedLibrariesinCCD=()=>{h.ZP.reportEvent("Navigation","Root View","click","view-shared-libraries"),this.context.libraryManager.openBrowseAll()},this._browsePublicLibrariesInCCD=()=>{h.ZP.reportEvent("Navigation","Root View","click","view-public-libraries"),this.context.libraryManager.openMarketplace()},this._openLM=()=>{h.ZP.reportEvent("Navigation","Root View","click","manage-libraries"),d.Z.openLibraryManagerWindow()},this._discoverLibraries=()=>{if(p.Z.currentProduct.config.handleDiscoverLibraries)return p.Z.currentProduct.config.handleDiscoverLibraries();this._browsePublicLibrariesInCCD()}}get libraries(){return this.context.libraryManager.libraries}get message(){return this.context.libraryManager.currentLibrary&&this.context.libraryManager.currentLibrary.isDocumentAssets?{bodyText:"EMPTY_DOC_ASSETS_MESSAGE",callToActionText:"EMPTY_DOC_ASSETS_CTA",callToActionType:"link",showImage:!0,onClickHandler:this._revealRootView}:this.libraries.length<=p.Z.MAX_LIBRARIES_ONBOARDING?{bodyText:"EMPTY_ROOT_VIEW_MESSAGE",callToActionText:"EMPTY_ROOT_VIEW_CTA",callToActionType:"button",showImage:!0,onClickHandler:this._discoverLibraries}:this.hasLibraryManager?{bodyText:"ROOT_VIEW_MESSAGE_LM",callToActionText:"ROOT_VIEW_CTA_LM",callToActionType:"link",showImage:!1,onClickHandler:this._openLM}:{component:this.noLMRootViewMessage}}get noLMRootViewMessage(){return a.createElement(a.Fragment,null,this.getCallToAction("link","DL_MORE_LIBRARY_BROWSE",this._browseSharedLibrariesinCCD,"root-view-browse-shared-link"),this.getCallToAction("link","DL_MORE_LIBRARY_BROWSE_PUBLIC",this._browsePublicLibrariesInCCD,"root-view-browse-public-link"))}get hasLibraryManager(){return p.Z.currentProduct.config.hasLibraryManager}get icon(){return a.createElement("div",{className:"discover-libraries-graphic","data-test-id":"discover-libraries-graphic"},a.createElement(u.Z,{id:"DiscoverLibraries",height:100}))}getCallToAction(e,t,r,n){return"button"===e?a.createElement(m.Z,{"data-test-id":"discover-libraries-browse-button",variant:"cta",onClick:r},(0,l.Iu)(t)):a.createElement("div",{className:"panel-contents-bottom-message-link",onClick:r,"data-test-id":n||"discover-libraries-link"},(0,l.Iu)(t))}get discoverLibrariesContent(){const e=this.message,t=e.bodyText,r=e.callToActionText,n=e.callToActionType,i=e.onClickHandler,o=e.component,s=e.showImage;return a.createElement("div",{className:"discover-libraries","data-test-id":"discover-libraries-message"},s&&this.icon,t&&a.createElement("div",{className:"discover-libraries-text","data-test-id":"discover-libraries-text"},(0,l.Iu)(t)),o||this.getCallToAction(n,r,i))}render(){var e,t;return(null===(e=(t=p.Z.currentProduct).getCustomDiscoverLibrariesView)||void 0===e?void 0:e.call(t))||this.discoverLibrariesContent}}).contextType=f.r,v=(i=o).prototype,y="discoverLibrariesContent",b=[s.computed],_=Object.getOwnPropertyDescriptor(i.prototype,"discoverLibrariesContent"),E=i.prototype,w={},Object.keys(_).forEach((function(e){w[e]=_[e]})),w.enumerable=!!w.enumerable,w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=b.slice().reverse().reduce((function(e,t){return t(v,y,e)||e}),w),E&&void 0!==w.initializer&&(w.value=w.initializer?w.initializer.call(E):void 0,w.initializer=void 0),void 0===w.initializer&&(Object.defineProperty(v,y,w),w=null),n=i))||n;var v,y,b,_,E,w},82562:(e,t,r)=>{"use strict";r.d(t,{Z:()=>T});var n=r(89526),i=r(27611);const o="G8l",a="JJs",s="uqj",c="_00",l="eV2",u="ypv";var p,d,h,f=r(52844),m=r(24937),g=r(84824),v=r(2652),y=r.n(v),b=r(50265),_=r(62631),E=r(79012),w=r(88166),L=r.n(w),x=r(85834),S=r(99386),O=r(5837);let T=(0,_.Pi)(((h=class extends n.Component{get syncStatus(){return this.context.libraryManager.syncStatus}get librariesIcon(){var e;return n.createElement("div",{className:s},n.createElement(i.Z,{id:null!==(e=this.props.graphic)&&void 0!==e?e:"FilterWarning",height:S.Z.currentProduct.config.filterIconHeight||82,width:S.Z.currentProduct.config.filterIconWidth||80}))}get header(){var e;const t=x.Z.get("brandFeatureEnabled")?"DL_LIBRARY_AND_BRAND_EMPTY_VIEW_HEADER":"DL_TEAM_LIBRARY_EMPTY_VIEW_HEADER";return n.createElement("div",{className:l,"data-test-id":"empty-library-grid-header"},null!==(e=this.props.header)&&void 0!==e?e:(0,g.Iu)(t))}get subtitle(){var e,t,r;let i=x.Z.get("brandFeatureEnabled")?"DL_LIBRARY_AND_BRAND_EMPTY_VIEW_SUBTITLE":"DL_TEAM_LIBRARY_EMPTY_VIEW_SUBTITLE";return null!==(e=S.Z.currentProduct.config)&&void 0!==e&&null!==(t=e.hasGlobalSearch)&&void 0!==t&&t.call(e)&&(i="DL_EMPTY_LIB_PANEL_GLOBAL_SEARCH"),n.createElement("div",{className:u,"data-test-id":"empty-library-grid-subtitle"},n.createElement(O.Z,{html:null!==(r=this.props.subtitle)&&void 0!==r?r:(0,g.Iu)(i)}))}get clearFilterButton(){const e=this.context.viewState.isLibraryNameSearchType();return n.createElement("div",{className:c},n.createElement(f.Z,{"data-test-id":"empty-library-grid-clear-button",variant:"secondary",onClick:()=>{this.context.viewState.resetCurrentLibrariesFilter(),e&&this.context.viewState.setSearchText("")}},(0,g.Iu)("DL_TEAM_LIBRARY_EMPTY_VIEW_CLEAR_"+(e?"SEARCH":"FILTER"))))}get content(){var e,t;if("loading"===this.syncStatus.state)return n.createElement(L(),{"data-test-id":"empty-library-grid-loading",size:"L"});if("error"===this.syncStatus.state)return n.createElement(E.Z,null);const r=!(null!==(e=S.Z.currentProduct.config)&&void 0!==e&&null!==(t=e.hasGlobalSearch)&&void 0!==t&&t.call(e))&&"team"!==this.props.view;return n.createElement("div",{className:a,"data-test-id":"empty-library-grid-content"},this.librariesIcon,this.header,this.subtitle,r&&this.clearFilterButton)}render(){var e,t,r;return null!==(e=S.Z.currentProduct.config)&&void 0!==e&&e.emptyFilterLibraryViewOverride?null===(t=(r=S.Z.currentProduct.config).emptyFilterLibraryViewOverride)||void 0===t?void 0:t.call(r):n.createElement("div",{className:o,"data-test-id":"empty-library-grid"},this.content)}}).contextType=m.r,h.propTypes={view:y().oneOf(["team","personal"]),header:y().string,subtitle:y().string,graphic:y().string},I=(d=h).prototype,P="syncStatus",C=[b.computed],A=Object.getOwnPropertyDescriptor(d.prototype,"syncStatus"),k=d.prototype,D={},Object.keys(A).forEach((function(e){D[e]=A[e]})),D.enumerable=!!D.enumerable,D.configurable=!!D.configurable,("value"in D||D.initializer)&&(D.writable=!0),D=C.slice().reverse().reduce((function(e,t){return t(I,P,e)||e}),D),k&&void 0!==D.initializer&&(D.value=D.initializer?D.initializer.call(k):void 0,D.initializer=void 0),void 0===D.initializer&&(Object.defineProperty(I,P,D),D=null),p=d))||p;var I,P,C,A,k,D},5837:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(76485);let u=(0,c.Pi)((i=class e extends o.Component{render(){const t=Object.assign({},this.props);delete t.html,delete t.linkClickMethods;const r=(new DOMParser).parseFromString(`<div id="text">${this.props.html}</div>`,"text/html").getElementById("text").childNodes;return o.createElement("div",t,e.nodeListToJSX(r,this.props.linkClickMethods))}},i.propTypes={html:s().string.isRequired,linkClickMethods:s().object},i.defaultProps={linkClickMethods:{}},i.elementNodeToJSX={DIV:(e,t)=>o.createElement("div",{key:t},i.nodeListToJSX(e.childNodes)),SPAN:(e,t)=>o.createElement("span",{key:t},i.nodeListToJSX(e.childNodes)),BR:(e,t)=>o.createElement("br",{key:t}),UL:(e,t)=>o.createElement("ul",{key:t},i.nodeListToJSX(e.childNodes)),OL:(e,t)=>o.createElement("ol",{key:t},i.nodeListToJSX(e.childNodes)),LI:(e,t)=>o.createElement("li",{key:t},i.nodeListToJSX(e.childNodes)),B:(e,t)=>o.createElement("b",{key:t},i.nodeListToJSX(e.childNodes)),I:(e,t)=>o.createElement("i",{key:t},i.nodeListToJSX(e.childNodes)),A:(e,t,r)=>{let n=()=>{};const a=e.getAttribute("href");return a&&"#"===a.charAt(0)?n=r[a.substr(1)]:a&&(n=()=>l.Z.launchInBrowser(a)),o.createElement("a",{key:t,onClick:n,className:"panel-html-text-link"},i.nodeListToJSX(e.childNodes))}},i.nodeToJSX=(e,t,r)=>{const n=e&&e.tagName&&e.tagName.toUpperCase();return 3===e.nodeType?e.textContent:1===e.nodeType&&i.elementNodeToJSX[n]?i.elementNodeToJSX[n](e,t,r):""},i.nodeListToJSX=(e,t)=>Array.from(e).map(((e,r)=>i.nodeToJSX(e,r,t))),n=i))||n},27611:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Ca});var n=r(89526),i=r(2652),o=r.n(i),a=r(50265),s=r(62631),c=r(64403),l=r.n(c),u=r(76485),p=r(99386),d=r(28086),h=r(83377);const f=["alt","className","aria-label","size"];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){v(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 v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function b(e){switch(e){case"XS":return"s";case"S":return"m";case"M":default:return"xl";case"L":case"XL":case"XXL":return"xxl"}}function _(e){const t=e.alt,r=e.className,n=e["aria-label"],i=e.size;return g(g({},y(e,f)),{},{class:r,label:t||n,size:b(i)})}var E=r(94859),w=r(82530);function L(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const S=(0,E.Z)(r(44316)).default;let O;w.env.EXCLUDE_SWC||(O=new d.t(["sp-icon-add"],function(){var e,t=(e=L().mark((function e(t){var n;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7633)]).then(r.bind(r,7397));case 3:return n=e.sent,e.abrupt("return",[n.IconAdd]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(3461)]).then(r.bind(r,86736));case 7:return e.t0=e.sent.IconAdd,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const T=(0,h.Z)({displayName:"Add",fallback:S,swcLoader:O,swcProps:_,tagName:"sp-icon-add"});var I=r(82530);function P(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function C(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const A=(0,E.Z)(r(97598)).default;let k;I.env.EXCLUDE_SWC||(k=new d.t(["sp-icon-add-circle"],function(){var e,t=(e=P().mark((function e(t){var n;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6707)]).then(r.bind(r,64529));case 3:return n=e.sent,e.abrupt("return",[n.IconAddCircle]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6754)]).then(r.bind(r,47194));case 7:return e.t0=e.sent.IconAddCircle,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){C(o,n,i,a,s,"next",e)}function s(e){C(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const D=(0,h.Z)({displayName:"AddCircle",fallback:A,swcLoader:k,swcProps:_,tagName:"sp-icon-add-circle"});var N=r(82530);function R(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */R=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function M(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const j=(0,E.Z)(r(77125)).default;let Z;N.env.EXCLUDE_SWC||(Z=new d.t(["sp-icon-alert"],function(){var e,t=(e=R().mark((function e(t){var n;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(9469)]).then(r.bind(r,61015));case 3:return n=e.sent,e.abrupt("return",[n.IconAlert]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(8637)]).then(r.bind(r,11436));case 7:return e.t0=e.sent.IconAlert,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){M(o,n,i,a,s,"next",e)}function s(e){M(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const F=(0,h.Z)({displayName:"Alert",fallback:j,swcLoader:Z,swcProps:_,tagName:"sp-icon-alert"});var B=r(82530);function G(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */G=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function U(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const z=(0,E.Z)(r(16089)).default;let V;B.env.EXCLUDE_SWC||(V=new d.t(["sp-icon-building"],function(){var e,t=(e=G().mark((function e(t){var n;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6142)]).then(r.bind(r,7768));case 3:return n=e.sent,e.abrupt("return",[n.IconBuilding]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(4788)]).then(r.bind(r,72525));case 7:return e.t0=e.sent.IconBuilding,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){U(o,n,i,a,s,"next",e)}function s(e){U(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const H=(0,h.Z)({displayName:"Building",fallback:z,swcLoader:V,swcProps:_,tagName:"sp-icon-building"});var Y=r(82530);function W(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */W=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function $(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function K(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){$(o,n,i,a,s,"next",e)}function s(e){$(o,n,i,a,s,"throw",e)}a(void 0)}))}}const q=(0,E.Z)(r(39070)).default;let X;Y.env.EXCLUDE_SWC||(X=new d.t(["sp-icon-browse"],K(W().mark((function e(){var t,n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(7242)]).then(r.bind(r,66095));case 2:return t=e.sent,n=t.IconBrowse,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const J=(0,h.Z)({displayName:"Browse",fallback:q,swcLoader:X,swcProps:_,tagName:"sp-icon-browse"});var Q=r(82530);function ee(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ee=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function te(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const re=(0,E.Z)(r(50891)).default;let ne;Q.env.EXCLUDE_SWC||(ne=new d.t(["sp-icon-brush"],function(){var e,t=(e=ee().mark((function e(t){var n;return ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(515)]).then(r.bind(r,65122));case 3:return n=e.sent,e.abrupt("return",[n.IconBrush]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(4541)]).then(r.bind(r,16572));case 7:return e.t0=e.sent.IconBrush,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){te(o,n,i,a,s,"next",e)}function s(e){te(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ie=(0,h.Z)({displayName:"Brush",fallback:re,swcLoader:ne,swcProps:_,tagName:"sp-icon-brush"});var oe=r(82530);function ae(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ae=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function se(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ce=(0,E.Z)(r(64114)).default;let le;oe.env.EXCLUDE_SWC||(le=new d.t(["sp-icon-cclibrary"],function(){var e,t=(e=ae().mark((function e(t){var n;return ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(487)]).then(r.bind(r,46434));case 3:return n=e.sent,e.abrupt("return",[n.IconCCLibrary]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(144)]).then(r.bind(r,98947));case 7:return e.t0=e.sent.IconCCLibrary,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){se(o,n,i,a,s,"next",e)}function s(e){se(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ue=(0,h.Z)({displayName:"CCLibrary",fallback:ce,swcLoader:le,swcProps:_,tagName:"sp-icon-cclibrary"});var pe=r(82530);function de(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */de=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function he(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const fe=(0,E.Z)(r(14928)).default;let me;pe.env.EXCLUDE_SWC||(me=new d.t(["sp-icon-checkmark"],function(){var e,t=(e=de().mark((function e(t){var n;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(1894)]).then(r.bind(r,93773));case 3:return n=e.sent,e.abrupt("return",[n.IconCheckmark]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9686)]).then(r.bind(r,66810));case 7:return e.t0=e.sent.IconCheckmark,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){he(o,n,i,a,s,"next",e)}function s(e){he(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ge=(0,h.Z)({displayName:"Checkmark",fallback:fe,swcLoader:me,swcProps:_,tagName:"sp-icon-checkmark"});var ve=r(82530);function ye(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ye=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function be(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const _e=(0,E.Z)(r(79207)).default;let Ee;ve.env.EXCLUDE_SWC||(Ee=new d.t(["sp-icon-chevron-down"],function(){var e,t=(e=ye().mark((function e(t){var n;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8762)]).then(r.bind(r,67912));case 3:return n=e.sent,e.abrupt("return",[n.IconChevronDown]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9196)]).then(r.bind(r,23751));case 7:return e.t0=e.sent.IconChevronDown,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){be(o,n,i,a,s,"next",e)}function s(e){be(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const we=(0,h.Z)({displayName:"ChevronDown",fallback:_e,swcLoader:Ee,swcProps:_,tagName:"sp-icon-chevron-down"});var Le=r(82530);function xe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Se(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Oe=(0,E.Z)(r(34803)).default;let Te;Le.env.EXCLUDE_SWC||(Te=new d.t(["sp-icon-chevron-left"],function(){var e,t=(e=xe().mark((function e(t){var n;return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6160)]).then(r.bind(r,66317));case 3:return n=e.sent,e.abrupt("return",[n.IconChevronLeft]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5670)]).then(r.bind(r,62218));case 7:return e.t0=e.sent.IconChevronLeft,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Se(o,n,i,a,s,"next",e)}function s(e){Se(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ie=(0,h.Z)({displayName:"ChevronLeft",fallback:Oe,swcLoader:Te,swcProps:_,tagName:"sp-icon-chevron-left"});var Pe=r(82530);function Ce(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ce=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ae(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ke=(0,E.Z)(r(57362)).default;let De;Pe.env.EXCLUDE_SWC||(De=new d.t(["sp-icon-chevron-right"],function(){var e,t=(e=Ce().mark((function e(t){var n;return Ce().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(1866)]).then(r.bind(r,36873));case 3:return n=e.sent,e.abrupt("return",[n.IconChevronRight]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(8697)]).then(r.bind(r,73746));case 7:return e.t0=e.sent.IconChevronRight,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ae(o,n,i,a,s,"next",e)}function s(e){Ae(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ne=(0,h.Z)({displayName:"ChevronRight",fallback:ke,swcLoader:De,swcProps:_,tagName:"sp-icon-chevron-right"});var Re=r(82530);function Me(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Me=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function je(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ze=(0,E.Z)(r(88716)).default;let Fe;Re.env.EXCLUDE_SWC||(Fe=new d.t(["sp-icon-classic-grid-view"],function(){var e,t=(e=Me().mark((function e(t){var n;return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2764)]).then(r.bind(r,93265));case 3:return n=e.sent,e.abrupt("return",[n.IconGridView]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(4764)]).then(r.bind(r,76556));case 7:return e.t0=e.sent.IconClassicGridView,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){je(o,n,i,a,s,"next",e)}function s(e){je(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Be=(0,h.Z)({displayName:"ClassicGridView",fallback:Ze,swcLoader:Fe,swcProps:_,tagName:"sp-icon-classic-grid-view"});var Ge=r(82530);function Ue(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ue=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ze(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ve=(0,E.Z)(r(89877)).default;let He;Ge.env.EXCLUDE_SWC||(He=new d.t(["sp-icon-close"],function(){var e,t=(e=Ue().mark((function e(t){var n;return Ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7075)]).then(r.bind(r,70303));case 3:return n=e.sent,e.abrupt("return",[n.IconClose]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2120)]).then(r.bind(r,68684));case 7:return e.t0=e.sent.IconClose,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ze(o,n,i,a,s,"next",e)}function s(e){ze(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ye=(0,h.Z)({displayName:"Close",fallback:Ve,swcLoader:He,swcProps:_,tagName:"sp-icon-close"});var We=r(82530);function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$e=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ke(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const qe=(0,E.Z)(r(65306)).default;let Xe;We.env.EXCLUDE_SWC||(Xe=new d.t(["sp-icon-cloud"],function(){var e,t=(e=$e().mark((function e(t){var n;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2509)]).then(r.bind(r,81428));case 3:return n=e.sent,e.abrupt("return",[n.IconCloud]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2819)]).then(r.bind(r,36666));case 7:return e.t0=e.sent.IconCloud,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ke(o,n,i,a,s,"next",e)}function s(e){Ke(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Je=(0,h.Z)({displayName:"Cloud",fallback:qe,swcLoader:Xe,swcProps:_,tagName:"sp-icon-cloud"});var Qe=r(82530);function et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */et=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function tt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const rt=(0,E.Z)(r(69325)).default;let nt;Qe.env.EXCLUDE_SWC||(nt=new d.t(["sp-icon-cloud-disconnected"],function(){var e,t=(e=et().mark((function e(t){var n;return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8908)]).then(r.bind(r,53546));case 3:return n=e.sent,e.abrupt("return",[n.IconCloudStateDisconnected]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(1977)]).then(r.bind(r,13695));case 7:return e.t0=e.sent.IconCloudDisconnected,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){tt(o,n,i,a,s,"next",e)}function s(e){tt(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const it=(0,h.Z)({displayName:"CloudDisconnected",fallback:rt,swcLoader:nt,swcProps:_,tagName:"sp-icon-cloud-disconnected"});var ot=r(82530);function at(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */at=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function st(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ct=(0,E.Z)(r(84035)).default;let lt;ot.env.EXCLUDE_SWC||(lt=new d.t(["sp-icon-cloud-error"],function(){var e,t=(e=at().mark((function e(t){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(4687)]).then(r.bind(r,5297));case 3:return n=e.sent,e.abrupt("return",[n.IconCloudStateError]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2697)]).then(r.bind(r,88045));case 7:return e.t0=e.sent.IconCloudError,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){st(o,n,i,a,s,"next",e)}function s(e){st(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ut=(0,h.Z)({displayName:"CloudError",fallback:ct,swcLoader:lt,swcProps:_,tagName:"sp-icon-cloud-error"});var pt=r(82530);function dt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */dt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ht(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ft=(0,E.Z)(r(63198)).default;let mt;pt.env.EXCLUDE_SWC||(mt=new d.t(["sp-icon-color-palette"],function(){var e,t=(e=dt().mark((function e(t){var n;return dt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6085)]).then(r.bind(r,10822));case 3:return n=e.sent,e.abrupt("return",[n.IconColorPalette]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6301)]).then(r.bind(r,72460));case 7:return e.t0=e.sent.IconColorPalette,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ht(o,n,i,a,s,"next",e)}function s(e){ht(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const gt=(0,h.Z)({displayName:"ColorPalette",fallback:ft,swcLoader:mt,swcProps:_,tagName:"sp-icon-color-palette"});var vt=r(82530);function yt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function bt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _t(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){bt(o,n,i,a,s,"next",e)}function s(e){bt(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Et=(0,E.Z)(r(15588)).default;let wt;vt.env.EXCLUDE_SWC||(wt=new d.t(["sp-icon-date"],_t(yt().mark((function e(){var t,n;return yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(4255)]).then(r.bind(r,91385));case 2:return t=e.sent,n=t.IconDate,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Lt=(0,h.Z)({displayName:"Date",fallback:Et,swcLoader:wt,swcProps:_,tagName:"sp-icon-date"});var xt=r(82530);function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */St=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ot(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Tt=(0,E.Z)(r(38242)).default;let It;xt.env.EXCLUDE_SWC||(It=new d.t(["sp-icon-delete"],function(){var e,t=(e=St().mark((function e(t){var n;return St().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6282)]).then(r.bind(r,19587));case 3:return n=e.sent,e.abrupt("return",[n.IconDelete]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6991)]).then(r.bind(r,88267));case 7:return e.t0=e.sent.IconDelete,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ot(o,n,i,a,s,"next",e)}function s(e){Ot(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Pt=(0,h.Z)({displayName:"Delete",fallback:Tt,swcLoader:It,swcProps:_,tagName:"sp-icon-delete"});var Ct=r(82530);function At(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */At=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function kt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Dt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){kt(o,n,i,a,s,"next",e)}function s(e){kt(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Nt=(0,E.Z)(r(21876)).default;let Rt;Ct.env.EXCLUDE_SWC||(Rt=new d.t(["sp-icon-download-from-cloud-outline"],Dt(At().mark((function e(){var t,n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(1605)]).then(r.bind(r,81937));case 2:return t=e.sent,n=t.IconDownloadFromCloudOutline,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Mt=(0,h.Z)({displayName:"DownloadFromCloudOutline",fallback:Nt,swcLoader:Rt,swcProps:_,tagName:"sp-icon-download-from-cloud-outline"});var jt=r(82530);function Zt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ft(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Bt=(0,E.Z)(r(27944)).default;let Gt;jt.env.EXCLUDE_SWC||(Gt=new d.t(["sp-icon-edit"],function(){var e,t=(e=Zt().mark((function e(t){var n;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7213)]).then(r.bind(r,83372));case 3:return n=e.sent,e.abrupt("return",[n.IconEdit]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(7674)]).then(r.bind(r,79599));case 7:return e.t0=e.sent.IconEdit,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ft(o,n,i,a,s,"next",e)}function s(e){Ft(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ut=(0,h.Z)({displayName:"Edit",fallback:Bt,swcLoader:Gt,swcProps:_,tagName:"sp-icon-edit"});var zt=r(82530);function Vt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ht(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Yt=(0,E.Z)(r(81950)).default;let Wt;zt.env.EXCLUDE_SWC||(Wt=new d.t(["sp-icon-filter"],function(){var e,t=(e=Vt().mark((function e(t){var n;return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6153)]).then(r.bind(r,64741));case 3:return n=e.sent,e.abrupt("return",[n.IconFilter]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(3149)]).then(r.bind(r,3130));case 7:return e.t0=e.sent.IconFilter,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ht(o,n,i,a,s,"next",e)}function s(e){Ht(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const $t=(0,h.Z)({displayName:"Filter",fallback:Yt,swcLoader:Wt,swcProps:_,tagName:"sp-icon-filter"});var Kt=r(82530);function qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Xt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Jt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Xt(o,n,i,a,s,"next",e)}function s(e){Xt(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Qt=(0,E.Z)(r(18657)).default;let er;Kt.env.EXCLUDE_SWC||(er=new d.t(["sp-icon-filter-check"],Jt(qt().mark((function e(){var t,n;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(8121)]).then(r.bind(r,64525));case 2:return t=e.sent,n=t.IconFilterCheck,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const tr=(0,h.Z)({displayName:"FilterCheck",fallback:Qt,swcLoader:er,swcProps:_,tagName:"sp-icon-filter-check"});var rr=r(82530);function nr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ir(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const or=(0,E.Z)(r(96288)).default;let ar;rr.env.EXCLUDE_SWC||(ar=new d.t(["sp-icon-flag"],function(){var e,t=(e=nr().mark((function e(t){var n;return nr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2988)]).then(r.bind(r,81931));case 3:return n=e.sent,e.abrupt("return",[n.IconFlag]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(386)]).then(r.bind(r,70449));case 7:return e.t0=e.sent.IconFlag,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ir(o,n,i,a,s,"next",e)}function s(e){ir(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const sr=(0,h.Z)({displayName:"Flag",fallback:or,swcLoader:ar,swcProps:_,tagName:"sp-icon-flag"});var cr=r(82530);function lr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */lr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ur(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const pr=(0,E.Z)(r(4457)).default;let dr;cr.env.EXCLUDE_SWC||(dr=new d.t(["sp-icon-folder"],function(){var e,t=(e=lr().mark((function e(t){var n;return lr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7775)]).then(r.bind(r,57913));case 3:return n=e.sent,e.abrupt("return",[n.IconFolder]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(3882)]).then(r.bind(r,16095));case 7:return e.t0=e.sent.IconFolder,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ur(o,n,i,a,s,"next",e)}function s(e){ur(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const hr=(0,h.Z)({displayName:"Folder",fallback:pr,swcLoader:dr,swcProps:_,tagName:"sp-icon-folder"});var fr=r(82530);function mr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */mr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function gr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const vr=(0,E.Z)(r(56590)).default;let yr;fr.env.EXCLUDE_SWC||(yr=new d.t(["sp-icon-folder-add"],function(){var e,t=(e=mr().mark((function e(t){var n;return mr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2652)]).then(r.bind(r,29828));case 3:return n=e.sent,e.abrupt("return",[n.IconFolderAdd]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9020)]).then(r.bind(r,65349));case 7:return e.t0=e.sent.IconFolderAdd,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){gr(o,n,i,a,s,"next",e)}function s(e){gr(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const br=(0,h.Z)({displayName:"FolderAdd",fallback:vr,swcLoader:yr,swcProps:_,tagName:"sp-icon-folder-add"});var _r=r(82530);function Er(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Er=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function wr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Lr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){wr(o,n,i,a,s,"next",e)}function s(e){wr(o,n,i,a,s,"throw",e)}a(void 0)}))}}const xr=(0,E.Z)(r(91912)).default;let Sr;_r.env.EXCLUDE_SWC||(Sr=new d.t(["sp-icon-folder-open"],Lr(Er().mark((function e(){var t,n;return Er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6624)]).then(r.bind(r,95778));case 2:return t=e.sent,n=t.IconFolderOpen,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Or=(0,h.Z)({displayName:"FolderOpen",fallback:xr,swcLoader:Sr,swcProps:_,tagName:"sp-icon-folder-open"});var Tr=r(82530);function Ir(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ir=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Pr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Cr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Pr(o,n,i,a,s,"next",e)}function s(e){Pr(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Ar=(0,E.Z)(r(64335)).default;let kr;Tr.env.EXCLUDE_SWC||(kr=new d.t(["sp-icon-globe"],Cr(Ir().mark((function e(){var t,n;return Ir().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(3795)]).then(r.bind(r,96529));case 2:return t=e.sent,n=t.IconGlobe,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Dr=(0,h.Z)({displayName:"Globe",fallback:Ar,swcLoader:kr,swcProps:_,tagName:"sp-icon-globe"});var Nr=r(82530);function Rr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Rr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Mr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function jr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Mr(o,n,i,a,s,"next",e)}function s(e){Mr(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Zr=(0,E.Z)(r(53904)).default;let Fr;Nr.env.EXCLUDE_SWC||(Fr=new d.t(["sp-icon-globe-search"],jr(Rr().mark((function e(){var t,n;return Rr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(7793)]).then(r.bind(r,19757));case 2:return t=e.sent,n=t.IconGlobeSearch,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Br=(0,h.Z)({displayName:"GlobeSearch",fallback:Zr,swcLoader:Fr,swcProps:_,tagName:"sp-icon-globe-search"});var Gr=r(82530);function Ur(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ur=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function zr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Vr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){zr(o,n,i,a,s,"next",e)}function s(e){zr(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Hr=(0,E.Z)(r(86071)).default;let Yr;Gr.env.EXCLUDE_SWC||(Yr=new d.t(["sp-icon-help-outline"],Vr(Ur().mark((function e(){var t,n;return Ur().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(7665)]).then(r.bind(r,33886));case 2:return t=e.sent,n=t.IconHelpOutline,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Wr=(0,h.Z)({displayName:"HelpOutline",fallback:Hr,swcLoader:Yr,swcProps:_,tagName:"sp-icon-help-outline"});var $r=r(82530);function Kr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function qr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Xr=(0,E.Z)(r(20494)).default;let Jr;$r.env.EXCLUDE_SWC||(Jr=new d.t(["sp-icon-image"],function(){var e,t=(e=Kr().mark((function e(t){var n;return Kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(5378)]).then(r.bind(r,41993));case 3:return n=e.sent,e.abrupt("return",[n.IconImage]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6414)]).then(r.bind(r,99876));case 7:return e.t0=e.sent.IconImage,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){qr(o,n,i,a,s,"next",e)}function s(e){qr(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Qr=(0,h.Z)({displayName:"Image",fallback:Xr,swcLoader:Jr,swcProps:_,tagName:"sp-icon-image"});var en=r(82530);function tn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function rn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const nn=(0,E.Z)(r(21876)).default;let on;en.env.EXCLUDE_SWC||(on=new d.t(["sp-icon-invite"],function(){var e,t=(e=tn().mark((function e(t){var n;return tn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8719)]).then(r.bind(r,31168));case 3:return n=e.sent,e.abrupt("return",[n.IconInvite]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(956)]).then(r.bind(r,91907));case 7:return e.t0=e.sent.IconInvite,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rn(o,n,i,a,s,"next",e)}function s(e){rn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const an=(0,h.Z)({displayName:"Invite",fallback:nn,swcLoader:on,swcProps:_,tagName:"sp-icon-invite"});var sn=r(82530);function cn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */cn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ln(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const un=(0,E.Z)(r(69674)).default;let pn;sn.env.EXCLUDE_SWC||(pn=new d.t(["sp-icon-info"],function(){var e,t=(e=cn().mark((function e(t){var n;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8422)]).then(r.bind(r,39258));case 3:return n=e.sent,e.abrupt("return",[n.IconInfo]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9864)]).then(r.bind(r,26608));case 7:return e.t0=e.sent.IconInfo,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ln(o,n,i,a,s,"next",e)}function s(e){ln(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const dn=(0,h.Z)({displayName:"Info",fallback:un,swcLoader:pn,swcProps:_,tagName:"sp-icon-info"});var hn=r(82530);function fn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function mn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function gn(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){mn(o,n,i,a,s,"next",e)}function s(e){mn(o,n,i,a,s,"throw",e)}a(void 0)}))}}const vn=(0,E.Z)(r(78023)).default;let yn;hn.env.EXCLUDE_SWC||(yn=new d.t(["sp-icon-info-outline"],gn(fn().mark((function e(){var t,n;return fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2515)]).then(r.bind(r,70327));case 2:return t=e.sent,n=t.IconInfoOutline,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const bn=(0,h.Z)({displayName:"InfoOutline",fallback:vn,swcLoader:yn,swcProps:_,tagName:"sp-icon-info-outline"});var _n=r(82530);function En(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */En=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function wn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ln=(0,E.Z)(r(74274)).default;let xn;_n.env.EXCLUDE_SWC||(xn=new d.t(["sp-icon-link"],function(){var e,t=(e=En().mark((function e(t){var n;return En().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(9217)]).then(r.bind(r,53054));case 3:return n=e.sent,e.abrupt("return",[n.IconLink]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(748)]).then(r.bind(r,71658));case 7:return e.t0=e.sent.IconLink,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){wn(o,n,i,a,s,"next",e)}function s(e){wn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Sn=(0,h.Z)({displayName:"Link",fallback:Ln,swcLoader:xn,swcProps:_,tagName:"sp-icon-link"});var On=r(82530);function Tn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Tn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function In(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Pn(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){In(o,n,i,a,s,"next",e)}function s(e){In(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Cn=(0,E.Z)(r(47019)).default;let An;On.env.EXCLUDE_SWC||(An=new d.t(["sp-icon-link-out"],Pn(Tn().mark((function e(){var t,n;return Tn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2517)]).then(r.bind(r,6980));case 2:return t=e.sent,n=t.IconLinkOut,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const kn=(0,h.Z)({displayName:"LinkOut",fallback:Cn,swcLoader:An,swcProps:_,tagName:"sp-icon-link-out"});var Dn=r(82530);function Nn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Nn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Rn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Mn=(0,E.Z)(r(70316)).default;let jn;Dn.env.EXCLUDE_SWC||(jn=new d.t(["sp-icon-lock-closed"],function(){var e,t=(e=Nn().mark((function e(t){var n;return Nn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(4787)]).then(r.bind(r,93169));case 3:return n=e.sent,e.abrupt("return",[n.IconLockClosed]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5724)]).then(r.bind(r,85339));case 7:return e.t0=e.sent.IconLockClosed,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Rn(o,n,i,a,s,"next",e)}function s(e){Rn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Zn=(0,h.Z)({displayName:"LockClosed",fallback:Mn,swcLoader:jn,swcProps:_,tagName:"sp-icon-lock-closed"});var Fn=r(82530);function Bn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Bn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Gn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Un(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Gn(o,n,i,a,s,"next",e)}function s(e){Gn(o,n,i,a,s,"throw",e)}a(void 0)}))}}const zn=(0,E.Z)(r(45302)).default;let Vn;Fn.env.EXCLUDE_SWC||(Vn=new d.t(["sp-icon-magnify"],Un(Bn().mark((function e(){var t,n;return Bn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(5537)]).then(r.bind(r,85955));case 2:return t=e.sent,n=t.IconMagnify,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Hn=(0,h.Z)({displayName:"Magnify",fallback:zn,swcLoader:Vn,swcProps:_,tagName:"sp-icon-magnify"});var Yn=r(82530);function Wn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function $n(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Kn=(0,E.Z)(r(19547)).default;let qn;Yn.env.EXCLUDE_SWC||(qn=new d.t(["sp-icon-more"],function(){var e,t=(e=Wn().mark((function e(t){var n;return Wn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(1258)]).then(r.bind(r,28214));case 3:return n=e.sent,e.abrupt("return",[n.IconMore]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5706)]).then(r.bind(r,8788));case 7:return e.t0=e.sent.IconMore,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){$n(o,n,i,a,s,"next",e)}function s(e){$n(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Xn=(0,h.Z)({displayName:"More",fallback:Kn,swcLoader:qn,swcProps:_,tagName:"sp-icon-more"});var Jn=r(82530);function Qn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ei(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ti(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ei(o,n,i,a,s,"next",e)}function s(e){ei(o,n,i,a,s,"throw",e)}a(void 0)}))}}const ri=(0,E.Z)(r(14924)).default;let ni;Jn.env.EXCLUDE_SWC||(ni=new d.t(["sp-icon-open-in"],ti(Qn().mark((function e(){var t,n;return Qn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(1776)]).then(r.bind(r,63370));case 2:return t=e.sent,n=t.IconOpenIn,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ii=(0,h.Z)({displayName:"OpenIn",fallback:ri,swcLoader:ni,swcProps:_,tagName:"sp-icon-open-in"});var oi=r(82530);function ai(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ai=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function si(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ci(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){si(o,n,i,a,s,"next",e)}function s(e){si(o,n,i,a,s,"throw",e)}a(void 0)}))}}const li=(0,E.Z)(r(48864)).default;let ui;oi.env.EXCLUDE_SWC||(ui=new d.t(["sp-icon-organisations"],ci(ai().mark((function e(){var t,n;return ai().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(9219)]).then(r.bind(r,28356));case 2:return t=e.sent,n=t.IconOrganisations,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const pi=(0,h.Z)({displayName:"Organisations",fallback:li,swcLoader:ui,swcProps:_,tagName:"sp-icon-organisations"});var di=r(82530);function hi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */hi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function fi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function mi(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){fi(o,n,i,a,s,"next",e)}function s(e){fi(o,n,i,a,s,"throw",e)}a(void 0)}))}}const gi=(0,E.Z)(r(56519)).default;let vi;di.env.EXCLUDE_SWC||(vi=new d.t(["sp-icon-publish-remove"],mi(hi().mark((function e(){var t,n;return hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6837)]).then(r.bind(r,37374));case 2:return t=e.sent,n=t.IconPublishRemove,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const yi=(0,h.Z)({displayName:"PublishRemove",fallback:gi,swcLoader:vi,swcProps:_,tagName:"sp-icon-publish-remove"});var bi=r(82530);function _i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ei(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function wi(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ei(o,n,i,a,s,"next",e)}function s(e){Ei(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Li=(0,E.Z)(r(47623)).default;let xi;bi.env.EXCLUDE_SWC||(xi=new d.t(["sp-icon-rail-right-close"],wi(_i().mark((function e(){var t,n;return _i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6462)]).then(r.bind(r,15198));case 2:return t=e.sent,n=t.IconRailRightClose,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Si=(0,h.Z)({displayName:"RailRightClose",fallback:Li,swcLoader:xi,swcProps:_,tagName:"sp-icon-rail-right-close"});var Oi=r(82530);function Ti(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ti=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ii(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Pi=(0,E.Z)(r(10666)).default;let Ci;Oi.env.EXCLUDE_SWC||(Ci=new d.t(["sp-icon-refresh"],function(){var e,t=(e=Ti().mark((function e(t){var n;return Ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(5155)]).then(r.bind(r,13499));case 3:return n=e.sent,e.abrupt("return",[n.IconRefresh]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(1596)]).then(r.bind(r,49932));case 7:return e.t0=e.sent.IconRefresh,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ii(o,n,i,a,s,"next",e)}function s(e){Ii(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ai=(0,h.Z)({displayName:"Refresh",fallback:Pi,swcLoader:Ci,swcProps:_,tagName:"sp-icon-refresh"});var ki=r(82530);function Di(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Di=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ni(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ri=(0,E.Z)(r(1574)).default;let Mi;ki.env.EXCLUDE_SWC||(Mi=new d.t(["sp-icon-rename"],function(){var e,t=(e=Di().mark((function e(t){var n;return Di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8655)]).then(r.bind(r,36053));case 3:return n=e.sent,e.abrupt("return",[n.IconRename]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5035)]).then(r.bind(r,9982));case 7:return e.t0=e.sent.IconRename,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ni(o,n,i,a,s,"next",e)}function s(e){Ni(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ji=(0,h.Z)({displayName:"Rename",fallback:Ri,swcLoader:Mi,swcProps:_,tagName:"sp-icon-rename"});var Zi=r(82530);function Fi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Bi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Gi=(0,E.Z)(r(95716)).default;let Ui;Zi.env.EXCLUDE_SWC||(Ui=new d.t(["sp-icon-settings"],function(){var e,t=(e=Fi().mark((function e(t){var n;return Fi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8104)]).then(r.bind(r,2063));case 3:return n=e.sent,e.abrupt("return",[n.IconSettings]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5549)]).then(r.bind(r,19652));case 7:return e.t0=e.sent.IconSettings,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Bi(o,n,i,a,s,"next",e)}function s(e){Bi(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const zi=(0,h.Z)({displayName:"Settings",fallback:Gi,swcLoader:Ui,swcProps:_,tagName:"sp-icon-settings"});var Vi=r(82530);function Hi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Yi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Wi=(0,E.Z)(r(6827)).default;let $i;Vi.env.EXCLUDE_SWC||($i=new d.t(["sp-icon-shopping-cart"],function(){var e,t=(e=Hi().mark((function e(t){var n;return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6318)]).then(r.bind(r,94656));case 3:return n=e.sent,e.abrupt("return",[n.IconShoppingCart]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(834)]).then(r.bind(r,44850));case 7:return e.t0=e.sent.IconShoppingCart,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Yi(o,n,i,a,s,"next",e)}function s(e){Yi(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ki=(0,h.Z)({displayName:"ShoppingCart",fallback:Wi,swcLoader:$i,swcProps:_,tagName:"sp-icon-shopping-cart"});var qi=r(82530);function Xi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ji(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Qi=(0,E.Z)(r(4007)).default;let eo;qi.env.EXCLUDE_SWC||(eo=new d.t(["sp-icon-share"],function(){var e,t=(e=Xi().mark((function e(t){var n;return Xi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7876)]).then(r.bind(r,52811));case 3:return n=e.sent,e.abrupt("return",[n.IconShare]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9860)]).then(r.bind(r,11010));case 7:return e.t0=e.sent.IconShare,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ji(o,n,i,a,s,"next",e)}function s(e){Ji(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const to=(0,h.Z)({displayName:"Share",fallback:Qi,swcLoader:eo,swcProps:_,tagName:"sp-icon-share"});var ro=r(82530);function no(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */no=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function io(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const oo=(0,E.Z)(r(21876)).default;let ao;ro.env.EXCLUDE_SWC||(ao=new d.t(["sp-icon-shop"],function(){var e,t=(e=no().mark((function e(t){var n;return no().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(208)]).then(r.bind(r,61460));case 3:return n=e.sent,e.abrupt("return",[n.IconSmallBusiness]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(7685)]).then(r.bind(r,74828));case 7:return e.t0=e.sent.IconShop,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){io(o,n,i,a,s,"next",e)}function s(e){io(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const so=(0,h.Z)({displayName:"Shop",fallback:oo,swcLoader:ao,swcProps:_,tagName:"sp-icon-shop"});var co=r(82530);function lo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */lo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function uo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const po=(0,E.Z)(r(94257)).default;let ho;co.env.EXCLUDE_SWC||(ho=new d.t(["sp-icon-show-menu"],function(){var e,t=(e=lo().mark((function e(t){var n;return lo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7553)]).then(r.bind(r,80501));case 3:return n=e.sent,e.abrupt("return",[n.IconShowMenu]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5883)]).then(r.bind(r,58015));case 7:return e.t0=e.sent.IconShowMenu,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){uo(o,n,i,a,s,"next",e)}function s(e){uo(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const fo=(0,h.Z)({displayName:"ShowMenu",fallback:po,swcLoader:ho,swcProps:_,tagName:"sp-icon-show-menu"});var mo=r(82530);function go(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */go=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function vo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const yo=(0,E.Z)(r(3637)).default;let bo;mo.env.EXCLUDE_SWC||(bo=new d.t(["sp-icon-sort-order-down"],function(){var e,t=(e=go().mark((function e(t){var n;return go().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2620)]).then(r.bind(r,80752));case 3:return n=e.sent,e.abrupt("return",[n.IconSortOrderDown]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2205)]).then(r.bind(r,45989));case 7:return e.t0=e.sent.IconSortOrderDown,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){vo(o,n,i,a,s,"next",e)}function s(e){vo(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const _o=(0,h.Z)({displayName:"SortOrderDown",fallback:yo,swcLoader:bo,swcProps:_,tagName:"sp-icon-sort-order-down"});var Eo=r(82530);function wo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Lo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const xo=(0,E.Z)(r(15431)).default;let So;Eo.env.EXCLUDE_SWC||(So=new d.t(["sp-icon-sort-order-up"],function(){var e,t=(e=wo().mark((function e(t){var n;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6305)]).then(r.bind(r,56829));case 3:return n=e.sent,e.abrupt("return",[n.IconSortOrderUp]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(4067)]).then(r.bind(r,80668));case 7:return e.t0=e.sent.IconSortOrderUp,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Lo(o,n,i,a,s,"next",e)}function s(e){Lo(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Oo=(0,h.Z)({displayName:"SortOrderUp",fallback:xo,swcLoader:So,swcProps:_,tagName:"sp-icon-sort-order-up"});var To=r(82530);function Io(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Io=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Po(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Co=(0,E.Z)(r(37457)).default;let Ao;To.env.EXCLUDE_SWC||(Ao=new d.t(["sp-icon-text"],function(){var e,t=(e=Io().mark((function e(t){var n;return Io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6365)]).then(r.bind(r,79504));case 3:return n=e.sent,e.abrupt("return",[n.IconText]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2968)]).then(r.bind(r,93410));case 7:return e.t0=e.sent.IconText,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Po(o,n,i,a,s,"next",e)}function s(e){Po(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ko=(0,h.Z)({displayName:"Text",fallback:Co,swcLoader:Ao,swcProps:_,tagName:"sp-icon-text"});var Do=r(82530);function No(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */No=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ro(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Mo(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ro(o,n,i,a,s,"next",e)}function s(e){Ro(o,n,i,a,s,"throw",e)}a(void 0)}))}}const jo=(0,E.Z)(r(20229)).default;let Zo;Do.env.EXCLUDE_SWC||(Zo=new d.t(["sp-icon-text-paragraph"],Mo(No().mark((function e(){var t,n;return No().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2636)]).then(r.bind(r,10861));case 2:return t=e.sent,n=t.IconTextParagraph,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Fo=(0,h.Z)({displayName:"TextParagraph",fallback:jo,swcLoader:Zo,swcProps:_,tagName:"sp-icon-text-paragraph"});var Bo=r(82530);function Go(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Go=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Uo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const zo=(0,E.Z)(r(3335)).default;let Vo;Bo.env.EXCLUDE_SWC||(Vo=new d.t(["sp-icon-user"],function(){var e,t=(e=Go().mark((function e(t){var n;return Go().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8867)]).then(r.bind(r,39206));case 3:return n=e.sent,e.abrupt("return",[n.IconUser]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(7487)]).then(r.bind(r,94766));case 7:return e.t0=e.sent.IconUser,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Uo(o,n,i,a,s,"next",e)}function s(e){Uo(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ho=(0,h.Z)({displayName:"User",fallback:zo,swcLoader:Vo,swcProps:_,tagName:"sp-icon-user"});var Yo=r(82530);function Wo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function $o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ko=(0,E.Z)(r(66619)).default;let qo;Yo.env.EXCLUDE_SWC||(qo=new d.t(["sp-icon-user-group"],function(){var e,t=(e=Wo().mark((function e(t){var n;return Wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(554)]).then(r.bind(r,9485));case 3:return n=e.sent,e.abrupt("return",[n.IconUserGroup]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(3498)]).then(r.bind(r,95140));case 7:return e.t0=e.sent.IconUserGroup,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){$o(o,n,i,a,s,"next",e)}function s(e){$o(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Xo=(0,h.Z)({displayName:"UserGroup",fallback:Ko,swcLoader:qo,swcProps:_,tagName:"sp-icon-user-group"});var Jo=r(82530);function Qo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ea(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ta(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ea(o,n,i,a,s,"next",e)}function s(e){ea(o,n,i,a,s,"throw",e)}a(void 0)}))}}const ra=(0,E.Z)(r(42166)).default;let na;Jo.env.EXCLUDE_SWC||(na=new d.t(["sp-icon-user-lock"],ta(Qo().mark((function e(){var t,n;return Qo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(4587)]).then(r.bind(r,71205));case 2:return t=e.sent,n=t.IconUserLock,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ia=(0,h.Z)({displayName:"UserLock",fallback:ra,swcLoader:na,swcProps:_,tagName:"sp-icon-user-lock"});var oa=r(82530);function aa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */aa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function sa(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ca=(0,E.Z)(r(44756)).default;let la;oa.env.EXCLUDE_SWC||(la=new d.t(["sp-icon-view-list"],function(){var e,t=(e=aa().mark((function e(t){var n;return aa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(9222)]).then(r.bind(r,42057));case 3:return n=e.sent,e.abrupt("return",[n.IconListView]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(7283)]).then(r.bind(r,95107));case 7:return e.t0=e.sent.IconViewList,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){sa(o,n,i,a,s,"next",e)}function s(e){sa(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ua=(0,h.Z)({displayName:"ViewList",fallback:ca,swcLoader:la,swcProps:_,tagName:"sp-icon-view-list"});var pa=r(82530);function da(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */da=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ha(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const fa=(0,E.Z)(r(22622)).default;let ma;pa.env.EXCLUDE_SWC||(ma=new d.t(["sp-icon-visibility"],function(){var e,t=(e=da().mark((function e(t){var n;return da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(4146)]).then(r.bind(r,22512));case 3:return n=e.sent,e.abrupt("return",[n.IconVisibility]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6939)]).then(r.bind(r,26309));case 7:return e.t0=e.sent.IconVisibility,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ha(o,n,i,a,s,"next",e)}function s(e){ha(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ga={ActivateFonts:Mt,ActivateFontsSpinner:Ai,Add:T,Add12:T,Add14:T,AddBrush:ie,AddCircle:D,AddGroup:br,AddParagraphStyle:Fo,AddText:ko,Alert:F,Back:Ie,Browse:J,Building:H,CCLibrary:ue,CCLibrary16:ue,CCXCreateColor:gt,CCXCreateFont:ko,CCXCreateImage:Qr,Checkmark:ge,ChevronDownMedium:we,ChevronDownSmall:we,ChevronLeftMedium:Ie,ChevronLeftSmall:Ie,ChevronRightMedium:Ne,ChevronRightSmall:Ne,Close:Ye,Cloud:Je,Date:Lt,Delete:Pt,DownArrow:we,Edit:Ut,Error:F,Filter:$t,Filter16:$t,FilterApplied:tr,Flag:sr,Folder:hr,FolderOpen:Or,Globe:Dr,GlobeSearch:Br,GridView:Be,Group:Xo,HelpOutline:Wr,Info:dn,InfoOutline:bn,Invite:an,Leave:Si,Link:kn,LinkedLibrary:Sn,ListView:ua,Lock:Zn,Magnify:Hn,More:Xn,Next:Ne,OpenIn:ii,Organisations:pi,Plus:T,PublishRemove:yi,Question:Wr,ReadOnly:ia,Rename:ji,Settings:zi,ShareAssets:to,Shop:so,ShoppingCart:Ki,ShowMenu:fo,Sort:_o,SortDescending:Oo,SyncAlert:ut,SyncError:it,SyncDefault:Je,SyncingSpinner:Ai,User:Ho,UserGroup:Xo,Visibility:(0,h.Z)({displayName:"Visibility",fallback:fa,swcLoader:ma,swcProps:_,tagName:"sp-icon-visibility"})};var va,ya,ba,_a,Ea;function wa(){return wa=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},wa.apply(this,arguments)}function La(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 xa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?La(Object(r),!0).forEach((function(t){Sa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):La(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oa(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ta(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ta(e,t)}(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 Ta(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}const Ia=r(5515),Pa={};let Ca=(va=a.observable.ref,(0,s.Pi)((Ea=class extends n.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="_svg",i=this,(n=_a)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this._setSVGRef=e=>this._svg=e}componentDidMount(){u.Z.useSVGPolyfill&&(this._updateIconReaction=(0,a.reaction)((()=>this._svg&&this.icon.url),(()=>this._loadSVG()),{fireImmediately:!0}))}componentWillUnmount(){this._updateIconReaction&&(this._updateIconReaction(),delete this._updateIconReaction)}get dataTestId(){return`panel-icon-${this.iconId}`}get icon(){return Ia(`./${this.iconId}.svg`).default}get _width(){return this.props.width||this.props.height}get iconId(){var e,t;return null!==(e=null===(t=p.Z.currentProduct.config.iconOverrides)||void 0===t?void 0:t[this.props.id])&&void 0!==e?e:this.props.id}_loadSVG(){const e=Oa(this.icon.url.split("#"),2),t=e[0],r=e[1];Pa[t]||(Pa[t]=fetch(t).then((e=>e.text())).then((e=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t}))),Pa[t].then((e=>{if(!this._svg)return;const t=e.getElementById(r);if(!t)return;for(;this._svg.firstChild;)this._svg.removeChild(this._svg.lastChild);const n=document.createDocumentFragment();for(let e=t.cloneNode(!0);e.childNodes.length;){const t=document.adoptNode(e.firstChild,!0);n.appendChild(t)}this._svg.appendChild(n)}))}render(){const e=n.createElement("svg",{"data-test-id":"icon-svg",width:this._width,height:this.props.height,viewBox:this.icon.viewBox,style:{fill:"currentColor"},ref:this._setSVGRef},!u.Z.useSVGPolyfill&&!u.Z.useSVGLegacyHref&&n.createElement("use",{"data-test-id":"icon-link",href:this.icon.url}),u.Z.useSVGLegacyHref&&n.createElement("use",{"data-test-id":"icon-link",xlinkHref:this.icon.url})),t=xa(xa({},this.props),{},{icon:p.Z.SPECTRUM_ICONS_MAP[this.iconId]||this.iconId,width:this._width,style:{width:this._width,height:this.props.height},className:null}),r=ga[this.iconId];return n.createElement("div",{"data-test-id":this.dataTestId,key:this.iconId,className:l()(this.props.className,"panel-icon"),onClick:this.props.onClick,style:{width:this._width,height:this.props.height},slot:this.props.slot},r?n.createElement(r,wa({dir:"ltr",fallback:e},t)):e)}},Ea.defaultProps={onClick:()=>{}},Ea.propTypes={width:o().number,height:o().number.isRequired,id:o().string.isRequired,onClick:o().func,className:o().string,slot:o().string},Aa=(ba=Ea).prototype,ka="_svg",Da=[va],Na={configurable:!0,enumerable:!0,writable:!0,initializer:null},Ma={},Object.keys(Na).forEach((function(e){Ma[e]=Na[e]})),Ma.enumerable=!!Ma.enumerable,Ma.configurable=!!Ma.configurable,("value"in Ma||Ma.initializer)&&(Ma.writable=!0),Ma=Da.slice().reverse().reduce((function(e,t){return t(Aa,ka,e)||e}),Ma),Ra&&void 0!==Ma.initializer&&(Ma.value=Ma.initializer?Ma.initializer.call(Ra):void 0,Ma.initializer=void 0),void 0===Ma.initializer&&(Object.defineProperty(Aa,ka,Ma),Ma=null),_a=Ma,ya=ba))||ya);var Aa,ka,Da,Na,Ra,Ma},16154:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n,i,o,a=r(89526),s=r(50265),c=r(62631),l=r(53849),u=r(47320),p=r(84824),d=r(76485),h=r(46903),f=r(68895),m=r(4784),g=r(24937),v=r(31870),y=r(2652),b=r.n(y),_=r(44853),E=r(5906);const w=e=>e.map((e=>{const t=`info-panel-detail-row-${e.label.toLowerCase().replace(/[^0-9a-z]/gi,"-")}`,r=e.onClick?a.createElement("div",{className:"details-value clickable","data-test-id":"source-doc-link",onClick:e.onClick},e.value):a.createElement("div",{className:"details-value","data-test-id":`details-value-${t}`},e.value);return a.createElement("div",{className:"details-row",key:e.label,"data-test-id":t},a.createElement("div",{className:"details-label","data-test-id":`details-label-${t}`},e.label),r)}));let L=(0,c.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.updateStockData=()=>{this.element&&v.Jw(this.element)&&v.PS(this.element)}}componentDidMount(){this.disposeStockReaction=(0,s.reaction)((()=>this.element),(()=>this.updateStockData())),this.updateStockData(),this.context.libraryManager.fetchLibraryCollaborations(this.currentLibrary)}componentWillUnmount(){this.disposeStockReaction()}get element(){return this.props&&this.props.element?this.props.element:this.currentLibrary&&l.Z.selection.length>=1?l.Z.selection[l.Z.selection.length-1]:void 0}get currentLibrary(){return this.props&&this.props.element?this.props.element.library:this.context.libraryManager.currentLibrary}get header(){let e,t,r;if(this.element){e=this.element.name;t=(u.Z.getExtension(this.element)||(0,p.Iu)(u.Z.getTypeName(this.element.type,!0))).toLocaleUpperCase(d.Z.getLocale()),r=a.createElement(E.Z,{element:this.element,placeholder:(0,p.Iu)("DL_DESCRIPTION_PLACEHOLDER"),className:"info-panel-editable-description",iconHeight:16})}else e=this.currentLibrary.name,t=(0,p.Iu)("DL_INFO_LIBRARY").toLocaleUpperCase(d.Z.getLocale());return a.createElement(a.Fragment,null,a.createElement("div",{className:"info-panel-header"},a.createElement("div",{className:"info-panel-header-title","data-test-id":"info-panel-header-title"},e),a.createElement("div",{className:"info-panel-header-subtitle","data-test-id":"info-panel-header-subtitle"},t),r&&a.createElement("div",{className:"info-panel-header-description","data-test-id":"info-panel-header-description"},r)),a.createElement("div",{className:"info-panel-divider"}))}get customControls(){const e=u.Z.getInfoControlComponent(this.element);if(e)return a.createElement(a.Fragment,null,a.createElement("div",{className:"info-panel-controller","data-test-id":"info-panel-controller-wrapper"},a.createElement(e,{element:this.element})),a.createElement("div",{className:"info-panel-divider"}))}get serviceProperties(){const e=u.Z.getCustomServiceProperties(this.element);if(e.length)return a.createElement("div",{"data-test-id":"info-panel-service-properties",className:"info-panel-service-properties"},w(e))}get primaryProperties(){let e;if(this.element)e=u.Z.getCustomPanelInfoPrimaryProperties(this.element);else{const t=this.currentLibrary.elements.length;e=[{label:(0,p.Iu)("DL_INFO_SHARING"),value:(0,h.rU)(this.currentLibrary)},{label:(0,p.Iu)("DL_INFO_SIZE"),value:a.createElement("div",null,a.createElement("div",null,m.Z.getSizeAsString(this.currentLibrary)),a.createElement("div",null,(0,p.Iu)(1===t?"DL_INFO_ELEMENT_COUNT_SINGULAR":"DL_INFO_ELEMENT_COUNT_PLURAL",{numElements:t})))}]}if(e.length)return a.createElement("div",{"data-test-id":"info-panel-primary-properties",className:"info-panel-primary-properties"},w(e))}get subProperties(){const e=u.Z.getCustomPanelInfoSubProperties(this.element);if(e.length)return a.createElement("div",{"data-test-id":"info-panel-sub-properties",className:"info-panel-sub-properties"},w(e))}get createdModifiedProperties(){const e=this.element||this.currentLibrary;let t=(0,p.zt)(new Date(e.created)),r=(0,p.zt)(new Date(e.modified));const n=this.currentLibrary.collaborators;if(n){const i=n.find((t=>t.id===e.createdBy));i&&(t=a.createElement("div",null,a.createElement("div",null,t),a.createElement("div",null,(0,p.Iu)("DL_INFO_CHANGE_BY",{name:i.name||i.email}))));const o=n.find((t=>t.id===e.modifiedBy));o&&(r=a.createElement("div",null,a.createElement("div",null,r),a.createElement("div",null,(0,p.Iu)("DL_INFO_CHANGE_BY",{name:o.name||o.email}))))}const i=[{label:(0,p.Iu)("DL_INFO_CREATED"),value:t},{label:(0,p.Iu)("DL_INFO_MODIFIED"),value:r}];return e.library&&i.push({label:(0,p.Iu)("DL_INFO_LIBRARY"),value:e.library.name}),(0,f.EZ)(this.currentLibrary)&&i.push({label:(0,p.Iu)("DL_INFO_SOURCE"),value:(0,f.wH)(this.currentLibrary),onClick:()=>(0,f.Fb)(this.currentLibrary)}),a.createElement("div",{"data-test-id":"info-panel-created-modified-properties",className:"info-panel-created-modified-properties"},w(i))}get propertiesList(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"info-panel-properties-list","data-test-id":"info-panel-properties-list"},this.element&&this.serviceProperties,this.primaryProperties,this.element&&this.subProperties),a.createElement("div",{className:"info-panel-divider"}),a.createElement("div",{className:"info-panel-created-modified-list"},this.createdModifiedProperties))}get locale(){return d.Z.getLocale()}render(){return this.element||this.currentLibrary?a.createElement("div",{className:"info-panel","data-test-id":"info-panel-view",lang:this.locale},!this.context.viewState.isOneUpMode()&&this.header,this.element&&this.customControls,this.propertiesList):null}}).contextType=g.r,o.propTypes={element:b().instanceOf(_.Z)},x=(i=o).prototype,S="locale",O=[s.computed],T=Object.getOwnPropertyDescriptor(i.prototype,"locale"),I=i.prototype,P={},Object.keys(T).forEach((function(e){P[e]=T[e]})),P.enumerable=!!P.enumerable,P.configurable=!!P.configurable,("value"in P||P.initializer)&&(P.writable=!0),P=O.slice().reverse().reduce((function(e,t){return t(x,S,e)||e}),P),I&&void 0!==P.initializer&&(P.value=P.initializer?P.initializer.call(I):void 0,P.initializer=void 0),void 0===P.initializer&&(Object.defineProperty(x,S,P),P=null),n=i))||n;var x,S,O,T,I,P},35938:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Ve});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(50265),u=r(62631),p=r(41199),d=r(99386),h=r(76485),f=r(47320),m=r(24937),g=r(53849),v=r(84824),y=r(91854),b=r(64662),_=r(46903),E=r(20290),w=r(51461),L=r(27611),x=r(64403),S=r.n(x),O=r(99767);function T(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let I=(0,u.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.toggleCollapsed=()=>{if(this.isCollapseDisabled)return;const e=this.collapsed?"expand-category":"collapse-category";w.ZP.reportEvent("Navigation","Library Panel","click",e),this.context.viewState.setTypeCollapsed(this.props.type,!this.collapsed)},this.onClickAdd=e=>{e.stopPropagation(),this.props.disableAdd||this.props.onClickAdd(e)}}get collapsed(){return this.context.viewState.isTypeCollapsed(this.props.type)}get isDocumentAssetsType(){return this.context.viewState.isDocumentSearchType()||this.context.viewState.isDocumentSearchMode()}get isCollapseDisabled(){const e=d.Z.currentProduct.config.disabledCollapseSectionIds;return e&&e.length}get isGroupLocalizationString(){return this.isDocumentAssetsType&&"group"===d.Z.currentProduct.config.defaultViewByState}get displayName(){return this.props.isRole?(0,v.Iu)(`DL_ROLE_${this.props.type.toUpperCase()}`):(0,v.Iu)(this.isGroupLocalizationString?this.props.type:f.Z.getTypeName(this.props.type))}get testId(){return`category-header-${this.isDocumentAssetsType||this.props.isRole?this.props.type:f.Z.getShortType(this.props.type)}`}get collapseArrow(){var e,t;if(!this.isCollapseDisabled)return a.createElement("div",{className:"panel-chevron-container-icon"},a.createElement(L.Z,{id:this.collapsed?"ChevronRightSmall":"ChevronDownSmall",height:(null===(e=(t=d.Z.currentProduct.config).collapseGroupChevronHeight)||void 0===e?void 0:e.call(t))||8}))}get addButton(){if(!this.props.showAdd)return;const e=this.props.disableAdd?(0,v.Iu)("DL_INSERT_TOOLTIP_LIMIT"):"",t=S()("type-header-add-button",{disabled:this.props.disableAdd});return a.createElement(O.Z,{content:e,placement:"top"},a.createElement("div",{className:t,onClick:this.onClickAdd,"data-test-id":`type-header-add-button-${this.displayName.toLowerCase()}`},a.createElement(L.Z,{id:"AddCircleOutline",height:18})))}render(){return a.createElement("div",{"data-test-id":this.testId,className:"panel-type-header"},a.createElement("div",{"data-test-id":`${this.testId}-toggle`,onClick:this.toggleCollapsed,className:"panel-type-header-toggle-zone"},this.collapseArrow,a.createElement("div",{"data-test-id":`${this.testId}-title`,className:"panel-type-header-text"},this.displayName)),this.addButton)}}).defaultProps={isRole:!1,showAdd:!1,onClickAdd:()=>{}},o.contextType=m.r,o.propTypes={type:c().string.isRequired,isRole:c().bool,showAdd:c().bool,disableAdd:c().bool,onClickAdd:c().func},T((i=o).prototype,"collapsed",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"collapsed"),i.prototype),T(i.prototype,"isDocumentAssetsType",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"isDocumentAssetsType"),i.prototype),n=i))||n;var P,C;let A=(0,u.Pi)(((C=class extends a.Component{get title(){return new Date(this.props.time).toLocaleString().replace(":00 "," ")}get testId(){return`timestamp-header-${this.props.time}`}render(){return a.createElement("div",{"data-test-id":this.testId,className:"panel-timestamp-header"},a.createElement("div",{"data-test-id":`${this.testId}-title`},this.title))}}).propTypes={time:c().number.isRequired},P=C))||P;var k,D,N,R=r(48003),M=r(5837),j=r(26981),Z=r(72279),F=r(10440),B=r(69233),G=r(99409),U=r(74242),z=r(48989),V=r(33275),H=r(75623);let Y=(0,u.Pi)(((N=class extends a.Component{constructor(...e){super(...e),this.handleDoubleClick=()=>{this.props.disableEditing||this.context.viewManager.startEditPath(this.props.group)}}get pathState(){return this.context.viewManager.pathState}get isEditing(){return this.context.viewManager.editPathGroup===this.props.group}get treeView(){return a.createElement("div",{"data-test-id":"panel-group-tree-view",className:"panel-group-container-text",onDoubleClick:this.handleDoubleClick},a.createElement("span",{className:"panel-group-path-view-head"},this.props.group.name))}render(){return this.isEditing?a.createElement(z.Z,{pathState:this.pathState,autocomplete:!1}):this.treeView}}).contextType=m.r,N.propTypes={group:c().oneOfType([c().instanceOf(V.ZA),c().instanceOf(H.Z)]).isRequired,disableEditing:c().bool},N.defaultProps={disableEditing:!1},W=(D=N).prototype,$="treeView",K=[l.computed],q=Object.getOwnPropertyDescriptor(D.prototype,"treeView"),X=D.prototype,J={},Object.keys(q).forEach((function(e){J[e]=q[e]})),J.enumerable=!!J.enumerable,J.configurable=!!J.configurable,("value"in J||J.initializer)&&(J.writable=!0),J=K.slice().reverse().reduce((function(e,t){return t(W,$,e)||e}),J),X&&void 0!==J.initializer&&(J.value=J.initializer?J.initializer.call(X):void 0,J.initializer=void 0),void 0===J.initializer&&(Object.defineProperty(W,$,J),J=null),k=D))||k;var W,$,K,q,X,J,Q,ee,te;function re(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ne=(0,u.Pi)(((te=class extends a.Component{get isUngrouped(){return"*"===this.props.group.id}get usePathView(){return"path"===this.props.viewByGroupMode&&!this.props.group.disableEditing}get pathViewHeader(){return this.props.group===d.Z.UNGROUPED_GROUP?a.createElement("div",{className:"panel-group-header root last-of-type"},(0,v.Iu)("DL_GROUP_UNGROUPED")):a.createElement(U.Z,{group:this.props.group,disableEditing:d.Z.currentProduct.config.disableEditPathOperation})}get treeViewHeader(){return a.createElement(Y,{group:this.props.group,disableEditing:d.Z.currentProduct.config.disableGroupViewRename||this.props.group.disableEditing})}get ungroupedHeader(){const e=(0,B.tl)(this.props.group)&&d.Z.currentProduct.config.emptyUngroupedCustomMessage;return a.createElement("div",{"data-test-id":"ungrouped-name",className:"panel-group-container-text panel-group-header root last-of-type"},(0,v.Iu)("DL_GROUP_UNGROUPED"),e&&a.createElement("span",{className:"panel-group-text-empty-ungrouped"},(0,v.Iu)(e)))}get header(){return this.isUngrouped?this.ungroupedHeader:this.usePathView?this.pathViewHeader:this.treeViewHeader}render(){return a.createElement("div",{"data-test-id":`group-title-container-${this.props.viewByGroupMode}`,className:S()(`group-title-container-${this.props.viewMode}`,`group-title-container-${this.props.viewByGroupMode}`,{ungrouped:this.isUngrouped})},this.header)}}).contextType=m.r,te.propTypes={group:c().oneOfType([c().object,V.ZA,H.Z]).isRequired,viewMode:c().oneOf(["list","grid"]),viewByGroupMode:c().oneOf(["path","tree"])},te.defaultProps={viewMode:"grid",viewByGroupMode:"tree"},re((ee=te).prototype,"pathViewHeader",[l.computed],Object.getOwnPropertyDescriptor(ee.prototype,"pathViewHeader"),ee.prototype),re(ee.prototype,"treeViewHeader",[l.computed],Object.getOwnPropertyDescriptor(ee.prototype,"treeViewHeader"),ee.prototype),re(ee.prototype,"ungroupedHeader",[l.computed],Object.getOwnPropertyDescriptor(ee.prototype,"ungroupedHeader"),ee.prototype),Q=ee))||Q;var ie,oe,ae;function se(){return se=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},se.apply(this,arguments)}function ce(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let le=(0,u.Pi)(((ae=class extends a.Component{constructor(...e){super(...e),this.onToggleCollapse=e=>{e.stopPropagation(),G.Z.closeContextMenu();const t=h.Z.isWindowsOS(),r=this.isCollapsed?"expand-group":"collapse-group";w.ZP.reportGroupEvent("Navigation","Library Panel","click",r,this.props.group);const n=this.isCollapsed,i=d.Z.currentProduct.config.customCollapseGroupWithModifierKey;if(i&&i(e,this.props.group))return;const o=e.altKey||t&&h.Z.hasUXPWindowsCTRLClickBug&&e.metaKey,a=!o&&n&&this.context.viewState.viewByGroupMode===d.Z.VIEW_BY_GROUP_MODES.PATH;this.context.viewState.setGroupCollapsed(this.props.group.id,!n),(o||a)&&B.ez(this.props.group,{shouldCollapse:!n,expandNonMeaningfulChildren:a})},this.onAddClick=e=>{w.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"single",count:1}},this.context.libraryManager.currentLibrary),this.props.group.addButtonAction(),e.stopPropagation()},this.handleGroupHeaderClick=e=>{if(this.isUngrouped||d.Z.currentProduct.config.disableGroupViewHeaderClick)return;e.stopPropagation();const t=this.context.viewState.getState().enableMultiSelect,r=h.Z.isWindowsOS(),n=!F.Z.isSelected(this.props.group);if((!r&&e.metaKey||r&&e.ctrlKey||r&&h.Z.hasUXPWindowsCTRLClickBug&&e.metaKey)&&n){F.Z.toggleSelection(this.props.group);const e=B.xF(this.props.group,!0);this.props.group.library.elements.filter((t=>e.includes(t.getGroups()[0]))).forEach((e=>g.Z.toggleSelection(e)))}else if(t&&e.shiftKey&&F.Z.groupSelection.length>0&&n){const e=this.context.viewState.groupsInViewOrder,t=F.Z.groupSelection.map((t=>e.indexOf(t))).reduce(((e,t)=>Math.min(e,t)),this.props.group.library.getGroups().length-1);F.Z.setSelectionRange(this.props.group);const r=()=>B.gw(this.props.group),n=()=>B.$3(this.props.group),i=e.indexOf(this.props.group)<t?r():n();i&&!g.Z.selection.includes(i)&&g.Z.setSelectionRange(i,!1,!0,!1)}else{F.Z.clearSelection(),F.Z.setSelection(this.props.group,!0);const e=this.props.group.library.elements.filter((e=>F.Z.isSelected(e.getGroups()[0])));g.Z.setSelection(e,void 0,!1)}},this.handleContextMenu=e=>{if(!this.isUngrouped&&!d.Z.currentProduct.config.disableGroupContextMenuInView&&(this.context.viewState.setContextMenuPositionState({x:e.clientX,y:e.clientY}),h.Z.setContextMenu)){this.context.viewManager.stopRename(),e.stopPropagation();const t=(0,R.M)(this.props.group);G.Z.openContextMenu(t,e)}},this.handleDragStart=e=>{if(!this.isDraggable)return void e.preventDefault();try{e.dataTransfer.setData("text/plain","")}catch(e){}e.dataTransfer.effectAllowed="move";const t=j.Ig();t&&e.dataTransfer.setDragImage(new Image,0,0),y.Z.handleDragStart("group",this.props.group,t?t=>{const r=e.target.parentNode.cloneNode(!0);r.style.opacity=.8,r.classList.add("drag-clone"),r.style.height="28px";const n=r.getElementsByClassName("panel-group-container-empty-message")[0];n&&n.remove(),r.style.left=e.target.clientX-e.target.clientWidth/2+"px",r.style.top=e.target.clientY-e.target.clientHeight/2+"px",t.appendChild(r),t.style.width=e.target.clientWidth+"px",document.body.appendChild(t)}:null)},this.handleDragEnd=e=>{d.Z.currentProduct.config.missingDropEventsBug?y.Z.handleDrop(e):y.Z.handleDragEnd()},this.createSubgroupFromEmpty=()=>{w.ZP.setExtraEventMetrics("createGroup",{content:{category:"Empty Group"}}),this.context.groupActions.createSubgroup(this.props.group)}}get isCollapsed(){return this.context.viewState.isGroupCollapsed(this.props.group.id)}get isSelected(){return F.Z.isSelected(this.props.group)}get isHighestSelected(){return this.isSelected&&(!this.props.group.parent||!B._y(this.props.group).find((e=>F.Z.isSelected(e))))}get isUngrouped(){return!this.props.group||"*"===this.props.group.id}get testId(){return`panel-group-container-${this.isUngrouped?"ungrouped":this.props.group.id}`}get icon(){var e,t;const r=d.Z.currentProduct.config.disabledCollapseSectionIds;if(this.isUngrouped||r&&r.length)return;const n=S()("panel-chevron-container-icon","group");return a.createElement("div",{"data-test-id":"group-expander-icon",className:n,onClick:this.onToggleCollapse},a.createElement(L.Z,{id:this.isCollapsed?"ChevronRightSmall":"ChevronDownSmall",height:(null===(e=(t=d.Z.currentProduct.config).collapseGroupChevronHeight)||void 0===e?void 0:e.call(t))||8}))}get addAssetsButton(){const e=this.props.group;return a.createElement(Z.Z,{disabled:!e.isAddButtonActive,"data-test-id":"panel-group-add-assets-button",onClick:this.onAddClick,tooltip:e.addButtonTooltip,style:{padding:"2px",marginRight:"16px"}},a.createElement(L.Z,{id:"Add12",height:12}))}get groupHeader(){const e=this.context.libraryManager.currentLibrary,t=e&&e.getGroups().length>=1,r=e&&e.elements.find((e=>0===e.getGroups().length));if(!this.isUngrouped||t&&r)return a.createElement(ne,{group:this.props.group,viewMode:this.props.viewMode,viewByGroupMode:this.context.viewState.viewByGroupMode})}get emptyGroupMessage(){if(!this.isUngrouped&&B.tl(this.props.group)&&!this.isCollapsed&&!this.props.group.hideDefaultTextInEmptyGroup){let e;e=this.props.group.library&&!this.context.viewState.isLibraryWritable(this.props.group.library)||d.Z.currentProduct.config.disableGroupEditing?(0,v.Iu)("DL_EMPTY_GROUP_INSTRUCTIONS_READ_ONLY"):(0,v.Iu)("DL_EMPTY_GROUP_INSTRUCTIONS_NESTED");const t=S()("panel-group-container-empty-message",{isHighlighted:this.isHighlighted});return a.createElement("div",{className:"panel-group-container-empty-wrapper","data-test-id":"panel-group-container-empty-wrapper"},a.createElement("div",{"data-test-id":"empty-group-message",className:t},e&&a.createElement(M.Z,{className:"panel-group-container-empty-message-text",linkClickMethods:{action:this.createSubgroupFromEmpty},html:e,"data-test-id":"empty-group-message-text"})))}}get isDraggable(){if(d.Z.currentProduct.config.disableGroupViewDragging||this.props.group.disableEditing)return!1;return![this.context.viewManager.renamingItem,this.context.viewManager.editPathGroup].includes(this.props.group)}get isHighlighted(){const e=y.Z.activeDropTarget;if(!e||!e.group)return!1;const t=e.group.id===this.props.group.id;if(!e.isValidDropTarget)return t;const r=e.isValidDropTarget(y.Z.dragData);return t&&r}render(){const e=y.Z.activeDropTarget&&y.Z.activeDropTarget.beforeGroup===this.props.group,t=y.Z.activeDropTarget&&y.Z.activeDropTarget.afterGroup===this.props.group&&y.Z.activeDropTarget.beforeGroup&&"*"===y.Z.activeDropTarget.beforeGroup.id,r=S()("panel-group-container",{"panel-group-container-ungrouped":this.isUngrouped,"panel-group-container-separator-above":e,"panel-group-container-separator-below":t,"panel-group-container-highlight":this.isHighlighted,selected:this.isSelected,"read-only":!this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)}),n=S()("panel-group-header-container",{selected:this.isSelected,isHighestSelected:this.isHighestSelected,isHoverable:!this.isUngrouped,root:!this.props.group.parent});return a.createElement("div",se({"data-test-id":this.testId,className:r,style:{height:this.props.height}},h.Z.contextMenuEventListeners(this.handleContextMenu)),!this.props.hideHeader&&a.createElement("div",{"data-test-id":`${this.testId}-header`,className:n,onClick:this.handleGroupHeaderClick,draggable:!this.isUngrouped&&this.isDraggable,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,style:this.props.style},this.icon,this.groupHeader,this.props.group.displayAddButton&&this.addAssetsButton),a.createElement("div",{"data-test-id":`${this.testId}-content-wrapper`,className:"panel-group-content-wrapper",style:this.props.style},this.emptyGroupMessage),h.Z.hasUXPScrollZIndexBug&&a.createElement("div",{"data-test-id":"uxp-scrollbar-drag-padding",className:"uxp-scrollbar-drag-padding"}))}}).contextType=m.r,ae.propTypes={group:c().oneOfType([c().object,c().instanceOf(V.ZA),c().instanceOf(H.Z)]).isRequired,height:c().number,viewMode:c().oneOf(["grid","list"]),style:c().object,hideHeader:c().bool},ce((oe=ae).prototype,"isCollapsed",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"isCollapsed"),oe.prototype),ce(oe.prototype,"isSelected",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"isSelected"),oe.prototype),ce(oe.prototype,"isHighestSelected",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"isHighestSelected"),oe.prototype),ce(oe.prototype,"groupHeader",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"groupHeader"),oe.prototype),ce(oe.prototype,"emptyGroupMessage",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"emptyGroupMessage"),oe.prototype),ie=oe))||ie;var ue,pe,de=r(59299),he=r(54048),fe=r(69923);let me=(0,u.Pi)(((pe=class extends a.Component{render(){return this.props.target.type===y.Z.dragType?a.createElement("div",{"data-test-id":"drop-zone-indicator",className:"panel-drop-zone-indicator"}):null}}).propTypes={target:c().instanceOf(fe.Z)},ue=pe))||ue;const ge=(e,t,r)=>t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height;class ve{constructor(){this._targets=[]}push(e){const t=Math.floor(e.y/200),r=Math.floor((e.y+e.height)/200);for(let n=t;n<=r;n++)this._targets[n]=this._targets[n]||[],this._targets[n].push(e)}find(e,t,r){const n=Math.floor(t/200),i=this._targets[n];if(i)for(let n=0;n<i.length;n++){const a=i[n];if(ge(a,e,t)){var o;if(a.isValidDropTarget(r)||(null===(o=a.mainDropTarget)||void 0===o?void 0:o.isValidDropTarget(r)))return a}}}}var ye,be,_e,Ee,we,Le=r(98405),xe=r(5849),Se=r(43616),Oe=r(85080),Te=r(25585);function Ie(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 Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){Ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ae(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 ke(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const De={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown"};let Ne=(0,u.Pi)(((we=class extends a.Component{constructor(...e){super(...e),this.overlayState=new Oe.Z({ignoreScrollEvents:!0,onClose:()=>this.handleBlur()}),Ae(this,"_selection",_e,this),Ae(this,"_lockedPath",Ee,this),this.registerInputEl=()=>{this.props.inputEl&&(this.props.inputEl.addEventListener("keydown",this.handleKeyDown),this.props.inputEl.addEventListener("input",this.handleInputChange),this.registerOverlay(),this.overlayState.toggleOverlay())},this.unregisterInputEl=()=>{this.props.inputEl&&(this.props.inputEl.removeEventListener("keydown",this.handleKeyDown),this.props.inputEl.removeEventListener("input",this.handleInputChange))},this.registerOverlay=()=>{this.dropdownEl&&this.props.inputEl&&this.overlayState.setParentElement([...this.dropdownParentEl,this.props.inputEl])},this.handleEnter=e=>(e.preventDefault(),this.pathState.commitEdit()),this.getNewSelectedIndex=e=>{const t=0===this.selectedIndex,r=this.selectedIndex===this.menuItems.length-1;return e===De.ARROW_UP?t?this.menuItems.length-1:this.selectedIndex-1:e===De.ARROW_DOWN?r?0:this.selectedIndex+1:void 0},this.handleArrowTravel=e=>{if(e.preventDefault(),e.stopPropagation(),[De.ARROW_UP,De.ARROW_DOWN].includes(e.key)){const t=this.getNewSelectedIndex(e.key);this.setSelection(t),this._lockedPath||(this._lockedPath=this.autocompletePath);const r=this.menuItems[t];this.pathState.updateEntry(this.pathState.headIndex,r.name),this.resetInputCursor()}},this.handleInputChange=()=>{this._lockedPath=null},this.handleKeyDown=e=>{if([De.ARROW_UP,De.ARROW_DOWN].includes(e.key))return this.handleArrowTravel(e)},this.handleBlur=()=>{this.pathState.isEditing&&this.pathState.commitEdit(),this._lockedPath=null},this.handleClickOnResult=e=>{this.acceptAutocomplete(e.name)},this.handleReturnFocus=()=>{this.props.inputEl&&setTimeout((()=>{this.props.inputEl.focus(),this.resetInputCursor()}))},this.setDropdownRef=e=>{e&&(this.dropdownEl=e,this.registerOverlay())}}componentDidMount(){this.disposeResetSelection=(0,l.reaction)((()=>this.autocompleteResults),(()=>{this._lockedPath||this.setSelection(0)})),this.registerInputEl()}componentWillUnmount(){this.disposeResetSelection(),this.overlayState.hideOverlay()}componentDidUpdate(e){e.inputEl!==this.props.inputEl&&this.registerInputEl()}get dropdownParentEl(){if(this.dropdownEl)return this.dropdownEl.overlayState.getParentElement()}get selectedIndex(){return this._selection}get pathState(){return this.context.viewManager.pathState}get query(){var e;return!this.pathState.isEditing||this.hidePathHead?"":null===(e=this.path[this.path.length-1])||void 0===e?void 0:e.name}get hidePathHead(){return!!this.pathState.head.isGroup&&this.pathState.isNewGroup}get autocompletePath(){return this._lockedPath?this._lockedPath:this.hidePathHead?[...this.pathState.matchedPath.slice(0,-1),this.pathState.getNewGroupEntry()]:this.pathState.matchedPath}get autocompleteResults(){if(!this.pathState.isEditing)return[];const e=this.pathState.getAutocompleteResultsForPath(this.autocompletePath);return this.pathState.isNewGroup?e.filter((e=>e!==this.pathState.group)):e}get path(){return this.pathState.isEditing?this._lockedPath?this._lockedPath.slice(this.pathState.maxDepth):this.pathState.livePath:[]}setSelection(e){this._selection=e}acceptAutocomplete(e){const t=this.pathState.livePath.length-1;this.pathState.updateEntry(t,e),this.pathState.addEntry(),this._lockedPath=null,this.handleReturnFocus()}resetInputCursor(){const e=this.props.inputEl.value;this.props.inputEl.setSelectionRange(e.length,e.length)}getPathLabel(e){const t=this.props.width-this.props.x,r=(0,Te.Zj)(e,{maxWidth:t});return a.createElement("div",null,r)}get menuItems(){const e=this.autocompleteResults?this.autocompleteResults.map((e=>{const t=(0,B._y)(e,!0).map((e=>e.name)).slice(this.pathState.maxDepth);return{key:e.id,label:this.getPathLabel(t),name:e.name,onClick:()=>this.handleClickOnResult(e)}})):[],t=this.path.map((e=>e.name)),r=this.query.trim(),n=!(!this.autocompleteResults||!this.autocompleteResults.find((e=>e.name===r))),i={key:"create",label:this.getPathLabel(t),name:r,onClick:()=>this.acceptAutocomplete(r)};return(this.query&&!n?[i,...e]:e).map(((e,t)=>Pe(Pe({},e),{},{isSelected:this.selectedIndex===t,onMouseOver:()=>this.setSelection(t)})))}render(){return a.createElement(Se.Z,{open:!!this.menuItems.length,disableUpperCaseTitle:!0,ref:this.setDropdownRef,data:this.menuItems,className:"panel-group-path-view-autocomplete",type:"path-view-autocomplete"})}}).contextType=m.r,we.propTypes={inputEl:c().object,x:c().number,width:c().number},_e=ke((be=we).prototype,"_selection",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ee=ke(be.prototype,"_lockedPath",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke(be.prototype,"autocompletePath",[l.computed],Object.getOwnPropertyDescriptor(be.prototype,"autocompletePath"),be.prototype),ke(be.prototype,"autocompleteResults",[l.computed],Object.getOwnPropertyDescriptor(be.prototype,"autocompleteResults"),be.prototype),ke(be.prototype,"menuItems",[l.computed],Object.getOwnPropertyDescriptor(be.prototype,"menuItems"),be.prototype),ye=be))||ye;var Re=r(97536),Me=r(36791);const je=["type","data","height","width","additionalStyles","library","viewMode","gridSizeType"];var Ze,Fe,Be;function Ge(){return Ge=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},Ge.apply(this,arguments)}function Ue(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ze(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ve=(0,u.Pi)((Be=class e extends a.Component{constructor(...t){super(...t),this._getCellItemKey=e=>{const t=e.type,r=e.key||this._getCellKey(e);return`${t}:${e.data&&e.data.library?e.data.library.id:""}:${r}:${"element"===t?this.context.viewState.viewState:""}`},this._getCellKey=e=>{var t,r;return"object"!=typeof e.data?e.data:null===(t=e.data)||void 0===t||!t.id||d.Z.CONSTANT_KEY_IDS.includes(e.data.id)?(null===(r=e.data)||void 0===r?void 0:r.id)||"*":(0,_.P)(e.data)},this._cellRenderer=({index:t,style:r})=>{const n=this.items[t],i=n.type,o=n.data,s=n.height,c=n.width,l=n.additionalStyles,u=n.library,p=n.viewMode,d=n.gridSizeType,h=Ue(n,je),f=e.ITEM_VIEWS[i](o,s,c,u,p,d,h);return l&&Object.assign(r,l),a.createElement("div",{key:this._getCellItemKey(this.items[t]),style:r},f)},this._cellSizeAndPositionGetter=({index:e})=>{const t=this.items[e];return{width:t.width,height:t.height,x:t.x,y:t.y}},this._sectionItems=[],this._setCollection=e=>{this._collection=e},this.handleClick=e=>{(h.Z.isWindowsOS()?e.ctrlKey:e.metaKey)||this.context.viewState.clearAllSelections()},this.handleDragEnter=e=>{e.preventDefault()},this.handleDragOver=e=>{if(this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)&&y.Z.dragData){e.preventDefault();const t=Array.isArray(y.Z.dragData)&&y.Z.dragData[0]instanceof b.Z;"type"===this.context.viewState.viewByState&&t&&(e.dataTransfer.dropEffect="move");const r=this.dropTargets&&this.dropTargets[y.Z.dragType];this._bounds=this._bounds||this.libraryContents&&this.libraryContents.getBoundingClientRect();const n=e.clientY-this._bounds.top+this._scrollTop,i=e.clientX-this._bounds.left;r&&y.Z.setActiveDropTarget(r.find(i,n,y.Z.dragData)),this._onDragOver&&this._onDragOver(i,n)}},this.handleDrop=e=>{y.Z.handleDrop(e)},this._scrollTop=0,this.setSelectedSection=()=>{const e=(t,r,n=0,i=t.length-1)=>{if(r=Math.ceil(r),n>i)return-1;const o=Math.floor((n+i)/2),a=t[o];return r>=a.y&&(!t[o+1]||r<t[o+1].y)?a:r<a.y?e(t,r,n,o-1):e(t,r,o+1,i)},t=e(this._sectionItems,this._scrollTop);-1!==t&&this.context.viewState.setCurrentSection(t.data.id)},this._debouncedSetSelectedSection=(0,E.Ds)(d.Z.AUTO_SCROLL_GROUP_SELECT_DEBOUNCE,(()=>(this.setSelectedSection(),Promise.resolve()))),this.handleScroll=e=>{this._scrollTop=e.target&&e.target.scrollTop,this._debouncedSetSelectedSection()},this.findNextElementToNavigate=(e,t,r)=>{if(!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft"].includes(e))return;let n;const i=this.items.filter((e=>"element"===e.type)),o=this.context.viewState.getElementsInViewOrder(g.Z.selection);if(o.length>0){let a;g.Z.lastSelectedElementWithShift&&t?a=g.Z.lastSelectedElementWithShift.id:g.Z.currentFocusedElement&&r?a=g.Z.currentFocusedElement.id:["ArrowDown","ArrowRight"].includes(e)?a=o[o.length-1].id:["ArrowUp","ArrowLeft"].includes(e)&&(a=o[0].id);const s=i.findIndex((({data:{id:e}})=>a===e));switch(e){case"ArrowLeft":n=i[s-1];break;case"ArrowRight":n=i[s+1];break;case"ArrowUp":for(let e=s-1;e>=0&&!(n&&i[e].x<i[s].x)&&!(i[e].y<i[s].y&&(n=i[e],i[e].x===i[s].x));e--);break;case"ArrowDown":{let e=i[s].y;for(let t=s+1;t<i.length&&!(n&&i[t].y>e&&e>i[s].y)&&!(i[t].y>i[s].y&&(n=i[t],e=i[t].y,i[t].x===i[s].x));t++);}}}else["ArrowDown","ArrowRight"].includes(e)&&g.Z.selection.length>0?n=i[i.length-1]:(["ArrowUp","ArrowLeft"].includes(e)||0===g.Z.selection.length)&&(n=i[0]);return n},this.handleKeyDown=e=>{let t=!0;const r=h.Z.isWindowsOS()?e.ctrlKey:e.metaKey,n=this.findNextElementToNavigate(e.key,e.shiftKey,r);if(n)if(e.shiftKey)g.Z.setSelectionRange(n.data,!0);else if(r)g.Z.setFocusedElement(n.data,!0);else if(e.altKey){let t,r;const i=this.items.filter((e=>"element"===e.type)),o=i.findIndex((({data:{id:e}})=>n.data.id===e));["ArrowDown","ArrowRight"].includes(e.key)?(r=n.data,t=o<i.length-1?i[o+1].data:void 0):["ArrowUp","ArrowLeft"].includes(e.key)&&(t=n.data,r=o>0?i[o-1].data:void 0),(0,_.l)(g.Z.selection,r,t,!0)}else g.Z.setSelection(n.data,!0);else if(" "===e.key&&g.Z.currentFocusedElement)g.Z.toggleSelection(g.Z.currentFocusedElement);else if(["PageUp","PageDown"].includes(e.key)){const r=this.items.filter((e=>"group"===e.type)),n=r.findIndex((({data:{id:e}})=>this.context.viewState.currentSection===e));"PageDown"===e.key&&-1!==n&&n<r.length-1?g.Z.revealGroup(r[n+1].data):"PageUp"===e.key&&n>0?g.Z.revealGroup(r[n-1].data):t=!1}else t=!1;t&&(e.stopPropagation(),e.preventDefault())},this.setContentsRef=e=>{this.libraryContents=e}}componentDidMount(){(0,Re.ny)(),this._loadingReaction=(0,l.reaction)((()=>this._showLoadingToast),(()=>this.toggleLoadingToast()),{fireImmediately:!0}),this._syncErrorReaction=(0,l.reaction)((()=>this._showSyncErrorToast),(()=>this.toggleSyncErrorToast()),{fireImmediately:!0})}componentWillUnmount(){this.toggleLoadingToast(!0),this.toggleSyncErrorToast(!0),this._loadingReaction(),this._syncErrorReaction()}get _showLoadingToast(){const e=this.context.libraryManager.currentLibrary;return e&&!e.areElementsLoaded}get _showSyncErrorToast(){return"requestFailed"===this.context.libraryManager.syncStatus.errorType}componentDidUpdate(e){if(e.width!==this.props.width)if(d.Z.currentProduct.config.maintainCurrentSectionOnResize&&this.context.viewState.currentSection)if("group"===this.context.viewState.viewByState){const e=this.items.find((e=>"group"===e.type&&e.data.id===this.context.viewState.currentSection));e&&g.Z.revealGroup(e.data,!0)}else g.Z.revealGroup(this.context.viewState.currentSection,!0);else this.setSelectedSection()}get items(){this._clearDropTargets();const e=this.props.itemInjector(),t=e.sectionItems,r=e.dropTargets,n=e.items;return this._sectionItems=t,r.group.forEach((e=>this.dropTargets.group.push(e))),r.element.forEach((e=>this.dropTargets.element.push(e))),n}_clearDropTargets(){this.dropTargets={group:new ve,element:new ve},this._bounds=null}componentWillReact(){this._collection&&this._collection.recomputeCellSizesAndPositions()}get _scrollToCell(){return this.props.height>0?this.items.findIndex((e=>e.data===g.Z.itemPendingScroll)):-1}get offsetTop(){}get _collectionStyle(){return{outline:"none",scrollBehavior:g.Z.shouldEaseScrolling?"smooth":"auto",overflowY:"auto",overflowX:"hidden"}}_getScrollToCellAndClearPending(){return-1!==this._scrollToCell&&setTimeout((()=>g.Z.clearItemPendingScroll())),this._scrollToCell}toggleLoadingToast(e=!1){const t="library-loading-toast-message",r=this.context.toastManager;!e&&this._showLoadingToast?r.openToast("message",{variant:"info",referenceId:t,message:(0,v.Iu)("DL_LOADING_LIBRARY"),duration:.1,closable:!1}):r.closeToast(t)}toggleSyncErrorToast(e=!1){const t="library-sync-error-toast-message",r=this.context.toastManager;!e&&this._showSyncErrorToast?r.openToast("message",{referenceId:t,message:(0,v.Iu)("DL_SYNC_REQUEST_ERROR"),variant:"error",duration:0}):r.closeToast(t)}renderVirtualizer(){return a.createElement(p.Z,{id:"collection",cellCount:this.items.length,cellRenderer:this._cellRenderer,cellSizeAndPositionGetter:this._cellSizeAndPositionGetter,scrollToAlignment:g.Z.scrollToAlignment,scrollToCell:this._getScrollToCellAndClearPending(),width:this.props.width,height:this.props.height,ref:this._setCollection,style:this._collectionStyle})}render(){return a.createElement("div",{className:"panel-inner-library-contents",tabIndex:"0",ref:this.setContentsRef,onClick:this.handleClick,onDragEnter:this.handleDragEnter,onDragOver:this.handleDragOver,onDrop:this.handleDrop,onScroll:this.handleScroll,onKeyDown:this.handleKeyDown,"data-test-id":"library-contents"},this.renderVirtualizer())}},Be.contextType=m.r,Be.propTypes={itemInjector:c().func.isRequired,width:c().number,height:c().number},Be.ITEM_VIEWS={element:(e,t,r,n,i,o,s)=>{const c=f.Z.getComponent(e.type);return a.createElement(c,Ge({element:e,height:t,width:r,viewMode:i,gridSizeType:o,showDetails:h.Z.elementDetailMode},s))},header:e=>a.createElement(I,{type:e.type,isRole:e.isRole,showAdd:e.showAdd,disableAdd:e.disableAdd,onClickAdd:e.onClickAdd}),timeHeader:e=>a.createElement(A,{time:e}),removedElementsMessage:e=>a.createElement("div",{"data-test-id":"removed-elements-message",className:"panel-removed-elements-message"},e),documentAssetsOnboarding:()=>a.createElement(Le.Z,null),group:(e,t,r,n,i,o,s)=>a.createElement(le,Ge({group:e.library?e:Object.assign({library:n},e),height:t,viewMode:i},s)),ungroupedSeparator:()=>a.createElement("div",{"data-test-id":"ungrouped-separator",className:"panel-group-ungrouped-border"}),searchResultHeader:e=>a.createElement(de.Z,{numResults:e}),searchOptionsMessage:()=>a.createElement(he.Z,null),loadSpinner:()=>a.createElement("div",{className:"panel-library-contents-load-spinner","data-test-id":"load-spinner"},a.createElement(xe.Z,{size:"medium",indeterminate:!0})),dropZone:e=>a.createElement(me,{target:e}),pathViewAutocomplete:(e,t,r,n,i,o,s)=>a.createElement(Ne,Ge({width:r},s)),spacer:(e,t,r)=>a.createElement("div",{"data-test-id":"bottom-spacer",style:{height:t,width:r}}),createItem:e=>a.createElement(Me.Z,{shortType:e.shortType,icon:e.icon,fullWidth:e.fullWidth,buttonText:e.buttonText,disabled:e.disabled,onClick:e.onClick}),brandKitView:(e,t,r,n)=>{var i,o;return null===(i=(o=d.Z.currentProduct).getBrandKitView)||void 0===i?void 0:i.call(o,n)}},ze((Fe=Be).prototype,"_showSyncErrorToast",[l.computed],Object.getOwnPropertyDescriptor(Fe.prototype,"_showSyncErrorToast"),Fe.prototype),ze(Fe.prototype,"items",[l.computed],Object.getOwnPropertyDescriptor(Fe.prototype,"items"),Fe.prototype),ze(Fe.prototype,"_scrollToCell",[l.computed],Object.getOwnPropertyDescriptor(Fe.prototype,"_scrollToCell"),Fe.prototype),ze(Fe.prototype,"_collectionStyle",[l.computed],Object.getOwnPropertyDescriptor(Fe.prototype,"_collectionStyle"),Fe.prototype),Ze=Fe))||Ze},39808:(e,t,r)=>{"use strict";r.d(t,{Z:()=>X});var n=r(89526),i=r(62631),o=r(2652),a=r.n(o),s=r(24937),c=r(35938),l=r(99386),u=r(91854),p=r(69233),d=r(69923),h=r(46903);class f extends d.Z{get type(){return"group"}get beforeGroup(){return this._dropTarget.beforeGroup}get afterGroup(){return this._dropTarget.afterGroup}get isReorder(){return!(!this.afterGroup&&!this.beforeGroup)}isValidDropTarget(e){const t=e===this.afterGroup||e===this.beforeGroup||e===this.group,r=this.group&&e.parent===this.group,n=(0,p.zA)(this.afterGroup||this.group,e)||(0,p.zA)(this.beforeGroup||this.group,e),i=this.group||this.beforeGroup||this.afterGroup,o=Array.isArray(e)?e:[e];return!(t||r||n||i.library&&i.library.isDocumentAssets&&!(0,p.mB)(o,i,this.isReorder))}onDrop(e){this.isReorder?(0,h.dB)(e,this.afterGroup,this.beforeGroup):(0,h.yD)(!0,e,this.group.library,this.group)}}var m=r(99987),g=r(59299),v=r(54048),y=r(48919);var b=r(85834),_=r(76485),E=r(47320);function w(e){const t=0===(null==e?void 0:e.elements.length);return!y.Z.panel.viewState.isSearchMode()&&t&&e.isDocumentAssets}function L(e,t,r){if(t[e.type].push(e),b.Z.get("dropZoneIndicators")){const t=e.x,n=e.y,i=e.width,o=e.height;e.id=!0,r.push({type:"dropZone",data:e,x:t,y:n,width:i,height:o,additionalStyles:{pointerEvents:"none"}})}}function x(e,t,r){const n=_.Z.getDynamicLayoutRules()[e]||{},i=(null==n?void 0:n.horizontalSpacing)||4,o=(null==n?void 0:n.verticalSpacing)||4,a=function(e,t){const r=_.Z.getDynamicLayoutRules()[t]||{},n=_.Z.getDynamicLayoutMinimumBreakpoint(),i=_.Z.getDynamicLayoutBreakpointWidth();let o=Math.ceil((e-n)/i);return o=o<0?0:o,r.getColumns&&r.getColumns(o)||1}(r,e),s=Math.floor((t+i)/a)-i;return{cellWidth:s,cellHeight:n.getHeight(s),gridHorizontalPadding:i,gridVerticalPadding:o,columns:a}}function S(e,t,r){if(w(r)){const r=e.x,n=e.y,i=e.width,o=e.height;t.push({type:"documentAssetsOnboarding",x:r,y:n,width:i,height:o,data:{}})}}function O(e,t,r){const n="path"===y.Z.panel.viewState.viewByGroupMode?e&&e.pathViewMaxDepth||0:void 0,i=y.Z.panel.viewState.elementSortState,o=y.Z.panel.viewState.isDocumentSearchMode()?()=>function(e,t,r){const n=E.Z.groupElementsByTopLevelGroup(e,t,r),i=Object.fromEntries(n.map((e=>[e.item.id,e])));return{root:{children:n},branches:i}}(t,r,i):()=>(0,p.GI)(e,{maxDepth:n,sortBy:i});return o()}function T(e,t,r){e.group&&"*"!==e.group.id&&L(new m.Z(e),t,r)}function I(e,t,r,n){const i=n.width*l.Z.SUBGROUP_INDENT_PERCENT,o=function(e,t,r){const n=O(e,t,r).branches;return Math.max(...Object.values(n).map((e=>e.item.isGroup?e.depth:0)))+1}(e,t,r);return Math.min(l.Z.MAX_SUBGROUP_INDENT,Math.ceil(i/o))}function P(e){var t,r;const n=(null===(t=(r=l.Z.currentProduct.config).headerHeight)||void 0===t?void 0:t.call(r))||24;return e+(l.Z.currentProduct.config.hideFirstSectionHeader?n: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 A(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){k(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 k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e,t,r,n){var i,o,a,s;const c=[],d={group:[],element:[]};if(!e)return{items:[],dropTargets:d,sectionItems:c};const h=l.Z.currentProduct.config.emptyGroupHeight||70,b=l.Z.currentProduct.config.disableGroupMargin?0:12,_=l.Z.currentProduct.config.gridLeftPadding||0,C=l.Z.currentProduct.config.paddingBetweenGroups||12,k=b,D=[],N=(null===(i=(o=l.Z.currentProduct.config).headerHeight)||void 0===i?void 0:i.call(o))||24,R=l.Z.currentProduct.config.headerMargin||0,M="path"===y.Z.panel.viewState.viewByGroupMode,j="order"===y.Z.panel.viewState.elementSortState,Z=function(e,t,r){return O(e,t,r).root.children}(e,t,r),F=y.Z.panel.viewState.librariesSearchState.filterCount>0,B=l.Z.SCROLLBAR_WIDTH,G=n.width-B-2*_;let U;if(F){const e=new Set;r.forEach((t=>e.add(t.id))),t.forEach((t=>e.add(t.id))),U=t=>e.has(t.id)}else U=()=>!0;const z=({key:i,section:o,index:a,sections:s,x:g,y:v,width:b,zIndex:w,hideHeader:S=!1,mainDropTarget:Z})=>{var F;const B=g,G=o.item,V="*"===G.id,H=o.children.filter((e=>U(e.item))),Y=0===H.length,W=l.Z.currentProduct.config.disableNestedGroupIndent?0:I(e,t,r,n),$=V&&0===o.children.length,K=V&&(e&&0===e.getGroups().length||$),q=Y&&e&&(e.hideUngroupedSection||!y.Z.panel.viewState.isLibraryWritable(e)),X=b-W-B<160?h+25:h,J=X+N+R,Q=!G.parent&&0!==a&&!l.Z.currentProduct.config.evenlySpacedSubgroups?C:0,ee=!!Z,te=u.Z.isHoldingDragOverGroup(G),re=j&&(!M||M&&(te||ee)),ne=ee||y.Z.panel.viewState.isGroupCollapsed(G.id)||Y&&G.hideDefaultTextInEmptyGroup;if(l.Z.currentProduct.config.hideEmptyGroups&&Y&&!V)return{x:g,y:v};if(!U(o.item))return{x:g,y:v};if(V&&q)return{x:g,y:v};if(Y&&G.hideWhenEmpty)return{x:g,y:v};if(M&&!ee&&!(0,p.k5)(o))return{x:g,y:v};const ie=o.tree.branches[null===(F=(0,p.Oy)(o.item))||void 0===F?void 0:F.id];if(M&&ie&&(0,p.k5)(ie))return{x:g,y:v};if(M&&u.Z.isHoldingDragOverGroup(G)){const n=e.pathViewMaxDepth||0,i=(0,p._y)(G).slice(n).map((n=>O(e,t,r).branches[n.id]));Z=u.Z.holdingDropTarget,i.forEach(((e,t)=>{const r=`${G.id}:${e.item.id}`,n=z({key:r,section:e,index:t,sections:i,x:g,y:v,width:b,zIndex:w,hideHeader:S,mainDropTarget:Z}).y;v=n}))}v+=Q;const oe=!l.Z.currentProduct.config.disableGroupSeparator&&l.Z.currentProduct.config.groupSeparatorHeight||12;if(!l.Z.currentProduct.config.disableGroupSeparator&&V&&!K){const e={type:"ungroupedSeparator",data:G,x:g,y:v,width:b,height:12};D.push(e),v+=oe}const ae={type:"group",data:G,key:i,x:_,y:v,width:b,style:{paddingLeft:g},library:t[0]&&t[0].library,viewMode:y.Z.panel.viewState.viewState,zIndex:w,hideHeader:S};if(function(e,t){t.push(e);const r="path"===y.Z.panel.viewState.viewByGroupMode,n=y.Z.panel.viewManager.editPathGroup===e.data,i=y.Z.panel.viewManager.pathState.inputElement;if(r&&n&&i){const r=e.x,n=e.y,o=e.width,a=r+25+e.style.paddingLeft,s=n+24,c=o-a-12;t.push({type:"pathViewAutocomplete",x:a,y:s,width:c,height:0,data:{id:"autocomplete"},inputEl:i,zIndex:2})}}(ae,D),c.push({y:v-(V?oe:0),data:G}),re){const n=k,i=M?(n=>{const i=O(e,t,r).branches,o=i[n.id].parent;return o.children.find(((e,t)=>e.item.parent===n.parent&&o.children[t+1]===i[n.id]))})(G):s[a-1],o=(null==i?void 0:i.item.isGroup)&&i.item;L(new f({x:g,y:v-k/2,width:b,height:n,afterGroup:o,beforeGroup:G,mainDropTarget:Z}),d,D)}if(!Y||V||ne){if(!V){var se;const e={x:g,y:v,width:b,height:N+(ne?0:4),group:G,mainDropTarget:Z},t=null===(se=H.find((e=>!e.item.isGroup)))||void 0===se?void 0:se.item;L(new m.Z(A(A({},e),{},{beforeElement:t})),d,D),L(new f(e),d,D)}}else{const e={x:g,y:v,width:b,height:J,group:G};L(new m.Z(e),d,D),L(new f(e),d,D)}if(v+=(K||S?0:N)+R,ne){const e=v-ae.y;return ae.height=e,{x:g,y:v}}if("grid"===y.Z.panel.viewState.viewState){const e=l.Z.currentProduct.config.gridLeftPadding||12,t=l.Z.currentProduct.config.gridRightPadding||0,r=b-g-t-(l.Z.currentProduct.config.gridLeftPadding?0:2*e),n=function(e){if(l.Z.currentProduct.config.uniformElementSize)return y.Z.panel.viewState.gridZoomFactor;let t,r,n,i;return e.forEach((e=>{const o=E.Z.getGridSizeByType(e.type||l.Z.COLOR_ELEMENT_TYPE);o===l.Z.GRID_TYPE_LARGE?t=!0:o===l.Z.GRID_TYPE_MEDIUM?r=!0:o===l.Z.GRID_TYPE_SMALL?n=!0:o===l.Z.GRID_TYPE_WIDE&&(i=!0)})),t||i&&r||i&&n?l.Z.GRID_TYPE_LARGE:!i||r||n?r?l.Z.GRID_TYPE_MEDIUM:l.Z.GRID_TYPE_SMALL:l.Z.GRID_TYPE_WIDE}(H.map((e=>e.item)).filter((e=>!e.isGroup))),i=x(n,r,b),o=i.cellHeight,a=i.cellWidth,s=i.gridHorizontalPadding,c=i.gridVerticalPadding,u=i.columns;g+=e,l.Z.currentProduct.config.disableTopElementGridPadding&&(v-=c),H.forEach(((t,r)=>{const i=t.item;if(0!==r||i.isGroup||l.Z.currentProduct.config.disablePaddingWithinGridGroup||(v+=c),0!==r&&r%u==0&&!i.isGroup){const t=Math.max(0,g-a/2-s);T({x:t,y:v,width:b-t,height:o,group:G,afterElement:H[r-1]&&H[r-1].item,beforeElement:i,isRowEnd:!0},d,D),g=B+e,v+=o+c}if(!i.isGroup){const e=Math.max(0,g-s-a/2),t=Math.min(a+2*s,g+a/2,b-e);T({x:e,y:v,width:t,height:o,group:G,afterElement:r>0?H[r-1].item:void 0,beforeElement:i},d,D)}if(!i.isGroup&&(r===H.length-1||H[r+1].item.isGroup)){const e=g+a/2;T({x:e,y:v,width:b-e,height:o,group:G,afterElement:i,isRowEnd:!0},d,D)}if(i.isGroup){const e=z({section:t,index:r,sections:H,x:B+W,y:v,width:b,zIndex:w+1}).y;v=e}else{D.push({type:"element",data:i,x:g,y:v,width:a,height:o,viewMode:y.Z.panel.viewState.viewState,gridSizeType:n,zIndex:1}),g+=a+s;const e=r===H.length-1,t=!e&&H[r+1].item.isGroup;(e||t)&&(v+=o+c)}}))}else{const e=l.Z.LIST_VIEW_ELEMENT_HEIGHT;H.forEach(((t,r)=>{const n=t.item;if(U(n))if(n.isGroup){const e=z({section:t,index:r,sections:H,x:g+W,y:v,width:b,zIndex:w+1}).y;v=e}else T({x:g,y:v-e/2,width:b,height:e,group:G,afterElement:r>0?H[r-1].item:void 0,beforeElement:n},d,D),r===H.length-1&&T({x:g,y:v+e/2,width:b,height:e/2,group:G,afterElement:n,isRowEnd:!0},d,D),D.push({type:"element",data:n,x:_,y:v,width:b,height:e,viewMode:y.Z.panel.viewState.viewState,zIndex:1,listStyle:{paddingLeft:g+12}}),v+=e}))}if(Y&&(v+=X+(l.Z.currentProduct.config.emptyGroupBottomPadding||0)),ae.height=v-ae.y,V){const e=l.Z.currentProduct.config.lastSectionFullHeight&&s.length>1?0:ae.y,t=Math.max(P(n.height)-e,ae.height);ae.height=t;const r={x:B,y:ae.y,width:b,height:t,group:G};L(new m.Z(r),d,D)}return{x:g,y:v}},V=_;let H=l.Z.currentProduct.config.disableGroupMargin?0:(null===(a=(s=l.Z.currentProduct.config).getScrollTopPadding)||void 0===a?void 0:a.call(s))||8;if(y.Z.panel.viewState.isSearchMode()){const e=g.Z.getHeight(t.length,G);D.push({type:"searchResultHeader",data:t.length,x:0,y:H,width:G,height:e}),H+=e}let Y=!1;if(Z.forEach(((e,t)=>{const r=l.Z.currentProduct.config.hideFirstSectionHeader&&!Y;(M&&!(0,p.Oy)(e.item)&&(0,p.k5)(e)||!M&&0===t)&&(Y=!0);const n=z({section:e,index:t,sections:Z,x:V,y:H,width:G,zIndex:-100,hideHeader:r}).y;H=n})),(y.Z.panel.viewState.isLibrarySearchMode()||y.Z.panel.viewState.isDocumentSearchMode())&&!y.Z.panel.viewState.isRootView()){const e=v.Z.getHeight(G);D.push({type:"searchOptionsMessage",data:{},x:0,y:H,width:G,height:e}),H+=e}const W=0===Z.find((e=>e.item&&"*"===e.item.id)).children.length,$=W&&e&&(e.hideUngroupedSection||!y.Z.panel.viewState.isLibraryWritable(e));return!(n.height<=H)||w(e)||l.Z.currentProduct.config.hideExtraBottomSpace||W&&!$||(D.push({type:"spacer",data:{},x:0,y:H,width:G,height:64}),H+=64),S({x:_,y:H,width:G,height:n.height-H},D,e),{items:D,dropTargets:d,sectionItems:c}}var N,R,M=r(33275),j=r(75623);let Z=(0,i.Pi)((R=class extends n.Component{constructor(...e){super(...e),this.injectItems=()=>D(this.props.library,this.props.elements,this.props.groups,{width:this.props.width,height:this.props.height})}render(){const e=this.props,t=e.baseContentView,r=e.width,i=e.height;return n.createElement(t,{itemInjector:this.injectItems,width:r,height:i})}},R.propTypes={width:a().number,height:a().number,library:a().any,elements:i.ng.arrayOrObservableArrayOf(a().instanceOf(M.W_)).isRequired,groups:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(M.ZA),a().instanceOf(j.Z)])).isRequired,baseContentView:a().elementType},R.defaultProps={baseContentView:c.Z},R.contextType=s.r,N=R))||N;var F=r(34038),B=r(4784),G=r(51461),U=r(39293);function z(e,t,r){var n,i,o,a;const s=[],c={group:[],element:[]},u=l.Z.SCROLLBAR_WIDTH,p=r.width-u;if(p<0)return{dropTargets:c,sectionItems:s,items:[]};const d=y.Z.panel.viewState.isSearchMode()?y.Z.panel.viewState.elementSearchSort:y.Z.panel.viewState.elementSortState,h=y.Z.panel.viewState.isRemovedElementsMode()?E.Z.groupElementsByTime(t,"removed"):E.Z.groupElementsByType(t,d,y.Z.panel.viewState.elementSortDescendingState),f=[];let O=l.Z.currentProduct.config.disableGroupMargin?0:(null===(n=(i=l.Z.currentProduct.config).getScrollTopPadding)||void 0===n?void 0:n.call(i))||8;if(y.Z.panel.viewState.isSearchMode()){const e=g.Z.getHeight(t.length,p);f.push({type:"searchResultHeader",data:t.length,x:0,y:O,width:p,height:e}),O+=e}if(y.Z.panel.viewState.isRemovedElementsMode()){if(0===t.length)return f.push({type:"removedElementsMessage",data:"No deleted items.",x:0,y:O,width:p,height:20}),{dropTargets:c,sectionItems:s,items:f};if(!t[0].library.isWritable)return f.push({type:"removedElementsMessage",data:"You don't have write access to this library, so you can't view its deleted items.",x:0,y:O,width:p,height:20}),{dropTargets:c,sectionItems:s,items:f}}const T=t=>!(!y.Z.panel.viewState.isLibraryWritable(e,!1,!0)||y.Z.panel.viewState.isSearchMode())&&(b.Z.get("brandFeatureEnabled")&&t.isRole||(e=>F.ku(e.type).length)(t)),I=h.filter((e=>{const t=l.Z.currentProduct.config.showEmptyUsableTypes&&T(e);return e.children.length||t}));if(I.forEach(((t,n)=>{var i,o;const a=t.type||t.item&&t.item.nameLocalizationKey||"*",c=t.isRole?a:E.Z.getShortType(a),u=t.children,d=f.length,h=(null===(i=(o=l.Z.currentProduct.config).headerHeight)||void 0===i?void 0:i.call(o))||24,m=r=>{r.stopPropagation();const n=E.Z.getOpenPickerOperation(t.isRole?l.Z.IMAGE_ELEMENT_TYPE:a),i=(0,U.Ol)(e)?"brands":"libraries";G.ZP.reportEvent("Operations",i,"click","add-library-asset",{content:{type:c}},e),n(e,r,t.isRole)};if(y.Z.panel.viewState.isRemovedElementsMode())f.push({type:"timeHeader",data:t.time,x:0,y:O,width:p,height:h}),O+=h;else if(!y.Z.panel.libraryManager.disableCCLibraries){const r=l.Z.currentProduct.config.hideFirstSectionHeader&&0===n;if(!r){const r={isRole:t.isRole,type:a,id:"header",showAdd:!!(l.Z.currentProduct.config.enableCreateItemCards&&t.children.length&&T(t)),onClickAdd:m,disableAdd:!B.Z.canAddElements(e)};f.push({type:"header",data:r,x:0,y:O,width:p,height:h})}if(s.push({y:O,data:{id:a}}),O+=(r?0:h)+(l.Z.currentProduct.config.headerMargin||0),y.Z.panel.viewState.isTypeCollapsed(a))return void(O+=4)}let g;if("grid"===y.Z.panel.viewState.viewState){const r=2*l.Z.currentProduct.config.gridLeftPadding||12,n=l.Z.currentProduct.config.gridRightPadding||0,i=p-2*r-n,o=E.Z.getGridSizeByType(t.type||u[0]&&u[0].type),s=x(o,i,p),d=s.cellHeight,h=s.cellWidth,m=s.gridHorizontalPadding,v=s.gridVerticalPadding,b=s.columns;g=r,l.Z.currentProduct.config.disableTopElementGridPadding&&(O-=v);const _=l.Z.currentProduct.config.enableCreateItemCards&&!t.children.length&&T(t);if(_){const n=r=>{r.stopPropagation();const n=E.Z.getOpenPickerOperation(t.isRole?l.Z.IMAGE_ELEMENT_TYPE:a),i=(0,U.Ol)(e)?"brands":"libraries";G.ZP.reportEvent("Operations",i,"click","add-library-asset",{content:{type:c}},e),n(e,r,t.isRole)},i={id:`add-${c}-card`,icon:`CCXCreate${c[0].toUpperCase()+c.slice(1).toLowerCase()}`,disabled:!B.Z.canAddElements(e),onClick:n,shortType:c,fullWidth:!0},s=p-2*r;f.push({type:"createItem",data:i,x:g,y:O,width:s,height:d,viewMode:y.Z.panel.viewState.viewState,gridSizeType:o,zIndex:1}),g+=h+m}u.forEach(((e,t)=>{_&&t++,t%b==0&&0!==t&&(g=r,O+=d+v),f.push({type:"element",data:e,x:g,y:O,width:h,height:d,viewMode:y.Z.panel.viewState.viewState,gridSizeType:o,zIndex:1}),g+=h+m})),O+=d+v}else{g=0;const e=l.Z.LIST_VIEW_ELEMENT_HEIGHT;u.forEach((t=>{f.push({type:"element",data:t,x:g,y:O,width:p,height:e,viewMode:y.Z.panel.viewState.viewState,zIndex:1,listStyle:{paddingLeft:12}}),O+=e}))}!l.Z.currentProduct.config.disableGroupMargin&&n<I.length-1&&(O+=12),n===I.length-1&&I.length>1&&l.Z.currentProduct.config.lastSectionFullHeight&&(f[d].height=Math.max(P(r.height),O-f[d].y))})),(y.Z.panel.viewState.isLibrarySearchMode()||y.Z.panel.viewState.isDocumentSearchMode())&&!y.Z.panel.viewState.isRootView()){const e=v.Z.getHeight(p);f.push({type:"searchOptionsMessage",data:{},x:0,y:O,width:p,height:e}),O+=e}if(e&&null!==(o=(a=l.Z.currentProduct).shouldShowBrandKitView)&&void 0!==o&&o.call(a,e)&&_.Z.isMobileView){const t=720;f.push({type:"brandKitView",data:{},library:e,x:0,y:O,width:p,height:t}),O+=t}r.height<=O&&!w(e)&&!l.Z.currentProduct.config.hideExtraBottomSpace&&(f.push({type:"spacer",data:{},x:0,y:O,width:p,height:64}),O+=64);return L(new m.Z({x:0,y:0,width:p,height:Math.max(O,r.height)}),c,f),S({x:0,y:O,width:p,height:r.height-O},f,e),{sectionItems:s,dropTargets:c,items:f}}var V,H,Y=r(6535),W=r(80091);let $=(0,i.Pi)((H=class extends n.Component{constructor(...e){super(...e),this.injectItems=()=>z(this.props.library,this.props.elements,{width:this.props.width,height:this.props.height})}render(){const e=this.props,t=e.baseContentView,r=e.width,i=e.height;return n.createElement(t,{itemInjector:this.injectItems,width:r,height:i})}},H.propTypes={width:a().number,height:a().number,library:a().oneOfType([a().instanceOf(M.Zu),a().instanceOf(Y.Z)]),elements:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(M.W_),a().instanceOf(W.Z)])).isRequired,baseContentView:a().elementType},H.defaultProps={baseContentView:c.Z},H.contextType=s.r,V=H))||V;var K,q;let X=(0,i.Pi)(((q=class extends n.Component{get shouldRenderGroupView(){return("group"===this.context.viewState.viewByState||this.context.viewState.isDocumentSearchMode()&&"group"===l.Z.currentProduct.config.defaultViewByState)&&this.props.groups}render(){const e=this.shouldRenderGroupView?Z:$;return n.createElement(e,this.props)}}).propTypes={width:a().number,height:a().number,library:a().any,elements:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(M.W_),a().instanceOf(W.Z)])).isRequired,groups:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(M.ZA),a().instanceOf(j.Z)])),baseContentView:a().elementType},q.contextType=s.r,K=q))||K},21694:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(89526),i=r(2652),o=r.n(i),a=r(62631),s=r(50265),c=r(84824),l=r(24937),u=r(76485),p=r(99386),d=r(51461),h=r(26981),f=r(46903),m=r(74149),g=r(64403),v=r.n(g),y=r(33275),b=r(6535),_=r(89526);const E=["library","children","className"];var w,L,x,S;function O(){return O=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},O.apply(this,arguments)}function T(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let I=(0,a.Pi)((S=class extends n.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="isDraggedOver",i=this,(n=x)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.dragData=null,this._onDragOver=e=>{this.context.viewState.isLibraryWritable(this.props.library,!1)&&(e.dataTransfer.types.includes(u.Z.ElementDragId)||e.dataTransfer.types.includes("Files"))&&(e.dataTransfer.types.includes("Files")&&(e.dataTransfer.dropEffect="copy"),e.preventDefault(),this.isDraggedOver=!0)},this._onDragLeave=()=>{this.isDraggedOver=!1,this.dragData=null},this._onDragEnter=e=>{e.preventDefault(),this.context.viewState.getDraggingData().then((e=>this.dragData=e))},this._onDrop=e=>{this.isDraggedOver=!1;const t=e.dataTransfer.getData(u.Z.ElementDragId),r=e.dataTransfer.files,n=this.dragData;if(this.dragData=null,this.context.viewState.isLibraryWritable(this.props.library,!1))if((0,h.SF)(n)){if(!(n.assetList&&n.assetList.length>0))return;n.library=this.props.library;const t=(({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n})=>({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n}))(e);(p.Z.currentProduct.dropHandler?p.Z.currentProduct.dropHandler(n,t):Promise.reject()).catch((()=>(0,h.rr)(n,this.props.library))).then((e=>{e&&(e=Array.isArray(e)?e:[e],this._showElementAddedToast(e))}))}else if(t){const r=JSON.parse(t);if(r.libraryId===this.props.library.id)return;const n=r.elementIds.map((e=>this.context.libraryManager.currentLibrary.getElementById(e))),i=!e.altKey;d.ZP.setExtraEventMetrics("updateElement",{subtype:"ungroup",content:{category:"Drag Drop"}}),d.ZP.setExtraEventMetrics(i?"moveElement":"copyElement",{content:{category:"Drag Drop"}}),d.ZP.reportEvent("Element Operations","Element","click",i?"move-to-library":"ungroup",{event:{count:n.length,value:"agg"},content:{category:"Drag Drop"}}),(0,f.IO)(i,n,this.props.library)}else if(r&&r.length>0){e.preventDefault(),e.stopPropagation();(u.Z.getDragFileList?u.Z.getDragFileList.bind(u.Z):()=>Promise.resolve(r))().then((e=>{(0,m.Bq)(this.props.library,e).then((e=>{this._showElementAddedToast(e)}))}))}}}_showElementAddedToast(e){const t=e&&e.length;if(!t)return;const r=t>1?"DL_ELEMENTS_ADDED_SUCCESFUL":"DL_ELEMENT_ADDED_SUCCESFUL";this.context.toastManager.openToast("message",{message:(0,c.Iu)(r,{numElements:t,libraryName:this.props.library.name})})}render(){const e=this.props,t=e.library,r=e.children,n=e.className,i=T(e,E),o=v()("library-list-item-container",n);return _.createElement("div",O({"data-test-id":`library-drop-target-${t.id}`,onDragOver:this._onDragOver,onDragLeave:this._onDragLeave,onDragEnter:this._onDragEnter,onDrop:this._onDrop,className:o},i),r(this.isDraggedOver))}},S.contextType=l.r,S.propTypes={library:o().oneOfType([o().instanceOf(y.Zu),o().instanceOf(b.Z)]).isRequired,children:o().func.isRequired,className:o().string},P=(L=S).prototype,C="isDraggedOver",A=[s.observable],k={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},N={},Object.keys(k).forEach((function(e){N[e]=k[e]})),N.enumerable=!!N.enumerable,N.configurable=!!N.configurable,("value"in N||N.initializer)&&(N.writable=!0),N=A.slice().reverse().reduce((function(e,t){return t(P,C,e)||e}),N),D&&void 0!==N.initializer&&(N.value=N.initializer?N.initializer.call(D):void 0,N.initializer=void 0),void 0===N.initializer&&(Object.defineProperty(P,C,N),N=null),x=N,w=L))||w;var P,C,A,k,D,N},17632:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(50265),u=r(76485),p=r(46903),d=r(1149),h=r(64403),f=r.n(h),m=r(27611),g=r(84824),v=r(3303),y=r(33275),b=r(6535);let _=(0,c.Pi)(((i=class extends o.Component{render(){return o.createElement(v.Z,{item:this.props.library,allowBlankName:!1,allowLongDoubleClick:this.props.allowLongDoubleClick,placeholder:(0,g.Iu)("DL_EDIT_NAME_PLACEHOLDER"),inputClassName:"library-list-item-edit-name",onEditFinish:this.props.onEditFinish,onOverflowChange:this.props.onOverflowChange,isSelected:this.props.isSelected,isReadOnly:!(0,p.W)(this.props.library),isEditDisabled:this.props.isEditDisabled})}}).defaultProps={allowLongDoubleClick:!0,isSelected:!1},i.propTypes={allowLongDoubleClick:s().bool,library:s().instanceOf(y.Zu,b.Z).isRequired,onEditFinish:s().func,onOverflowChange:s().func,isSelected:s().bool,isEditDisabled:s().bool},n=i))||n;var E,w,L,x,S=r(51461),O=r(99767),T=r(2169),I=r(99409),P=r(24937),C=r(99386),A=r(21694),k=r(51702),D=r(85080),N=r(85834);function R(){return R=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},R.apply(this,arguments)}let M=(0,c.Pi)((x=class extends o.Component{constructor(...e){var t,r,n,i;super(...e),this.overlayState=new D.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),t=this,r="hasNameTooltip",i=this,(n=L)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.componentDidMount=()=>{this.context.libraryManager.fetchLibraryCollaborations(this.props.library,C.Z.FETCH_COLLABORATIONS_THROTTLE)},this.finishRename=e=>{S.ZP.reportEvent("Library Operations","Library","click","rename",{content:{category:"click"===e?"List Click":"List Right Click"}},this.props.library),u.Z.setHeader&&u.Z.setHeader()},this.handleClick=e=>{const t=(0,T.j6)(e);t&&"INPUT"!==t.tagName&&t.blur();const r=this.context.viewState,n=r.getSearchText();if(r.isSearchMode()&&n&&C.Z.currentProduct.config.reportSearchSDMEvents){const e=this.sectionLibrary,t=e.roles[0]?e.roles[0].type:"library",i=r.librariesInViewOrder.indexOf(e)+1,o={"custom.library.type":(0,d.$2)(e.ownership),"custom.library.filter":t,"ui.search_keyword":n,"custom.ui.location":"editor-brands-libraries-tab","custom.search.rank":i,"custom.search.id":r.getSearchId()};C.Z.currentProduct.config.reportSearchSDMEvents(o)}if(!this.isRenamingMode&&this.props.allowNavigation&&this.props.onClick){const e=this.props.library.isDocumentAssets?"select-document-assets":"select-library";S.ZP.reportEvent("Navigation","Library Panel","click",e,null,this.props.library),r.setSearchText(""),r.setSearchType("library"),this.props.onClick(this.props.library)}I.Z.closeContextMenu()},this.handleOverflowChange=e=>{this.hasNameTooltip=u.Z.hasUXPScrollWidthBug||e},this.handleContextMenu=e=>{if(u.Z.setContextMenu&&!this.props.disableContextMenu){this.overlayState.toggleOverlay();const t=C.Z.currentProduct.config.disabledLibraryContextMenuActions||[];this.context.viewManager.stopRename(),e.stopPropagation();const r=this.context.libraryActions.getLibraryActions(this.props.library,!1,this.props.isRecent).filter((e=>!t.includes(e.id)));I.Z.openContextMenu(r,e)}}}get iconHeight(){return C.Z.currentProduct.config.libraryListItemIconSize||12}get sectionLibrary(){return this.props.isRecent?(this._recentLibrary=this._recentLibrary||new Proxy(this.props.library,{get:(e,t)=>"id"===t?`${e.id}${C.Z.RECENT_LIBRARY_ID_FLAG}`:e[t]}),this._recentLibrary):this.props.library}get isDocumentAssets(){return this.props.library.isDocumentAssets}get gatedUpdates(){return this.props.library.gatedUpdates||[]}get gatedUpdatesBadge(){if(!this.gatedUpdates.length)return;const e=this.gatedUpdates.length>=C.Z.MAX_ASSET_UPDATE_COUNT?"UPDATE_COUNT_MAX":"UPDATE_COUNT",t=this.gatedUpdates.length>=C.Z.MAX_ASSET_UPDATE_COUNT?C.Z.MAX_ASSET_UPDATE_COUNT:this.gatedUpdates.length;return o.createElement("div",{"data-test-id":"library-list-item-update-count",className:"library-list-item-update-count"},(0,g.Iu)(e,{number:t}))}get folder(){return this.props.library&&this.context.libraryManager.platformFolders.find((e=>this.props.library.parentDirectoryId===e.id))}get libraryName(){return o.createElement(_,{onOverflowChange:this.handleOverflowChange,library:this.sectionLibrary,allowLongDoubleClick:this.props.allowLongDoubleClick,onEditFinish:this.finishRename,isSelected:this.props.isSelected,isEditDisabled:this.props.disableEditableName})}get linkedLibraryIcon(){return this.isDocumentAssets?o.createElement(m.Z,{id:"DocumentAssets",height:this.iconHeight,className:f()({"notification-indicator":!!this.gatedUpdates.length})}):this.props.library.documentId?o.createElement(m.Z,{id:"LinkedLibrary",height:this.iconHeight}):void 0}get shareIcon(){if(!this.isDocumentAssets)return p.$_(this.props.library)?N.Z.get("enableProjects")?o.createElement(m.Z,{id:"Projects",height:this.iconHeight}):o.createElement(m.Z,{id:"Building",height:this.iconHeight}):p.R3(this.props.library)?o.createElement(m.Z,{id:"UserGroup",height:this.iconHeight}):p.D3(this.props.library)?o.createElement(m.Z,{id:"Globe",height:this.iconHeight}):void 0}get dataTestId(){return`library-list-item-${this.props.library.id}`}get isRenamingMode(){return this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===this.sectionLibrary.id}get invalidRename(){return this.isRenamingMode&&this.context.viewManager.renameStatus!==C.Z.RENAME_STATES.VALID}get shareLabel(){return p.rU(this.props.library)}get shareTooltip(){return p.rU(this.props.library,!0)}get shareStatus(){if(this.shareIcon||!this.props.sharingIconOnly)return o.createElement(O.Z,{className:"library-list-item-tooltip library-list-item-icon-container",content:this.shareTooltip,disable:!!this.isRenamingMode,placement:"right"},o.createElement("div",{"data-test-id":"library-list-item-sharing-container",className:"library-list-item-sharing-container"},o.createElement("div",{"data-test-id":"icon",className:"library-list-item-shared-icon"},this.shareIcon&&this.shareIcon),!this.props.sharingIconOnly&&o.createElement("span",{"data-test-id":"sharing",className:"library-list-item-sharing"},this.shareLabel)))}get isHighlighted(){return this.context.libraryManager.isLibraryRecentlyActive(this.props.library)}get createdDate(){return o.createElement(O.Z,{className:"library-list-item-created",content:(0,g.Iu)("DL_INFO_CREATED_DATE")},o.createElement("div",{"data-test-id":"created-date"},(0,g.zt)(new Date(this.props.library.created),!0)))}get contextMenuButton(){return o.createElement("div",{className:f()("library-list-item-context-menu",{open:this.overlayState.isOpen})},o.createElement(k.Z,{quiet:!0,"data-test-id":"mosaic-context-menu",onContextMenuClick:this.handleContextMenu}))}render(){return o.createElement(A.Z,{library:this.props.library},(e=>{const t=f()("library-list-item",{"is-dragged-over":e,"is-selected":this.props.isSelected,"is-renaming":!!this.isRenamingMode,"is-highlighted":this.isHighlighted,invalid:!!this.invalidRename});return o.createElement("div",R({"data-test-id":this.dataTestId,className:t,onClick:this.handleClick},u.Z.contextMenuEventListeners(this.handleContextMenu),{onKeyPress:e=>"Enter"===e.key?this.handleClick(e):null,tabIndex:"0",role:"option","aria-selected":this.context.libraryManager.currentLibrary===this.props.library,"aria-label":`${this.props.library.name}, ${this.shareLabel}`}),o.createElement(O.Z,{className:"library-list-item-tooltip library-list-item-name-container",content:this.props.library.name,disable:!this.hasNameTooltip||!!this.isRenamingMode,placement:"top"},this.linkedLibraryIcon&&o.createElement("div",{"data-test-id":"linked-library-icon",className:"library-list-item-linked-library-icon"},this.linkedLibraryIcon),o.createElement("div",{"data-test-id":"name",className:"library-list-item-name"},this.libraryName)),this.isDocumentAssets?this.gatedUpdatesBadge:this.shareStatus,this.props.showContextMenuButton&&this.contextMenuButton,this.props.showCreatedDate&&this.createdDate,this.props.children)}))}},x.contextType=P.r,x.propTypes={library:s().oneOfType([s().instanceOf(y.Zu),s().instanceOf(b.Z)]).isRequired,onClick:s().func,isSelected:s().bool,isRecent:s().bool,sharingIconOnly:s().bool,allowNavigation:s().bool,allowLongDoubleClick:s().bool,disableContextMenu:s().bool,disableEditableName:s().bool,showCreatedDate:s().bool,showContextMenuButton:s().bool,children:s().node},x.defaultProps={sharingIconOnly:!0,allowNavigation:!0,allowLongDoubleClick:!0,showContextMenuButton:!1},j=(w=x).prototype,Z="hasNameTooltip",F=[l.observable],B={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!!u.Z.hasUXPScrollWidthBug}},U={},Object.keys(B).forEach((function(e){U[e]=B[e]})),U.enumerable=!!U.enumerable,U.configurable=!!U.configurable,("value"in U||U.initializer)&&(U.writable=!0),U=F.slice().reverse().reduce((function(e,t){return t(j,Z,e)||e}),U),G&&void 0!==U.initializer&&(U.value=U.initializer?U.initializer.call(G):void 0,U.initializer=void 0),void 0===U.initializer&&(Object.defineProperty(j,Z,U),U=null),L=U,E=w))||E;var j,Z,F,B,G,U},64027:(e,t,r)=>{"use strict";r.d(t,{Z:()=>X});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(50265),l=r(62631),u=r(13169),p=r(39808),d=r(99767),h=r(84824),f=r(99386),m=r(30131),g=r(27611),v=r(91854),y=r(99987),b=r(96195),_=r.n(b),E=r(68895),w=r(33275);let L=(0,l.Pi)(((i=class extends o.Component{constructor(...e){super(...e),this.handleDrop=e=>{v.Z.handleDrop(e)},this._dropTarget=new y.Z({}),this.handleDragOver=()=>{v.Z.setActiveDropTarget(this._dropTarget)}}get addDocContentOperation(){return f.Z.currentProduct.getAddDocContentOperation&&f.Z.currentProduct.getAddDocContentOperation()}get containerKey(){return`${this.props.library.isWritable?"write":"read"}-${this.props.library.documentType?"linked-library":"traditional-library"}`}get instructionContent(){const e=this.props.library.isWritable?"EDIT":"VIEW";return this.props.library.documentType?`DL_EMPTY_LIB_PANEL_INSTRUCTION_${e}_LINKED_LIB`:`DL_EMPTY_LIB_PANEL_INSTRUCTION_${e}_TRADITIONAL`}get instructionMessage(){return o.createElement("div",{className:"panel-empty-view-instructions","data-test-id":`instructions-${this.containerKey}`},(0,h.Iu)(this.instructionContent))}howToUseInBrowser(){(0,m.I0)()}get emptyIconName(){const e=this.props.library.isWritable?"Edit":"View";return this.props.library.documentType?`LinkedDocumentLibrary_Can${e}`:`TraditionalLibrary_Can${e}`}get emptyIcon(){const e={id:this.emptyIconName,height:110};return o.createElement(g.Z,{id:e.id,height:e.height})}get graphic(){return o.createElement("div",{className:"panel-empty-view-icon","data-test-id":"icon"},this.emptyIcon)}get headerContentWriteAccess(){return this.props.library.documentType?"DL_EMPTY_LIB_PANEL_HEADING":"DL_EMPTY_LIB_PANEL_HEADING_EDIT_TRADITIONAL"}get header(){const e=this.props.library.isWritable?this.headerContentWriteAccess:"DL_EMPTY_LIB_PANEL_HEADING";return o.createElement("div",{className:"panel-empty-view-header","data-test-id":`header-${this.containerKey}`},(0,h.Iu)(e))}get learnMoreButton(){if(!f.Z.currentProduct.config.disableEmptyStateHelpIcon)return o.createElement(d.Z,{content:(0,h.Iu)("DL_EMPTY_LIB_LEARN_MORE")},o.createElement("div",{className:"panel-empty-help-icon","data-test-id":"help",onClick:this.howToUseInBrowser},o.createElement(g.Z,{id:"Question",height:18})))}get addDocContentButton(){if(this.addDocContentOperation)return o.createElement(d.Z,{content:(0,h.Iu)(this.addDocContentOperation.buttonToolTip),"data-test-id":"add-doc-content-tooltip"},o.createElement("div",{className:"panel-empty-add-doc-content","data-test-id":"add-doc-content",onClick:this.addDocContentOperation.apply},o.createElement("span",{className:"panel-empty-add-doc-content-text","data-test-id":"add-doc-content-text"},(0,h.Iu)(this.addDocContentOperation.buttonName))))}get openSourceFilelink(){return o.createElement("div",{className:"panel-empty-view-link",onClick:()=>(0,E.Fb)(this.props.library)},(0,h.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY"))}get openSourceFileButton(){return o.createElement(_(),{className:"panel-empty-add-open-source-file-button",label:(0,h.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY"),onClick:()=>(0,E.Fb)(this.props.library),variant:"action",icon:o.createElement(g.Z,{width:12,height:12,id:"OpenIn",className:"panel-empty-button-icon",header:(0,h.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY")})})}get openSourceFile(){if(this.props.library.documentType&&this.props.library.isWritable)return f.Z.currentProduct.addOpenSourceFileButton?this.openSourceFileButton:this.openSourceFilelink}get content(){if(this.props.library&&!this.props.library.isDeletedFromServer)return o.createElement("div",{className:"panel-empty-view-inner-container","data-test-id":`content-${this.containerKey}}`},this.graphic,this.header,this.instructionMessage,this.openSourceFile)}render(){return o.createElement("div",{className:"panel-empty-view-container","data-test-id":"emptyLibraryView",id:"emptyPanelContainer",onDrop:this.handleDrop,onDragOver:this.handleDragOver},this.content)}}).defaultProps={library:null},i.propTypes={library:s().oneOfType([s().instanceOf(w.Zu)])},n=i))||n;var x,S,O,T,I,P=r(64403),C=r.n(P),A=r(26964),k=r(24937),D=r(4784),N=r(26981),R=r(76485),M=r(51461);let j=(x=c.observable.ref,(0,l.Pi)((I=class extends o.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="_dropData",i=this,(n=T)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this._dragTargets=[],this.onMutation=e=>{e.forEach((e=>{e.removedNodes.forEach((e=>{this._dragTargets.forEach(((t,r)=>{(t===e||e.contains(t))&&this._dragTargets.splice(r,1)}))}))}))},this.handleDragOver=e=>{R.Z.isWindowsOS()&&e.dataTransfer.types.includes("com.adobe.cep.dnd.pasteboardtype")&&(e.dataTransfer.dropEffect="copy"),(0,N.gc)(e.dataTransfer.types)&&(e.dataTransfer.dropEffect=R.Z.supportsDropFiles&&!this.isDisabled?"copy":"none"),e.preventDefault()},this.handleDragEnter=e=>{if(e.preventDefault(),f.Z.currentProduct.config.disableLibraryDragLayer)return;if(this._dragTargets.push(e.target),this._dragTargets.length>1)return;const t=this.context.libraryManager.currentLibrary;if(t&&t.isDeletedFromServer)return;if((0,N.gc)(e.dataTransfer.types))R.Z.supportsDropFiles&&this._doFilesDragEnter(e);else{const t=(({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n})=>({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n}))(e);this.context.viewState.getDraggingData().then((e=>this._doLayersDragEnter(e,t))).catch((e=>A.Z.log(e)))}},this._doFilesDragEnter=()=>{this.context.viewState.resetMode(),this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)?D.Z.canAddElements(this.context.libraryManager.currentLibrary)?this._setDropData({icon:"UploadImage",message:(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_DROP")}):this._showLibraryFullError():this.showReadOnlyAlert()},this._doLayersDragEnter=(e,t)=>{if(this.context.viewState.resetMode(),!this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary))return void this.showReadOnlyAlert();if(!D.Z.canAddElements(this.context.libraryManager.currentLibrary))return void this._showLibraryFullError();let r=f.Z.currentProduct.customDropMessage&&f.Z.currentProduct.customDropMessage(e,t);e.feedback&&(r=e.feedback);const n=e.assetList&&e.assetList.length>0,i=(t=[])=>{this._setDropData({data:e,icon:e.linked?"AddLink":"AddCopy",message:r,layers:t,valid:n})};n?(0,N._C)(e,this.context.libraryManager.currentLibrary).then(i):i()},this.handleDragLeave=()=>{this._dragTargets.pop(),this._dragTargets.length||(this._dropData&&"UploadImage"===this._dropData.icon&&M.ZP.reportEvent("Add Assets","Element","click","add-cancel",{content:{category:"Bulk Upload"}}),this._dropData=void 0,v.Z.setActiveDropTarget())},this.handleDrop=()=>{this._dropData=void 0,this._dragTargets=[]},this.setDragLayerRef=e=>{this.dragLayerNode=e}}componentDidMount(){const e=R.Z.MutationObserver||MutationObserver;this.observer=new e(this.onMutation),this.observer.observe(this.dragLayerNode,{childList:!0,subtree:!0})}componentWillUnmount(){this.observer.disconnect()}get message(){return this._dropData.message}get icon(){return this._dropData.icon}get isValid(){return this._dropData.valid}get layers(){return this._dropData.layers}get isDisabled(){return!this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)||!D.Z.canAddElements(this.context.libraryManager.currentLibrary)}_setDropData(e){this._dropData=e,v.Z.handleDragStart("element",[e],null)}_showLibraryFullError(){this._dropData={disabled:!0,icon:"Alert",message:(0,h.Iu)("DL_DESIGN_LIBRARY_HAS_LIMIT")}}showReadOnlyAlert(){this._dropData={disabled:!0,icon:"Alert",message:(0,h.Iu)("DL_DESIGN_LIBRARY_READ_ONLY")}}get layersNode(){if(this.isValid&&this.layers.length){const e=this.layers.map(((e,t)=>o.createElement("div",{key:t.toString()},e)));return o.createElement("div",{"data-test-id":"layers",className:"panel-contents-drop-area-text"},e)}}get dropArea(){const e=C()("panel-contents-drop-area-icon",{"panel-contents-drop-area-icon":this.isValid,"panel-contents-drop-area-smaller-icon":!this.isValid});return o.createElement("div",{className:"panel-contents-drop-area-container"},o.createElement("div",{"data-test-id":"icon",className:e},o.createElement(g.Z,{id:this.icon,height:28})),this.layersNode,o.createElement("div",{"data-test-id":"message",className:"panel-contents-drop-area-subtext"},this.message))}get showDropMessage(){const e=this.context.libraryManager.currentLibrary,t="group"===this.context.viewState.viewByState&&e&&(e.getGroups().length>0||e.elements.length>0);return this._dropData&&(this._dropData.disabled||!t)}get dragLayer(){return this.showDropMessage&&o.createElement("div",{"data-test-id":"drag-layer",className:C()("panel-contents-drop-area",{"panel-contents-drop-area-disabled":this._dropData.disabled}),style:{top:this.context.viewState.panelHeaderHeight}},this.dropArea)}render(){return o.createElement("div",{ref:this.setDragLayerRef,"data-test-id":"library-contents-container",className:"panel-contents",onDrop:this.handleDrop,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver},this.props.children,this.dragLayer)}},I.contextType=k.r,I.propTypes={children:s().node},Z=(O=I).prototype,F="_dropData",B=[x],G={configurable:!0,enumerable:!0,writable:!0,initializer:null},z={},Object.keys(G).forEach((function(e){z[e]=G[e]})),z.enumerable=!!z.enumerable,z.configurable=!!z.configurable,("value"in z||z.initializer)&&(z.writable=!0),z=B.slice().reverse().reduce((function(e,t){return t(Z,F,e)||e}),z),U&&void 0!==z.initializer&&(z.value=z.initializer?z.initializer.call(U):void 0,z.initializer=void 0),void 0===z.initializer&&(Object.defineProperty(Z,F,z),z=null),T=z,S=O))||S);var Z,F,B,G,U,z,V=r(99277),H=r(89526);function Y(){return H.createElement("div",{className:"panel-relink-result-none-container","data-test-id":"no-relink-result"},H.createElement("div",{className:"panel-search-info","data-test-id":"no-relink-result-message"},(0,h.Iu)("DL_RELINK_NONE_AVAILABLE")))}var W,$,K=r(10441),q=r(39293);let X=(0,l.Pi)((($=class extends o.Component{constructor(...e){super(...e),this.getNormalModeView=e=>this.getLibraryContentsView(e.elements,"group"===this.viewState.viewByState?e.getGroups():null),this.getBrandKitModeView=e=>{var t,r;return R.Z.isMobileView||null===(t=(r=f.Z.currentProduct).shouldShowBrandKitView)||void 0===t||!t.call(r,e)?this.getNormalModeView(e):o.createElement("div",{className:"panel-library-contents-brand-wrapper"},o.createElement("div",{className:"panel-library-contents-brand-left"},this.getNormalModeView(this.library)),o.createElement("div",{className:"panel-library-contents-brand-right"},f.Z.currentProduct.getBrandKitView(e)))}}componentDidMount(){this.disposer=(0,c.reaction)((()=>this.searchResults),(()=>{this.viewState.librariesSearchState.filterCount&&this.viewState.librariesSearchState.clearUnusedTypeOptions()}))}componentWillUnmount(){var e;null===(e=this.disposer)||void 0===e||e.call(this)}get library(){return this.props.library||this.libraryManager.currentLibrary}get viewState(){return this.context.viewState}get libraryManager(){return this.context.libraryManager}get searchResults(){return this.viewState.librariesSearchState.searchResults}get relinkResults(){const e=this.viewState.getState().elementTypeFilter;return this.libraryManager.currentLibrary.elements.filter((t=>e.includes(t.type)))}getLibraryContentsView(e,t){const r=R.Z.AutoSizer||u.Z,n=R.Z.LibraryContentsView||p.Z;return o.createElement(r,null,(({width:r,height:i})=>o.createElement(n,{width:r,height:i,groups:t,elements:e,library:this.library})))}shouldDoSearch(){return this.viewState.isSearchMode()&&!(0,K.fs)(this.viewState.getSearchText())}get deletedFromServer(){const e=this.library;if(!e||!e.isDeletedFromServer)return null;const t="incoming"===e.collaboration?(0,h.Iu)("DL_UNSHARED"):(0,h.Iu)("DL_DELETED_FROM_SERVER");return o.createElement("div",{className:"panel-deleted-message-container","data-test-id":"panel-deleted-message-container",style:{top:this.viewState.panelHeaderHeight}},o.createElement("div",{"data-test-id":"panel-deleted-on-server",className:"panel-deleted-message"},o.createElement("div",{className:"panel-deleted-message-inner"},o.createElement("div",{className:"panel-deleted-message-icon"},o.createElement(g.Z,{id:"CreativeCloudAlert",height:50})),o.createElement("div",{className:"panel-deleted-message-description"},t)),o.createElement("div",{className:"panel-deleted-message-options"},o.createElement("a",{"data-test-id":"delete-library",className:"panel-deleted-message-link",onClick:()=>this.libraryManager.deleteLibrary(e)},(0,h.Iu)("DL_REMOVE_FROM_LIST")))))}get contents(){if(this.viewState.isRemovedElementsMode())return this.getLibraryContentsView(this.library.removedElements);if(this.shouldDoSearch()){const e=this.searchResults;if(0===e.length&&!this.viewState.searchState.isLoading)return M.ZP.reportSearchEvent("Search","Search","render","no-results",{ui:{filter:this.viewState.getSearchType()}}),o.createElement(V.Z,null);M.ZP.reportSearchEvent("Search","Search","render","results",{event:{value:e.length},ui:{filter:this.viewState.getSearchType()}});const t=this.viewState.isDocumentSearchMode()?this.viewState.librariesSearchState.searchResultsGroups:null;return this.getLibraryContentsView(e,t)}if(this.viewState.searchState.filterCount>0){const e=this.searchResults,t="group"===this.viewState.viewByState?this.viewState.librariesSearchState.searchResultsGroups:null;return this.getLibraryContentsView(e,t)}const e=!this.library.areElementsLoaded,t=this.library.elements.length>0,r=this.library.getGroups().length>0&&"group"===this.viewState.viewByState&&!this.viewState.isRelinkLayerMode(),n=!!this.library.isWritable&&"group"!==this.viewState.viewByState&&f.Z.currentProduct.config.hideEmptyLibraryTypeView;if(!(t||r||e||n)){const e=f.Z.currentProduct.config.emptyLibraryCustomComponent||L;return o.createElement(e,{library:this.library})}return this.viewState.isRelinkLayerMode()?this.relinkResults.length?this.getLibraryContentsView(this.relinkResults):o.createElement(Y,null):(0,q.Ol)(this.library)?this.getBrandKitModeView(this.library):this.getNormalModeView(this.library)}get contentsHeader(){if(!this.viewState.isDefaultMode()||!this.library)return null;const e=f.Z.currentProduct.config.AdditionalLibraryHeaderView;return e&&o.createElement(e,{library:this.library})}render(){return o.createElement(j,null,this.deletedFromServer,o.createElement("div",{"data-test-id":"panel-library-contents-wrapper",className:"panel-library-contents-wrapper"},this.contentsHeader,o.createElement("div",{"data-test-id":"panel-library-contents",className:"panel-library-contents"},this.contents)))}}).propTypes={library:a.any},$.contextType=k.r,W=$))||W},82038:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(89526),i=r(64403),o=r.n(i),a=r(65843),s=r(27611);const c="PYB",l="Pvf";var u,p,d=r(24937),h=r(84824);let f=(0,r(62631).Pi)(((p=class extends n.Component{get iconHeight(){switch(this.props.iconSize){case"S":default:return 18;case"M":return 22;case"L":case"XL":return 32}}_getDataTestId(e){return this.props.source?`panel-${this.props.source}-menu-item-${e}`:"text"===e?void 0:`menu-item-${e}`}_getIcon(e){if(!e.icon)return null;const t=o()(l,{[c]:e.destructive});return n.createElement(s.Z,{id:e.icon,slot:"icon",height:this.iconHeight,className:t})}render(){return this.props.menuData.map((e=>{const t=e.key||e.id;return e.divider?this.props.hideDividers?null:n.createElement(a.R,{key:t}):e.isTitle?n.createElement(a.FD,{key:t},e.label):n.createElement(a.sN,{key:t,id:e.id,icon:this._getIcon(e),onClick:e.onClick,disabled:!1===e.enableMenu,description:e.description,selected:e.checked,"data-test-id":this._getDataTestId(t)},n.createElement("span",{"data-test-id":this._getDataTestId("text"),className:o()({[c]:e.destructive})},(0,h.Iu)(e.label)))}))}}).contextType=d.r,p.defaultProps={iconSize:"S"},u=p))||u},33054:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n,i,o,a,s,c,l,u=r(89526),p=r(2652),d=r.n(p),h=r(50265),f=r(62631),m=r(84824),g=r(76485),v=r(64403),y=r.n(v),b=r(27611),_=r(99386);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 w(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){L(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 L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(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 S(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let O=(n=h.observable.ref,i=h.observable.ref,(0,f.Pi)(((l=class extends u.Component{constructor(...e){super(...e),x(this,"activeSubMenu",s,this),x(this,"_parentElement",c,this),this.onClickBack=()=>{this.activeSubMenu=this.activeSubMenu.slice(1)},this._getMenuIndex=(e,t)=>e.menuId?e.menuId.replace("MENU_",""):t,this._getItemIcon=(e,t)=>{if(e.hideIcon)return;t=this._getMenuIndex(e,t);const r=e.icon||e.checked&&"Checkmark",n=_.Z.currentProduct.config.defaultMenuIconHeight||this.props.iconHeight,i=e.style?w(w({},e.style),{},{height:n-2,width:n-2}):{},o=y()("panel-menu-icon",{warning:e.destructive});return u.createElement("div",{"data-test-id":`menu-item-${t}-icon`,className:o,style:i},r&&u.createElement(b.Z,{id:r,height:n}))},this._getMenuItem=(e,t)=>{if(t=this._getMenuIndex(e,t),e.divider)return u.createElement("div",{key:t,className:"panel-group-menu-subdivider"});const r=y()("panel-group-menu-item",{disabled:!1===e.enableMenu}),n=y()("panel-group-menu-label",{"panel-menu-label-selected":e.checked,warning:e.destructive});return u.createElement("div",{key:t,className:r,"data-test-id":`menu-item-${t}`,onClick:t=>this.onClickMenuItem(e,t)},this._getItemIcon(e,t),u.createElement("div",{"data-test-id":`menu-item-${t}-label`,className:n},(0,m.Iu)(e.label,e.translationData),e.description&&u.createElement("div",{"data-test-id":`menu-item-${t}-description`,className:"panel-group-menu-item-description"},e.description)),e.menuItems&&u.createElement(b.Z,{id:"ChevronRightSmall",height:8}))},this.setScrollableElement=e=>this._scrollableElement=e,this.onMenuWheel=e=>{const t=this._scrollableElement.scrollTop<=0,r=this._scrollableElement.clientHeight+this._scrollableElement.scrollTop>=this._scrollableElement.scrollHeight;(e.deltaY<0&&t||e.deltaY>0&&r)&&(e.preventDefault(),e.stopPropagation())},this.handleScroll=e=>{e.stopPropagation()}}componentDidUpdate(e){e.menuItems!==this.props.menuItems&&(this.activeSubMenu=[{menuItems:this.props.menuItems}])}get headerLabel(){return this.activeSubMenu[0].label}get menuItems(){return this.activeSubMenu[0].menuItems}onClickMenuItem(e,t){e.menuItems?(this.mainMenuContainerHeight=this.mainMenuContainerHeight||this._scrollableElement.offsetHeight,this.activeSubMenu=[e].concat(this.activeSubMenu)):!1!==e.enableMenu&&(this.props.close&&this.props.close(t),e.onClick())}get header(){if(this.headerLabel)return u.createElement("div",{style:{maxWidth:this.maxWidth}},u.createElement("div",{className:"panel-group-menu-item","data-test-id":"menu-item-header",onClick:this.onClickBack},u.createElement("div",{className:"panel-menu-icon"},u.createElement(b.Z,{id:"ChevronLeftSmall",height:8})),u.createElement("div",{"data-test-id":"menu-item-header-label",className:"panel-group-menu-label"},(0,m.Iu)(this.headerLabel))),u.createElement("div",{className:"panel-group-menu-divider"}))}get maxWidth(){if(this.props.maxWidth)return"100%";let e=_.Z.MAX_CONTEXT_MENU_WIDTH;return this.props.style&&(e=this.props.style.left?g.Z.getPanelWidth()-this.props.style.left:g.Z.getPanelWidth()-this.props.style.right,e=!Number.isNaN(e)&&e||0),Math.max(e,_.Z.MAX_CONTEXT_MENU_WIDTH)}get menuContainerStyle(){const e=g.Z.menuItemHeight||24,t=this.headerLabel?e+3:0;if(this.props.preserveMainMenuHeightForSubMenus&&this.mainMenuContainerHeight){return{height:this.mainMenuContainerHeight-t,maxWidth:this.maxWidth}}const r=this.props.footerMenu?0:Math.round(this.props.clientY);let n=0;this.props.minMenuItemsVisible>0&&(n=e*this.props.minMenuItemsVisible);const i=e*this.props.maxMenuItemsVisible+18;let o=i;if(!this.props.canShowOutsidePanel){const n=Math.min(g.Z.getPanelHeight()-r-t-25,i);o=Math.floor(n/e)*e+3}return n>o&&(o=n),{minHeight:n,maxHeight:o,maxWidth:this.maxWidth}}render(){const e=y()("panel-group-menu",this.props.className),t=w({},this.props.style);return this.props.maxWidth&&(t.maxWidth=this.props.maxWidth),u.createElement("div",{onWheel:this.onMenuWheel,className:e,style:t,"data-test-id":"menu-container"},this.header,u.createElement("div",{ref:this.setScrollableElement,"data-test-id":"menu-container-scrollable",className:"panel-group-menu-scroll-container",onScroll:this.handleScroll,style:this.menuContainerStyle},this.menuItems.filter((e=>!1!==e.divider)).map(this._getMenuItem)))}}).defaultProps={maxMenuItemsVisible:10,minMenuItemsVisible:0,iconHeight:13,footerMenu:!1,clientY:0,preserveMainMenuHeightForSubMenus:!1,canShowOutsidePanel:!1},l.propTypes={menuItems:d().array.isRequired,maxMenuItemsVisible:d().number,minMenuItemsVisible:d().number,maxWidth:d().oneOfType([d().string,d().number]),className:d().string,style:d().object,close:d().func,iconHeight:d().number,footerMenu:d().bool,clientY:d().number,preserveMainMenuHeightForSubMenus:d().bool,canShowOutsidePanel:d().bool},s=S((a=l).prototype,"activeSubMenu",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{menuItems:this.props.menuItems}]}}),c=S(a.prototype,"_parentElement",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),S(a.prototype,"headerLabel",[h.computed],Object.getOwnPropertyDescriptor(a.prototype,"headerLabel"),a.prototype),S(a.prototype,"menuItems",[h.computed],Object.getOwnPropertyDescriptor(a.prototype,"menuItems"),a.prototype),o=a))||o)},39611:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n=r(89526),i=r(2652),o=r.n(i),a=r(50265),s=r(62631),c=r(99386),l=r(9276),u=r(33372),p=r(51993),d=r(90885),h=r(31408);const f={mosaicView:"QEU",renditionWrapper:"lQM",topLeft:"wUe",topRight:"Azs",bottomLeft:"qvX",bottomRight:"s74",emptyState:"xEN",fullSizeRenditionWrapper:"Lai",list:"mOL"};var m=r(33275),g=r(16203);class v extends n.Component{getEmptyElementView(){return n.createElement("div",{className:f.emptyChildTile,"data-test-id":"mosaic-view-empty-tile"})}render(){const e=this.props.library.getElementById(this.props.elementId);return e?e.type===c.Z.COLOR_ELEMENT_TYPE?n.createElement(l.Z,{element:e,viewMode:"thumbnail-large",disableInteraction:!0}):e.type===c.Z.COLOR_THEME_ELEMENT_TYPE?n.createElement(u.Z,{element:e,viewMode:"thumbnail-large",isMosaicView:!0,disableInteraction:!0}):e.type===c.Z.GRADIENT_ELEMENT_TYPE?n.createElement(p.Z,{element:e,viewMode:"thumbnail-large",disableInteraction:!0}):(0,g.Hb)(e)?n.createElement(d.Z,{element:e,viewMode:"thumbnail-large",mosaicTileSize:this.props.mosaicTileSize,disableInteraction:!0}):n.createElement(h.Z,{element:e,className:f.mosaicViewThumbnail,viewMode:"thumbnail-large",disableInteraction:!0}):this.getEmptyElementView()}}v.propTypes={library:o().instanceOf(m.Zu).isRequired,elementId:o().string,mosaicTileSize:o().oneOf(["quarter","full"])};var y,b,_,E=r(64403),w=r.n(E),L=r(24937),x=r(27611);const S=[f.topLeft,f.topRight,f.bottomLeft,f.bottomRight];let O=(0,s.Pi)(((_=class extends n.Component{constructor(...e){super(...e),this.getMosaicTile=(e,t)=>{const r=w()(f.renditionWrapper,S[t]);return n.createElement("div",{key:e||t,className:r,"data-test-id":"mosaic-view-rendition-tile"},n.createElement(v,{elementId:e,library:this.props.library,mosaicTileSize:"quarter"}))},this.getFullSizeMosaicTile=e=>n.createElement("div",{className:f.fullSizeRenditionWrapper,"data-test-id":"mosaic-view-rendition-fullsize"},n.createElement(v,{elementId:e,library:this.props.library,mosaicTileSize:"full"}))}render(){return n.createElement("div",{className:w()(f.mosaicView,f[this.props.viewMode],this.props.className),"data-test-id":"mosaic-view"},this.mosaicTiles)}get mosaicTiles(){if(!this.props.renditionGrid||!this.props.renditionGrid.main)return n.createElement("div",{className:f.emptyState,"data-test-id":"mosaic-view-empty-state"},n.createElement(x.Z,{id:"CCLibrary",height:32}));const e=[this.props.renditionGrid.main,...this.props.renditionGrid.tiles].map((e=>e.id)).filter((e=>!!e));if(e.length<4)return this.getFullSizeMosaicTile(this.props.renditionGrid.main.id);const t=[];for(let r=0;r<4;r++)t.push(this.getMosaicTile(e[r],r));return t}}).contextType=L.r,_.defaultProps={viewMode:"grid"},_.propTypes={viewMode:o().oneOf(["list","grid"]),renditionGrid:o().object,library:o().instanceOf(m.Zu).isRequired,className:o().string},T=(b=_).prototype,I="mosaicTiles",P=[a.computed],C=Object.getOwnPropertyDescriptor(b.prototype,"mosaicTiles"),A=b.prototype,k={},Object.keys(C).forEach((function(e){k[e]=C[e]})),k.enumerable=!!k.enumerable,k.configurable=!!k.configurable,("value"in k||k.initializer)&&(k.writable=!0),k=P.slice().reverse().reduce((function(e,t){return t(T,I,e)||e}),k),A&&void 0!==k.initializer&&(k.value=k.initializer?k.initializer.call(A):void 0,k.initializer=void 0),void 0===k.initializer&&(Object.defineProperty(T,I,k),k=null),y=b))||y;var T,I,P,C,A,k},79012:(e,t,r)=>{"use strict";r.d(t,{Z:()=>P});var n,i,o,a=r(89526),s=r(62631),c=r(50265),l=r(84824),u=r(5837),p=r(82606),d=r(37642),h=r(79799),f=r(30131),m=r(27611),g=r(76485),v=r(64403),y=r.n(v),b=r(98405),_=r(5849),E=r(24937),w=r(2652),L=r.n(w),x=r(52844),S=r(51461);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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(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 T(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 I(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let P=(0,s.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.reconnectToProcess=()=>{h.Z.reconnectToProcess()},this.showAddLibraryDialog=()=>{this.context.dialogManager.openDialog("createLibrary")},this.requestSync=()=>{this.context.libraryManager.sync()},this.enableSyncing=()=>{this.context.libraryManager.enableSyncing()},this.openNetworkErrorURL=()=>{f.Ds(this.syncStatus.errorType)}}get ERROR_BUTTONS(){return{excludeHostnameOSX:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],excludeHostnameWin:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],excludeHostnameWin10:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],verifyDnsSettings:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],verifySocketConnection:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],syncDisabled:[this.enableSyncing,"DL_LAUNCH_CC_APP_ENABLE_BUTTON"]}}iconWrapper(e){return a.createElement("div",{"data-test-id":"no-libraries-icon",className:"panel-nolibs-alert-icon"},a.createElement(m.Z,{id:e,height:48}))}get syncStatus(){return this.context.libraryManager.syncStatus}get isDownloadingLibraries(){var e;return!(null===(e=this.context.libraryManager.getNewLibrarySyncProgress())||void 0===e||!e.length)}get icon(){return"syncing"===this.syncStatus.state?this.iconWrapper("CreativeCloud"):"syncDisabled"===this.syncStatus.errorType||"loggedOut"===this.syncStatus.errorType?this.iconWrapper("CreativeCloudAlert"):this.iconWrapper("CreativeCloudError")}get retryMessage(){if(d.Cu(this.syncStatus)&&this.syncStatus.retryDuration)return a.createElement("div",{className:"panel-nolibs-message"},(0,l.Iu)("DL_SYNC_RETRY",{duration:this.syncStatus.retryDuration}))}get message(){const e="syncing"===this.syncStatus.state?(0,l.Iu)("DL_NO_LIBS_SYNCING"):d.sB(this.syncStatus);return a.createElement("span",{"data-test-id":"no-libraries-message"},a.createElement(u.Z,{className:"panel-nolibs-message",html:e}),this.retryMessage)}get title(){if("error"===this.syncStatus.state)return a.createElement("h1",{"data-test-id":"no-libraries-title",className:"panel-nolibs-title"},(0,l.Iu)("DL_NO_LIBS_PAGE_NOT_AVAILABLE"))}get syncingProgressBar(){if("syncing"===this.syncStatus.state){const e=g.Z.ProgressBar||p.Z;return a.createElement("div",{"data-test-id":"syncing-progress-bar",className:"panel-nolibs-progress-bar"},a.createElement(e,{progress:this.syncStatus.syncProgress,showMetaData:!1}))}}get link(){if("error"!==this.syncStatus.state)return null;const e=O({serviceError:[()=>f.Ds(),"DL_NO_LIBS_MORE_INFO"],noService:[f.Gh,"DL_NO_LIBS_GET_IT"],excludeHostnameOSX:[this.openNetworkErrorURL,"DL_TROUBLESHOOT_NETWORK_SETTINGS"],excludeHostnameWin:[this.openNetworkErrorURL,"DL_TROUBLESHOOT_NETWORK_SETTINGS"],excludeHostnameWin10:[this.openNetworkErrorURL,"DL_TROUBLESHOOT_NETWORK_SETTINGS"],verifyDnsSettings:[this.openNetworkErrorURL,"DL_TROUBLESHOOT_NETWORK_SETTINGS"],updateServer:[f.aF,"DL_NO_LIBS_GET_IT"],updateClient:[f.aF,"DL_NO_LIBS_GET_IT"]}[this.syncStatus.errorType]||[],2),t=e[0],r=e[1];return t?a.createElement("a",{"data-test-id":"no-libraries-link",className:"panel-nolibs-link",tabIndex:"0",onClick:t,onKeyPress:e=>"Enter"===e.key?t(e):null},(0,l.Iu)(r)):void 0}get newLibraryButton(){return a.createElement(x.Z,{"data-test-id":"new-library-button",className:"panel-nolibs-create-button",variant:"cta",onClick:this.showAddLibraryDialog},(0,l.Iu)("DL_NO_LIBS_CREATE_LIBRARY_BUTTON_TEXT"))}get retrySyncButton(){if("noAccess"!==this.syncStatus.errorType)return a.createElement(x.Z,{"data-test-id":"retry-button",className:"panel-nolibs-retry-button",disabled:Boolean(this.syncStatus.retryDuration),onClick:this.requestSync},(0,l.Iu)("DL_NO_LIBS_RETRY"))}get button(){if("syncing"===this.syncStatus.state)return this.newLibraryButton;if(d.Cu(this.syncStatus))return a.createElement(a.Fragment,null,a.createElement("span",null,this.retrySyncButton),a.createElement("span",null,this.newLibraryButton));const e=O(this.ERROR_BUTTONS[this.syncStatus.errorType]||[],2),t=e[0],r=e[1];return t?a.createElement(x.Z,{"data-test-id":"no-libraries-button",variant:"secondary",className:"panel-nolibs-retry-button",onClick:t},(0,l.Iu)(r)):void 0}get contents(){if(window.navigator.userAgent.includes("CreativeCloud")&&!this.context.libraryManager.areLibrariesLoaded&&("error"!==this.syncStatus.state||"error"===this.syncStatus.state&&"serviceError"===this.syncStatus.errorType))return a.createElement("div",{"data-test-id":"panel-nolibs-load-spinner",className:"panel-nolibs-middle"},a.createElement(_.Z,{size:"large",indeterminate:!0}));if(["ok","syncing","error"].includes(this.syncStatus.state)){if("ok"===this.syncStatus.state||"syncing"===this.syncStatus.state&&!this.isDownloadingLibraries)return a.createElement(b.Z,null);const e=y()("panel-nolibs-middle",`panel-nolibs-${this.syncStatus.state}`);return a.createElement("div",{className:e,"data-test-id":"no-libraries-content"},this.icon,this.title,this.message,this.syncingProgressBar,this.link,this.button)}}componentDidMount(){S.ZP.reportEvent("Navigation","Library Panel","render","no-libraries-view")}render(){return a.createElement("div",{className:this.props.className,"data-test-id":"no-libraries-view"},this.contents)}}).contextType=E.r,o.propTypes={className:L().string},I((i=o).prototype,"syncStatus",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"syncStatus"),i.prototype),I(i.prototype,"isDownloadingLibraries",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"isDownloadingLibraries"),i.prototype),I(i.prototype,"icon",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"icon"),i.prototype),I(i.prototype,"retryMessage",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"retryMessage"),i.prototype),I(i.prototype,"message",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"message"),i.prototype),I(i.prototype,"title",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"title"),i.prototype),I(i.prototype,"syncingProgressBar",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"syncingProgressBar"),i.prototype),I(i.prototype,"link",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"link"),i.prototype),I(i.prototype,"newLibraryButton",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"newLibraryButton"),i.prototype),I(i.prototype,"retrySyncButton",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"retrySyncButton"),i.prototype),I(i.prototype,"button",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"button"),i.prototype),I(i.prototype,"contents",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"contents"),i.prototype),n=i))||n},99277:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,i,o=r(89526),a=r(84824),s=r(59299),c=r(27611),l=r(62631),u=r(54048),p=r(24937),d=r(99386);let h=(0,l.Pi)(((i=class extends o.Component{constructor(...e){super(...e),this.clearFilters=()=>{this.context.viewState.searchState.clearFilters(),this.context.viewState.isDocumentSearchType()&&this.context.viewState.searchState.clearDocumentFilters(),this.context.viewState.isStockSearchMode()&&this.context.viewState.searchState.search()}}get links(){return this.context.viewState.searchState.filterCount?o.createElement("div",{className:"panel-search-info-link","data-test-id":"no-search-result-clear-filters",onClick:this.clearFilters},(0,a.Iu)("DL_CLEAR_FILTERS")):o.createElement(u.Z,{hidePromptText:!0})}render(){return o.createElement("div",{className:"panel-search-result-none-container","data-test-id":"no-search-result"},o.createElement(s.Z,{numResults:0}),o.createElement("div",{className:"panel-search-info"},o.createElement("div",{className:"panel-search-info-graphic","data-test-id":"no-search-result-graphic"},o.createElement(c.Z,{id:"NoSearchResults",height:d.Z.currentProduct.config.filterIconHeight||100})),o.createElement("div",{className:"panel-search-info-title","data-test-id":"no-search-result-title"},(0,a.Iu)("DL_SEARCH_LIBRARIES_NO_RESULTS_TITLE")),o.createElement("div",{className:"panel-search-info-body","data-test-id":"no-search-result-body"},(0,a.Iu)("DL_SEARCH_LIBRARIES_NO_RESULTS_BODY")),this.links))}}).contextType=p.r,n=i))||n},3713:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Lr});var n,i,o,a=r(89526),s=r(64403),c=r.n(s),l=r(50265),u=r(62631),p=r(76485),d=r(51461),h=r(59157),f=r(75157),m=r(84824),g=r(99409),v=r(25585),y=r(99386),b=r(27611),_=r(43616),E=r(24937);function w(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let L=(0,u.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.onClick=e=>{d.ZP.reportEvent("Search","Library Panel","click","select-search-type",{ui:{filter:e}}),this.context.viewState.setSearchType(e)},this.onClickLabel=()=>{"recentSearchesOverlay"===this.context.dialogManager.dialogName&&this.context.dialogManager.closeDialog()}}get currentSearchType(){return this.context.viewState.getSearchType()}get menuData(){return this.context.viewState.getSearchTypes().filter((e=>{const t="stock"===e&&y.Z.currentProduct.config.disableStockSearch,r="libraries"===e&&(this.context.libraryManager.disableCCLibraries||y.Z.currentProduct.config.disableAllLibrariesElementSearch);return!t&&!r})).map((e=>({label:(0,m.Iu)("DL_SEARCH_"+e.toUpperCase()),onClick:()=>this.onClick(e),isSelected:e===this.currentSearchType,key:e})))}get labelIcon(){return a.createElement(b.Z,{"data-test-id":"search-source-dropdown-icon",id:"ChevronDownSmall",height:8,width:8})}render(){return a.createElement(_.Z,{onClickLabel:this.context.dialogManager.closeDialog,tooltip:(0,m.Iu)("DL_SEARCH_SELECT_SCOPE_TOOLTIP"),data:this.menuData,className:"panel-search-source-dropdown",type:"search-source",currentLabel:this.labelIcon,title:(0,m.Iu)("DL_SEARCH_DROPDOWN_TITLE"),dropdownOptions:{ignoreScrollEvents:!0}})}}).contextType=E.r,w((i=o).prototype,"currentSearchType",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"currentSearchType"),i.prototype),w(i.prototype,"menuData",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"menuData"),i.prototype),w(i.prototype,"labelIcon",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"labelIcon"),i.prototype),n=i))||n;var x,S,O,T,I,P=r(99767),C=r(2652),A=r.n(C),k=r(72279);function D(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,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let R=(0,u.Pi)((I=class extends a.Component{constructor(...e){super(...e),this.onClickSearch=e=>{d.ZP.reportSearchEvent("Search","Search","click","input",{ui:{filter:this.searchType}}),""===this.searchText&&this.context.viewState.hasRecentSearches()&&this.openDialog(),e.stopPropagation()},this.onClickCancel=e=>{e.stopPropagation(),e.preventDefault(),this.context.dialogManager.closeDialog(),d.ZP.reportSearchEvent("Search","Search","click","cancel",{ui:{filter:this.searchType}}),this.context.viewState.setSearchText(""),this.searchInputVisible=!1},D(this,"isFocused",O,this),D(this,"searchInputVisible",T,this),this.onFocus=e=>{this.isFocused=!0,p.Z.hasUXPInputClickBug&&(g.Z._listenerManager.notify("flyoutMenuClicked",e),this.onClickSearch(e))},this.onBlur=()=>{this.isFocused=!1,this.searchText||(this.searchInputVisible=!1)},this.onKeydown=e=>{"Escape"===e.key&&this.onClickCancel(e),"Enter"===e.key&&this.context.viewState.clearFindSimilarSearchMode()},this.openDialog=()=>{y.Z.currentProduct.config.hideRecentSearchesOverlay||this.context.dialogManager.openDialog("recentSearchesOverlay")},this.onChange=e=>{const t=this.context.viewState,r=y.Z.currentProduct.config,n=(0,v.aS)(e.target.value,y.Z.MAX_INPUT_STRING_LENGTH,!1);if(t.setSearchText(n),r.reportSearchSDMEvents&&n){const e=t.getRecentSearches()[y.Z.STORED_RECENT_SEARCH_LIBRARIES_KEY].slice(0,y.Z.STORED_RECENT_SEARCH_DISPLAY_LIMIT),i={"content.category":"brands&libraries","ui.search_keyword":n,"custom.ui.location":"editor","custom.ui.search_type":"direct","custom.search.id":t.getSearchId(),"custom.search.suggestion_list_shown":e},o={"content.category":"brands&libraries","ui.search_keyword":n,"custom.ui.location":"editor","custom.search.id":t.getSearchId(),"custom.search.result_count":t.librariesInViewOrder.length};r.reportSearchSDMEvents(i),r.reportSearchSDMEvents(o)}""!==this.searchText?this.context.dialogManager.closeDialog():t.hasRecentSearches()&&this.openDialog()},this._setSearchInput=e=>this.searchInput=e,this.handleClick=()=>{this.searchInputVisible=!0,this.isFocused=!0,this.searchInput&&this.searchInput.focus()},this.clickSearchToStart=()=>{const e=y.Z.currentProduct.config.searchIconSize||12;return a.createElement(k.Z,{quiet:!0,variant:"action","data-test-id":"start-search-trigger",className:c()("view-toggle-button"),onClick:this.handleClick},a.createElement(b.Z,{className:"sort-icon","data-test-id":"panel-dropdown-icon",id:"Magnify",height:e,width:e}))},this.classicSearchBar=()=>{var e,t;const r=c()("panel-search-input",{disabled:this.disabled}),n=c()("panel-search",{"is-focused":this.isFocused,"show-source-button":this.showSourceSelectionButton,"show-cancel-button":this.cancelButton}),i=y.Z.currentProduct.config.customSearchPlaceholders,o=i&&i[this.searchType]&&(0,m.Iu)(i[this.searchType]);return a.createElement("div",{className:n,"data-test-id":"search-bar"},this.searchIcon,this.showInputBox&&a.createElement("input",{"uxp-quiet":"true","data-test-id":"input",value:this.searchText,ref:this._setSearchInput,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClickSearch,className:r,type:"search",results:"0",onKeyDown:this.onKeydown,placeholder:null!==(e=null!==(t=this.props.placeholderText)&&void 0!==t?t:o)&&void 0!==e?e:(0,m.Iu)(`DL_SEARCH_INPUT_${this.searchType.toUpperCase()}_PLACEHOLDER`),spellCheck:"false",disabled:this.disabled}),this.cancelButton,this.sourceSelectionButton)}}get searchText(){return this.context.viewState.getSearchText()||""}get disabled(){const e=!this.context.libraryManager.searchableLibraries.length,t=this.context.viewState.isRelinkLayerMode();return e||t}get searchType(){return this.context.viewState.getSearchType()}componentDidMount(){this.searchText&&(this.searchInputVisible=!0)}get showCancel(){return""!==this.searchText}get cancelButton(){return this.showCancel?a.createElement("div",{"data-test-id":"cancel",className:"panel-search-cancel",onClick:this.onClickCancel},a.createElement(P.Z,{placement:"left",content:(0,m.Iu)("DL_SEARCH_CANCEL_TOOLTIP")},a.createElement(b.Z,{id:"Close",height:y.Z.currentProduct.config.searchBarCloseIconHeight||20}))):y.Z.currentProduct.config.hideDefaultSearchCancelIcon?a.createElement("div",{"data-test-id":"cancel-placeholder",className:"panel-search-cancel-placeholder"}):void 0}get searchIcon(){if(!y.Z.currentProduct.config.hideCustomSearchIcon)return a.createElement("div",{"data-test-id":"panel-search-icon",className:"panel-search-icon"},a.createElement(b.Z,{id:"Magnify",height:y.Z.currentProduct.config.searchIconSize||12}))}get showSourceSelectionButton(){const e=this.context.libraryManager.disableCCLibraries||y.Z.currentProduct.config.disableAllLibrariesSearch||y.Z.currentProduct.config.disableSearchSourceSelection;return!(this.context.viewState.isRootView()||e&&y.Z.currentProduct.config.disableStockSearch)}get sourceSelectionButton(){if(this.showSourceSelectionButton)return a.createElement(L,null)}get showInputBox(){if(!p.Z.hasInputZOrderBug||!this.context.dialogManager.dialog)return!0;return!!["recentSearchesOverlay","contextMenu"].find((e=>e===this.context.dialogManager.dialogName))}render(){return y.Z.currentProduct.config.clickSearchToStart&&!this.searchInputVisible?this.clickSearchToStart():this.classicSearchBar()}},I.contextType=E.r,I.propTypes={placeholderText:A().string},N((S=I).prototype,"searchText",[l.computed],Object.getOwnPropertyDescriptor(S.prototype,"searchText"),S.prototype),N(S.prototype,"disabled",[l.computed],Object.getOwnPropertyDescriptor(S.prototype,"disabled"),S.prototype),N(S.prototype,"searchType",[l.computed],Object.getOwnPropertyDescriptor(S.prototype,"searchType"),S.prototype),O=N(S.prototype,"isFocused",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T=N(S.prototype,"searchInputVisible",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N(S.prototype,"showCancel",[l.computed],Object.getOwnPropertyDescriptor(S.prototype,"showCancel"),S.prototype),N(S.prototype,"cancelButton",[l.computed],Object.getOwnPropertyDescriptor(S.prototype,"cancelButton"),S.prototype),N(S.prototype,"searchIcon",[l.computed],Object.getOwnPropertyDescriptor(S.prototype,"searchIcon"),S.prototype),N(S.prototype,"showSourceSelectionButton",[l.computed],Object.getOwnPropertyDescriptor(S.prototype,"showSourceSelectionButton"),S.prototype),N(S.prototype,"sourceSelectionButton",[l.computed],Object.getOwnPropertyDescriptor(S.prototype,"sourceSelectionButton"),S.prototype),x=S))||x;var M,j,Z,F=r(37800),B=r(30131),G=r(47320);function U(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let z=(0,u.Pi)(((Z=class extends a.Component{constructor(...e){super(...e),this.onFilterToggle=(e,t,r)=>{const n=["library","document"].includes(t.type)?"source":"asset type";d.ZP.reportEvent("Search","Library Panel","click",r?"select-filter":"deselect-filter",{event:{value:t.id},content:{type:n}},this.libraryManager.currentLibrary),this.searchState.setSearchOption(t.id,r,t.type),this.disabled||e.stopPropagation()},this.onFilterDelete=(e,t)=>{const r=this.libraryManager.documentAssetsContainer.elements.filter((e=>e.linkReference===t.id));d.ZP.reportEvent("Element Operations","element","click","make-local",{event:{value:"agg",count:r.length},content:{category:"Click"}}),r.forEach((e=>{d.ZP.reportElementEvent("Element Operations","element","click","make-local",e,{event:{value:"single",count:1},content:{category:"Click"}})})),p.Z.unlinkAssetsFromDocument(t.id),this.searchState.setSearchOption(t.id,!1,t.type);const n=G.Z.groupElementsByTopLevelGroup(this.libraryManager.documentAssetsContainer.elements,this.libraryManager.documentAssetsContainer.getGroups());this.searchState.filterTypeOptions.forEach((e=>{const t=n.find((t=>t.item&&t.item.name===e.id));t.children&&t.children.length||this.searchState.setSearchOption(e.id,!1,e.type)}))},this.onClearFilters=e=>{e.stopPropagation(),this.viewState.isDocumentSearchType()?this.searchState.clearDocumentFilters():this.searchState.clearFilters()}}get viewState(){return this.context.viewState}get libraryManager(){return this.context.libraryManager}get searchState(){return this.viewState.searchState}get hasSelectedFilters(){return this.searchState.filterCount}get searchFilters(){return this.viewState.isLibrariesSearchMode()||this.viewState.isDocumentSearchType()?[...this.searchState.filterLibrariesOptions,...this.searchState.filterTypeOptions]:this.searchState.filterTypeOptions}formatFilterOption(e){const t=this.searchState.isSearchOptionEnabled(e.id),r=this.viewState.isDocumentSearchType()&&e.removable?t=>this.onFilterDelete(t,e):void 0;return{label:(0,m.Iu)(e.label),onClick:r=>this.onFilterToggle(r,e,!t),onClickDelete:r,isSelected:t,key:e.id}}get clearFiltersLabel(){return a.createElement("div",{className:"dropdown-label-wrapper"},a.createElement(b.Z,{id:"Close",height:18,className:"left-align-correction"}),(0,m.Iu)("DL_CLEAR_FILTERS"))}get menuData(){const e=this.searchState.filterTypeOptions.map((e=>this.formatFilterOption(e)));let t=[];(this.viewState.isLibrariesSearchMode()||this.viewState.isDocumentSearchType())&&this.viewState.searchState.filterLibrariesOptions.length&&(t=[{divider:!0,key:"divider"},{key:"librariesTitle",isTitle:!0,label:(0,m.Iu)(this.viewState.isDocumentSearchType()?"DL_LIBRARY_LIST_FILTER_BY_SOURCE":"DL_LIBRARY_LIST_FILTER_BY_LIBRARY")},...this.searchState.filterLibrariesOptions.map((e=>this.formatFilterOption(e)))]);const r=[{divider:!0,key:"clearFiltersDivider"},{label:this.clearFiltersLabel,key:"clearFilters",disabled:!this.hasSelectedFilters,onClick:this.onClearFilters}];return[...e,...t,...r]}get disabled(){return this.context.viewState.isSearchMode()?!(this.hasSelectedFilters||this.searchState.searchResultsCount)||0===this.searchFilters.length:!this.libraryManager.currentLibrary.elements.length}get labelIcon(){var e,t;const r=null!==(e=y.Z.currentProduct.config.defaultFilterIconSelected)&&void 0!==e?e:"FilterNotification16",n=null!==(t=y.Z.currentProduct.config.defaultFilterIcon)&&void 0!==t?t:"Filter16",i=this.hasSelectedFilters?r:n;return a.createElement(k.Z,{className:"view-toggle-button",onClick:()=>{}},a.createElement(b.Z,{"data-test-id":"panel-dropdown-icon",id:i,height:16,width:16}))}get footer(){return this.viewState.isStockSearchMode()&&this.libraryManager.isOnline&&a.createElement("a",{onClick:()=>(0,B.v7)("",{},!0),className:"panel-select-menu-footer","data-test-id":"panel-dropdown-menu-footer-link"},(0,m.Iu)("DL_STOCK_SEARCH_AUDIO_WEB"))}render(){const e=this.viewState.isLibrariesSearchMode()||this.libraryManager.currentLibrary&&this.libraryManager.currentLibrary.isDocumentAssets?"DL_LIBRARY_LIST_FILTER_BY_TYPE":"DL_LIBRARY_LIST_FILTER_BY";return a.createElement(_.Z,{data:this.menuData,disabled:this.disabled,className:"panel-search-filters-dropdown",type:"search-filter",currentLabel:this.labelIcon,title:(0,m.Iu)(e),tooltip:(0,m.Iu)("DL_SEARCH_FILTERS_TOOLTIP"),footer:this.footer})}}).contextType=E.r,U((j=Z).prototype,"searchFilters",[l.computed],Object.getOwnPropertyDescriptor(j.prototype,"searchFilters"),j.prototype),U(j.prototype,"menuData",[l.computed],Object.getOwnPropertyDescriptor(j.prototype,"menuData"),j.prototype),U(j.prototype,"disabled",[l.computed],Object.getOwnPropertyDescriptor(j.prototype,"disabled"),j.prototype),U(j.prototype,"labelIcon",[l.computed],Object.getOwnPropertyDescriptor(j.prototype,"labelIcon"),j.prototype),U(j.prototype,"footer",[l.computed],Object.getOwnPropertyDescriptor(j.prototype,"footer"),j.prototype),M=j))||M;var V,H,Y=r(41765),W=r(46903),$=r(76792),K=r(85080),q=r(33054),X=r(37642),J=r(33275);let Q=(0,u.Pi)(((H=class extends a.Component{constructor(...e){super(...e),this.onClickShare=()=>{d.ZP.reportEvent("Manager","Manage","click","share"),this.context.libraryActions.invite(this.props.library,!0)}}render(){var e;return y.Z.currentProduct.config.customShareButton?a.createElement(k.Z,{variant:"secondary","data-test-id":"panel-navigation-share-button",className:"panel-navigation-button",onClick:this.onClickShare,tooltip:(0,m.Iu)("DL_SHARE_LIBRARY_BUTTON_TOOLTIP")},(0,m.Iu)("DL_SHARE")):a.createElement(k.Z,{quiet:!0,variant:"action","data-test-id":"panel-navigation-share-button",className:"panel-navigation-button",onClick:this.onClickShare,tooltip:(0,m.Iu)("DL_SHARE_LIBRARY_BUTTON_TOOLTIP")},a.createElement(b.Z,{id:"Invite",height:null!==(e=this.props.height)&&void 0!==e?e:16}))}}).contextType=E.r,H.propTypes={library:A().instanceOf(J.Zu),height:A().number},V=H))||V;var ee,te;let re=(0,u.Pi)((te=class extends a.Component{constructor(...e){super(...e),this.menuOverlayState=new K.Z,this.onClickBackButton=e=>{this.onCloseMenu(),this.isOneUpMode?(d.ZP.reportEvent("Navigation","Library Panel","click","search"===this.context.viewState.getState().modeParams.previousMode?"back-to-search":"back-to-library"),this.context.viewState.setStateBeforeOneUpMode()):p.Z.navigateBack?p.Z.navigateBack():(d.ZP.reportEvent("Navigation","Library Panel","click","root-view"),this.context.viewState.showRootView()),e.stopPropagation()},this.onClickMenu=()=>{this.menuOverlayState.toggleOverlay(),this.context.viewManager.stopRename(),this.context.viewManager.stopEditDescription()},this.onCloseMenu=()=>{this.menuOverlayState.hideOverlay()},this.onClickShare=()=>{d.ZP.reportEvent("Manager","Manage","click","share"),this.context.libraryActions.invite(this.context.libraryManager.currentLibrary,!0)},this.onOpenLibrariesManager=e=>{d.ZP.reportEvent("Manager","Launch","click","open-manager"),p.Z.openLibraryManagerWindow(),e.stopPropagation()}}get isOneUpMode(){return this.context.viewState.isOneUpMode()}get isSearchMode(){return this.context.viewState.isSearchMode()}get isRootView(){return this.context.viewState.isRootView()}get isRelinkLayerMode(){return this.context.viewState.isRelinkLayerMode()}get shouldShowBackButton(){return!this.isSearchMode&&!this.isRootView}get backButton(){var e;const t=null!==(e=y.Z.currentProduct.config.customBackButtonSize)&&void 0!==e?e:8;if(!this.shouldShowBackButton)return;let r="DL_BACK_BUTTON_ROOT";return this.isOneUpMode&&(r="search"===this.context.viewState.getState().modeParams.previousMode?"DL_BACK_BUTTON_SEARCH":"DL_BACK_BUTTON_LIBRARY"),a.createElement(P.Z,{content:(0,m.Iu)(r)},a.createElement("div",{"data-test-id":"panel-navigation-back-button",className:"panel-navigation-row-back-button"},a.createElement(b.Z,{id:"ChevronLeftSmall",height:t})))}get shareButton(){if(!(this.isRootView||this.isOneUpMode||this.isSearchMode||this.isRelinkLayerMode)&&(0,W.hp)(this.context.libraryManager.currentLibrary)&&(!y.Z.currentProduct.config.checkSharingStatus||this.context.libraryManager.isSharingEnabled))return a.createElement(Q,{library:this.context.libraryManager.currentLibrary})}get librariesManagerButton(){var e;if(!y.Z.currentProduct.config.hasLibraryManager||this.isOneUpMode||this.isSearchMode||this.isRelinkLayerMode)return;const t=this.context.libraryManager,r=(e,r,n,i=!1,o)=>{let s=!1;t.librariesInitError&&(n=X.sB(t.syncStatus),s=!0,i=!1);const l=c()("panel-navigation-button",{"notification-indicator":i});n=(n=(0,m.Iu)(n)).replace("<br/>","");const u=i?"panel-navigation-open-manager-button-notification":"panel-navigation-open-manager-button";return a.createElement(k.Z,{"data-test-id":u,className:l,onClick:this.onOpenLibrariesManager,tooltip:n,disabled:s,featureId:o},a.createElement(b.Z,{id:e,height:r}))};if(this.isRootView)return r("Add12",12,"DL_OPEN_LIB_MANAGER_BUTTON_TOOLTIP",!1,"FEATURE_TOOLTIP_DISCOVER_LIBRARIES");if(null!==(e=t.currentLibrary)&&void 0!==e&&e.isDocumentAssets&&!t.isRestrictedAccount){const e=t.publishState.isPendingUpdate;return r("ShareAssets",16,e?"DL_OPEN_LIB_MANAGER_BUTTON_DOC_ASSETS_TOOLTIP_UPDATE":"DL_OPEN_LIB_MANAGER_BUTTON_DOC_ASSETS_TOOLTIP",e,"FEATURE_TOOLTIP_SHARE_DESIGN_SYSTEMS")}}get elementContextMenuButton(){if(!this.isOneUpMode)return;const e=this.context.viewState.getState().modeParams,t=e.element,r=e.subElement,n=(0,$.vf)([t],r);if(!n.length)return;let i;return this.menuOverlayState.isOpen&&(i=a.createElement(q.Z,{menuItems:n,className:"panel-search-types",close:this.onCloseMenu,maxMenuItemsVisible:y.Z.MAX_ONEUP_ELEMENT_CONTEXT_MENU_ITEMS})),a.createElement("div",{className:"oneup-element-context-menu-container",ref:this.menuOverlayState.setParentElement},a.createElement(k.Z,{"data-test-id":"oneup-element-context-menu",className:"oneup-element-context-menu",onClick:this.onClickMenu},a.createElement(b.Z,{id:"More",height:16})),i)}get navigationLabelText(){return this.isSearchMode?(0,m.Iu)("DL_SEARCH_HEADER"):this.isRootView?(0,m.Iu)("DL_LIBRARIES_PANEL_NAME"):this.isOneUpMode?this.context.viewState.getState().modeParams.element.name:this.context.libraryManager.currentLibrary.name}get linkedLibraryIcon(){if(this.context.viewState.isDefaultMode()&&this.context.libraryManager.currentLibrary&&this.context.libraryManager.currentLibrary.documentId)return a.createElement(b.Z,{id:"LinkedLibrary",height:8,className:"linkedLibraryIcon"})}getTeamLibraryToolTipData(){const e=this.context.libraryManager.currentLibrary,t=(0,W.Uu)(e),r=[e.name];return t&&t.name?r.push((0,m.Iu)("DL_LIBRARY_TEAM_TOOLTIP",{name:t.name}),t.ownerName):r.push((0,m.Iu)("DL_LIBRARY_STATUS_TEAM")),r}get navigationLabel(){var e;const t=y.Z.currentProduct.config.lowercaseNavigationLabel?this.navigationLabelText:null===(e=this.navigationLabelText)||void 0===e?void 0:e.toLocaleUpperCase(p.Z.getLocale()),r=a.createElement("div",{className:"panel-navigation-header-row-label-text","data-test-id":"panel-navigation-header-row-label-text"},t);if(this.isSearchMode||this.isRootView||this.isOneUpMode)return r;let n=(0,W.$h)(this.context.libraryManager.currentLibrary);return(0,W.$_)(this.context.libraryManager.currentLibrary)&&(n=this.getTeamLibraryToolTipData()),a.createElement(P.Z,{content:n,placement:"bottom-left",className:"panel-navigation-header-row-label-text-wrapper"},r)}render(){var e,t;const r=c()("panel-navigation-row",{"one-up-navigation-row":this.isOneUpMode}),n=c()("panel-navigation-header-row-clickable",{"is-clickable":this.shouldShowBackButton});return a.createElement("div",{"data-test-id":"panel-navigation-header-row",className:r,onContextMenu:W.XT},a.createElement("div",{className:"panel-navigation-header-row-clickable-wrapper"},a.createElement("div",{className:n,"data-test-id":"panel-navigation-header-row-clickable",onClick:this.onClickBackButton},this.backButton,this.linkedLibraryIcon,a.createElement("div",{className:"panel-navigation-header-row-label","data-test-id":"panel-navigation-header-row-label"},this.navigationLabel))),this.shareButton||this.librariesManagerButton||this.elementContextMenuButton,null===(e=(t=y.Z.currentProduct).libraryContextMenuButton)||void 0===e?void 0:e.call(t,this.context.libraryManager.currentLibrary))}},te.contextType=E.r,ee=te))||ee;var ne,ie,oe,ae=r(17632);function se(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ce=(0,u.Pi)(((oe=class extends a.Component{constructor(...e){super(...e),this.onGridButtonClick=e=>{this._setViewState("list"===this.viewState?"grid":"list"),e.stopPropagation()},this.handleViewByGroupModeToggle=e=>{"tree"===this.context.viewState.viewByGroupMode?this.context.viewState.setViewByGroupMode("path"):this.context.viewState.setViewByGroupMode("tree"),d.ZP.reportEvent("Navigation","Library Panel","click","group-view-change",null,this.context.libraryManager.currentLibrary),e.stopPropagation()},this.onCreateLibraryClick=()=>{d.ZP.reportEvent("Create Library","Root View","click","new-library-header"),this.context.dialogManager.openDialog("createLibrary")},this.setHeaderRef=e=>{this.headerRef=e},this.setSearchRef=e=>{this.searchRef=e},this.onClickFlyoutMenu=()=>{this.context.dialogManager.openDialog("contextMenu",{menuItems:g.Z.getFlyoutMenu(!0),maxMenuItemsVisible:20,x:5,y:30,position:"left"})},this.handleClick=()=>{this.context.viewState.clearAllSelections()}}get viewState(){return this.context.viewState.viewState}get viewTypeDisabled(){return this.context.viewState.isSearchMode()}get listGridDisabled(){return this.context.viewState.isStockSearchMode()}get library(){return this.context.libraryManager.currentLibrary}componentDidMount(){this.context.viewState.setHeaderView(this)}getHeight(){return this.headerRef&&this.headerRef.clientHeight||0}getSearchBarBottom(){return this.searchRef&&this.searchRef.offsetTop+this.searchRef.clientHeight}get isLibrariesFilterEnabled(){return y.Z.currentProduct.config.showSortDropdownRootView&&!y.Z.currentProduct.config.disableFilters}get canShowLibrariesFilterDropdown(){return this.isLibrariesFilterEnabled&&this.context.viewState.isRootView()}get canShowSearchFiltersDropdown(){return!y.Z.currentProduct.config.hideFilterDropdownOneUpView&&!y.Z.currentProduct.config.disableFilters}_setViewState(e){this.context.viewState.setViewState(e),d.ZP.reportEvent("Navigation","Library Panel","click","view-change",null,this.context.libraryManager.currentLibrary)}get treePathToggleButton(){if(this.context.viewState.isStockSearchMode()||this.isLibrariesFilterEnabled)return;const e=this.context.viewState.viewByGroupMode,t="tree"===e?"DL_VIEW_BY_GROUP_PATH":"DL_VIEW_BY_GROUP_TREE",r=y.Z.currentProduct.config.iconHeight||16;return a.createElement(k.Z,{"data-test-id":"tree-path-toggle-button",onClick:this.handleViewByGroupModeToggle,className:"tree-path-toggle-button",tooltip:(0,m.Iu)(t)},a.createElement(b.Z,{id:"tree"===e?"PathView":"TreeView",height:r}))}get viewToggleButton(){if(this.context.viewState.isStockSearchMode()||this.isLibrariesFilterEnabled||this.context.viewState.isLibraryNameSearchType())return;const e="grid"===this.viewState?"DL_LISTVIEW_TOOLTIP":"DL_GRIDVIEW_TOOLTIP",t=y.Z.currentProduct.config.iconHeight||16;return a.createElement(k.Z,{"data-test-id":`view-toggle-to-${"grid"===this.viewState?"list":"grid"}-button`,onClick:this.onGridButtonClick,className:"view-toggle-button",disabled:this.listGridDisabled,tooltip:(0,m.Iu)(e)},a.createElement(b.Z,{id:"grid"===this.viewState?"ListView":"GridView",height:t}))}get sortDropdownButton(){if("group"===this.context.viewState.viewByState&&this.context.viewState.isDocumentSearchMode())return;if(this.canShowLibrariesFilterDropdown)return a.createElement(F.Z,{mode:"libraries","data-test-id":"sort-dropdown",sortOrderControl:!0,hideGroupBy:!0});const e=!this.context.viewState.isStockSearchMode();return a.createElement(F.Z,{sortOrderControl:e,hideGroupBy:this.library&&this.library.isDocumentAssets})}get filterDropdown(){return this.canShowLibrariesFilterDropdown?a.createElement(Y.Z,null):this.canShowSearchFiltersDropdown?a.createElement(z,null):void 0}get viewModeControls(){var e,t;const r=(null===(e=(t=y.Z.currentProduct.config).sortOnRightInRootView)||void 0===e?void 0:e.call(t))&&this.context.viewState.isRootView();return y.Z.currentProduct.customSubheader?y.Z.currentProduct.customSubheader():a.createElement(a.Fragment,null,a.createElement("div",{className:"panel-header-left-controls"},this.filterDropdown,!r&&this.sortDropdownButton),this.context.viewState.viewByState===y.Z.VIEW_BY_MODES.GROUP&&this.treePathToggleButton,this.viewToggleButton)}get relinkHeader(){const e=this.context.viewState.getState().modeParams,t=e.missing?a.createElement("div",{className:"panel-relink-header-image-missing"}):a.createElement("div",{className:"panel-relink-header-image"},a.createElement(b.Z,{id:"Cloud",height:14}));return a.createElement("div",{"data-test-id":"relink-header",className:"panel-relink-header"},t,a.createElement("div",{"data-test-id":"relink-message",className:"panel-relink-header-text"},e.message))}get removedElementsHeader(){return a.createElement("div",{"data-test-id":"removed-elements-header",className:"panel-relink-header"},a.createElement("div",{className:"panel-relink-header-image"},a.createElement(b.Z,{id:"Delete",height:16})),a.createElement("div",{"data-test-id":"removed-elements-message",className:"panel-relink-header-text"},"Deleted Items"))}get hideViewModeHeader(){return this.context.viewState.isOneUpMode()||this.context.viewState.isPlainRootView&&!this.isLibrariesFilterEnabled}get libraryModeHeader(){if(this.hideViewModeHeader)return;const e=this.context.viewState.isRelinkLayerMode()?this.relinkHeader:this.context.viewState.isRemovedElementsMode()?this.removedElementsHeader:this.viewModeControls;return a.createElement("div",{"data-test-id":"panel-header-controls-row",className:"panel-header-row panel-header-controls-row"},e)}get searchBar(){return a.createElement("div",{className:"panel-header-search-row",ref:this.setSearchRef},a.createElement(R,null))}get navigationRow(){if(!y.Z.currentProduct.config.disableNavigationLabel&&!(this.context.viewState.isRootView()&&!y.Z.currentProduct.config.noFlyoutMenu||this.context.libraryManager.disableCCLibraries))return a.createElement(re,null)}get createLibraryButton(){if(!y.Z.currentProduct.config.readOnlyPanelUI&&this.context.libraryManager.areLibrariesLoaded&&this.context.viewState.isPlainRootView&&!y.Z.currentProduct.config.hideHeaderCreateLibraryButton)return a.createElement("div",{className:"create-library-button-header-row","data-test-id":"create-library-button-header-row",onClick:this.onCreateLibraryClick},a.createElement(b.Z,{id:"Add14",height:14}),a.createElement("div",{className:"create-library-button-text"},(0,m.Iu)("DL_CREATE_DESIGN_LIBRARY")))}get documentAssets(){if(this.isDocumentAssetsRootView){var e,t;const r=this.context.libraryManager.documentAssetsContainer;return a.createElement(ae.Z,{library:r,key:r.id,onClick:e=>this.context.libraryManager.currentLibrary=e,showContextMenuButton:null===(e=(t=y.Z.currentProduct.config).showLibraryListItemContextMenuButton)||void 0===e?void 0:e.call(t)})}}get isDocumentAssetsRootView(){return!y.Z.currentProduct.config.disableDocumentAssetsView&&(!this.context.viewState.isSearchMode()&&this.context.viewState.isRootView()&&this.context.libraryManager.documentAssetsContainer)}get shouldDisplaySearchBar(){var e,t;if(null!==(e=(t=y.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)&&p.Z.isMobileView)return!1;const r=y.Z.currentProduct.config.enableLibraryNameSearch,n=this.context.libraryManager.disableCCLibraries||y.Z.currentProduct.config.disableAllLibrariesElementSearch;return!this.context.viewState.isOneUpMode()&&(this.context.viewState.isRootView()&&r||!(this.context.viewState.isRootView()&&n))&&!y.Z.currentProduct.config.disableSearchBar}render(){const e=c()("panel-header",{"root-view-header":this.context.viewState.isRootView()});return a.createElement("div",{"data-test-id":"panel-header",className:e,ref:this.setHeaderRef,onClick:this.handleClick},!this.isDocumentAssetsRootView&&this.navigationRow,this.shouldDisplaySearchBar&&this.searchBar,this.createLibraryButton,this.libraryModeHeader,this.documentAssets,this.isDocumentAssetsRootView&&this.navigationRow)}}).contextType=E.r,se((ie=oe).prototype,"viewState",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"viewState"),ie.prototype),se(ie.prototype,"viewTypeDisabled",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"viewTypeDisabled"),ie.prototype),se(ie.prototype,"listGridDisabled",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"listGridDisabled"),ie.prototype),se(ie.prototype,"treePathToggleButton",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"treePathToggleButton"),ie.prototype),se(ie.prototype,"viewToggleButton",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"viewToggleButton"),ie.prototype),se(ie.prototype,"sortDropdownButton",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"sortDropdownButton"),ie.prototype),se(ie.prototype,"filterDropdown",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"filterDropdown"),ie.prototype),se(ie.prototype,"viewModeControls",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"viewModeControls"),ie.prototype),se(ie.prototype,"relinkHeader",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"relinkHeader"),ie.prototype),se(ie.prototype,"removedElementsHeader",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"removedElementsHeader"),ie.prototype),se(ie.prototype,"shouldDisplaySearchBar",[l.computed],Object.getOwnPropertyDescriptor(ie.prototype,"shouldDisplaySearchBar"),ie.prototype),ne=ie))||ne;var le,ue=r(16993),pe=r(15909),de=r(53849);let he=(0,u.Pi)(le=class extends a.Component{constructor(...e){super(...e),this.onClickRelink=()=>{this.selection.length>0&&this._sendElementChosen(this.selection[0])},this.onClickCancel=()=>this._sendElementChosen()}get selection(){return de.Z.selection}_sendElementChosen(e){pe.Z.sendElementChosen(e),ue.Z.resetMode()}get relinkButton(){const e=ue.Z.getState().modeParams.actionMessage,t=c()("panel-relink-button-relink","action",{disabled:0===this.selection.length});return a.createElement(k.Z,{"data-test-id":"relink-button",className:t,onClick:this.onClickRelink},e)}get cancelButton(){return a.createElement(k.Z,{"data-test-id":"relink-cancel-button",className:"panel-relink-button-cancel",onClick:this.onClickCancel},(0,m.Iu)("DL_CANCEL"))}render(){const e=p.Z.isWindowsOS()?a.createElement(a.Fragment,null,this.relinkButton,this.cancelButton):a.createElement(a.Fragment,null,this.cancelButton,this.relinkButton);return a.createElement("div",{"data-test-id":"relink-footer",className:"panel-relink-action"},e)}})||le;var fe,me=r(93028);let ge=(0,u.Pi)(fe=class extends a.Component{constructor(...e){super(...e),this.onClickDelete=()=>{me.ZP.deleteElements(this.selection,!0)},this.onClickRestore=()=>{me.ZP.restoreElements(this.selection)},this.onClickCancel=()=>{ue.Z.resetMode()}}get selection(){return de.Z.selection}get deleteButton(){const e=c()("panel-relink-button-relink","action",{disabled:0===this.selection.length});return a.createElement("button",{"data-test-id":"removed-elements-delete-button",className:e,onClick:this.onClickDelete},"Permanently Delete")}get restoreButton(){const e=c()("panel-relink-button-relink","action",{disabled:0===this.selection.length});return a.createElement("button",{"data-test-id":"removed-elements-restore-button",className:e,onClick:this.onClickRestore},"Restore")}get cancelButton(){return a.createElement("button",{"data-test-id":"removed-elements-cancel-button",className:"panel-relink-button-cancel",onClick:this.onClickCancel},(0,m.Iu)("DL_CANCEL"))}render(){return a.createElement("div",{"data-test-id":"removed-elements-footer",className:"panel-relink-action"},this.cancelButton,this.restoreButton,this.deleteButton)}})||fe;var ve,ye;let be=(0,u.Pi)(((ye=class extends a.Component{constructor(...e){super(...e),this.updateAll=()=>{d.ZP.reportEvent("Gated Update","Element","render","update-all",{event:{count:this.library.gatedUpdates.length}}),this.library.updateLinkedAssets()}}get library(){return this.context.libraryManager.currentLibrary}get updateLabel(){const e=this.library.gatedUpdates.length;return e<=1?(0,m.Iu)("UPDATE_ASSETS"):e>=y.Z.MAX_ASSET_UPDATE_COUNT?(0,m.Iu)("UPDATE_ALL_MAX",{number:y.Z.MAX_ASSET_UPDATE_COUNT}):(0,m.Iu)("UPDATE_ALL_NUM",{number:e})}render(){return a.createElement("div",{className:"panel-footer","data-test-id":"panel-footer"},a.createElement("div",{className:"panel-footer-update","data-test-id":"panel-footer-update"},a.createElement(k.Z,{onClick:this.updateAll,variant:"cta","data-test-id":"update-all-button",tooltip:this.updateLabel},this.updateLabel)))}}).contextType=E.r,ve=ye))||ve;var _e,Ee,we,Le=r(8733),xe=r(4784),Se=r(68370);function Oe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Te=(0,u.Pi)(((we=class extends a.Component{constructor(...e){super(...e),this.overlayState=new K.Z({onOpen:y.Z.currentProduct.addOperationInstantiated,onClose:y.Z.currentProduct.addOperationComplete}),this.onCloseMenu=e=>{e.stopPropagation(),this.overlayState.hideOverlay(),this.props.onCloseMenu&&this.props.onCloseMenu()},this.onClickButton=e=>{this.overlayState.toggleOverlay(),this.props.onClickButton&&this.props.onClickButton(),e.stopPropagation()}}get menuContents(){return this.props.menuContents}get listItems(){const e={minWidth:this.props.menuMinWidth};return a.createElement(q.Z,{menuItems:this.menuContents,style:e,className:"panel-insert-menu",close:this.onCloseMenu,iconHeight:16,maxMenuItemsVisible:this.menuContents.length,footerMenu:!0,maxWidth:window.innerWidth-14})}get hasMenuContents(){return this.menuContents.length>0}get menu(){return a.createElement("div",{"data-test-id":"insert-menu-view"},this.listItems)}get isDisabled(){return this.props.isDisabled}get iconHeight(){return y.Z.currentProduct.config.mediumIconHeight||16}render(){return a.createElement("div",null,a.createElement("div",{"data-test-id":this.props.testId,id:this.props.testId,className:this.props.className,ref:this.overlayState.setParentElement},a.createElement(k.Z,{"data-test-id":"add-button",className:"panel-footer-icon-add",disabled:this.isDisabled,onClick:this.onClickButton,tooltip:this.props.tooltip},a.createElement(b.Z,{height:this.iconHeight,width:20,id:this.props.icon})),this.hasMenuContents&&this.overlayState.isOpen&&this.menu))}}).defaultProps={isDisabled:!1,tooltip:"",icon:"AddDropdown",menuMinWidth:160},we.propTypes={menuContents:A().arrayOf(A().object).isRequired,isDisabled:A().bool,onClickButton:A().func,onCloseMenu:A().func,tooltip:A().string,icon:A().string,className:A().string,menuMinWidth:A().number,testId:A().string.isRequired},Oe((Ee=we).prototype,"listItems",[l.computed],Object.getOwnPropertyDescriptor(Ee.prototype,"listItems"),Ee.prototype),Oe(Ee.prototype,"menu",[l.computed],Object.getOwnPropertyDescriptor(Ee.prototype,"menu"),Ee.prototype),_e=Ee))||_e;var Ie,Pe;let Ce=(0,u.Pi)((Pe=class extends a.Component{constructor(...e){super(...e),this.onCloseMenu=()=>{ue.Z.notifyWorkflowAction("click-add-menu")},this.onClickButton=()=>{ue.Z.notifyWorkflowAction("click-add-button"),p.Z.updateLayerInfoOnOpenAddMenu&&Le.Z.updateLayerInfo()}}get menuContents(){const e="NewUserOnboarding"===ue.Z.currentWorkflowName;return(0,Se.o)((t=>{const r=t.length;t&&d.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:r},content:{category:e?"Onboarding":"Plus"}}),ue.Z.resetMode(),setTimeout((()=>{de.Z.setSelection(t,!0)}))}),e?"onboarding":"addButton")}get isDisabled(){return ue.Z.isSearchMode()||this.menuContents.length<1}render(){const e=me.ZP.currentLibrary;return!(y.Z&&y.Z.currentProduct&&y.Z.currentProduct.config.hideAddControls)&&e&&e.isWritable&&!e.isDeletedFromServer?a.createElement(Te,{menuContents:this.menuContents,isDisabled:this.isDisabled,onClickButton:this.onClickButton,tooltip:(0,m.Iu)(xe.Z.canAddElements(e)?"DL_INSERT_TOOLTIP":"DL_INSERT_TOOLTIP_LIMIT"),onCloseMenu:this.onCloseMenu,className:"insert-menu-container",testId:"add-asset-view"}):null}},Ae=Pe.prototype,ke="menuContents",De=[l.computed],Ne=Object.getOwnPropertyDescriptor(Pe.prototype,"menuContents"),Re=Pe.prototype,Me={},Object.keys(Ne).forEach((function(e){Me[e]=Ne[e]})),Me.enumerable=!!Me.enumerable,Me.configurable=!!Me.configurable,("value"in Me||Me.initializer)&&(Me.writable=!0),Me=De.slice().reverse().reduce((function(e,t){return t(Ae,ke,e)||e}),Me),Re&&void 0!==Me.initializer&&(Me.value=Me.initializer?Me.initializer.call(Re):void 0,Me.initializer=void 0),void 0===Me.initializer&&(Object.defineProperty(Ae,ke,Me),Me=null),Ie=Pe))||Ie;var Ae,ke,De,Ne,Re,Me,je,Ze,Fe,Be=r(50777);function Ge(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ue=(0,u.Pi)(((Fe=class extends a.Component{constructor(...e){super(...e),this.createNewLibrary=()=>{d.ZP.reportEvent("Create Library","Root View","click","new-library-footer"),this.context.dialogManager.openDialog("createLibrary")}}get addDocContentOperation(){return y.Z.currentProduct.getAddDocContentOperation&&y.Z.currentProduct.getAddDocContentOperation()}get menuContents(){const e=()=>{d.ZP.reportEvent("Create Library","Root View","click","create-from-document"),d.ZP.setExtraEventMetrics("createLibrary",{fromDocument:!0}),this.addDocContentOperation.enabled&&this.addDocContentOperation.apply(),d.ZP.clearExtraEventMetrics("createLibrary")},t=[];return Be.BQ()&&t.push({label:"DL_CAPTURE",icon:"Capture",onClick:e=>Be.RI(null,e)},{divider:!0}),this.context.libraryManager.isRestrictedAccount||t.push({label:"DL_MORE_LIBRARY_BROWSE",icon:"Browse",onClick:()=>this.context.libraryManager.openBrowseAll()},{label:"DL_MORE_LIBRARY_BROWSE_PUBLIC",icon:"GlobeSearch",onClick:()=>this.context.libraryManager.openMarketplace()},{divider:!0}),t.push(this.addDocContentOperation&&{label:"DL_FLYOUT_ADD_DOC_CONTENT_MENU_ITEM",enableMenu:this.context.libraryManager.areLibrariesLoaded&&!this.context.viewState.isImportExportInProgress,icon:this.addDocContentOperation&&this.addDocContentOperation.icon,onClick:()=>e()},{label:"DL_CREATE_DESIGN_LIBRARY",enableMenu:this.context.libraryManager.areLibrariesLoaded&&!this.context.viewState.isImportExportInProgress,icon:"Add",onClick:this.createNewLibrary}),t.filter((e=>e))}render(){return a.createElement(P.Z,{content:(0,m.Iu)("DL_ADD_LIBRARIES_TOOLTIP")},a.createElement(Te,{isDisabled:!this.context.libraryManager.areLibrariesLoaded,menuContents:this.menuContents,className:"add-library-button-container",testId:"add-library-menu-view"}))}}).contextType=E.r,Ge((Ze=Fe).prototype,"addDocContentOperation",[l.computed],Object.getOwnPropertyDescriptor(Ze.prototype,"addDocContentOperation"),Ze.prototype),Ge(Ze.prototype,"menuContents",[l.computed],Object.getOwnPropertyDescriptor(Ze.prototype,"menuContents"),Ze.prototype),je=Ze))||je;var ze,Ve,He=r(68895);let Ye=(0,u.Pi)(((Ve=class extends a.Component{get menuContents(){return[{label:"DL_EDIT_IN_SOURCE",onClick:()=>(0,He.Fb)(this.props.library)}]}get isDisabled(){return!(0,He.EZ)(this.props.library)||ue.Z.isSearchMode()}get tooltip(){return this.isDisabled?(0,m.Iu)("DL_FOOTER_READ_ONLY_TOOLTIP"):(0,m.Iu)("DL_FOOTER_DOCUMENT_LIBRARY_TOOLTIP")}render(){return a.createElement(Te,{menuContents:this.menuContents,isDisabled:this.isDisabled,menuMinWidth:0,icon:"LockMenu",tooltip:this.tooltip,className:"insert-menu-container",testId:"read-only-document-library-icon"})}}).propTypes={library:A().instanceOf(J.Zu).isRequired},ze=Ve))||ze;var We,$e,Ke,qe=r(95372),Xe=r(91854),Je=r(10440);let Qe=(0,u.Pi)(((Ke=class extends a.Component{constructor(...e){super(...e),this.onDrop=()=>{this._deleteElementsAndReport(Xe.Z.dragData,"Drag Drop"),Xe.Z.handleDrop()},this.onClick=()=>{Je.Z.groupSelection.length?this._deleteGroupAndReport(Je.Z.groupSelection):this._deleteElementsAndReport(de.Z.selection,"Click")}}get isDisabled(){const e=this.context.viewState.isStockSearchMode()||!this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)||!this.context.libraryManager.currentLibrary||this.context.libraryManager.currentLibrary.isDeletedFromServer,t=!this.context.viewState.isOneUpMode()&&0===Je.Z.groupSelection.length&&0===de.Z.selection.length;return e||t}_deleteElementsAndReport(e,t){d.ZP.reportEvent("Element Operations","Element","click","delete",{event:{value:e.length},content:{category:t}}),d.ZP.setExtraEventMetrics("removeElement",{content:{category:t}}),this.context.libraryManager.deleteElements(e),d.ZP.clearExtraEventMetrics("removeElement"),de.Z.clearSelection(),this.context.viewState.isOneUpMode()&&this.context.viewState.setStateBeforeOneUpMode()}_deleteGroupAndReport(e,t){d.ZP.setExtraEventMetrics("removeGroup",{content:{category:t}}),this.context.libraryManager.deleteGroups(e,{deleteContents:!0}),this.context.viewState.clearAllSelections()}render(){return a.createElement(k.Z,{"data-test-id":"delete-button",onDrop:this.onDrop,onClick:this.onClick,disabled:this.isDisabled,tooltip:(0,m.Iu)("DL_FOOTER_DELETE_TOOLTIP"),className:"panel-footer-icon-delete"},a.createElement(b.Z,{id:"Delete",height:16}))}}).contextType=E.r,function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(($e=Ke).prototype,"isDisabled",[l.computed],Object.getOwnPropertyDescriptor($e.prototype,"isDisabled"),$e.prototype),We=$e))||We;var et,tt,rt,nt,it=r(68548);let ot=(0,u.Pi)((nt=class extends a.Component{constructor(...e){super(...e),function(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})}(this,"overlayState",rt,this),this.hide=()=>{this.props.onClose()},this.onClick=()=>{this.context.dialogManager.openDialog("unlockToolkit"),this.hide()}}componentDidMount(){this.overlayState.toggleOverlay(),this.disposeReaction=(0,l.when)((()=>!this.overlayState.isOpen),this.props.onClose)}componentWillUnmount(){this.disposeReaction&&this.disposeReaction()}render(){return a.createElement("div",{ref:this.overlayState.setParentElement,"data-test-id":"locked-popup",onClick:this.onClick},a.createElement("div",{"data-test-id":"panel-locked-popup",className:"panel-locked-popup-container"},a.createElement("div",{className:"panel-locked-message"},(0,m.Iu)("DL_MY_TOOLKIT_UNLOCK_BUTTON_MESSAGE"))))}},nt.contextType=E.r,nt.propTypes={onClose:A().func.isRequired},rt=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((tt=nt).prototype,"overlayState",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new K.Z}}),et=tt))||et;var at,st,ct;function lt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ut=(0,u.Pi)((st=class extends a.Component{constructor(...e){super(...e),function(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})}(this,"showMenu",ct,this),this.closePopup=()=>{this.showMenu=!1},this.onClick=()=>{this.showMenu=!0}}get popup(){if(this.showMenu)return a.createElement(ot,{onClose:this.closePopup})}get iconView(){return a.createElement(k.Z,{"data-test-id":"panel-footer-locked",className:"panel-footer-icon-unlock",onClick:this.onClick},a.createElement(b.Z,{id:"LockPopup",height:17,width:16}))}render(){return a.createElement(a.Fragment,null,this.iconView,this.popup)}},ct=lt(st.prototype,"showMenu",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lt(st.prototype,"popup",[l.computed],Object.getOwnPropertyDescriptor(st.prototype,"popup"),st.prototype),lt(st.prototype,"iconView",[l.computed],Object.getOwnPropertyDescriptor(st.prototype,"iconView"),st.prototype),at=st))||at;var pt,dt,ht;function ft(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let mt=(0,u.Pi)(((ht=class extends a.Component{constructor(...e){super(...e),this.onOpenLibrariesManager=()=>{d.ZP.reportEvent("Manager","Launch","click","open-manager"),p.Z.openLibraryManagerWindow()},this.handleClick=()=>{this.context.viewState.clearAllSelections()}}get hasLibraryManager(){return y.Z.currentProduct.config.hasLibraryManager}get readOnlyIcon(){return a.createElement(P.Z,{placement:"top-start",content:(0,m.Iu)("DL_FOOTER_READ_ONLY_TOOLTIP")},a.createElement("div",{"data-test-id":"read-only-icon",className:"panel-footer-icon-read-only"},a.createElement(b.Z,{id:"Lock",height:16})))}get library(){return this.context.libraryManager.currentLibrary}get createGroupButton(){if(!y.Z.currentProduct.config.readOnlyGroups)return a.createElement(qe.Z,null)}get addButtons(){return this.context.viewState.isRootView()?!y.Z.currentProduct.config.readOnlyPanelUI&&a.createElement(Ue,null):this.context.viewState.isLocked(this.library)?a.createElement(ut,null):this.library&&this.library.documentId?a.createElement(Ye,{library:this.library}):!this.library||this.library.isWritable&&!this.library.isDocumentAssets?a.createElement(a.Fragment,null,this.createGroupButton,!y.Z.currentProduct.config.hideAddMenuView&&a.createElement(Ce,null),a.createElement(Qe,null)):this.readOnlyIcon}get openLibraryManagerButton(){if(y.Z.currentProduct.config.hasLibraryManager)return a.createElement(k.Z,{"data-test-id":"panel-footer-libraries-manager",tooltip:(0,m.Iu)("DL_OPEN_LIB_MANAGER_BUTTON_TOOLTIP"),onClick:this.onOpenLibrariesManager},a.createElement(b.Z,{id:"Settings",height:16}))}get footerView(){return this.context.viewState.isRelinkLayerMode()?a.createElement(he,null):this.context.viewState.isRemovedElementsMode()?a.createElement(ge,null):a.createElement(a.Fragment,null,a.createElement(it.Z,null),a.createElement("div",{className:"panel-footer-toolbar-spacing"}),this.context.viewState.isRootView()&&this.openLibraryManagerButton,!this.context.viewState.isSearchMode()&&this.addButtons)}render(){if(this.library){if(this.library.newLinkedAssetsExist||p.Z.isPreviewActive||this.library.gatedUpdates&&this.library.gatedUpdates.length>0)return a.createElement(be,null);if(this.library.hideSyncStateFooter)return null}return a.createElement("div",{className:"panel-footer","data-test-id":"panel-footer",onClick:this.handleClick},a.createElement("div",{className:"panel-footer-divider-container"},a.createElement("div",{className:"panel-footer-divider"})),a.createElement("div",{className:c()("panel-footer-toolbar",{windows:p.Z.isWindowsOS()})},this.footerView))}}).contextType=E.r,ft((dt=ht).prototype,"createGroupButton",[l.computed],Object.getOwnPropertyDescriptor(dt.prototype,"createGroupButton"),dt.prototype),ft(dt.prototype,"addButtons",[l.computed],Object.getOwnPropertyDescriptor(dt.prototype,"addButtons"),dt.prototype),ft(dt.prototype,"openLibraryManagerButton",[l.computed],Object.getOwnPropertyDescriptor(dt.prototype,"openLibraryManagerButton"),dt.prototype),ft(dt.prototype,"footerView",[l.computed],Object.getOwnPropertyDescriptor(dt.prototype,"footerView"),dt.prototype),pt=dt))||pt;var gt,vt,yt=r(70403),bt=r(2169);let _t=(0,u.Pi)((vt=class e extends a.Component{render(){return a.createElement("div",{className:this.props.className},a.createElement("div",{"data-test-id":"stock-tips-header",className:"panel-stock-noresults-tips-header"},e._getTipsHeader()),a.createElement("div",{"data-test-id":"stock-tips-message"},e._getTips()))}static _getTipsHeader(){return(0,m.Iu)("DL_STOCK_PANEL_RESULT_TIPS_HEADER")}static _getTips(){return(0,m.Iu)("DL_STOCK_PANEL_RESULT_TIPS")}static measure(t){return{width:t,height:20+(0,bt.fk)(e._getTipsHeader(),"panel-stock-noresults-message",t)+(0,bt.fk)(e._getTips(),"",t)}}},vt.propTypes={className:A().string},gt=vt))||gt;var Et,wt;const Lt="panel-stock-search-more-button-text";let xt=(0,u.Pi)((wt=class e extends a.Component{constructor(...e){super(...e),this.handleSearchOnWebClick=()=>{this.props.stockSearchState.searchOnWeb()}}static _getSearchMoreButtonText(){return(0,m.Iu)("DL_STOCK_PANEL_SEARCH_ON_WEB")}static _getTipsHeader({searchResultsCount:e}){return(0,m.Iu)("DL_STOCK_PANEL_RESULT_COUNT",{count:e})}static _canShowTips({searchResultsCount:e,findSimilarData:t}){return!t&&e<y.Z.STOCK_SEARCH_RESULT_SIZE}static _canSearchMoreOnWeb({searchResultsCount:e,findSimilarData:t}){const r=!t||!t.url&&!t.path;return e>=y.Z.STOCK_SEARCH_RESULT_SIZE&&r}_getSearchMoreButton(){return a.createElement("div",{className:"panel-stock-search-more-button-container",onClick:this.handleSearchOnWebClick,"data-test-id":"searchmore-button"},a.createElement("div",{className:Lt},e._getSearchMoreButtonText()))}_getSearchTips(){return a.createElement("div",{className:"panel-stock-search-tips-container","data-test-id":"search-tips"},a.createElement("div",null,e._getTipsHeader(this.props.stockSearchState)),a.createElement(_t,null))}render(){return e._canSearchMoreOnWeb(this.props.stockSearchState)?this._getSearchMoreButton():e._canShowTips(this.props.stockSearchState)?this._getSearchTips():null}static measure(t,r){if(e._canSearchMoreOnWeb(r)){const r=15;return{width:t,height:(0,bt.fk)(e._getSearchMoreButtonText(),Lt,t)+r}}if(e._canShowTips(r)){return{width:t,height:30+(0,bt.fk)(e._getTipsHeader(r),"",t)+_t.measure(t).height}}return{width:0,height:0}}},wt.propTypes={stockSearchState:A().instanceOf(yt.Z).isRequired},Et=wt))||Et;var St,Ot,Tt=r(99277),It=r(5849);let Pt=(0,u.Pi)(((Ot=class extends a.Component{get spinnerMessage(){return(0,m.Iu)("DL_STOCK_PANEL_SEARCHING_MESSAGE")}render(){return a.createElement("div",{className:"panel-stock-message-container","data-test-id":"is-loading"},a.createElement("div",{className:"stock-loading-spinner"},a.createElement(It.Z,{size:"large",indeterminate:!0})),a.createElement("div",{className:"panel-stock-loading-message","data-test-id":"loading-message"},this.spinnerMessage))}}).height=80,St=Ot))||St;var Ct,At,kt,Dt=r(41199),Nt=r(31870);function Rt(e,t,r=0,n=0){if(!e)return;let i=[],o=[],a=0,s=n;return e.forEach(((n,c)=>{const l=Math.ceil(240*Math.round(n.thumbnail_width)/Math.round(n.thumbnail_height)),u=Mt(t,[...o,n],a+l,r,s),p=u.rowHeight,d=u.layoutData;if(!function(e){if(1===e.length)return!0;return!e.some((({width:e,height:t})=>e<55||e<83&&t<60))}(d)){const e=Mt(t,o,a,r,s),c=e.rowHeight,u=e.layoutData;return i=i.concat(u),o=[n],a=l,void(s+=c+4)}if(o.push(n),c===e.length-1||a+l>t)return i=i.concat(d),o=[],a=0,void(s+=p+4);a+=l})),i}function Mt(e,t,r,n,i){const o=[],a=e-4*(t.length-1),s=Math.floor(240*a/r);let c=n;return t.forEach((e=>{const t=Math.floor(e.thumbnail_width*s/e.thumbnail_height);o.push({x:c,y:i,height:s,width:t,isVerticalLayout:t<83}),c=c+t+4})),{rowHeight:s,layoutData:o}}let jt=(0,u.Pi)(((kt=class extends a.Component{constructor(...e){super(...e),this._setCollection=e=>{this._collection=e},this.cellSizeAndPositionGetter=({index:e})=>0===this.props.width?{x:0,y:0,width:0,height:0}:this.items[e].layout,this.cellRenderer=({index:e,key:t,style:r})=>a.createElement("div",{key:t,style:r},this.getItemView(this.items[e].type,this.items[e].data,this.items[e].layout))}get usableWidth(){return this.props.width-16}componentWillReact(){this._collection&&this._collection.recomputeCellSizesAndPositions()}get items(){const e=this.props.stockSearchState,t=[];if(e.isLoading){const e=Math.max(Pt.height,this.props.height-4),r={type:"loading",layout:{x:0,y:4,width:this.usableWidth,height:e}};return t.push(r),t}if(0===e.searchResultsCount){const e={type:"noresults",layout:{x:0,y:0,width:this.props.width,height:this.props.height}};return t.push(e),t}const r=e.searchResults;Rt(r,this.usableWidth-10,10,4).forEach(((e,n)=>{t.push({type:"searchResult",layout:e,data:r[n]})}));const n=t[t.length-1],i=n?n.layout:{x:0,y:4,width:this.usableWidth,height:Math.max(Pt.height,this.props.height-4)},o=xt.measure(this.usableWidth-10,this.props.stockSearchState),a={type:"footer",layout:{x:10,y:i.y+i.height+5,width:o.width,height:o.height+25}};return t.push(a),t}getItemView(e,t,r){switch(e){case"searchResult":{const e=Nt.BG(t.media_type_id,t.content_type),n=G.Z.getStockComponent(e);return a.createElement(n,{stockSearchState:this.props.stockSearchState,asset:t,layout:r})}case"footer":return a.createElement(xt,{stockSearchState:this.props.stockSearchState});case"loading":return a.createElement(Pt,null);case"noresults":return a.createElement(Tt.Z,null)}}componentDidUpdate(){p.Z.scrollBugFix&&p.Z.scrollBugFix(this._collection,this.props.height)}render(){return a.createElement("div",{"data-test-id":"results"},a.createElement(Dt.Z,{cellCount:this.items.length,cellRenderer:this.cellRenderer,cellSizeAndPositionGetter:this.cellSizeAndPositionGetter,ref:this._setCollection,width:this.props.width,height:this.props.height,className:"panel-stock-search-result-virtual-scroll"}))}}).propTypes={width:A().number.isRequired,height:A().number.isRequired,stockSearchState:A().instanceOf(yt.Z).isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((At=kt).prototype,"items",[l.computed],Object.getOwnPropertyDescriptor(At.prototype,"items"),At.prototype),Ct=At))||Ct;var Zt,Ft,Bt=r(5837),Gt=r(13169);const Ut=()=>a.createElement("div",{className:"panel-dl-stock-error","data-test-id":"no-connection"},a.createElement("div",{className:"panel-dl-stock-no-connection-icon"},a.createElement(b.Z,{id:"CreativeCloud",height:46})),a.createElement(Bt.Z,{className:"panel-dl-stock-message",html:(0,m.Iu)("DL_STOCK_PANEL_NO_CONNECTION_MESSAGE")})),zt=()=>a.createElement("div",{className:"panel-dl-stock-error","data-test-id":"search-error"},a.createElement("div",{className:"panel-dl-stock-message"},(0,m.Iu)("DL_STOCK_PANEL_SEARCH_ERROR")));let Vt=(0,u.Pi)(((Ft=class extends a.Component{get stockSearchState(){return this.props.stockSearchState||ue.Z.stockSearchState}_getRenderComponent(){const e=this.stockSearchState,t=(e.searchResultsCount,e.isLoading),r=e.hasSearchFailed;return e.isOnLine?t?this._getSearchResults():r?a.createElement(zt,null):this._getSearchResults():a.createElement(Ut,null)}_getSearchResults(){const e=p.Z.AutoSizer||Gt.Z;return a.createElement(e,null,(({width:e,height:t})=>(e=e||300,t=t||600,a.createElement(jt,{stockSearchState:this.stockSearchState,width:e,height:t}))))}render(){return a.createElement("div",{"data-test-id":"stock-search",className:"panel-contents"},this._getRenderComponent())}}).propTypes={stockSearchState:A().instanceOf(yt.Z)},Zt=Ft))||Zt;var Ht,Yt,Wt,$t=r(64027),Kt=r(79012),qt=r(98405),Xt=r(82562),Jt=r(74149),Qt=r(85834),er=r(59299),tr=r(98465),rr=r(97536);function nr(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ir=(0,u.Pi)(((Wt=class extends a.Component{constructor(...e){super(...e),this._navigateToLibrary=e=>{p.Z.navigateToLibrary(e)},this.getLibraryItem=(e,t=!1)=>{var r,n;return a.createElement(ae.Z,{library:e,key:e.id,isRecent:t,onClick:this._navigateToLibrary,showContextMenuButton:null===(r=(n=y.Z.currentProduct.config).showLibraryListItemContextMenuButton)||void 0===r?void 0:r.call(n)})},this.handleDrop=e=>{(0,Jt.pI)(null,e)}}componentDidMount(){d.ZP.reportEvent("Navigation","Root View","render","root-view",{event:{count:this.activeLibraries.length}})}get activeLibraries(){return(0,W.l8)("active",this.context.viewState.librariesInViewOrder)}get brandLibraries(){return(0,W.l8)("brand",this.activeLibraries)}get brandsEnabled(){return Qt.Z.get("brandFeatureEnabled")}get traditionalLibraries(){const e=this.brandsEnabled?"notBrand":"all";return(0,W.l8)(e,this.activeLibraries)}get recentLibrariesView(){if(!(y.Z.currentProduct.config.disableRecentLibrariesView||this.activeLibraries.length<=y.Z.RECENTS_LIST_LIBRARY_MIN))return a.createElement(a.Fragment,null,a.createElement("div",{"data-test-id":"root-view-recents-header",className:"libraries-section-header"},(0,m.Iu)("DL_SELECT_LIBRARY_LIST_HEADER_RECENT")),a.createElement("div",{"data-test-id":"root-view-recent-libraries",className:"root-view-recent-libraries"},this.context.libraryManager.recentLibraries.map((e=>this.getLibraryItem(e,!0)))))}get brandLibrariesView(){if(this.brandsEnabled&&this.brandLibraries.length)return a.createElement(a.Fragment,null,a.createElement("div",{"data-test-id":"root-view-brand-libraries-header",className:"libraries-section-header"},(0,m.Iu)("DL_BRAND_LIBRARIES")),a.createElement("div",{"data-test-id":"root-view-brand-libraries"},this.brandLibraries.map((e=>this.getLibraryItem(e,!1)))))}get traditionalLibrariesView(){return a.createElement("div",{"data-test-id":"root-view-all-libraries"},this.traditionalLibraries.map((e=>this.getLibraryItem(e,!1))))}get libraryList(){const e=[];this.recentLibrariesView&&e.push(this.recentLibrariesView),this.brandLibrariesView&&e.push(this.brandLibrariesView);const t=(this.brandsEnabled||!!e.length)&&!!this.traditionalLibraries.length;return a.createElement(a.Fragment,null,e,t&&a.createElement("div",{"data-test-id":"root-view-all-libraries-header",className:"libraries-section-header"},(0,m.Iu)(y.Z.currentProduct.config.allLibrariesSectionTitle||"DL_SELECT_LIBRARY_LIST_HEADER_ALL")),this.traditionalLibrariesView)}get discoverLibrariesMessage(){if(!this.context.libraryManager.isRestrictedAccount&&(!y.Z.currentProduct.showDiscoverMessageInRootView||y.Z.currentProduct.showDiscoverMessageInRootView(this.activeLibraries.length)))return a.createElement(qt.Z,null)}get projectsBanner(){var e,t,r;if(this.hasDisplayableLibraries&&null!==(e=y.Z.currentProduct.config)&&void 0!==e&&null!==(t=e.hasProjectsBanner)&&void 0!==t&&t.call(e)&&(null===(r=this.context.libraryManager.projects)||void 0===r?void 0:r.length)>0&&(0,rr.J2)())return a.createElement(tr.Z,{rootView:!0})}get hasDisplayableLibraries(){return this.traditionalLibraries.length||this.brandsEnabled&&this.brandLibraries.length}get emptyLibraryNameSearchView(){const e=this.brandsEnabled?"DL_LIBRARY_AND_BRAND_EMPTY_VIEW_HEADER":"DL_TEAM_LIBRARY_EMPTY_VIEW_HEADER",t=this.brandsEnabled?"DL_LIBRARY_AND_BRAND_EMPTY_VIEW_SUBTITLE":"DL_TEAM_LIBRARY_EMPTY_VIEW_SUBTITLE";if(this.context.viewState.isLibraryNameSearchType())return a.createElement(Xt.Z,{view:"personal",header:(0,m.Iu)(e),subtitle:(0,m.Iu)(t),graphic:"CCXEmptySearch"})}get libraryNameSearchResultsHeader(){const e=this.traditionalLibraries.length+this.brandLibraries.length;if(this.context.viewState.isLibraryNameSearchMode())return a.createElement(er.Z,{numResults:e})}get content(){return this.hasDisplayableLibraries?a.createElement(a.Fragment,null,this.libraryNameSearchResultsHeader,this.libraryList,this.discoverLibrariesMessage,this.projectsBanner):this.emptyLibraryNameSearchView}render(){return a.createElement("div",{className:"panel-contents panel-root-view","data-test-id":"panel-root-view",onDrop:this.handleDrop},a.createElement("div",{className:"root-view-library-list","data-test-id":"root-view-library-list"},this.content))}}).contextType=E.r,nr((Yt=Wt).prototype,"activeLibraries",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"activeLibraries"),Yt.prototype),nr(Yt.prototype,"brandLibraries",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"brandLibraries"),Yt.prototype),nr(Yt.prototype,"traditionalLibraries",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"traditionalLibraries"),Yt.prototype),nr(Yt.prototype,"recentLibrariesView",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"recentLibrariesView"),Yt.prototype),nr(Yt.prototype,"brandLibrariesView",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"brandLibrariesView"),Yt.prototype),nr(Yt.prototype,"traditionalLibrariesView",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"traditionalLibrariesView"),Yt.prototype),nr(Yt.prototype,"libraryList",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"libraryList"),Yt.prototype),nr(Yt.prototype,"libraryNameSearchResultsHeader",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"libraryNameSearchResultsHeader"),Yt.prototype),nr(Yt.prototype,"content",[l.computed],Object.getOwnPropertyDescriptor(Yt.prototype,"content"),Yt.prototype),Ht=Yt))||Ht;var or,ar,sr=r(44853),cr=r(3303);let lr=(0,u.Pi)(((ar=class extends a.Component{get allowBlankName(){return G.Z.allowBlankName(this.props.element)}render(){const e=this.props.element;return a.createElement(cr.Z,{item:e,allowBlankName:this.allowBlankName,placeholder:(0,m.Iu)("DL_EDIT_NAME_PLACEHOLDER"),containerClassName:"oneup-element-name-container",inputClassName:"oneup-element-name-input",textClassName:"oneup-element-name",isReadOnly:!this.context.viewState.isLibraryWritable(e.library)||e.disableRename,isShowingEditIcon:!0},e.name)}}).contextType=E.r,ar.propTypes={element:A().instanceOf(sr.Z)},or=ar))||or;var ur,pr,dr=r(5906),hr=r(16154);let fr=(0,u.Pi)(((pr=class extends a.Component{constructor(...e){super(...e),this.componentDidMount=()=>{this.context.libraryManager.fetchLibraryCollaborations(this.element.library),d.ZP.reportEvent("Navigation","Library Panel","render","element-1-up")}}get element(){return this.props.element}get elementType(){return(G.Z.getExtension(this.element)||(0,m.Iu)(G.Z.getTypeName(this.element.type,!0))).toUpperCase()}get detailView(){if(this.element.type===y.Z.COLOR_THEME_ELEMENT_TYPE)return;const e=G.Z.getComponent(this.element.type);return a.createElement("div",{className:"oneup-container oneup-detail-view-container"},a.createElement("div",{"data-test-id":"oneup-detail-view",className:"oneup-detail-view"},a.createElement(e,{element:this.element,viewMode:"thumbnail-large"})))}get elementNameAndType(){return a.createElement("div",{className:"oneup-container oneup-element-name-type-container"},a.createElement(lr,{element:this.element}),a.createElement("span",{"data-test-id":"oneup-element-type",className:"oneup-element-type"},this.elementType))}get infoPanel(){return a.createElement("div",{className:"oneup-info-panel-container"},a.createElement(hr.Z,{element:this.element}))}render(){return a.createElement("div",{className:"panel-contents","data-test-id":"oneup-view"},a.createElement("div",{className:"oneup-view-container"},this.elementNameAndType,a.createElement(dr.Z,{element:this.element,placeholder:(0,m.Iu)("DL_DESCRIPTION_PLACEHOLDER"),className:"oneup-editable-description"}),this.detailView,this.infoPanel))}}).contextType=E.r,pr.propTypes={element:A().instanceOf(sr.Z)},ur=pr))||ur;var mr,gr,vr=r(87757),yr=r(48919),br=r(57806);function _r(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Er={"zh-TW":"zh-Hant","zh-CN":"zh-Hans"},wr=e=>e.preventDefault();let Lr=(0,u.Pi)((_r((gr=class extends a.Component{constructor(...e){super(...e),this._onOnline=()=>{yr.Z.panel.libraryManager.sync(),d.ZP.reportStoredOfflineEvents()},this._onOffline=()=>yr.Z.panel.libraryManager.sync(),this.onClick=()=>yr.Z.panel.libraryManager.sync(!0,!0)}componentDidMount(){const e=p.Z.getLocale(),t=br.ZP.reactSpectrumTheme,r=br.ZP.appCode,n=y.Z.currentProduct.config.legacySpectrumEnabled;document.body.className=c()(`locale_${e}`,`ccl-App--${r}`,`ccl-Theme--${t}`,n&&"spectrum-enabled",{windows:p.Z.isWindowsOS()}),document.body.lang=(e=>Er[e]||e.split("-")[0])(e),window.addEventListener("online",this._onOnline),window.addEventListener("offline",this._onOffline)}componentWillUnmount(){window.removeEventListener("online",this._onOnline),window.removeEventListener("offline",this._onOffline)}get currentLibrary(){const e=yr.Z.panel.libraryManager.currentLibrary;if(e){const t=e&&e.elements.length,r=t?{event:{count:t}}:null,n=e===yr.Z.panel.libraryManager.documentAssetsContainer;setTimeout((()=>d.ZP.reportEvent("Navigation",n?"Document Assets":"Library Panel","render",n?"doc-assets":"load-library",r,e)))}return e}get contents(){return yr.Z.panel.viewState.isStockSearchMode()?a.createElement(Vt,null):yr.Z.panel.viewState.isOneUpMode()?a.createElement(fr,{element:yr.Z.panel.viewState.getState().modeParams.element}):this.currentLibrary||yr.Z.panel.viewState.isLibrariesSearchMode()?a.createElement($t.Z,null):yr.Z.panel.libraryManager.libraries.length?a.createElement(ir,null):a.createElement(Kt.Z,{className:"panel-nolibs-container"})}get footerView(){if(!(y.Z.currentProduct.config.disablePanelFooter||yr.Z.panel.viewState.isRootView()&&y.Z.currentProduct.config.hideFooterInRootView))return a.createElement(mt,null)}get panelView(){const e=p.Z.getCustomPanelView();return e?a.createElement(e,null):a.createElement(a.Fragment,null,a.createElement(ce,null),a.createElement("div",{className:"panel-contents-wrapper"},this.contents,a.createElement(h.Z,null)),this.footerView)}get panel(){return!this.currentLibrary&&y.Z.currentProduct.config.errorStateComponent?y.Z.currentProduct.config.errorStateComponent:a.createElement(a.Fragment,null,this.panelView,a.createElement(f.Z,null))}get topLevelHeader(){const e=p.Z.getCustomHeaderView();if(e)return a.createElement(e,null)}render(){var e,t;return a.createElement(a.Fragment,null,a.createElement("div",{"data-test-id":"panel-container",className:"panel-container",onClick:this.onClick,onDragOverCapture:wr,onDropCapture:wr},a.createElement(E.o,{value:yr.Z.panel,style:{fontFamily:"inherit",height:"100%",width:"100%",position:"absolute",display:"flex",flexDirection:"column"}},!yr.Z.panel.viewState.isRootView()&&(null===(e=(t=y.Z.currentProduct).getPaywallBanner)||void 0===e?void 0:e.call(t,y.Z.PAYWALL_BANNER_TYPES.LIBRARY_PANEL)),this.topLevelHeader,this.panel,a.createElement(vr.Z,null))))}}).prototype,"currentLibrary",[l.computed],Object.getOwnPropertyDescriptor(gr.prototype,"currentLibrary"),gr.prototype),_r(gr.prototype,"panelView",[l.computed],Object.getOwnPropertyDescriptor(gr.prototype,"panelView"),gr.prototype),_r(gr.prototype,"panel",[l.computed],Object.getOwnPropertyDescriptor(gr.prototype,"panel"),gr.prototype),mr=gr))||mr},82606:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(84824);let u=(0,c.Pi)(((i=class extends o.Component{get title(){return o.createElement("div",{"data-test-id":"progressTitle",className:"panel-progressTitle"},this.props.title)}get metadata(){if(this.props.showMetaData)return o.createElement("div",{className:"panel-progressMetadata"},this.title,o.createElement("div",{"data-test-id":"progressPercent",className:"panel-progressPercent"},(0,l.Iu)("DL_PERCENTAGE",{percent:this.props.progress})))}get progressBar(){return o.createElement("div",{className:"panel-progressContainer"},o.createElement("div",{"data-test-id":"progressBar",className:"panel-progressBar",style:{width:`${this.props.progress}%`}}))}render(){return o.createElement("div",{"data-test-id":"progress",className:"panel-progress"},this.metadata,this.progressBar)}}).defaultProps={progress:0,title:"Progress",showMetaData:!0},i.propTypes={progress:s().number,title:s().string,showMetaData:s().bool},n=i))||n},98949:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(89526),i=r(2652),o=r.n(i),a=r(74379),s=r(85878);const c="k5a",l="ViL";var u=r(50265);var p,d;let h=((d=class extends n.Component{get style(){var e;return null!==(e=this.props.project)&&void 0!==e&&e.gradientData?(0,a.mr)(this.props.project.gradientData):{}}get emojiRegEx(){return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}get gradientLetterOrEmoji(){var e;const t=null===(e=this.props.project)||void 0===e?void 0:e.name,r=t?t.match(this.emojiRegEx):null,i=t&&r&&t.startsWith(r);return n.createElement("span",{className:l,"data-test-id":"project-gradient-letter"},i?r:null==t?void 0:t.substring(0,1))}get loading(){return n.createElement("div",{className:"ghost-loading-wrapper"},n.createElement("div",{"data-test-id":"ghost-loading",className:"ghost-loading"}))}get content(){var e;return null!==(e=this.props.project)&&void 0!==e&&e.gradientData?this.gradientLetterOrEmoji:this.loading}render(){return n.createElement("div",{"data-test-id":"project-gradient-library",style:this.style,className:c},this.content)}}).propTypes={project:o().instanceOf(s.SZ)},f=(p=d).prototype,m="style",g=[u.computed],v=Object.getOwnPropertyDescriptor(p.prototype,"style"),y=p.prototype,b={},Object.keys(v).forEach((function(e){b[e]=v[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=g.slice().reverse().reduce((function(e,t){return t(f,m,e)||e}),b),y&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(y):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(f,m,b),b=null),p);var f,m,g,v,y,b},98465:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(89526),i=r(2652),o=r(84824),a=r(5837),s=r(99386),c=r(30131);const l="uaI",u="XKj";var p,d,h,f,m=r(27611),g=r(97536),v=r(50265);let y=(0,r(62631).Pi)((f=class extends n.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="hideBanner",i=this,(n=h)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.handleClose=()=>{this.hideBanner=!0,(0,g.y6)("projectsBanner")}}get text(){var e,t;return this.props.rootView?(0,o.Iu)("PROJECTS_BANNER_ROOT_VIEW"):null!==(e=(t=s.Z.currentProduct).isExpandedBrandsView)&&void 0!==e&&e.call(t)?(0,o.Iu)("PROJECTS_BANNER_BRAND_VIEW"):(0,o.Iu)("PROJECTS_BANNER_LIBRARY_VIEW")}onLearnClick(){(0,c.d$)()}onProjectsClick(){}render(){return this.props.rootView?n.createElement("div",{className:l},n.createElement(a.Z,{"data-test-id":"projects-banner-text-rootview",onClick:this.onProjectsClick,html:(0,o.Iu)(this.text)})):this.hideBanner?null:n.createElement("div",{className:l},n.createElement(a.Z,{"data-test-id":"projects-banner-text-expanded",onClick:this.onLearnClick,html:(0,o.Iu)(this.text)}),n.createElement("div",{className:u,"data-test-id":"banner-close",onClick:this.handleClose},n.createElement(m.Z,{id:"Close",height:16,width:16})))}},f.defaultProps={rootView:!1},f.propTypes={rootView:i.PropTypes.bool},b=(d=f).prototype,_="hideBanner",E=[v.observable],w={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},x={},Object.keys(w).forEach((function(e){x[e]=w[e]})),x.enumerable=!!x.enumerable,x.configurable=!!x.configurable,("value"in x||x.initializer)&&(x.writable=!0),x=E.slice().reverse().reduce((function(e,t){return t(b,_,e)||e}),x),L&&void 0!==x.initializer&&(x.value=x.initializer?x.initializer.call(L):void 0,x.initializer=void 0),void 0===x.initializer&&(Object.defineProperty(b,_,x),x=null),h=x,p=d))||p;var b,_,E,w,L,x},59299:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(16993),u=r(84824),p=r(2169),d=r(76485),h=r(99386);let f=(0,c.Pi)((i=class e extends o.Component{static getMessage(e){let t;return l.Z.isLibrariesSearchMode()?l.Z.searchState.hasSelectedLibraryFilters?(t=1===e?"DL_SEARCH_RESULT_FILTERED_LIBRARIES":"DL_SEARCH_RESULTS_FILTERED_LIBRARIES",t=(0,u.Iu)(t,{count:e})):(t=1===e?"DL_SEARCH_RESULT_LIBRARIES":"DL_SEARCH_RESULTS_LIBRARIES",t=(0,u.Iu)(t,{count:e})):l.Z.isStockSearchMode()?t=(0,u.Iu)("DL_SEARCH_RESULTS_STOCK"):l.Z.isDocumentSearchMode()||l.Z.isDocumentSearchType()?(t=1===e?"DL_SEARCH_RESULT_DOCUMENT":"DL_SEARCH_RESULTS_DOCUMENT",t=(0,u.Iu)(t,{count:e})):(t=1===e?"DL_SEARCH_RESULT_LIBRARY":"DL_SEARCH_RESULTS_LIBRARY",t=(0,u.Iu)(t,{query:l.Z.getSearchText(),count:e})),t}static getHeight(e,t){return h.Z.currentProduct.config.useStaticSearchHeaderHeight?50:(0,p.fk)(this.getMessage(e),"panel-search-result-header",t)}render(){const t=e.getMessage(this.props.numResults),r=!h.Z.currentProduct.config.disableUppercaseSearchResultsHeader;return o.createElement("div",{className:"panel-search-result-header","data-test-id":"search-result-header"},r?t.toLocaleUpperCase(d.Z.getLocale()):t)}},i.propTypes={numResults:s().number.isRequired},n=i))||n},59157:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n,i,o=r(89526),a=r(62631),s=r(24937);let c=(0,a.Pi)(((i=class extends o.Component{render(){return this.context.toastManager.toast||null}}).contextType=s.r,n=i))||n},99767:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Pt});var n=r(89526),i=r(73961),o=r(2652),a=r.n(o),s=r(50265),c=r(62631),l=n.createContext(),u=n.createContext();function p(e){var t=e.children,r=n.useState(null),i=r[0],o=r[1],a=n.useRef(!1);n.useEffect((function(){return function(){a.current=!0}}),[]);var s=n.useCallback((function(e){a.current||o(e)}),[]);return n.createElement(l.Provider,{value:i},n.createElement(u.Provider,{value:s},t))}var d=function(e){return Array.isArray(e)?e[0]:e},h=function(e){if("function"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,r)}},f=function(e,t){if("function"==typeof e)return h(e,t);null!=e&&(e.current=t)},m=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},g="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect;function v(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect();return{width:r.width/1,height:r.height/1,top:r.top/1,right:r.right/1,bottom:r.bottom/1,left:r.left/1,x:r.left/1,y:r.top/1}}function y(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function b(e){var t=y(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return e instanceof y(e).Element||e instanceof Element}function E(e){return e instanceof y(e).HTMLElement||e instanceof HTMLElement}function w(e){return"undefined"!=typeof ShadowRoot&&(e instanceof y(e).ShadowRoot||e instanceof ShadowRoot)}function L(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((_(e)?e.ownerDocument:e.document)||window.document).documentElement}function S(e){return v(x(e)).left+b(e).scrollLeft}function O(e){return y(e).getComputedStyle(e)}function T(e){var t=O(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function I(e,t,r){void 0===r&&(r=!1);var n=E(t),i=E(t)&&function(e){var t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return 1!==r||1!==n}(t),o=x(t),a=v(e,i),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==L(t)||T(o))&&(s=function(e){return e!==y(e)&&E(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:b(e);var t}(t)),E(t)?((c=v(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=S(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function P(e){var t=v(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function C(e){return"html"===L(e)?e:e.assignedSlot||e.parentNode||(w(e)?e.host:null)||x(e)}function A(e){return["html","body","#document"].indexOf(L(e))>=0?e.ownerDocument.body:E(e)&&T(e)?e:A(C(e))}function k(e,t){var r;void 0===t&&(t=[]);var n=A(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=y(n),a=i?[o].concat(o.visualViewport||[],T(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(k(C(a)))}function D(e){return["table","td","th"].indexOf(L(e))>=0}function N(e){return E(e)&&"fixed"!==O(e).position?e.offsetParent:null}function R(e){for(var t=y(e),r=N(e);r&&D(r)&&"static"===O(r).position;)r=N(r);return r&&("html"===L(r)||"body"===L(r)&&"static"===O(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&E(e)&&"fixed"===O(e).position)return null;for(var r=C(e);E(r)&&["html","body"].indexOf(L(r))<0;){var n=O(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var M="top",j="bottom",Z="right",F="left",B="auto",G=[M,j,Z,F],U="start",z="end",V="viewport",H="popper",Y=G.reduce((function(e,t){return e.concat([t+"-"+U,t+"-"+z])}),[]),W=[].concat(G,[B]).reduce((function(e,t){return e.concat([t,t+"-"+U,t+"-"+z])}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function K(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}var q={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function J(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?q:i;return function(e,t,r){void 0===r&&(r=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(r){var i="function"==typeof r?r(s.options):r;p(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:_(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var a=function(e){var t=K(e);return $.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var o=i({state:s,name:t,instance:u,options:n}),a=function(){};c.push(o||a)}})),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,r=e.popper;if(X(t,r)){s.rects={reference:I(t,R(r),"fixed"===s.options.strategy),popper:P(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var i=s.orderedModifiers[n],o=i.fn,a=i.options,c=void 0===a?{}:a,p=i.name;"function"==typeof o&&(s=o({state:s,options:c,name:p,instance:u})||s)}else s.reset=!1,n=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){p(),l=!0}};if(!X(e,t))return u;function p(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var Q={passive:!0};const ee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,s=void 0===a||a,c=y(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach((function(e){e.addEventListener("scroll",r.update,Q)})),s&&c.addEventListener("resize",r.update,Q),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",r.update,Q)})),s&&c.removeEventListener("resize",r.update,Q)}},data:{}};function te(e){return e.split("-")[0]}function re(e){return e.split("-")[1]}function ne(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ie(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?te(i):null,a=i?re(i):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(o){case M:t={x:s,y:r.y-n.height};break;case j:t={x:s,y:r.y+r.height};break;case Z:t={x:r.x+r.width,y:c};break;case F:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var l=o?ne(o):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case U:t[l]=t[l]-(r[u]/2-n[u]/2);break;case z:t[l]=t[l]+(r[u]/2-n[u]/2)}}return t}const oe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ie({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var ae=Math.max,se=Math.min,ce=Math.round,le={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ue(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,p=!0===u?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:ce(ce(t*n)/n)||0,y:ce(ce(r*n)/n)||0}}(a):"function"==typeof u?u(a):a,d=p.x,h=void 0===d?0:d,f=p.y,m=void 0===f?0:f,g=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=F,_=M,E=window;if(l){var w=R(r),L="clientHeight",S="clientWidth";w===y(r)&&"static"!==O(w=x(r)).position&&"absolute"===s&&(L="scrollHeight",S="scrollWidth"),i!==M&&(i!==F&&i!==Z||o!==z)||(_=j,m-=w[L]-n.height,m*=c?1:-1),i!==F&&(i!==M&&i!==j||o!==z)||(b=Z,h-=w[S]-n.width,h*=c?1:-1)}var T,I=Object.assign({position:s},l&&le);return c?Object.assign({},I,((T={})[_]=v?"0":"",T[b]=g?"0":"",T.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},I,((t={})[_]=v?m+"px":"",t[b]=g?h+"px":"",t.transform="",t))}const pe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=W.reduce((function(e,r){return e[r]=function(e,t,r){var n=te(e),i=[F,M].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[F,Z].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,o),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}};var de={left:"right",right:"left",bottom:"top",top:"bottom"};function he(e){return e.replace(/left|right|bottom|top/g,(function(e){return de[e]}))}var fe={start:"end",end:"start"};function me(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}function ge(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&w(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ve(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ye(e,t){return t===V?ve(function(e){var t=y(e),r=x(e),n=t.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,s=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,s=n.offsetTop)),{width:i,height:o,x:a+S(e),y:s}}(e)):E(t)?function(e){var t=v(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ve(function(e){var t,r=x(e),n=b(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=ae(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ae(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+S(e),c=-n.scrollTop;return"rtl"===O(i||r).direction&&(s+=ae(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(x(e)))}function be(e,t,r){var n="clippingParents"===t?function(e){var t=k(C(e)),r=["absolute","fixed"].indexOf(O(e).position)>=0&&E(e)?R(e):e;return _(r)?t.filter((function(e){return _(e)&&ge(e,r)&&"body"!==L(e)})):[]}(e):[].concat(t),i=[].concat(n,[r]),o=i[0],a=i.reduce((function(t,r){var n=ye(e,r);return t.top=ae(n.top,t.top),t.right=se(n.right,t.right),t.bottom=se(n.bottom,t.bottom),t.left=ae(n.left,t.left),t}),ye(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _e(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ee(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function we(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.boundary,a=void 0===o?"clippingParents":o,s=r.rootBoundary,c=void 0===s?V:s,l=r.elementContext,u=void 0===l?H:l,p=r.altBoundary,d=void 0!==p&&p,h=r.padding,f=void 0===h?0:h,m=_e("number"!=typeof f?f:Ee(f,G)),g=u===H?"reference":H,y=e.rects.popper,b=e.elements[d?g:u],E=be(_(b)?b:b.contextElement||x(e.elements.popper),a,c),w=v(e.elements.reference),L=ie({reference:w,element:y,strategy:"absolute",placement:i}),S=ve(Object.assign({},y,L)),O=u===H?S:w,T={top:E.top-O.top+m.top,bottom:O.bottom-E.bottom+m.bottom,left:E.left-O.left+m.left,right:O.right-E.right+m.right},I=e.modifiersData.offset;if(u===H&&I){var P=I[i];Object.keys(T).forEach((function(e){var t=[Z,j].indexOf(e)>=0?1:-1,r=[M,j].indexOf(e)>=0?"y":"x";T[e]+=P[r]*t}))}return T}function Le(e,t,r){return ae(e,se(t,r))}const xe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,h=void 0===d||d,f=r.tetherOffset,m=void 0===f?0:f,g=we(t,{boundary:c,rootBoundary:l,padding:p,altBoundary:u}),v=te(t.placement),y=re(t.placement),b=!y,_=ne(v),E="x"===_?"y":"x",w=t.modifiersData.popperOffsets,L=t.rects.reference,x=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O={x:0,y:0};if(w){if(o||s){var T="y"===_?M:F,I="y"===_?j:Z,C="y"===_?"height":"width",A=w[_],k=w[_]+g[T],D=w[_]-g[I],N=h?-x[C]/2:0,B=y===U?L[C]:x[C],G=y===U?-x[C]:-L[C],z=t.elements.arrow,V=h&&z?P(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=H[T],W=H[I],$=Le(0,L[C],V[C]),K=b?L[C]/2-N-$-Y-S:B-$-Y-S,q=b?-L[C]/2+N+$+W+S:G+$+W+S,X=t.elements.arrow&&R(t.elements.arrow),J=X?"y"===_?X.clientTop||0:X.clientLeft||0:0,Q=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,ee=w[_]+K-Q-J,ie=w[_]+q-Q;if(o){var oe=Le(h?se(k,ee):k,A,h?ae(D,ie):D);w[_]=oe,O[_]=oe-A}if(s){var ce="x"===_?M:F,le="x"===_?j:Z,ue=w[E],pe=ue+g[ce],de=ue-g[le],he=Le(h?se(pe,ee):pe,ue,h?ae(de,ie):de);w[E]=he,O[E]=he-ue}}t.modifiersData[n]=O}},requiresIfExists:["offset"]};const Se={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=te(r.placement),c=ne(s),l=[F,Z].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return _e("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ee(e,G))}(i.padding,r),p=P(o),d="y"===c?M:F,h="y"===c?j:Z,f=r.rects.reference[l]+r.rects.reference[c]-a[c]-r.rects.popper[l],m=a[c]-r.rects.reference[c],g=R(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[d],_=v-p[l]-u[h],E=v/2-p[l]/2+y,w=Le(b,E,_),L=c;r.modifiersData[n]=((t={})[L]=w,t.centerOffset=w-E,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ge(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oe(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Te(e){return[M,Z,j,F].some((function(t){return e[t]>=0}))}var Ie=J({defaultModifiers:[ee,oe,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,c=void 0===s||s,l={placement:te(t.placement),variation:re(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ue(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ue(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];E(i)&&L(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});E(n)&&L(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},pe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,f=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,v=te(g),y=c||(v===g||!f?[he(g)]:function(e){if(te(e)===B)return[];var t=he(e);return[me(e),t,me(t)]}(g)),b=[g].concat(y).reduce((function(e,r){return e.concat(te(r)===B?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=void 0===c?W:c,u=re(n),p=u?s?Y:Y.filter((function(e){return re(e)===u})):G,d=p.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=p);var h=d.reduce((function(t,r){return t[r]=we(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[te(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:u,rootBoundary:p,padding:l,flipVariations:f,allowedAutoPlacements:m}):r)}),[]),_=t.rects.reference,E=t.rects.popper,w=new Map,L=!0,x=b[0],S=0;S<b.length;S++){var O=b[S],T=te(O),I=re(O)===U,P=[M,j].indexOf(T)>=0,C=P?"width":"height",A=we(t,{placement:O,boundary:u,rootBoundary:p,altBoundary:d,padding:l}),k=P?I?Z:F:I?j:M;_[C]>E[C]&&(k=he(k));var D=he(k),N=[];if(o&&N.push(A[T]<=0),s&&N.push(A[k]<=0,A[D]<=0),N.every((function(e){return e}))){x=O,L=!1;break}w.set(O,N)}if(L)for(var R=function(e){var t=b.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},z=f?3:1;z>0;z--){if("break"===R(z))break}t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},xe,Se,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=we(t,{elementContext:"reference"}),s=we(t,{altBoundary:!0}),c=Oe(a,n),l=Oe(s,i,o),u=Te(c),p=Te(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),Pe=r(15439),Ce=r.n(Pe),Ae=[],ke=function(){},De=function(){return Promise.resolve(null)},Ne=[];function Re(e){var t=e.placement,r=void 0===t?"bottom":t,i=e.strategy,o=void 0===i?"absolute":i,a=e.modifiers,s=void 0===a?Ne:a,c=e.referenceElement,u=e.onFirstUpdate,p=e.innerRef,h=e.children,v=n.useContext(l),y=n.useState(null),b=y[0],_=y[1],E=n.useState(null),w=E[0],L=E[1];n.useEffect((function(){f(p,b)}),[p,b]);var x=n.useMemo((function(){return{placement:r,strategy:o,onFirstUpdate:u,modifiers:[].concat(s,[{name:"arrow",enabled:null!=w,options:{element:w}}])}}),[r,o,u,s,w]),S=function(e,t,r){void 0===r&&(r={});var i=n.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ae},a=n.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],l=n.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);c({styles:m(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:m(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),u=n.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Ce()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),p=n.useRef();return g((function(){p.current&&p.current.setOptions(u)}),[u]),g((function(){if(null!=e&&null!=t){var n=(r.createPopper||Ie)(e,t,u);return p.current=n,function(){n.destroy(),p.current=null}}}),[e,t,r.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}}(c||v,b,x),O=S.state,T=S.styles,I=S.forceUpdate,P=S.update,C=n.useMemo((function(){return{ref:_,style:T.popper,placement:O?O.placement:r,hasPopperEscaped:O&&O.modifiersData.hide?O.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:O&&O.modifiersData.hide?O.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:T.arrow,ref:L},forceUpdate:I||ke,update:P||De}}),[_,L,r,O,T,P,I]);return d(h)(C)}var Me=r(80919),je=r.n(Me);function Ze(e){var t=e.children,r=e.innerRef,i=n.useContext(u),o=n.useCallback((function(e){f(r,e),h(i,e)}),[r,i]);return n.useEffect((function(){return function(){return f(r,null)}})),n.useEffect((function(){je()(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),d(t)({ref:o})}var Fe=r(76485),Be=r(99386),Ge=r(64403),Ue=r.n(Ge),ze=r(24937),Ve=r(14241),He=r(83377),Ye=r(28086),We=r(94859),$e=r(82530);const Ke=["className"];function qe(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 Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach((function(t){Je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qe(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */et=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function tt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function rt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){tt(o,n,i,a,s,"next",e)}function s(e){tt(o,n,i,a,s,"throw",e)}a(void 0)}))}}const nt=(0,We.Z)(r(10387)).default;let it;$e.env.EXCLUDE_SWC||(it=new Ye.t(["sp-tooltip"],rt(et().mark((function e(){var t,n;return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6817)]).then(r.bind(r,32324));case 2:return t=e.sent,n=t.Tooltip,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ot=(0,He.Z)({displayName:"Tooltip",fallback:nt,swcLoader:it,swcProps:e=>{const t=e.className;return Xe(Xe({},Qe(e,Ke)),{},{class:t})},tagName:"sp-tooltip"});var at=r(30222),st=r(82530);const ct=["trigger","children","className","onHide","onShow","disabled","delayShow","boundariesElement","show"];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 ut(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){pt(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){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dt(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ht(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ht=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ft(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function mt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ft(o,n,i,a,s,"next",e)}function s(e){ft(o,n,i,a,s,"throw",e)}a(void 0)}))}}const gt=(0,We.Z)(r(3074)).default;let vt;st.env.EXCLUDE_SWC||(vt=new Ye.t(["overlay-trigger"],mt(ht().mark((function e(){var t,n;return ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(8490),r.e(4537)]).then(r.bind(r,73868));case 2:return t=e.sent,n=t.OverlayTrigger,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const yt={left:"left",right:"right",top:"top",bottom:"bottom","top left":"top-start","top right":"top-end","bottom left":"bottom-start","bottom right":"bottom-end","left top":"left-start","left bottom":"left-end","right top":"right-start","right bottom":"right-end"},bt=["hover","focus"],_t=(0,He.Z)({displayName:"OverlayTrigger",fallback:gt,swcLoader:vt,SWCWrapper:function(e){const t=e.trigger,r=void 0===t?bt:t,i=e.children,o=e.className,a=e.onHide,s=e.onShow,c=e.disabled,l=e.delayShow,u=(e.boundariesElement,e.show,dt(e,ct)),p=n.Children.toArray(i),d=(0,n.useRef)(null),h="object"==typeof r?r:r?[r]:[],f=[],m=[],g=e.placement?yt[e.placement]:"left";if((0,n.useEffect)((()=>{const e=null==d?void 0:d.current;return e&&s&&e.addEventListener("sp-opened",s),e&&a&&e.addEventListener("sp-closed",a),()=>{e&&s&&e.removeEventListener("sp-opened",s),e&&a&&e.removeEventListener("sp-closed",a)}}),[s,a]),h.forEach((e=>{null!=e&&e.includes("hover")||null!=e&&e.includes("focus")?f.push("hover-content"):null!=e&&e.includes("click")?f.push("click-content"):null!=e&&e.includes("longClick")&&f.push("longpress-content")})),f.length&&2===p.length){var v,y;const e=p[0],t=p[1];if(null!==(v=e.props)&&void 0!==v&&v.slot)m.push(e);else{const t=n.cloneElement(e,{slot:"trigger"});m.push(t)}null!==(y=t.props)&&void 0!==y&&y.slot?m.push(t):f.forEach((e=>{const r=n.cloneElement(t,{slot:e,delayed:!!l||void 0});m.push(r)}))}const b=(0,at.Co)("overlay-trigger");return n.createElement(b,ut(ut(ut({},u),(0,at.cd)({disabled:c})),{},{placement:g,class:o,ref:d}),m.length?m:i)},tagName:"overlay-trigger"});var Et,wt,Lt,xt,St,Ot;function Tt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let It=(0,c.Pi)(((wt=class extends n.Component{render(){const e=this.context||document.querySelector("#content")||document.querySelector("body"),t=[{name:"computeStyles",options:{gpuAcceleration:!Fe.Z.disableGPUTooltips}}];return i.createPortal(n.createElement(Re,{placement:this.props.placement,modifiers:t},(({placement:e,ref:t,style:r})=>n.createElement("div",{style:r,ref:t,"data-test-id":"tooltip-container",className:"tooltip","data-placement":e},this.props.children))),e)}}).contextType=Ve.w,wt.propTypes={children:a().node,delay:a().number,placement:a().string},Et=wt))||Et,Pt=(0,c.Pi)(((Ot=class extends n.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="isOpen",i=this,(n=St)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.handleMouseOver=e=>{e&&e.stopPropagation(),this.context.viewManager.isTooltipActive?this.show():(clearTimeout(this._tooltipDelayTimer),this._tooltipDelayTimer=setTimeout((()=>this.show()),this.props.delay))},this.handleMouseOut=()=>{clearTimeout(this._tooltipDelayTimer),clearTimeout(this._visibleTimer),this.hide()},this.handleMouseDown=()=>{this.context.viewManager.isTooltipActive&&this.handleMouseOut()}}componentDidUpdate(e){this.props.children!==e.children&&this.isOpen&&this.hide()}show(){this.disabled||(this.isOpen=!0,this.context.viewManager.setTooltipActive(),clearTimeout(this._visibleTimer),this._visibleTimer=setTimeout(this.handleMouseOut,7e3))}hide(){this.isOpen=!1,this.context.viewManager.resetTooltip()}get disabled(){return"false"===Be.Z.showTooltips||this.props.disable||!this.content.length||!this.content[0]}get content(){return Fe.Z.isMobileView?[]:Array.isArray(this.props.content)?this.props.content:[this.props.content]}get tooltipContent(){return this.content.map(((e,t)=>e&&e.divider?n.createElement("div",{key:t.toString(),className:"panel-tooltip-divider"}):n.createElement("div",{key:t.toString(),"data-test-id":"tooltip-content",className:"tooltipContent"},e)))}getSpectrumTooltip(e){return this.content.length&&this.content[0]?n.createElement(_t,{dir:"ltr",className:"tooltip-overlay-trigger","data-test-id":"tooltip-container-with-content",fallback:e,placement:this.props.placement,delay:this.props.delay,disabled:this.disabled||null,trigger:"hover"},n.createElement("div",{className:"tooltipTriggerWrapper"},this.props.children),n.createElement(ot,{dir:"ltr"},this.tooltipContent)):n.createElement("div",{"data-test-id":"no-content-tooltip-wrapper",className:"tooltipTriggerWrapper"},this.props.children)}render(){let e;const t=Fe.Z.Tooltip;return t?n.createElement(t,{className:this.props.className,content:this.content,disable:this.disabled,featureId:this.props.featureId,delay:this.props.delay},this.props.children):(e=n.createElement(p,null,n.createElement(Ze,null,(({ref:e})=>n.createElement("div",{className:Ue()("tooltip-ref",this.props.className),ref:e,onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,onMouseDown:this.handleMouseDown},this.props.children))),this.isOpen&&n.createElement(It,{placement:this.props.placement},this.tooltipContent)),n.createElement("div",{className:Ue()("tooltip-container",this.props.className)},this.getSpectrumTooltip(e)))}}).contextType=ze.r,Ot.defaultProps={content:"",delay:1e3,placement:"top"},Ot.propTypes={children:a().node,featureId:a().string,content:a().oneOfType([a().string,a().array]),delay:a().number,placement:a().string,disable:a().bool,className:a().string},St=Tt((xt=Ot).prototype,"isOpen",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Tt(xt.prototype,"tooltipContent",[s.computed],Object.getOwnPropertyDescriptor(xt.prototype,"tooltipContent"),xt.prototype),Lt=xt))||Lt},87757:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(89526),i=r(96195),o=r.n(i),a=r(14924),s=r(98218),c=r(48919),l=r(24937);const u="ftr";var p=r(85834);class d extends n.Component{constructor(...e){super(...e),this.handleOpenDashboardClick=()=>{this.context.dialogManager.openDialog("jsApi2Dashboard")}}get apiVersion(){var e;return(null===(e=c.Z.panel.libraryManager.privateCollection)||void 0===e?void 0:e.apiVersion)||1}get panelVersion(){const e=s.Z.getPluginVersion();return"99.0.0"===e?"DEV":e}render(){return p.Z.get("showDebugHUD")?n.createElement("div",{className:u},2===this.apiVersion?n.createElement(o(),{icon:n.createElement(a.default,null),variant:"tool",onClick:this.handleOpenDashboardClick}):void 0,n.createElement("div",null,n.createElement("div",null,"JS API Version: ",this.apiVersion),n.createElement("div",null,"Panel Version: ",this.panelVersion))):null}}d.contextType=l.r},51385:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n,i,o=r(89526),a=r(64403),s=r.n(a),c=r(2652),l=r.n(c),u=r(62631),p=r(76485),d=r(84824),h=r(27611),f=r(2169),m=r(52844),g=r(63498),v=r(99386),y=r(85834),b=r(39611);let _=(0,u.Pi)((i=class e extends o.Component{constructor(...e){super(...e),this.onClickCancel=e=>{e&&e.stopPropagation(),this.props.close&&this.props.close(),this.props.onClickCancel&&this.props.onClickCancel()},this.onClickOK=e=>{e&&e.stopPropagation(),this.props.close&&this.props.close(),this.props.onClickOK&&this.props.onClickOK()},this.onClickSecondary=e=>{e&&e.stopPropagation(),this.props.close&&this.props.close(),this.props.onClickSecondary&&this.props.onClickSecondary()},this.onClickOutsideDialog=e=>{!this.props.closeOnOutsideClick||this._dialogElement&&(0,f.rP)(e,this._dialogElement)||this.onClickCancel()},this.handleKeyDown=(e,t)=>{"Enter"===e.key&&t(e)},this.setDialogElement=e=>{this._dialogElement=e,setTimeout((()=>this._dialogElement&&this._dialogElement.focus()))}}get okButton(){return this.props.okButtonText&&o.createElement(m.Z,{"data-test-id":"dialog-ok-button",disabled:!this.props.okButtonEnabled,onClick:this.onClickOK,variant:"warning"===this.props.mode?"warning":"cta",treatment:"fill"},(0,d.Iu)(this.props.okButtonText))}get cancelButton(){return this.props.cancelButtonText&&o.createElement(m.Z,{"data-test-id":"dialog-cancel-button",onClick:this.onClickCancel,variant:"secondary"},(0,d.Iu)(this.props.cancelButtonText))}get secondaryButton(){return this.props.secondaryButtonText&&o.createElement(m.Z,{"data-test-id":"dialog-secondary-button",disabled:!this.props.secondaryButtonEnabled,onClick:this.onClickSecondary,variant:"secondary"},(0,d.Iu)(this.props.secondaryButtonText))}get footer(){return p.Z.isWindowsOS()?o.createElement(g.Z,null,this.okButton,this.secondaryButton,this.cancelButton):o.createElement(g.Z,null,this.cancelButton,this.secondaryButton,this.okButton)}get icon(){var t,r;return null===(t=(r=e._icons)[this.props.mode])||void 0===t?void 0:t.call(r,v.Z.currentProduct.config.dialogIconSize||12)}get showMosaic(){return y.Z.get("enableProjects")&&this.props.showMosaicLibrary}get mosaicContainer(){if(this.showMosaic)return o.createElement("div",{"data-test-id":"dialog-mosaic",className:"panel-dialog-mosaic-container"},o.createElement("div",{className:"panel-dialog-mosaic-inner"},o.createElement(b.Z,{viewMode:"grid",renditionGrid:this.props.showMosaicLibrary.renditionGrid,library:this.props.showMosaicLibrary})))}render(){const e=s()("panel-dialog-window",{mosaic:this.showMosaic}),t=s()("panel-dialog-title",[`panel-dialog-${this.props.mode}-color`]);return o.createElement("div",{"data-test-id":"dialog-wrapper",className:s()(this.props.className,"panel-dialog"),onClick:this.onClickOutsideDialog},o.createElement("div",{"data-test-id":"dialog-window",className:e,ref:this.setDialogElement,tabIndex:"-1"},this.props.banner,this.mosaicContainer,o.createElement("div",{className:"panel-dialog-container"},o.createElement("div",{className:"panel-dialog-divider-container"},o.createElement("div",{className:"panel-dialog-divider"})),this.props.title&&o.createElement("div",{className:"panel-dialog-header"},o.createElement("div",{"data-test-id":"dialog-title",className:t},this.props.title),this.icon),o.createElement("div",{className:"panel-dialog-contents"},this.props.children),this.props.showFooter&&o.createElement("div",{"data-test-id":"dialog-footer",className:"panel-dialog-footer"},this.footer),v.Z.currentProduct.config.displayFloatingX&&o.createElement("button",{className:"panel-dialog-floating-close",onClick:this.onClickCancel},o.createElement(h.Z,{id:"Close",height:20})))))}},i.defaultProps={cancelButtonText:"DL_CANCEL",closeOnOutsideClick:!0,mode:"normal",okButtonText:"DL_OK",okButtonEnabled:!0,showFooter:!0,secondaryButtonEnabled:!0},i.propTypes={title:l().string,okButtonText:l().string,okButtonEnabled:l().bool,cancelButtonText:l().string,secondaryButtonText:l().string,secondaryButtonEnabled:l().bool,onClickOK:l().func,onClickCancel:l().func,onClickSecondary:l().func,close:l().func,closeOnOutsideClick:l().bool,children:l().node,className:l().string,mode:l().oneOf(["normal","info","error","cloud","warning"]),showMosaicLibrary:l().any,showFooter:l().bool,banner:l().node},i._icons={error:e=>o.createElement("div",{"data-test-id":"error-icon",className:"panel-dialog-error-color panel-dialog-error-icon"},o.createElement(h.Z,{id:"Error",height:e})),info:e=>o.createElement("div",{"data-test-id":"info-icon",className:"panel-dialog-info-color panel-dialog-info-icon"},o.createElement(h.Z,{id:"Info",height:e})),cloud:()=>o.createElement("div",{"data-test-id":"cloud-icon",className:"panel-dialog-cloud-icon"},o.createElement(h.Z,{id:"AdobeFonts",height:18}))},n=i))||n},145:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(64403),l=r.n(c),u=r(62631),p=r(45079),d=r(3074),h=r.n(d),f=r(10387),m=r.n(f),g=r(96195),v=r.n(g),y=r(84824),b=r(24937),_=r(51385),E=r(76485);let w=(0,u.Pi)(((i=class extends o.Component{constructor(...e){super(...e),this.onCreate=()=>{this.context.dialogManager.openDialog("createLibrary")},this.onPublish=()=>{this.props.close(),this.context.documentActions.publish(this.context.libraryManager.documentAssetsContainer).catch((()=>{}))}}get publishState(){return this.context.libraryManager.publishState}get createSection(){return this.getSection({id:"create",header:this.getHeader({title:"DL_CREATE_PUBLISH_CREATE_TITLE"}),items:this.getBulletItems([{id:"create-1",label:"DL_CREATE_PUBLISH_CREATE_BULLET_1"},{id:"create-2",label:"DL_CREATE_PUBLISH_CREATE_BULLET_2"}]),message:"DL_CREATE_PUBLISH_CREATE_MESSAGE",action:this.getAction({variant:"secondary",label:"DL_CREATE_PUBLISH_CREATE_ACTION",onClick:this.onCreate})})}get disabledMessage(){return{OFFLINE:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_OFFLINE",READ_ONLY:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_READ_ONLY",QUOTA:"DL_OVER_QUOTA_LIBRARY_ERROR_BODY",EMPTY:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_EMPTY",MISSING_STORAGE:"DL_SAVE_CLOUD_DOC_MESSAGE",UPGRADE:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_TOOLTIP"}[this.publishState.disabledStatus]}get publishSection(){const e=!this.publishState.canPublish||this.publishState.canUpgrade,t=this.disabledMessage,r=this.publishState.canUpgrade;return this.getSection({id:r?"upgrade":"publish",header:this.getHeader({label:"DL_NEW",title:"DL_CREATE_PUBLISH_PUBLISH_TITLE"}),items:this.getBulletItems([{id:"publish-1",label:"DL_CREATE_PUBLISH_PUBLISH_BULLET_1"},{id:"publish-2",label:"DL_CREATE_PUBLISH_PUBLISH_BULLET_2"}]),message:"DL_CREATE_PUBLISH_PUBLISH_MESSAGE",action:this.getAction({variant:"cta",label:"DL_CREATE_PUBLISH_PUBLISH_ACTION",onClick:this.onPublish,disabled:e,tooltip:t})})}getHeader({title:e}){return o.createElement("div",{className:"create-publish-section-header"},o.createElement(p.default,{variant:"subtitle1","data-test-id":"create-publish-section-title"},(0,y.Iu)(e)))}getBulletItems(e){return o.createElement("div",{className:l()({"uxp-bullet-list":!E.Z.supportsCSSListItem})},e.map((({label:e,id:t})=>o.createElement("div",{key:t,className:"dialog-bullet-item","data-test-id":`create-publish-section-item-${t}`},(0,y.Iu)(e)))))}getAction({variant:e,label:t,onClick:r,disabled:n,tooltip:i}){return o.createElement("div",{className:"create-publish-section-action","data-test-id":"create-publish-section-action"},o.createElement(h(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"],disabled:!n},o.createElement(v(),{"data-test-id":"create-publish-section-action-button",className:l()("panel-dialog-button",e,{disabled:n}),disabled:n,onClick:r,label:(0,y.Iu)(t),variant:e,uxpUseNative:!1}),o.createElement(m(),{ref:e=>this.tooltipRef=e},(0,y.Iu)(i))))}getSection({id:e,header:t,items:r,message:n,action:i}){return o.createElement("div",{className:l()("create-publish-section",e),"data-test-id":`create-publish-section-${e}`},t,r,o.createElement("span",{className:"create-publish-section-message","data-test-id":"create-publish-section-message"},(0,y.Iu)(n)),i)}render(){return o.createElement(_.Z,{title:(0,y.Iu)("DL_CREATE_DESIGN_LIBRARY"),className:"panel-dialog-create-publish-library",close:this.props.close},o.createElement("div",{className:"create-publish-body"},this.createSection,this.publishSection))}}).dialogName="createOrPublishLibrary",i.contextType=b.r,i.propTypes={close:s().func},n=i))||n},37182:(e,t,r)=>{"use strict";r.d(t,{Z:()=>B});var n,i,o,a,s,c,l,u,p,d,h=r(89526),f=r(2652),m=r.n(f),g=r(62631),v=r(64403),y=r.n(v),b=r(50265),_=r(88166),E=r.n(_),w=r(45079),L=r(10387),x=r.n(L),S=r(3074),O=r.n(S),T=r(51385),I=r(84824),P=r(24937),C=r(17632),A=r(27299),k=r(17179),D=r(52422),N=r(5837),R=r(27611),M=r(76485),j=r(99525);function Z(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 F(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let B=(n=b.observable.ref,i=b.observable.ref,o=b.observable.ref,(0,g.Pi)(((d=class extends h.Component{constructor(...e){super(...e),Z(this,"_selectedLibrary",c,this),Z(this,"_relinkableAssetsMap",l,this),Z(this,"_relinkableLibrariesMap",u,this),Z(this,"_relinkAdditional",p,this),this.setSelectedLibrary=e=>{const t=!!(this.getRelinkCandidatesInLibrary(e).length-1);this.setRelinkAdditional(t),this._selectedLibrary=e},this.setRelinkAdditional=e=>{this._relinkAdditional=e},this.onRelink=()=>{const e=this.getRelinkCandidatesInLibrary(this.selectedLibrary),t=this.relinkAdditional?e:[e.find((({asset:e})=>e===this.props.element))];this.props.onRelink(t),this.props.close()},this.onCancel=()=>{this.props.onCancel(),this.props.close()},this.getLibraryItem=e=>{var t;const r=`${e.id}${"org"===e.ownerType?"-team":""}`,n=y()("orphaned-library-list-item",{selected:(null===(t=this.selectedLibrary)||void 0===t?void 0:t.id)===e.id}),i=(0,I.zt)(new Date(e.modified),!0),o=this.getRelinkCandidatesInLibrary(e);return h.createElement("div",{key:r,className:n,onClick:()=>this.setSelectedLibrary(e)},h.createElement(C.Z,{library:e,disableContextMenu:!0,disableEditableName:!0,allowNavigation:!1,allowLongDoubleClick:!1,sharingIconOnly:!1},this.getModifiedDateColumn(i),this.getBrokenLinksColumn(o.length)))}}componentDidMount(){this.context.libraryManager.getRelinkableAssets().then((({assets:e,libraries:t})=>{this._relinkableAssetsMap=e,this._relinkableLibrariesMap=t}))}get selectedLibrary(){return this._selectedLibrary}get relinkAdditional(){return this._relinkAdditional}get isLoading(){return!this._relinkableAssetsMap.get(this.props.element.id)}get relinkableLibraries(){const e=this._relinkableAssetsMap.get(this.props.element.id);return e&&e.length?k.Z.sortByModified(e.map((({element:e})=>e.library))):[]}getRelinkCandidatesInLibrary(e){return this._relinkableLibrariesMap.get(e.id)||[]}get loadingSpinner(){return h.createElement("div",{className:"loading-container"},h.createElement(E(),{size:"L",className:"loading","data-test-id":"relink-orphan-asset-loading"}))}getNameColumn(){return h.createElement("div",{className:"library-list-item-name-container"},this.getColumnHeader({id:"name",label:"DL_LIBRARIES",className:"library-list-item-name"}))}getSharingColumn(){return h.createElement("div",{className:"library-list-item-icon-container"},h.createElement("div",{className:"library-list-item-sharing-container"},this.getColumnHeader({id:"sharing",label:"DL_MEMBERS",className:"library-list-item-sharing"})))}getModifiedDateColumn(e){return h.createElement("span",{className:"library-list-item-modified","data-test-id":"library-list-item-modified"},e)}getBrokenLinksColumn(e){return h.createElement("span",{className:"library-list-item-broken-links","data-test-id":"library-list-item-broken-links"},e)}getColumnHeader({id:e,label:t,className:r}){return h.createElement(w.default,{"data-test-id":`library-list-header-column-${e}`,className:y()("library-list-column-header",r),variant:"subtitle3"},(0,I.Iu)(t).toLocaleUpperCase(M.Z.getLocale()))}wrapWithLibrariesListItemContainer(e){return h.createElement("div",{className:"orphaned-library-list orphaned-asset-library-list-header"},h.createElement("div",{className:"orphaned-library-list-item"},h.createElement("div",{className:"library-list-item-container"},e)))}get brokenLinksColumnHeader(){return this.getBrokenLinksColumn(h.createElement("div",{className:"broken-links-column-header-container"},this.getColumnHeader({id:"broken-links",label:"DL_BROKEN_LINKS"}),h.createElement(O(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"]},h.createElement("div",{"data-test-id":"broken-links-info-icon-container"},h.createElement(R.Z,{id:"InfoOutline",height:16})),h.createElement(x(),{variant:"info",ref:e=>this.tooltipRef=e},(0,I.Iu)("DIALOG_ORPHAN_ASSET_RELINK_BROKEN_LINKS_TOOLTIP")))))}get relinkableLibrariesHeader(){return this.wrapWithLibrariesListItemContainer(h.createElement("div",{className:"library-list-item"},this.getNameColumn(),this.getSharingColumn(),this.getModifiedDateColumn(this.getColumnHeader({id:"modified",label:"DL_LAST_MODIFIED"})),this.brokenLinksColumnHeader))}get relinkableLibrariesPicker(){return h.createElement("div",{className:"orphaned-asset-library-picker"},h.createElement("div",{className:"orphaned-asset-library-list-container"},this.relinkableLibrariesHeader,h.createElement("div",{className:"orphaned-library-list"},this.relinkableLibraries.map(this.getLibraryItem))),this.relinkAdditionalMessage)}get relinkAdditionalMessage(){const e=this.selectedLibrary?this.getRelinkCandidatesInLibrary(this.selectedLibrary).length-1:0,t=e>0?1===e?"DIALOG_ORPHAN_ASSET_RELINK_ADDITIONAL_SINGULAR":"DIALOG_ORPHAN_ASSET_RELINK_ADDITIONAL_NUM":"DIALOG_ORPHAN_ASSET_RELINK_ADDITIONAL",r=!this.selectedLibrary||0===e;return h.createElement("div",{"data-test-id":"relink-orphan-relink-additional-message",className:y()("orphaned-asset-relink-additional-container",{disabled:r}),onClick:()=>!r&&this.setRelinkAdditional(!this.relinkAdditional)},h.createElement(D.Z,{checked:this.relinkAdditional,disabled:r}),(0,I.Iu)(t,{count:e}))}get dialogData(){return this.isLoading?{title:(0,I.Iu)("DIALOG_ORPHAN_ASSET_RELINK_TITLE_LOADING"),messageLabel:"DIALOG_ORPHAN_ASSET_RELINK_MESSAGE_LOADING",body:this.loadingSpinner,ctaButton:{label:null}}:{title:(0,I.Iu)("DIALOG_ORPHAN_SELECT_TITLE"),messageLabel:"DIALOG_ORPHAN_ASSET_RELINK_MESSAGE_MATCH",body:this.relinkableLibrariesPicker,ctaButton:{label:(0,I.Iu)("DIALOG_ORPHAN_ASSET_RELINK_CONFIRM"),onClick:this.onRelink,disabled:!this.selectedLibrary}}}get message(){return h.createElement("div",{className:"relink-orphan-asset-message","data-test-id":"relink-orphan-asset-message"},h.createElement(N.Z,{html:(0,I.Iu)(this.dialogData.messageLabel,{name:this.props.element.name})}))}render(){return this.isLoading||this.relinkableLibraries.length?h.createElement(T.Z,{title:this.dialogData.title,okButtonText:this.dialogData.ctaButton.label,onClickOK:this.dialogData.ctaButton.onClick,okButtonEnabled:!this.dialogData.ctaButton.disabled,onClickCancel:this.onCancel,mode:"normal",className:"panel-dialog-relink-orphan-asset wide"},h.createElement("div",{className:"panel-dialog-layout-100","data-test-id":"relink-orphan-asset"},this.message,this.dialogData.body)):h.createElement(j.Z,{element:this.props.element,close:this.onCancel})}}).dialogName="relinkDocumentAsset",d.contextType=P.r,d.propTypes={element:m().instanceOf(A.Z).isRequired,onRelink:m().func.isRequired,onCancel:m().func.isRequired,close:m().func.isRequired},c=F((s=d).prototype,"_selectedLibrary",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=F(s.prototype,"_relinkableAssetsMap",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),u=F(s.prototype,"_relinkableLibrariesMap",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),p=F(s.prototype,"_relinkAdditional",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F(s.prototype,"isLoading",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"isLoading"),s.prototype),F(s.prototype,"relinkableLibraries",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"relinkableLibraries"),s.prototype),F(s.prototype,"brokenLinksColumnHeader",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"brokenLinksColumnHeader"),s.prototype),F(s.prototype,"relinkableLibrariesHeader",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"relinkableLibrariesHeader"),s.prototype),F(s.prototype,"relinkableLibrariesPicker",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"relinkableLibrariesPicker"),s.prototype),F(s.prototype,"relinkAdditionalMessage",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"relinkAdditionalMessage"),s.prototype),F(s.prototype,"dialogData",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"dialogData"),s.prototype),F(s.prototype,"message",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"message"),s.prototype),a=s))||a)},11507:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n,i,o,a,s=r(89526),c=r(2652),l=r.n(c),u=r(50265),p=r(62631),d=r(51385),h=r(27611),f=r(84824),m=r(64403),g=r.n(m),v=r(76485),y=r(24937);let b=(0,p.Pi)((a=class extends s.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="showRelinkWarning",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.handleCreateNew=()=>{this.props.onRelinkChoice("createNew"),this.props.close()},this.handlePublish=()=>{this.props.onRelinkChoice("relink"),this.props.close()},this.openRelinkOrphanDialog=()=>this.context.documentActions.relinkDocumentToOrphanedLibrary(this.context.libraryManager.documentAssetsContainer)}get relinkableLibrary(){return this.context.libraryManager.relinkableLibrary}get canRelinkOrphans(){return!!this.context.libraryManager.orphanedLibraries.length}get dialogData(){return this.relinkableLibrary?this.relinkableLibrary.isWritable?this.showRelinkWarning?{mode:"warning",title:"DL_RELINK_DOCUMENT_LIBRARY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_WARNING",primaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_PUBLISH",primaryHandler:this.handlePublish}:{mode:"normal",title:"DL_RELINK_DOCUMENT_LIBRARY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_INFO",primaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CONTINUE",primaryHandler:()=>this.showRelinkWarning=!0,secondaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW",secondaryHandler:this.handleCreateNew}:{mode:"warning",title:"DL_RELINK_DOCUMENT_LIBRARY_READ_ONLY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_READ_ONLY_INFO",primaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW",primaryHandler:this.handleCreateNew}:this.canRelinkOrphans?{mode:"normal",title:"DL_RELINK_DOCUMENT_LIBRARY_MISSING_LIBRARY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW_OR_ORPHAN_MESSAGE",primaryLabel:"DIALOG_ORPHAN_SELECT_RELINK",primaryHandler:this.openRelinkOrphanDialog,secondaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW",secondaryHandler:this.handleCreateNew,messageBullets:[{id:"bullet-broken-links",label:"DL_RELINK_DOCUMENT_LIBRARY_MESSAGE_BROKEN_LINKS"},{id:"bullet-collaborators",label:"DL_RELINK_DOCUMENT_LIBRARY_MESSAGE_COLLABORATORS"}]}:{mode:"warning",title:"DL_RELINK_DOCUMENT_LIBRARY_MISSING_LIBRARY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW_MESSAGE",primaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW",primaryHandler:this.handleCreateNew,messageBullets:[{id:"bullet-broken-links",label:"DL_RELINK_DOCUMENT_LIBRARY_MESSAGE_BROKEN_LINKS"},{id:"bullet-collaborators",label:"DL_RELINK_DOCUMENT_LIBRARY_MESSAGE_COLLABORATORS"}]}}_getBullets(e){if(e)return s.createElement("div",{className:g()({"uxp-bullet-list":!v.Z.supportsCSSListItem})},e.map((e=>s.createElement("div",{className:"dialog-bullet-item",key:e.id},` ${(0,f.Iu)(e.label)}`))))}render(){return s.createElement(d.Z,{className:"panel-dialog-relink-document-library",mode:this.dialogData.mode,title:(0,f.Iu)(this.dialogData.title),okButtonText:(0,f.Iu)(this.dialogData.primaryLabel),secondaryButtonText:(0,f.Iu)(this.dialogData.secondaryLabel),onClickOK:this.dialogData.primaryHandler,onClickSecondary:this.dialogData.secondaryHandler,onClickCancel:()=>this.props.close()},s.createElement("div",{"data-test-id":"relink-confirm-message",className:"panel-dialog-layout-100"},this.showRelinkWarning&&s.createElement("div",{className:"dialog-warning destructive"},s.createElement(h.Z,{id:"Alert",height:14}),s.createElement("div",{className:"warning-message-title"},(0,f.Iu)("DL_CANNOT_UNDO_WARNING"))),(0,f.Iu)(this.dialogData.message),this.dialogData.messageBullets&&this._getBullets(this.dialogData.messageBullets)))}},a.contextType=y.r,a.dialogName="relinkDocumentLibrary",a.propTypes={onRelinkChoice:l().func.isRequired,close:l().func},_=(i=a).prototype,E="showRelinkWarning",w=[u.observable],L={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},S={},Object.keys(L).forEach((function(e){S[e]=L[e]})),S.enumerable=!!S.enumerable,S.configurable=!!S.configurable,("value"in S||S.initializer)&&(S.writable=!0),S=w.slice().reverse().reduce((function(e,t){return t(_,E,e)||e}),S),x&&void 0!==S.initializer&&(S.value=S.initializer?S.initializer.call(x):void 0,S.initializer=void 0),void 0===S.initializer&&(Object.defineProperty(_,E,S),S=null),o=S,n=i))||n;var _,E,w,L,x,S},67116:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a,s,c=r(89526),l=r(2652),u=r.n(l),p=r(50265),d=r(62631),h=r(51385),f=r(84824),m=r(64403),g=r.n(m),v=r(17632),y=r(24937),b=r(17179);function _(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 E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let w=(0,d.Pi)(((s=class extends c.Component{constructor(...e){super(...e),_(this,"selectedLibrary",o,this),_(this,"showConfirmationDialog",a,this)}get orphanedLibraries(){return b.Z.sortByModified(this.context.libraryManager.orphanedLibraries)}get dialogData(){return this.showConfirmationDialog?{title:"DIALOG_ORPHAN_RELINK_TITLE",primaryLabel:"DIALOG_ORPHAN_RELINK_CONTINUE",message:"DIALOG_ORPHAN_RELINK_MESSAGE",primaryHandler:()=>{this.props.relinkToOrphanLibrary(this.selectedLibrary),this.props.close()}}:{title:"DIALOG_ORPHAN_SELECT_TITLE",primaryLabel:"DIALOG_ORPHAN_SELECT_RELINK",body:this.orphanedLibrariesPicker,primaryHandler:()=>{this.showConfirmationDialog=!0}}}get orphanedLibrariesPicker(){return c.createElement("div",{className:"orphaned-library-list"},this.orphanedLibraries.map(((e,t)=>{const r=g()({"orphaned-library-list-item":!0,selected:this.selectedLibrary&&this.selectedLibrary.id===e.id});return c.createElement("div",{className:r,key:t,onClick:()=>{this.selectedLibrary=e}},c.createElement(v.Z,{library:e,disableContextMenu:!0,disableEditableName:!0,showCreatedDate:!0,allowNavigation:!1,allowLongDoubleClick:!1,sharingIconOnly:!1}))})))}render(){return c.createElement(h.Z,{title:(0,f.Iu)(this.dialogData.title),okButtonText:(0,f.Iu)(this.dialogData.primaryLabel),onClickOK:this.dialogData.primaryHandler,onClickCancel:()=>this.props.close(),okButtonEnabled:!!this.selectedLibrary,mode:"normal",className:"wide"},c.createElement("div",{"data-test-id":"relink-orphan-library",className:"panel-dialog-layout-100"},this.dialogData.body||(0,f.Iu)(this.dialogData.message)))}}).dialogName="relinkOrphanedDocumentLibrary",s.contextType=y.r,s.propTypes={relinkToOrphanLibrary:u().func.isRequired,close:u().func},o=E((i=s).prototype,"selectedLibrary",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),a=E(i.prototype,"showConfirmationDialog",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n=i))||n},99525:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n,i,o,a,s,c,l=r(89526),u=r(2652),p=r.n(u),d=r(64403),h=r.n(d),f=r(62631),m=r(50265),g=r(64114),v=r(27611),y=r(76485),b=r(51385),_=r(84824),E=r(24937),w=r(52422),L=r(30131),x=r(27299),S=r(51461),O=r(88166),T=r.n(O);function I(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 P(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let C=(0,f.Pi)(((c=class extends l.Component{constructor(...e){super(...e),I(this,"_librariesToFollow",o,this),I(this,"_shouldAcceptInvites",a,this),I(this,"_isLoading",s,this),this.toggleShouldAcceptInvites=()=>{this._shouldAcceptInvites=!this._shouldAcceptInvites},this.toggleFollowLibrary=e=>{this._librariesToFollow.set(e,!this._librariesToFollow.get(e))},this.resolveSelectedLinks=()=>{const e=[];this.selectedPendingFollowLibraries.forEach((({brokenLinks:t})=>{e.push(...t)})),this.shouldAcceptInvites&&e.push(...this.pendingInviteAssets),this.resolveLinks(e)},this.getSourceDocumentItem=([e,{documentName:t,brokenLinks:r}])=>{const n=r[0],i=!n.isMissingLegacyDocumentLink;return this.getSourceItem({id:`legacy-link-${e}`,icon:l.createElement(v.Z,{id:"XDFile",height:16,"data-test-id":"panel-dialog-section-content-xd-logo"}),className:h()("is-file",{disabled:!i}),label:t,onClick:()=>i&&y.Z.editInSource(n)})},this.getSourceLibraryItem=([e,{libraryName:t}])=>{const r=this.showSummaryView;return this.getSourceItem({id:`library-link-${e}`,icon:l.createElement(g.default,{size:"S","data-test-id":"panel-dialog-section-content-cc-libraries-logo"}),label:t,checkbox:r&&l.createElement(w.Z,{checked:this.isLibrarySelected(e),onChange:()=>this.toggleFollowLibrary(e)})})},this.getLibraryInvitesItem=e=>{const t=this.showSummaryView,r=e>1?(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_NUM_INVITES",{num:this.context.libraryManager.invitationsData.size}):(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_INVITE");return this.getSourceItem({id:"library-link-pending-invites",icon:l.createElement(g.default,{size:"S","data-test-id":"panel-dialog-section-content-cc-libraries-logo"}),label:r,checkbox:t&&l.createElement(w.Z,{checked:this.shouldAcceptInvites,onChange:this.toggleShouldAcceptInvites})})},this.numberResolutionStep=(e,t)=>{const r=e.toLocaleString();return l.createElement("div",{key:r,className:"panel-dialog-step-counter-container","data-test-id":`resolve-broken-links-step-${e}`},l.createElement("span",{className:"panel-dialog-label-step-counter"},`${r}.`),t)}}componentDidMount(){this.shouldFetchInvitations&&(this._isLoading=!0,this.context.libraryManager.fetchLibraryInvitations(!0).finally((()=>{this._shouldAcceptInvites=!!this.pendingInviteAssets.length,this._isLoading=!1}))),Object.keys(this.pendingFollowLibraries).forEach((e=>{this._librariesToFollow.set(e,!0)})),this._dispose=(0,m.when)((()=>!this._dialogHasMissingLinks),(()=>{this.props.close()}))}componentWillUnmount(){this._dispose()}get shouldFetchInvitations(){return this.isOnline&&this.props.fetchInvitations&&(this.element.isPendingInvite||this.element.isMissingLibrary)}get showSummaryView(){return!this.props.element}get assetsContainer(){return this.element.library}get _dialogHasMissingLinks(){return!!this.elements.find((e=>e.isMissingLink||e.isDeprecatedLegacyDocumentLink))}get elements(){return this.props.element?[this.props.element]:this.context.libraryManager.documentAssetsContainer.resolvableMissingLinks}get element(){return this.elements[0]}get pendingInviteAssets(){return this.props.element?this.element.isPendingInvite&&[this.element]:this.assetsContainer.resolvableMissingLinks.filter((e=>e.isPendingInvite))}get shouldAcceptInvites(){return this._shouldAcceptInvites}get librariesToFollow(){return this._librariesToFollow}get isOnline(){return this.context.libraryManager.isOnline}get loadingSpinner(){return l.createElement("div",{className:"loading-container"},l.createElement(T(),{size:"L",className:"loading","data-test-id":"resolve-broken-links-loading"}))}isLibrarySelected(e){return!!this.librariesToFollow.get(e)}resolveLinks(e){this.context.documentActions.resolveLinks(e)}get selectedPendingFollowLibraries(){const e=[];return Object.keys(this.pendingFollowLibraries).forEach((t=>{this.isLibrarySelected(t)&&e.push(this.pendingFollowLibraries[t])})),e}get operationCount(){return(this.shouldAcceptInvites?this.pendingInvites.size:0)+this.selectedPendingFollowLibraries.length}get pendingFollowLibraries(){const e={};return this.elements.forEach((t=>{if(t.isPendingFollow){const r=t.cachedLinkedLibraryName,n=t.cachedLinkedLibraryId;e[n]||(e[n]={libraryName:r,brokenLinks:[]}),e[n].brokenLinks.push(t)}})),e}get deprecatedSourceDocuments(){const e={};return this.elements.forEach((t=>{if(t.isDeprecatedLegacyDocumentLink){const r=t.linkedDocumentName,n=t.linkReference;e[n]||(e[n]={documentName:r,brokenLinks:[]}),e[n].brokenLinks.push(t)}})),e}get pendingInvites(){return this.context.libraryManager.invitationsData}getResolutionStep({id:e,icon:t,label:r}){return l.createElement("div",{className:"panel-dialog-section-label-step","data-test-id":`panel-dialog-section-label-step-${e}`},(0,_.Iu)(r),t)}getSourceHeading({id:e,label:t}){return l.createElement("div",{className:"panel-dialog-section-label","data-test-id":`panel-dialog-section-label-${e}`},(0,_.Iu)(t))}getSourceItem({id:e,icon:t,className:r,label:n,checkbox:i,onClick:o}){return l.createElement("div",{key:e,className:h()("source-list-item",r),onClick:o,"data-test-id":`resolve-broken-links-source-item-${e}`},l.createElement("div",{className:"source-name-container"},l.createElement("div",{className:"source-icon"},t),l.createElement("span",{className:"source-name"},n)),i&&l.createElement("div",{className:"source-checkbox","data-test-id":`resolve-broken-links-source-item-checkbox-${e}`},i))}get legacyLinkInfo(){const e=Object.entries(this.deprecatedSourceDocuments);if(!e.length)return;const t="resolve-broken-links-legacy-link-info";return l.createElement("div",{key:t,className:"resolve-broken-links-info","data-test-id":t},this.showSummaryView?this.getResolutionStep({id:"open-sources",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_OPEN_SOURCE",icon:l.createElement(v.Z,{id:"Info",onClick:()=>(0,L.f2)(),className:"open-sources-info-icon",height:16})}):this.getSourceHeading({id:"source-document",label:"DIALOG_RESOLVE_BROKEN_LINK_SOURCE_FILE"}),l.createElement("div",{className:"source-list","data-test-id":"broken-links-source-documents-list"},e.map(this.getSourceDocumentItem)))}get pendingFollowInfo(){const e=Object.entries(this.pendingFollowLibraries);if(!e.length)return;const t="resolve-broken-links-pending-follow-info";return l.createElement("div",{key:t,className:"resolve-broken-links-info","data-test-id":t},this.showSummaryView?this.getResolutionStep({id:"follow-libraries",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_FOLLOW_LIBRARIES"}):this.getSourceHeading({id:"source-library",label:"DIALOG_RESOLVE_BROKEN_LINK_SOURCE_LIB"}),l.createElement("div",{className:"source-list","data-test-id":"broken-links-pending-follow-list"},e.map(this.getSourceLibraryItem)))}get pendingInviteInfo(){if(!this.pendingInviteAssets.length)return;const e="resolve-broken-links-pending-invite-info";return l.createElement("div",{key:e,className:"resolve-broken-links-info","data-test-id":e},this.getResolutionStep({id:"accept-invites",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_ACCEPT_INVITATIONS"}),l.createElement("div",{className:"source-list","data-test-id":"broken-links-pending-invites-list"},this.getLibraryInvitesItem(this.pendingInvites.size)))}get suggestRequestInvite(){const e="resolve-broken-links-request-invites";return l.createElement("div",{key:e,className:"resolve-broken-links-info","data-test-id":e},this.getResolutionStep({id:"request-invites",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_REQUEST_INVITATIONS"}))}get suggestMakeLocal(){const e="resolve-broken-links-make-local";return l.createElement("div",{key:e,className:"resolve-broken-links-info","data-test-id":e},this.getResolutionStep({id:"make-local",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_MAKE_LOCAL"}))}get missingElementSteps(){const e=[{id:"step-1",label:this.suggestRequestInvite},{id:"step-2",label:this.suggestMakeLocal}];return l.createElement("div",{className:"resolve-broken-links-resolution-bullet-list"},e.map((e=>l.createElement("div",{key:e.id,className:"dialog-bullet-item"},e.label))))}get globalResolutionSteps(){const e=this.assetsContainer.missingLinks.filter((e=>e.isMissingLibrary)),t=[this.pendingFollowInfo,this.pendingInviteInfo,this.legacyLinkInfo,!!e.length&&this.suggestRequestInvite].filter((e=>e));return 1===t.length?t:t.map(((e,t)=>this.numberResolutionStep(t+1,e)))}get isLoading(){return this._isLoading}get dialogData(){const e=!this.isOnline,t=e?(0,_.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_OFFLINE"):void 0;if(this.isLoading)return{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DL_LOADING"),resolutionInfo:this.loadingSpinner,ctaButton:{label:null}};if(this.showSummaryView){const r=this.pendingInvites.size+Object.keys(this.pendingFollowLibraries).length;return{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINKS_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_MESSAGE_MULTIPLE_LINKS"),resolutionInfo:this.globalResolutionSteps,ctaButton:r&&{label:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_ADD_LIBRARIES",{count:this.operationCount}),onClick:this.resolveSelectedLinks,disabled:0===this.operationCount||e,tooltip:t}}}if(this.element.isPendingFollow)return{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_MESSAGE_ADD_LIB"),resolutionInfo:this.pendingFollowInfo,ctaButton:{label:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_CTA_ADD_LIBRARY"),onClick:()=>this.resolveLinks([this.element]),disabled:e,tooltip:t}};if(this.element.isDeprecatedLegacyDocumentLink){const r=this.element.isMissingLegacyDocumentLink||e,n=r?this.element.isMissingLegacyDocumentLink?(0,_.Iu)("ASSET_LINK_RESTRICTED"):t:void 0;return{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_MESSAGE_RELINK_FILE"),resolutionInfo:this.legacyLinkInfo,ctaButton:{label:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_CTA_RELINK_FILE"),onClick:()=>y.Z.editInSource(this.element),disabled:r,tooltip:n},secondaryButton:{label:(0,_.Iu)("DL_LEARN_MORE"),onClick:()=>(0,L.f2)(),disabled:e,tooltip:t}}}return this.element.isPendingInvite?{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_PENDING_MESSAGE"),resolutionInfo:this.pendingInviteInfo,ctaButton:{label:(0,_.Iu)("ACCEPT_INVITES"),onClick:()=>this.resolveLinks([this.element]),disabled:e,tooltip:t}}:this.element.isMissingLibrary?{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_MESSAGE"),secondaryButton:{label:(0,_.Iu)("DL_LEARN_MORE"),onClick:()=>(0,L.Az)(),disabled:e,tooltip:t}}:this.element.isMissingElement?{title:(0,_.Iu)("DIALOG_CANT_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_CANT_RESOLVE_BROKEN_LINK_MESSAGE"),resolutionInfo:this.missingElementSteps,ctaButton:{label:null},secondaryButton:{label:(0,_.Iu)("DL_UNLINK_ASSET"),onClick:()=>{S.ZP.reportElementEvent("ResolveBrokenLinksDialog","Element","click","make-local",this.element),y.Z.unlinkAssets([this.element])}}}:void 0}get title(){return this.dialogData.title}get message(){return this.dialogData.message}get ctaButton(){return this.dialogData.ctaButton}get secondaryButton(){return this.dialogData.secondaryButton}get cancelButtonLabel(){return this.showSummaryView?(0,_.Iu)("DL_CLOSE"):(0,_.Iu)("DL_CANCEL")}get resolutionInfo(){if(this.dialogData.resolutionInfo)return l.createElement("div",{className:"resolve-broken-links-resolution-info","data-test-id":"resolve-broken-links-resolution-info"},this.dialogData.resolutionInfo)}render(){var e,t,r,n,i,o,a,s;return this.dialogData?l.createElement(b.Z,{title:this.title,cancelButtonText:this.cancelButtonLabel,secondaryButtonText:null===(e=this.secondaryButton)||void 0===e?void 0:e.label,secondaryButtonEnabled:!(null!==(t=this.secondaryButton)&&void 0!==t&&t.disabled),secondaryButtonTooltip:null===(r=this.secondaryButton)||void 0===r?void 0:r.tooltip,onClickSecondary:null===(n=this.secondaryButton)||void 0===n?void 0:n.onClick,okButtonText:(null===(i=this.ctaButton)||void 0===i?void 0:i.label)||"",okButtonEnabled:!(null!==(o=this.ctaButton)&&void 0!==o&&o.disabled),okButtonTooltip:null===(a=this.ctaButton)||void 0===a?void 0:a.tooltip,onClickOK:null===(s=this.ctaButton)||void 0===s?void 0:s.onClick,mode:"normal",close:this.props.close,className:"panel-dialog-resolve-broken-links"},l.createElement("div",{className:"panel-dialog-layout-100","data-test-id":"resolve-broken-links"},l.createElement("div",{"data-test-id":"resolve-broken-links-message"},this.message),this.resolutionInfo)):null}}).contextType=E.r,c.dialogName="resolveBrokenLinks",c.defaultProps={fetchInvitations:!0},c.propTypes={element:p().instanceOf(x.Z),close:p().func,fetchInvitations:p().bool},o=P((i=c).prototype,"_librariesToFollow",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),a=P(i.prototype,"_shouldAcceptInvites",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!!this.pendingInviteAssets.length}}),s=P(i.prototype,"_isLoading",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P(i.prototype,"_dialogHasMissingLinks",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"_dialogHasMissingLinks"),i.prototype),P(i.prototype,"selectedPendingFollowLibraries",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"selectedPendingFollowLibraries"),i.prototype),P(i.prototype,"operationCount",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"operationCount"),i.prototype),P(i.prototype,"pendingFollowLibraries",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"pendingFollowLibraries"),i.prototype),P(i.prototype,"deprecatedSourceDocuments",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"deprecatedSourceDocuments"),i.prototype),P(i.prototype,"legacyLinkInfo",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"legacyLinkInfo"),i.prototype),P(i.prototype,"pendingFollowInfo",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"pendingFollowInfo"),i.prototype),P(i.prototype,"pendingInviteInfo",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"pendingInviteInfo"),i.prototype),P(i.prototype,"missingElementSteps",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"missingElementSteps"),i.prototype),P(i.prototype,"globalResolutionSteps",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"globalResolutionSteps"),i.prototype),P(i.prototype,"dialogData",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"dialogData"),i.prototype),n=i))||n},5906:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n,i,o,a,s=r(89526),c=r(2652),l=r.n(c),u=r(50265),p=r(62631),d=r(99386),h=r(64403),f=r.n(h),m=r(44853),g=r(27611),v=r(25585),y=r(72279),b=r(84824),_=r(24937),E=r(51461),w=r(76485);let L=(0,p.Pi)((a=class extends s.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="charactersRemaining",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.startEdit=e=>{e.stopPropagation(),this.isReadOnly||(this.charactersRemaining=this.props.element.description?d.Z.NOTES_MAX_CHARACTER_COUNT-(0,v.NJ)(this.props.element.description):d.Z.NOTES_MAX_CHARACTER_COUNT,this.context.viewManager.startEditDescription(this.props.element))},this.deleteDescription=e=>{E.ZP.setExtraEventMetrics("updateElement",{subtype:"delete-note",content:{category:"Click"}}),e.stopPropagation(),this.isReadOnly||(this.props.element.description="")},this.handleInputKeyDown=e=>{"Enter"!==e.key||w.Z.isComposingInputEvent(e)?"Escape"===e.key&&this.finishEditing(!0):e.shiftKey||this.finishEditing(),e.stopPropagation()},this.handleBlur=()=>{this.finishEditing(!1)},this.onButtonPress=e=>{e.stopPropagation(),this.finishEditing(!0)},this.onButtonMouseDown=e=>{e.preventDefault()},this.handleInput=()=>{this.descriptionInput.value=(0,v.aS)(this.descriptionInput.value,d.Z.NOTES_MAX_CHARACTER_COUNT,!1),this.charactersRemaining=d.Z.NOTES_MAX_CHARACTER_COUNT-(0,v.NJ)(this.descriptionInput.value)},this.setInputRef=e=>{this.descriptionInput=e,this.descriptionInput&&!this.isReadOnly&&(this.descriptionInput.select(),this.descriptionInput.focus())},this.setTextRef=e=>{this.descriptionText=e},this.handleKeyDown=(e,t)=>{"Enter"===e.key&&(e.preventDefault(),t(e))}}get isEditingDescription(){return this.context.viewManager.editDescriptionElement&&this.context.viewManager.editDescriptionElement.id===this.props.element.id}get isReadOnly(){return!this.context.viewState.isLibraryWritable(this.props.element.library)}get defaultValue(){return this.props.element.description||""}get editBadge(){return s.createElement("div",{tabIndex:"0","data-test-id":"editable-description-edit-icon",className:"editable-description-icon",onClick:this.startEdit,onKeyDown:e=>this.handleKeyDown(e,this.startEdit)},s.createElement(g.Z,{id:"Edit",height:this.props.iconHeight,tabIndex:"-1"}))}get deleteBadge(){return s.createElement("div",{tabIndex:"0","data-test-id":"editable-description-delete-icon",className:"editable-description-icon editable-description-delete-icon",onClick:this.deleteDescription,onKeyDown:e=>this.handleKeyDown(e,this.deleteDescription)},s.createElement(g.Z,{id:"Delete",height:this.props.iconHeight,tabIndex:"-1"}))}get description(){if(!this.props.element.description)return;const e=this.props.element.description.split("\n"),t=[];for(let r=0;r<e.length;r++)t.push(s.createElement("span",{"data-test-id":`editable-description-line-${r+1}`,key:`line_${r}`},e[r])),t.push(s.createElement("br",{key:`break_${r}`}));return t.pop(),t}finishEditing(e=!1){if(!this.descriptionInput)return void(this.editTrigger=void 0);const t=this.descriptionInput.value;if(!e&&t!==this.props.element.description){let e="add";t?this.props.element.description&&(e="edit"):e="delete",E.ZP.setExtraEventMetrics("updateElement",{subtype:`${e}-note`,content:{category:"Click"}}),this.props.element.description=t.trim()}this.editTrigger=void 0,this.context.viewManager.stopEditDescription()}get descriptionButtons(){return s.createElement("div",{className:"editable-description-buttons"},s.createElement(y.Z,{variant:"cta","data-test-id":"editable-description-cancel-button",className:"editable-description-button",onClick:()=>this.finishEditing(!0),onMouseDown:this.onButtonMouseDown},(0,b.Iu)("DL_CANCEL")),s.createElement(y.Z,{variant:"cta","data-test-id":"editable-description-save-button",className:"editable-description-button",onClick:()=>this.finishEditing(),onMouseDown:this.onButtonMouseDown},(0,b.Iu)("DL_SAVE")))}render(){if(this.isReadOnly&&!this.props.element.description)return null;const e=f()("element-description",{"read-only-description":this.isReadOnly}),t=this.isEditingDescription?s.createElement(s.Fragment,null,this.descriptionButtons,s.createElement("textarea",{"data-test-id":"editable-description-input",readOnly:this.isReadOnly,ref:this.setInputRef,className:"element-description-input",type:"text",placeholder:this.props.placeholder,"uxp-quiet":"true",spellCheck:"true",onBlur:this.handleBlur,defaultValue:this.defaultValue,onKeyDown:this.handleInputKeyDown,onInput:this.handleInput}),s.createElement("div",{"data-test-id":"editable-description-character-count",className:"editable-description-character-count"},this.charactersRemaining)):s.createElement("div",{"aria-label":this.props.element.description||this.props.placeholder,className:f()("editable-description-wrapper",{"placeholder-description":!this.props.element.description})},s.createElement("span",{"data-test-id":"editable-description-text",ref:this.setTextRef,className:e,onDoubleClick:this.startEdit},this.description||s.createElement("i",null,this.props.placeholder)),s.createElement("div",{className:"editable-description-badges"},this.isReadOnly||this.editBadge,this.isReadOnly||!this.props.element.description||this.deleteBadge));return s.createElement("div",{"data-test-id":this.props.className,className:this.props.className},s.createElement("div",{"data-test-id":"editable-description-container",className:f()("element-description-container",{"is-editing":this.isEditingDescription})},t))}},a.contextType=_.r,a.defaultProps={allowLongDoubleClick:!1,iconHeight:12,className:"default-editable-description"},a.propTypes={element:l().instanceOf(m.Z).isRequired,placeholder:l().string.isRequired,className:l().string,allowLongDoubleClick:l().bool,iconHeight:l().number},x=(i=a).prototype,S="charactersRemaining",O=[u.observable],T={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return d.Z.NOTES_MAX_CHARACTER_COUNT}},P={},Object.keys(T).forEach((function(e){P[e]=T[e]})),P.enumerable=!!P.enumerable,P.configurable=!!P.configurable,("value"in P||P.initializer)&&(P.writable=!0),P=O.slice().reverse().reduce((function(e,t){return t(x,S,e)||e}),P),I&&void 0!==P.initializer&&(P.value=P.initializer?P.initializer.call(I):void 0,P.initializer=void 0),void 0===P.initializer&&(Object.defineProperty(x,S,P),P=null),o=P,n=i))||n;var x,S,O,T,I,P},3303:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n,i,o,a,s,c=r(89526),l=r(2652),u=r.n(l),p=r(62631),d=r(50265),h=r(99386),f=r(64403),m=r.n(f),g=r(24937),v=r(27611),y=r(46903),b=r(99767),_=r(84824),E=r(76485);function w(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let L=(n=d.observable.ref,(0,p.Pi)(((s=class extends c.Component{constructor(...e){var t,r,n,i;super(...e),this.componentDidMount=()=>{this._disposeOverflowReaction=(0,d.reaction)((()=>this.nameText),this.refreshOverflow),setTimeout(this.refreshOverflow)},this.refreshOverflow=()=>{this.props.onOverflowChange(this.getOverflow())},this.handleClick=e=>{this.props.onNameClick(e),this.props.allowLongDoubleClick&&this.props.isSelected&&!this.props.isEditDisabled&&(e.stopPropagation(),this.editTrigger="click",this.startEditing())},this.handleDoubleClick=e=>{this.props.allowLongDoubleClick||this.props.isEditDisabled||this.props.isReadOnly||(e.stopPropagation(),this.startEditing())},this.handleClickEdit=e=>{e.stopPropagation(),this.startEditing()},this.handleKeyDown=e=>{"Enter"!==e.key||E.Z.isComposingInputEvent(e)?"Escape"===e.key&&this.finishEditing(!0):this.finishEditing(),e.stopPropagation()},this.handleBlur=()=>{this.finishEditing(!1)},this.handleOnChange=e=>{this.context.viewManager.setRenameValue(e.target.value.trim())},this.setInputRef=e=>{this.nameInput=e,this.nameInput&&!this.props.isReadOnly&&(this.nameInput.select(),this.nameInput.focus())},t=this,r="nameText",i=this,(n=a)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.setTextRef=e=>{this.nameText=e}}get name(){return this.context.viewManager.renameValue}get isEditingName(){return this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===this.props.item.id}get defaultValue(){return!this.props.isReadOnly&&this.props.item.isAutoNamed?"":this.props.item.name}componentWillUnmount(){this._disposeOverflowReaction()}getOverflow(){var e,t;return(null===(e=this.nameText)||void 0===e?void 0:e.offsetWidth)<(null===(t=this.nameText)||void 0===t?void 0:t.scrollWidth)}startEditing(){this.props.onEditStart(),this.context.viewManager.startRename(this.props.item),this.context.viewManager.setRenameValue(this.defaultValue)}isNameValid(){return(!this.name||this.context.viewManager.renameStatus===h.Z.RENAME_STATES.VALID)&&(this.name&&""!==this.name.trim()||this.props.allowBlankName)}get showWarning(){return!!this.isEditingName&&(!(!this.name||this.name===this.defaultValue)&&!this.isNameValid())}finishEditing(e=!1){if(!this.nameInput)return void(this.editTrigger=void 0);const t=this.nameInput.value.trim();t!==this.props.item.name&&(e||this.isNameValid())||(e=!0),e?(this.props.onEditCancel(),this.context.viewManager.setRenameValue(this.defaultValue)):(this.props.item.isGroup&&this.context.viewManager.stopRename(),(0,y.UE)(this.props.item,t),this.props.onEditFinish(this.editTrigger)),this.editTrigger=void 0,this.context.viewManager.stopRename()}get tooltipErrorMessage(){const e=this.context.viewManager.renameStatus;return h.Z.RENAME_STATE_ERROR_MESSAGES[e]}render(){const e=m()(this.props.inputClassName,{"read-only-name":this.props.isReadOnly,"show-warning":this.showWarning}),t=this.isEditingName?c.createElement("div",{className:"editable-name-input-wrapper"},c.createElement("input",{"data-test-id":"editable-name-input",readOnly:this.props.isReadOnly,ref:this.setInputRef,maxLength:h.Z.MAX_INPUT_STRING_LENGTH,className:e,type:"text",placeholder:this.props.placeholder,"uxp-quiet":"false",spellCheck:"false",onBlur:this.handleBlur,defaultValue:this.defaultValue,onKeyDown:this.handleKeyDown,onChange:this.handleOnChange}),this.showWarning&&c.createElement("div",{"data-test-id":"editable-name-alert-tooltip"},c.createElement(b.Z,{className:"editable-name-alert-tooltip",placement:"top",content:(0,_.Iu)(this.tooltipErrorMessage)},c.createElement(v.Z,{className:"editable-name-alert-icon",id:"Alert",height:h.Z.currentProduct.config.alertIconHeight||10})))):c.createElement("div",{className:m()("editable-name-wrapper",{"editable-name-wrapper-edit-icon":this.props.isShowingEditIcon&&!this.props.isReadOnly})},c.createElement("span",{"data-test-id":"editable-name-text",ref:this.setTextRef,className:m()(this.props.textClassName,"editable-name-text",{"read-only-name":this.props.isReadOnly}),onClick:this.handleClick,onDoubleClick:this.handleDoubleClick},this.props.children||this.props.item.name),!this.props.isShowingEditIcon||this.props.isReadOnly||this.props.isEditDisabled?c.createElement("span",{className:"editable-name-padding","data-test-id":"editable-name-padding"}):c.createElement("div",{"data-test-id":"editable-name-edit-icon",className:"element-name-edit-icon",onClick:this.handleClickEdit},c.createElement(v.Z,{id:"Edit",height:12})));return c.createElement("div",{"data-test-id":"editable-name-container",className:m()(this.props.containerClassName,"editable-name",{"is-editing":this.isEditingName,invalid:this.showWarning})},t)}}).contextType=g.r,s.defaultProps={allowBlankName:!1,allowLongDoubleClick:!1,onEditFinish:()=>{},onEditStart:()=>{},onEditCancel:()=>{},onOverflowChange:()=>{},onNameClick:()=>{},isSelected:!1,isShowingEditIcon:!1,isReadOnly:!1},s.propTypes={item:u().instanceOf(Object).isRequired,placeholder:u().string.isRequired,containerClassName:u().string,inputClassName:u().string,textClassName:u().string,allowBlankName:u().bool,allowLongDoubleClick:u().bool,children:u().node,onEditFinish:u().func,onEditCancel:u().func,onEditStart:u().func,onOverflowChange:u().func,isSelected:u().bool,isShowingEditIcon:u().bool,isReadOnly:u().bool,isEditDisabled:u().bool,onNameClick:u().func},w((o=s).prototype,"showWarning",[d.computed],Object.getOwnPropertyDescriptor(o.prototype,"showWarning"),o.prototype),a=w(o.prototype,"nameText",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w(o.prototype,"tooltipErrorMessage",[d.computed],Object.getOwnPropertyDescriptor(o.prototype,"tooltipErrorMessage"),o.prototype),i=o))||i)},18135:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Te});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(50265),l=r(62631),u=r(64403),p=r.n(u),d=r(47320),h=r(84824),f=r(46903),m=r(39293),g=r(76485),v=r(76792),y=r(53849),b=r(99386),_=r(91854),E=r(99409),w=r(98218),L=r(3303),x=r(24937),S=r(33275),O=r(80091);let T=(0,l.Pi)(((i=class extends o.Component{get isEditingName(){return this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===this.props.element.id}get allowBlankName(){return d.Z.allowBlankName(this.props.element)}render(){const e=this.props,t=e.element,r=e.selected,n=e.viewMode,i=p()({selected:r,"show-on-panel-hover":"panelHover"===this.context.viewState.nameVisibility,"show-on-element-hover":"elementHover"===this.context.viewState.nameVisibility},`panel-${n}-item-name-container`);return o.createElement(L.Z,{item:t,allowBlankName:this.allowBlankName,placeholder:(0,h.Iu)("DL_EDIT_NAME_PLACEHOLDER"),containerClassName:i,inputClassName:`panel-${n}-item-edit-name`,textClassName:`panel-${n}-item-name`,isSelected:y.Z.isSelected(t),isReadOnly:!this.context.viewState.isLibraryWritable(t.library)||t.disableRename,onNameClick:this.props.onNameClick},t.name)}}).contextType=x.r,i.defaultProps={selected:!1,viewMode:"grid",onNameClick:()=>{}},i.propTypes={element:s().oneOfType([s().instanceOf(S.W_),s().instanceOf(O.Z)]),selected:s().bool,viewMode:s().oneOf(["grid","list"]),onNameClick:s().func},n=i))||n;var I,P,C=r(99767),A=r(27611);let k=(0,l.Pi)(((P=class extends o.Component{constructor(...e){super(...e),this.handleClick=e=>{this.props.applyOperation.apply(),e.stopPropagation()}}getClasses(){return p()(`panel-place-button-overlay-${this.props.viewMode}`,"show-on-hover-child")}render(){return o.createElement("div",{"data-test-id":"place-button",className:this.getClasses(),onClick:this.handleClick},o.createElement(C.Z,{placement:"top-start",content:(0,h.Iu)(this.props.applyOperation.name)},o.createElement(A.Z,{id:"PlaceOnCanvas",height:13})))}}).propTypes={viewMode:s().oneOf(b.Z.ELEMENT_VIEW_MODES).isRequired,applyOperation:s().object.isRequired},I=P))||I;var D,N,R,M=r(31870),j=r(51461),Z=r(30131),F=r(26981),B=r(44914),G=r(24099),U=r(64662);let z=(0,l.Pi)(((R=class extends o.Component{get element(){return this.props.element}get contentAuthenticityBadge(){return o.createElement(G.Z,{dataTestId:"verify-content-authenticity",icon:"VerifyContentAuthenticity",tooltipContent:(0,h.Iu)("DL_VERIFY_CONTENT_AUTHENTICITY"),onClick:()=>{}})}render(){return this.contentAuthenticityBadge}}).propTypes={element:s().instanceOf(U.Z).isRequired},V=(N=R).prototype,H="contentAuthenticityBadge",Y=[c.computed],W=Object.getOwnPropertyDescriptor(N.prototype,"contentAuthenticityBadge"),$=N.prototype,K={},Object.keys(W).forEach((function(e){K[e]=W[e]})),K.enumerable=!!K.enumerable,K.configurable=!!K.configurable,("value"in K||K.initializer)&&(K.writable=!0),K=Y.slice().reverse().reduce((function(e,t){return t(V,H,e)||e}),K),$&&void 0!==K.initializer&&(K.value=K.initializer?K.initializer.call($):void 0,K.initializer=void 0),void 0===K.initializer&&(Object.defineProperty(V,H,K),K=null),D=N))||D;var V,H,Y,W,$,K,q,X,J;let Q=(0,l.Pi)(((J=class extends o.Component{get element(){return this.props.element}get editBadge(){return o.createElement(G.Z,{dataTestId:"edit",icon:"Edit",tooltipContent:(0,h.Iu)("DL_EDIT_IN_SOURCE"),onClick:this.editOperation.apply})}get editOperation(){return d.Z.getEditOperations(this.element).find((e=>e.onEditItem&&!e.disabled))}render(){return this.editOperation&&this.element.library.isWritable&&!d.Z.isDownloadInProgress(this.element)?this.editBadge:null}}).propTypes={element:s().oneOfType([s().instanceOf(S.W_),s().instanceOf(O.Z)]).isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((X=J).prototype,"editBadge",[c.computed],Object.getOwnPropertyDescriptor(X.prototype,"editBadge"),X.prototype),q=X))||q;var ee,te,re,ne=r(5849),ie=r(69233),oe=r(20290);function ae(){return ae=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},ae.apply(this,arguments)}function se(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */se=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ce(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function le(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ce(o,n,i,a,s,"next",e)}function s(e){ce(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ue(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pe(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function pe(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 de(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let he=(0,l.Pi)(((re=class extends o.Component{constructor(...e){var t;super(...e),t=this,this._getElementSourceGroup=()=>this.element.linkedElement&&this.element.linkedElement.getGroups()[0],this._getElementSourceName=()=>{const e=this.element.linkedLibrary;let t;return this.element.isLegacyDocumentLink?t=this.element.linkedDocumentName:e?e.name&&(t=e.name):t=this.element.cachedLinkedLibraryName,t},this.onMouseOver=()=>{this.previousTooltips=document.querySelectorAll("active-overlay");var e,t=ue(this.previousTooltips);try{for(t.s();!(e=t.n()).done;){e.value.style.display="none"}}catch(e){t.e(e)}finally{t.f()}this.checkIfCanAddTeamLibrary(),this.fetchLibraryInvitations(),this.showPreview()},this.fetchLibraryInvitations=()=>{(this.element.isMissingLibrary||this.element.isPendingInvite)&&this.context.libraryManager.fetchLibraryInvitations()},this._checkIfCanAddTeamLibrary=le(se().mark((function e(){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.element.isMissingLibrary&&!t.element.isPendingFollow||!t.element.cachedLinkedLibraryAssetId){e.next=2;break}return e.abrupt("return",t.context.libraryManager.fetchTeamLibraryData(t.element.cachedLinkedLibraryAssetId));case 2:case"end":return e.stop()}}),e)}))),this.checkIfCanAddTeamLibrary=(0,oe.P2)(this._checkIfCanAddTeamLibrary,b.Z.FETCH_TEAM_LIBS_THROTTLE),this.showPreview=()=>{const e=this.element.isPendingUpdate;this.element.isDeprecatedLegacyDocumentLink||!e||g.Z.isPreviewActive||(j.ZP.reportElementEvent("Gated Update","Element","render","preview-update",this.element),g.Z.startPreview(this.element))},this.hidePreview=()=>{var e,t=ue(this.previousTooltips);try{for(t.s();!(e=t.n()).done;){e.value.style.display="block"}}catch(e){t.e(e)}finally{t.f()}g.Z.isPreviewActive&&g.Z.cancelPreview()},this.handleClick=e=>{this.element.isNormalLinkState&&!this.element.isDeprecatedLegacyDocumentLink||e.stopPropagation(),this.element.isBrokenLegacyDocumentLink||(this.element.isMissingLegacyDocumentLink&&this.element.canRelinkToDocument?this.element.relinkToDocument():this.element.isDeprecatedLegacyDocumentLink||!this.element.isPendingUpdate&&!g.Z.isPreviewActive?(this.element.isMissingLink||this.element.isDeprecatedLegacyDocumentLink)&&(this.element.canRelinkToLibrary?this.context.documentActions.relinkAssetToLibrary(this.element):g.Z.openApplicationDialog("resolveBrokenLinks",{element:this.element})):(j.ZP.reportElementEvent("Gated Update","Element","render","accept-update",this.element),g.Z.commitPreview()))},this.onRightClick=e=>{g.Z.isPreviewActive&&e.stopPropagation()}}get element(){return this.props.element}get iconName(){if(this.element.isSyncing)return"AssetUploading";if(!this.element.isDeprecatedLegacyDocumentLink){if(this.element.isNormalLinkState)return"AssetLinked";if(this.element.isPendingUpdate)return"AssetUpdate"}return this.element.isRestricted?"AssetRestricted":this.element.linkType===b.Z.LIBRARY_TYPE?"AssetBrokenElement":"AssetBrokenLink"}get tooltipContent(){const e=[];if(this.element.isNormalLinkState&&(this.element.isDeprecatedLegacyDocumentLink?(e.push((0,h.Iu)("ASSET_SOURCE_DOCUMENT_DEPRECATED")),e.push((0,h.Iu)("ASSET_LINK_RESOLVE"))):g.Z.isPreviewActive||e.push((0,h.Iu)("ASSET_LINK_UP_TO_DATE"))),this.element.isPendingUpdate||g.Z.isPreviewActive)if(this.element.isDeprecatedLegacyDocumentLink)e.push((0,h.Iu)("ASSET_SOURCE_DOCUMENT_DEPRECATED")),e.push((0,h.Iu)("ASSET_LINK_RESOLVE"));else if(e.push((0,h.Iu)("ASSET_LINK_UPDATE")),this.element.linkedAsset){const t=(0,h.zt)(this.element.linkedAsset.modified.getTime());e.push(t)}this.element.isSyncing&&e.push((0,h.Iu)("DL_SYNCING")),this.element.isMissingLibraryLink?this.element.isPendingFollow?(e.push((0,h.Iu)("ASSET_LINK_MISSING_PENDING_FOLLOW")),e.push((0,h.Iu)("ASSET_LINK_MISSING_LIBRARY_RESOLVE"))):(e.push((0,h.Iu)("ASSET_LINK_MISSING_LIBRARY")),this.element.isPendingInvite?e.push((0,h.Iu)("ASSET_LINK_MISSING_LIBRARY_RESOLVE")):this.element.canRelinkToLibrary&&e.push((0,h.Iu)("ASSET_LINK_RESOLVE"))):this.element.isMissingLegacyDocumentLink?(e.push((0,h.Iu)("ASSET_LINK_MISSING_SOURCE_DOCUMENT")),this.element.canRelinkToDocument&&e.push((0,h.Iu)("ASSET_LINK_RELINK"))):this.element.isRestricted?e.push((0,h.Iu)("ASSET_LINK_RESTRICTED")):this.element.isMissingLink&&(e.push((0,h.Iu)(this.element.linkType===b.Z.LIBRARY_TYPE?"ASSET_LINK_MISSING_ELEMENT":"ASSET_LINK_MISSING_ASSET")),this.element.canRelinkToLibrary&&e.push((0,h.Iu)("ASSET_LINK_RESOLVE")));const t=this._getElementSourceName();if(t){const r=this.element.isLegacyDocumentLink?"ASSET_SOURCE_DOCUMENT":"ASSET_SOURCE_LIBRARY";e.push((0,h.Iu)(r,{name:t}))}const r=this._getElementSourceGroup();return r&&e.push((0,ie.DB)(r)),e}componentDidMount(){this.fetchLibraryInvitations(),this.checkIfCanAddTeamLibrary(),this._dispose=(0,c.reaction)((()=>this.element.isMissingLibrary),(e=>{e&&(this._checkIfCanAddTeamLibrary(),this.fetchLibraryInvitations())})),this.previousTooltips=[]}componentWillUnmount(){this._dispose()}get loadingSpinner(){return o.createElement(ne.Z,{"data-test-id":"link-badge-loading",className:"link-badge-loading",indeterminate:!0,size:"small"})}get linkBadge(){return o.createElement(C.Z,{placement:"top-start",content:this.tooltipContent},o.createElement("div",ae({className:"element-badge-container","data-test-id":"link-badge",onClick:this.handleClick,onMouseOver:this.onMouseOver,onMouseOut:this.hidePreview},g.Z.contextMenuEventListeners(this.onRightClick)),o.createElement(A.Z,{id:this.iconName,height:16,className:"nopointer"})))}get isUnlinking(){return this.context.viewManager.getIsUnlinkingAsset(this.element)}render(){return this.element.isLinked?this.isUnlinking?this.loadingSpinner:this.linkBadge:null}}).contextType=x.r,re.propTypes={element:s().oneOfType([s().instanceOf(S.W_),s().instanceOf(O.Z)]).isRequired},de((te=re).prototype,"linkBadge",[c.computed],Object.getOwnPropertyDescriptor(te.prototype,"linkBadge"),te.prototype),de(te.prototype,"isUnlinking",[c.computed],Object.getOwnPropertyDescriptor(te.prototype,"isUnlinking"),te.prototype),ee=te))||ee;var fe,me,ge,ve,ye,be=r(10440),_e=r(25585),Ee=r(2169),we=r(51702),Le=r(85080),xe=r(85834);function Se(){return Se=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},Se.apply(this,arguments)}function Oe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Te=(fe=c.observable.ref,(0,l.Pi)((ye=class extends o.Component{constructor(e){super(e),this.overlayState=new Le.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleLicense=()=>{j.ZP.reportStockEvent("License","click","start",{ui:{sequence:"thumbnail"}},this.element),M.q$()?M.Zg(this.element).then((()=>{j.ZP.reportStockEvent("License","render","success",{ui:{sequence:"thumbnail"}},this.element)})).catch((()=>{j.ZP.reportStockEvent("License","render","error",{ui:{sequence:"thumbnail"}},this.element)})):Z.WS(M.wq(this.element),this.element.type)},this._lastClickTime=0,this.handleClick=e=>{if(this.props.disableInteraction)return;var t,r,n;if(xe.Z.get("ubeDesignEnabled"))return void(null===(t=(r=b.Z.currentProduct).navigateToElement)||void 0===t||t.call(r,this.element));b.Z.currentProduct.config.navigateToElementOneUp&&(null===(n=g.Z.navigateToElement)||void 0===n||n.call(g.Z,this.element,this.element.library));this.onClickSetSelection(e);const i=(new Date).valueOf();if(!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&this._lastClickTime<i-500){const e=d.Z.getOnClickApplyOperation(this.element);e&&e.apply()}this._lastClickTime=i},this.onClickSetSelection=e=>{var t,r;if(e.stopPropagation(),E.Z.setContextMenu([]),g.Z.isMobileView&&null!==(t=(r=b.Z.currentProduct).isExpandedView)&&void 0!==t&&t.call(r))return;const n=this.context.viewState.getState().enableMultiSelect,i=g.Z.isWindowsOS();n&&(!i&&e.metaKey||i&&e.ctrlKey||i&&g.Z.hasUXPWindowsCTRLClickBug&&e.metaKey)?(y.Z.toggleSelection(this.element),be.Z.clearSelection()):n&&e.shiftKey?y.Z.setSelectionRange(this.element):(be.Z.clearSelection(),y.Z.setSelection(this.element))},this.handleDoubleClick=e=>{e.stopPropagation(),this.props.disableInteraction||this.element.library.isDocumentAssets&&b.Z.currentProduct.config.disableEditOnDoubleClickAsset||d.Z.editElement(this.element)},this.handleDragStart=e=>{var t,r;if(g.Z.isMobileView)return void e.preventDefault();y.Z.isSelected(this.element)||y.Z.setSelection(this.element);const n=y.Z.selection,i=[];n.forEach((e=>{const t=d.Z.getDragData(e);t&&(delete t.usedRepresentationForAnalytics,i.push(t))}));const o={source:b.Z.DRAGDROP_SOURCE,version:w.Z.getPluginVersion(),assetList:i};try{e.dataTransfer.setData(g.Z.ElementDragId,JSON.stringify(o))}catch(e){}const a=g.Z.useUXPDragImage;let s=F.Ig()&&!a;if(g.Z.enableDragOutsideProduct&&1===n.length&&!n[0].library.isDocumentAssets){const t=n[0];if(b.Z.DRAGOUT_ELEMENT_TYPES.includes(t.type)){const r=d.Z.getRepresentationForExport(t),n=r&&r.getCachedContentPath(),i=(0,f.__)(r);n&&i&&(s=!1,e.dataTransfer.setData("DownloadURL",`file/${i}:${t.name}.${i}:file://${n}`))}}s&&e.dataTransfer.setDragImage(this.blankImage,0,0),a&&n.forEach(((t,r)=>{const n=document.getElementById(`element-${t.id}`);n&&e.dataTransfer.uxpSetDragImageAt(n,0,0,r)}));null===(t=(r=b.Z.currentProduct.config).setElementDragData)||void 0===t||t.call(r,e,n),_.Z.handleDragStart("element",n,s?t=>{const r=e.target.cloneNode(!0);if(r.style.left=e.target.clientX-e.target.clientWidth/2+"px",r.style.top=e.target.clientY-e.target.clientHeight/2+"px",r.classList.add("panel-ghost-element"),n.length>1){const e=document.createElement("div");e.classList.add("panel-ghost-count");const r=b.Z.MAX_DRAG_DISPLAY_COUNT,i=r&&r<n.length?(0,h.Iu)("DL_MAX_DRAG_DISPLAY_COUNT",{maxCount:r}):n.length;e.innerHTML=i,t.appendChild(e)}t.appendChild(r),t.style.width=(b.Z.currentProduct.config.customDragCardWidth||e.target.clientWidth)+"px",t.style.height=(b.Z.currentProduct.config.customDragCardHeight||e.target.clientHeight)+"px";(e.target.getRootNode().querySelector("body")||g.Z.getRootPanelElement()).appendChild(t)}:null)},this.handleDragEnd=e=>{b.Z.currentProduct.config.missingDropEventsBug?_.Z.handleDrop(e):_.Z.handleDragEnd()},this.handleContextMenu=e=>{if(e.stopPropagation(),this.props.disableInteraction)return;this.overlayState.toggleOverlay(),this.context.viewState.setContextMenuPositionState({x:e.clientX,y:e.clientY});const t=(0,m.Ol)(this.element.library);j.ZP.reportElementEvent("Navigation",t?"brands":"libraries","click","library-asset-contextual-menu",this.element),(0,v.pT)(this.element),g.Z.onContextMenu(e)},function(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})}(this,"metadataRef",ve,this),this.setMetadataRef=e=>{this.metadataRef=e},this.onNameClick=e=>{!b.Z.currentProduct.config.applyElementOnNameClick&&this.onClickSetSelection(e)},this._registerElementNode=(e,t)=>{g.Z.registerElementNode&&g.Z.registerElementNode(t,e)},this.onMouseOver=()=>{const e=this.element.isPendingUpdate;!this.element.isDeprecatedLegacyDocumentLink&&e&&!g.Z.isPreviewActive&&b.Z.currentProduct.config.updatedPreviewOnThumbnailHover&&(j.ZP.reportElementEvent("Gated Update","Element","render","preview-update",this.element),g.Z.startPreview(this.element))},this.onMouseOut=()=>{g.Z.isPreviewActive&&b.Z.currentProduct.config.updatedPreviewOnThumbnailHover&&g.Z.cancelPreview()},this.blankImage=new Image,this.blankImage.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}get element(){return this.props.element}get disabled(){return d.Z.isDisabled(this.element)&&!this.props.viewMode.startsWith("thumbnail")}get selected(){return y.Z.isSelected(this.element)}get invalidRename(){return this.context.viewManager.renamingItem===this.element&&this.context.viewManager.renameStatus!==b.Z.RENAME_STATES.VALID}get subSelected(){const e=this.props.element.getGroups()[0];return!!(e?(0,ie._y)(e,!0):[]).find((e=>be.Z.isSelected(e)))}get focused(){return y.Z.isFocused(this.element)}get placeButton(){if(b.Z.currentProduct.config.showPlaceButtons){const e=d.Z.getApplyOperations(this.element),t=e&&e.find((e=>e.showPlaceButton)),r=(0,f.Mo)(this.element),n=r.isDownloadPending,i=r.hasFailed;if(t&&!n&&!i)return o.createElement(k,{viewMode:this.props.viewMode,applyOperation:t,key:"place-button"})}}get purchaseButton(){const e=!M.q$(),t=p()("panel-list-item-license",{disabled:e});return M.Jw(this.element)&&"list"===this.props.viewMode&&!M.kv(this.element)?o.createElement("div",{className:t},o.createElement(C.Z,{placement:"top-start",content:(0,h.Iu)("DL_STOCK_LICENSE_MENU"+M.Y8(this.props.element))},o.createElement(A.Z,{id:"ShoppingCart",height:12,onClick:this.handleLicense}))):null}get linkBadge(){return o.createElement(he,{key:"link-badge",element:this.props.element})}get elementBadges(){if(this.props.disableInteraction)return[];const e="thumbnail-large"===this.props.viewMode&&o.createElement(Q,{element:this.element,key:"edit-badge"}),t="thumbnail-large"===this.props.viewMode&&(0,B.o1)(this.element)&&o.createElement(z,{element:this.element,key:"content-authenticity-badge"}),r="thumbnail"!==this.props.viewMode?this.props.elementBadges:[],n=[e,t].filter(Boolean),i=[];return r.forEach((e=>{"sync-font-badge"===e.key?i.push(e):n.push(e)})),this.props.element.isLinked&&i.push(this.linkBadge),"list"!==this.props.viewMode&&this.placeButton&&i.push(this.placeButton),o.createElement("div",{className:"element-badges-container","data-test-id":"element-badges"},o.createElement("div",{className:"element-badges-left-container","data-test-id":"element-badges-left-container"},n),o.createElement("div",{className:"element-badges-right-container","data-test-id":"element-badges-right-container"},i))}getClasses(){let e;if("grid"===this.props.viewMode)e=`panel-${d.Z.getShortType(this.element.type)}-item panel-grid-item`;else{const t=_.Z.activeDropTarget&&_.Z.activeDropTarget.group===b.Z.UNGROUPED_GROUP;e=p()({"group-view":this.context.viewState.isGroupView(),ungrouped:0===this.props.element.getGroups().length,"ungrouped-drop-target":t},"panel-list-item")}const t=d.Z.getAdditionalClasses(this.element),r=_.Z.activeDropTarget&&_.Z.activeDropTarget.beforeElement===this.element&&!_.Z.activeDropTarget.isRowEnd,n=_.Z.activeDropTarget&&_.Z.activeDropTarget.afterElement===this.element&&_.Z.activeDropTarget.isRowEnd,i="order"===this.context.viewState.elementSortState;return p()({"panel-group-view-item":"group"===this.context.viewState.viewByState,"disabled-item":this.disabled,selected:!this.props.disableInteraction&&this.selected&&!this.subSelected,"sub-selected":this.subSelected,focused:this.focused,interactive:!this.props.disableInteraction,"grid-name-visible":"always"===this.context.viewState.nameVisibility,[`panel-${this.props.viewMode}-item-separator`]:i&&r,[`panel-${this.props.viewMode}-item-separator-end`]:i&&n},e,t,"show-on-hover-parent")}get style(){return"list"===this.props.viewMode?this.props.listStyle:"grid"===this.props.viewMode?{width:"100%",height:"100%"}:void 0}get contextMenuButton(){var e,t;if("grid"===this.props.viewMode&&null!==(e=(t=b.Z.currentProduct.config).showElementContextMenuButton)&&void 0!==e&&e.call(t))return o.createElement("div",{className:p()("gridContextMenuButton",{open:this.overlayState.isOpen})},o.createElement(we.Z,{onContextMenuClick:this.handleContextMenu}))}getGroupMeta(e,t){const r=(0,ie._y)(e,!0),n=r.map((e=>e.name));this.context.viewState.isLibrariesSearchMode()&&n.unshift(e.library.name);const i=r.find((e=>!!e.excludeFromChildPaths));if(this.context.viewState.isDocumentSearchMode()&&i&&n.shift(),!n.length)return;const o=(0,Ee.E0)(t,"panel-list-item-info").width,a=this.metadataRef&&this.metadataRef.clientWidth-o||b.Z.TOOLTIP_MAX_WIDTH;t&&(n[0]=`, ${n[0]}`);const s=(0,_e.Zj)(n,{maxWidth:a,className:"panel-list-item-info"});return t?s.includes(",")?s:`, ${s}`:s}get additionalDetails(){if(b.Z.currentProduct.config.hideListViewMetadata&&!this.context.viewState.isSearchMode())return;let e=!1;b.Z.currentProduct.config.shouldShowExtensionInSearch&&(e=b.Z.currentProduct.config.shouldShowExtensionInSearch(this.props.element));const t=d.Z.getAdditionalElementDetails(this.props.element);let r=!e&&d.Z.getExtension(this.props.element);r=r&&o.createElement("span",{className:"list-item-extension","data-test-id":"info-extension"},r.toUpperCase());const n=this.props.element.getGroups()[0],i=[t].filter((e=>e)).join(", "),a=n&&this.context.viewState.isSearchMode()&&this.getGroupMeta(n,i),s=(i||a)&&o.createElement("span",{"data-test-id":"info-text"},i,a);return r||s?o.createElement("div",{ref:this.setMetadataRef,"data-test-id":"info-text-container",className:"panel-list-item-info"},r,s):void 0}get extension(){const e=d.Z.getExtension(this.element)||"";return o.createElement("div",{"data-test-id":"extension-text",className:"panel-grid-item-extension"},e.toUpperCase())}get nameAndDescription(){const e=this.additionalDetails;return"list"===this.props.viewMode&&e?o.createElement("div",{className:"panel-list-item-multiline-container"},o.createElement(T,{onNameClick:this.onNameClick,element:this.element,selected:this.selected,viewMode:this.props.viewMode}),e):("list"===this.props.viewMode||!b.Z.currentProduct.config.hideNamesInGridView)&&o.createElement("div",{className:"panel-grid-item-multiline-container"},o.createElement(T,{onNameClick:this.onNameClick,element:this.element,selected:this.selected,viewMode:this.props.viewMode}),"none"!==this.props.showDetails&&this.gridElementDetails)}get gridElementDetails(){return o.createElement("div",{className:"panel-grid-item-type","data-test-id":"grid-item-details"},d.Z.getGridElementDetails(this.props.showDetails,this.props.element))}get overlay(){const e=p()({"disabled-item":this.disabled,selected:this.selected,"has-opacity-bug":g.Z.hasOpacityBug,"invalid-rename":this.invalidRename},`panel-${this.props.viewMode}-selected-overlay`);return o.createElement("div",{className:e})}get isDraggable(){return!this.props.disableInteraction&&(this.context.viewManager.renamingItem!==this.element&&"thumbnail"!==this.props.viewMode)}get shouldRenderThumbnailAboveName(){return"grid"===this.props.viewMode&&[b.Z.GRID_TYPE_LARGE,b.Z.GRID_TYPE_MEDIUM].includes(this.props.gridSizeType)&&"always"===this.context.viewState.nameVisibility}get thumbnailContents(){if(this.shouldRenderThumbnailAboveName){var e,t;const r=null!==(e=(t=b.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)?b.Z.EXPANDED_GRID_VIEW_NAME_HEIGHT:b.Z.GRID_VIEW_NAME_HEIGHT;return o.createElement("div",{"data-test-id":"grid-thumbnail-above-name",className:"grid-thumbnail-above-name",style:{height:`calc(100% - ${r}px)`}},this.props.children)}return this.props.children}get tooltipContent(){if(!this.props.disableTooltip)return d.Z.getTooltipContent(this.element)}get stockId(){return M.Jw(this.element)?M.wq(this.element):null}render(){if(this.props.viewMode.startsWith("thumbnail")){const e=d.Z.getAdditionalClasses(this.element),t=p()("panel-list-item",`${this.props.viewMode}-view`,e);return o.createElement("div",{className:t,"data-test-id":`element-thumbnail-${this.element.getLegacyReference()}`,draggable:this.isDraggable,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd},this.props.children,this.elementBadges)}const e=o.createElement("div",Se({id:`element-${this.element.id}`,ref:e=>this._registerElementNode(e,this.element),className:this.getClasses(),style:this.style,"img-size":"","data-test-id":`element-${this.element.getLegacyReference()}`,draggable:this.isDraggable,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick},g.Z.contextMenuEventListeners(this.handleContextMenu),{onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut},this.stockId?{"data-stock-id":this.stockId}:{}),this.thumbnailContents,!this.props.thumbnailOnly&&o.createElement(o.Fragment,null,this.overlay,this.nameAndDescription,"list"===this.props.viewMode&&this.placeButton,this.contextMenuButton||this.elementBadges));return this.tooltipContent?o.createElement(C.Z,{placement:"top-start",content:b.Z.currentProduct.config.disableContentViewTooltips?void 0:this.tooltipContent,className:"element-tooltip"},e,g.Z.hasUXPScrollZIndexBug&&"list"===this.props.viewMode&&o.createElement("div",{"data-test-id":"uxp-scrollbar-drag-padding",className:"uxp-scrollbar-drag-padding"})):e}},ye.contextType=x.r,ye.defaultProps={viewMode:"grid",showDetails:"none",elementBadges:[]},ye.propTypes={showDetails:s().oneOf(["type","none"]),children:s().node,element:s().oneOfType([s().instanceOf(S.W_),s().instanceOf(O.Z)]).isRequired,viewMode:s().oneOf(b.Z.ELEMENT_VIEW_MODES),elementBadges:s().arrayOf(s().node),gridSizeType:s().oneOf(b.Z.GRID_SIZE_TYPES),listStyle:s().object,disableTooltip:s().bool,thumbnailOnly:s().bool,disableInteraction:s().bool},Oe((ge=ye).prototype,"disabled",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"disabled"),ge.prototype),Oe(ge.prototype,"selected",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"selected"),ge.prototype),Oe(ge.prototype,"invalidRename",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"invalidRename"),ge.prototype),Oe(ge.prototype,"subSelected",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"subSelected"),ge.prototype),Oe(ge.prototype,"focused",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"focused"),ge.prototype),Oe(ge.prototype,"placeButton",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"placeButton"),ge.prototype),Oe(ge.prototype,"purchaseButton",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"purchaseButton"),ge.prototype),Oe(ge.prototype,"style",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"style"),ge.prototype),ve=Oe(ge.prototype,"metadataRef",[fe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe(ge.prototype,"tooltipContent",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"tooltipContent"),ge.prototype),Oe(ge.prototype,"stockId",[c.computed],Object.getOwnPropertyDescriptor(ge.prototype,"stockId"),ge.prototype),me=ge))||me)},56649:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n,i,o=r(89526),a=r(62631),s=r(18135),c=r(31408),l=r(24937);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 p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let d=(0,a.Pi)(((i=class extends o.Component{render(){return o.createElement(s.Z,this.props,["list","thumbnail"].includes(this.props.viewMode)?o.createElement("div",{className:"panel-list-item-thumb","img-size":""},o.createElement(c.Z,{element:this.props.element,viewMode:this.props.viewMode,thumbnailType:this.context.viewState.thumbnailType})):o.createElement(c.Z,{element:this.props.element,viewMode:this.props.viewMode,thumbnailType:this.context.viewState.thumbnailType}))}}).contextType=l.r,i.defaultProps={viewMode:"grid"},i.propTypes=function(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){p(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}({},s.Z.propTypes),n=i))||n},9276:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n,i,o,a=r(89526),s=r(64403),c=r.n(s),l=r(50265),u=r(62631),p=r(18135),d=r(47320),h=r(76485),f=r(74379),m=r(99386);function g(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 v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let y=(0,u.Pi)(((o=class extends a.Component{get disabled(){var e,t;return d.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=m.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}convertSingleColor(e){return h.Z.convertSingleColor(e)}getStyle(){return{backgroundColor:(0,f.tX)(this.props.element,this.disabled,h.Z.shouldConvertColor()?this.convertSingleColor:void 0)}}get hasOpacity(){const e=this.props.element.getPrimaryRepresentation(),t=e&&e.getValue("color","data");return t&&void 0!==t.alpha&&1!==t.alpha}get colorView(){const e=c()(`panel-${this.props.viewMode}-color-item-thumb`,{disabled:this.disabled,opacity:this.hasOpacity,"panel-grid-item-contents":"grid"===this.props.viewMode});let t="panel-color-item-content";return h.Z.colorProfile===f.wo.SRGB&&(t="panel-color-item-content-auto"),a.createElement("div",{className:e},a.createElement("div",{"data-test-id":`color-view-${this.props.viewMode}`,style:this.getStyle(),className:t}))}render(){return a.createElement(p.Z,this.props,this.colorView)}}).defaultProps={viewMode:"grid"},o.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},p.Z.propTypes),b=(i=o).prototype,_="disabled",E=[l.computed],w=Object.getOwnPropertyDescriptor(i.prototype,"disabled"),L=i.prototype,x={},Object.keys(w).forEach((function(e){x[e]=w[e]})),x.enumerable=!!x.enumerable,x.configurable=!!x.configurable,("value"in x||x.initializer)&&(x.writable=!0),x=E.slice().reverse().reduce((function(e,t){return t(b,_,e)||e}),x),L&&void 0!==x.initializer&&(x.value=x.initializer?x.initializer.call(L):void 0,x.initializer=void 0),void 0===x.initializer&&(Object.defineProperty(b,_,x),x=null),n=i))||n;var b,_,E,w,L,x},33372:(e,t,r)=>{"use strict";r.d(t,{Z:()=>T});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(62631),u=r(50265),p=r(18135),d=r(99767),h=r(47320),f=r(74379),m=r(64403),g=r.n(m),v=r(76792),y=r(76485),b=r(99386),_=r(22708),E=r.n(_);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 L(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){x(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 x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(){return S=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},S.apply(this,arguments)}function O(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let T=(0,l.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.handleContextMenu=(e,t)=>{this.isInteractive&&(e.stopPropagation(),(0,v.pT)(this.props.element,t),y.Z.onContextMenu(e))}}get disabled(){var e,t;return h.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=b.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}get representation(){return h.Z.findUsableRepresentation(this.props.element,"application/vnd.adobe.colortheme+json")}get isInteractive(){return!this.props.viewMode.startsWith("thumbnail")&&!this.props.disableInteraction}get swatches(){const e=this.representation&&this.representation.getValue("colortheme","data");if(e)return e.swatches}useColor(e,t){if(this.isInteractive){const r=h.Z.getApplyOperations(this.props.element,e).find((e=>!!e.onClick));r&&r.apply(),t.stopPropagation()}}getStyle(e){return{background:f.CV(e,this.disabled)}}getColorSwatches(){if(!this.swatches)return;let e;if(["list","thumbnail"].includes(this.props.viewMode)){e=g()({interactive:this.isInteractive,"panel-thumbnail-disabled":this.disabled},"panel-list-colortheme-item-thumb");const t=g()({"thumbnail-view":!this.isInteractive},"panel-list-colortheme-item-color");return a.createElement("div",{className:e,"data-test-id":`colortheme-view-${this.props.viewMode}`},this.swatches.map((e=>a.createElement("div",{key:E()(),className:t,style:this.getStyle(e),onClick:t=>this.useColor(e,t)},this.isInteractive&&a.createElement(d.Z,{placement:"top-start",content:h.Z.getTooltipContent(this.props.element,e)},a.createElement("div",{className:"panel-list-colortheme-item-color-inner"}))))))}e=g()({"panel-thumbnail-disabled":this.disabled,"panel-colortheme-mosaic-view":this.props.isMosaicView,"panel-colortheme-item-color":!this.props.isMosaicView});const t=g()("panel-colortheme-container",{"panel-grid-item-contents":!(this.props.viewMode.startsWith("thumbnail")||this.props.isMosaicView),"panel-grid-item-contents-no-border-radius":this.props.viewMode.startsWith("thumbnail")||this.props.isMosaicView});return a.createElement("div",{className:t},this.swatches.map((t=>a.createElement("div",S({key:E()(),"data-test-id":"inner-swatch",className:e,style:this.getStyle(t),onClick:e=>this.useColor(t,e)},y.Z.contextMenuEventListeners((e=>this.handleContextMenu(e,t)))),a.createElement(d.Z,{className:"element-tooltip",placement:"bottom",content:b.Z.currentProduct.config.disableContentViewTooltips?void 0:h.Z.getTooltipContent(this.props.element,t)},a.createElement("div",{className:"panel-colortheme-item-color-inner"}))))))}render(){return a.createElement(p.Z,this.props,this.getColorSwatches())}}).defaultProps={viewMode:"grid",isMosaicView:!1},o.propTypes=L(L({},p.Z.propTypes),{},{isMosaicView:c().bool}),O((i=o).prototype,"disabled",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"disabled"),i.prototype),O(i.prototype,"representation",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"representation"),i.prototype),n=i))||n},51993:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n,i,o,a=r(89526),s=r(64403),c=r.n(s),l=r(50265),u=r(62631),p=r(18135),d=r(86357),h=r(47320),f=r(76485),m=r(74379),g=r(99386);function v(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 y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let _=(0,u.Pi)(((o=class extends a.Component{get disabled(){var e,t;return h.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=g.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}get style(){return(0,m.Zw)(this.props.element,this.disabled,!0,!1,f.Z.shouldConvertColor()?this.convertSingleColor:void 0)}convertSingleColor(e){return f.Z.convertSingleColor(e)}get customRenderer(){return h.Z.getCustomRenderer(this.props.element)}get gradientThumbnail(){const e=this.customRenderer;if(e)return a.createElement(e,this.props);let t="panel-gradient-item-content";return f.Z.colorProfile===m.wo.SRGB&&(t="panel-gradient-item-content-auto"),a.createElement("div",{"data-test-id":`gradient-view-${this.props.viewMode}`,style:this.style,className:t})}get gradient(){return a.createElement("div",{className:c()(`panel-${this.props.viewMode}-gradient-item-thumb`,{disabled:this.disabled})},this.gradientThumbnail)}get gradientView(){return"grid"===this.props.viewMode?a.createElement("div",{className:"panel-grid-item-contents"},this.gradient):this.gradient}render(){return this.style||this.customRenderer?a.createElement(p.Z,this.props,this.gradientView):a.createElement(d.Z,this.props)}}).defaultProps={viewMode:"grid"},o.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},p.Z.propTypes),b((i=o).prototype,"disabled",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"disabled"),i.prototype),b(i.prototype,"style",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"style"),i.prototype),n=i))||n},49004:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var n,i,o,a=r(89526),s=r(62631),c=r(18135),l=r(86357),u=r(2652),p=r.n(u),d=r(24099),h=r(50265),f=r(84824),m=r(31870),g=r(51461),v=r(30131),y=r(33275),b=r(80091);let _=(0,s.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.handleLicense=()=>{g.ZP.reportStockEvent("License","click","start",{ui:{sequence:"thumbnail"}},this.element),m.q$()?m.Zg(this.element).then((()=>{g.ZP.reportStockEvent("License","render","success",{ui:{sequence:"thumbnail"}},this.element)})).catch((()=>{g.ZP.reportStockEvent("License","render","error",{ui:{sequence:"thumbnail"}},this.element)})):v.WS(m.wq(this.element),this.element.type)}}get element(){return this.props.element}get licenseBadge(){return a.createElement(d.Z,{dataTestId:"license",icon:"ShoppingCart",tooltipContent:(0,f.Iu)("DL_STOCK_LICENSE_MENU"+m.Y8(this.element)),onClick:this.handleLicense,isDisabled:!m.q$()})}render(){return m.Jw(this.element)&&!m.kv(this.element)?this.licenseBadge:null}}).propTypes={element:p().oneOfType([p().instanceOf(y.W_),p().instanceOf(b.Z)]).isRequired},E=(i=o).prototype,w="licenseBadge",L=[h.computed],x=Object.getOwnPropertyDescriptor(i.prototype,"licenseBadge"),S=i.prototype,O={},Object.keys(x).forEach((function(e){O[e]=x[e]})),O.enumerable=!!O.enumerable,O.configurable=!!O.configurable,("value"in O||O.initializer)&&(O.writable=!0),O=L.slice().reverse().reduce((function(e,t){return t(E,w,e)||e}),O),S&&void 0!==O.initializer&&(O.value=O.initializer?O.initializer.call(S):void 0,O.initializer=void 0),void 0===O.initializer&&(Object.defineProperty(E,w,O),O=null),n=i))||n;var E,w,L,x,S,O,T,I;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 C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(){return A=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},A.apply(this,arguments)}let k=(0,s.Pi)(((I=class extends a.Component{render(){const e={viewMode:this.props.viewMode,element:this.props.element,showDetails:this.props.showDetails,gridSizeType:this.props.gridSizeType};return a.createElement(l.Z,A({},e,{listStyle:this.props.listStyle,elementBadges:[a.createElement(_,{key:"license-badge",element:this.props.element})]}),this.props.children)}}).defaultProps={viewMode:"grid"},I.propTypes=function(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){C(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}({},c.Z.propTypes),T=I))||T},90885:(e,t,r)=>{"use strict";r.d(t,{Z:()=>V});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(50265),u=r(62631),p=r(64403),d=r.n(p),h=r(47320),f=r(74379),m=r(16203),g=r(18135),v=r(31408),y=r(99386),b=r(24099),_=r(76485),E=r(84824),w=r(5849),L=r(27611),x=r(99767),S=r(24937),O=r(33275),T=r(80091);function I(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let P=(0,u.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.runTypekitAction=e=>{"sync"===e?this.typekitFont.sync(this.style,"icon",this.element):this.typekitFont.upgrade("icon",this.element)}}get element(){return this.props.element}get loadingBadge(){const e=_.Z.SmallSpinner;return a.createElement("div",{className:"element-badge-container"},a.createElement("div",{"data-test-id":"loading-badge-spinner",className:"element-badge-overlay loading-spinner"},e?a.createElement(e,null):a.createElement(w.Z,{size:"small",indeterminate:!0})))}get missingFontBadge(){return a.createElement(x.Z,{placement:"top-start",content:(0,E.Iu)("DL_FONT_MISSING_TOOLTIP")},a.createElement("div",{className:"element-badge-warning-missing","data-test-id":"font-badge-missing"},a.createElement(L.Z,{id:"MissingFontWarning",height:16})))}get activateBadge(){return a.createElement(b.Z,{dataTestId:"activate",icon:"SyncDefault",badgeSize:"small",iconHeight:10,tooltipContent:(0,E.Iu)(`DL_TYPEKIT_${this.typekitAction.toUpperCase()}_TOOLTIP`),onClick:()=>this.runTypekitAction(this.typekitAction)})}get typekitFont(){const e=this.style&&this.style.adbeFont&&this.style.adbeFont.postScriptName;return this.context.libraryManager.getTypekitFontData(e)}get isFontSyncing(){return this.typekitFont.isFontSyncing}get style(){const e=h.Z.getShortType(this.element.type),t=h.Z.findUsableRepresentation(this.element,`application/vnd.adobe.${e}+json`),r=t&&t.getValue(e,"data");return null!=r&&r.adbeFont?r:{adbeFont:r}}get isMissingFont(){return!this.context.libraryManager.isFontAvailable(this.style)}get isTypekitFont(){return!!this.typekitFont.fontId}get typekitAction(){const e=this.typekitFont.fontActions;return e&&0===e.length?"sync":e&&e.includes("upgrade")?"upgrade":void 0}render(){return this.disabled||!this.isMissingFont?null:this.typekitFont?this.typekitFont.isLoading?null:this.typekitFont.isFontSyncing?this.loadingBadge:this.typekitAction?this.activateBadge:this.missingFontBadge:this.missingFontBadge}}).contextType=S.r,o.propTypes={element:c().oneOfType([c().instanceOf(O.W_),c().instanceOf(T.Z)]).isRequired},I((i=o).prototype,"loadingBadge",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"loadingBadge"),i.prototype),I(i.prototype,"missingFontBadge",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"missingFontBadge"),i.prototype),I(i.prototype,"activateBadge",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"activateBadge"),i.prototype),I(i.prototype,"typekitFont",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"typekitFont"),i.prototype),I(i.prototype,"isFontSyncing",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"isFontSyncing"),i.prototype),n=i))||n;var C=r(61357);const A=["width"];var k,D,N,R,M;function j(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Z(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?Z(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(){return G=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},G.apply(this,arguments)}function U(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let z=(0,u.Pi)(((N=class extends a.Component{get style(){const e=h.Z.getShortType(this.props.element.type),t=h.Z.findUsableRepresentation(this.props.element,`application/vnd.adobe.${e}+json`),r=t&&t.getValue(e,"data");return this.props.element.type===y.Z.FONT_ELEMENT_TYPE?{adbeFont:r}:r}get colorStyle(){if(m.JG(this.style))return{backgroundColor:(0,f.m3)(this.style.color)}}get requiresContrastingBackground(){return m.DO(this.style)}getColorSwatch(e){if(!m.JG(this.style)||this.props.mosaicTileSize)return;const t=d()("grid"===this.props.viewMode?"panel-textstyle-color":"panel-textstyle-list-item-color",{contrast:this.requiresContrastingBackground,inline:!e});return a.createElement("div",{"data-test-id":"textstyle-color-swatch",style:this.colorStyle,className:t})}get colorSwatchOverlay(){return this.getColorSwatch(!0)}get disabled(){var e,t;return h.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=y.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}get isMissingFont(){return!this.context.libraryManager.isFontAvailable(this.style)}get isWideElement(){return this.props.gridSizeType===y.Z.GRID_TYPE_WIDE}get postScriptNameOrFamily(){return m.GD(this.style)||m.BN(this.style)}get uselivePreview(){const e=y.Z.currentProduct.config.useTextStyleThumbnails,t=y.Z.currentProduct.config.fallBackToFontLivePreview;return!e||t&&this._isMissingRendition}get _isMissingRendition(){return null===C.Z.getLocalThumbnailURL(this.props.element,"thumbnail-large"===this.props.viewMode)}getThumbnail(e){return a.createElement(v.Z,{element:this.props.element,viewMode:this.props.viewMode,overlay:this.colorSwatchOverlay,className:e,thumbnailType:this.context.viewState.thumbnailType})}get detailsLine(){const e=m.Mr(this.style);return a.createElement("div",{"data-test-id":"textstyle-font-details",className:"panel-textstyle-rendition-details"},e)}get syncFontBadge(){return!this.disabled&&a.createElement(P,{key:"sync-font-badge",element:this.props.element})}get customRenderer(){const e=h.Z.getCustomRenderer(this.props.element);if(e&&this.postScriptNameOrFamily)return a.createElement(e,this.props)}getTextStyleView({previewText:e,isCentered:t=!0,showDetailsLine:r=!1,minSize:n,maxSize:i,includeLetterSpacing:o=!0}){var s,c;const l=m.zQ(this.style,n,i,o),u=d()("panel-textstyle-rendition-container",{center:t,contrast:this.requiresContrastingBackground,"disabled-item":this.disabled,"preview-container":!!e}),p=d()("panel-textstyle-preview",{"expanded-preview":e&&(null===(s=(c=y.Z.currentProduct).isExpandedView)||void 0===s?void 0:s.call(c))});return a.createElement("div",{"data-test-id":"textstyle-font-rendition-container",className:u},a.createElement("div",{style:l,"data-test-id":"textstyle-font-rendition",className:p},e),r&&this.detailsLine)}isFont(){return this.props.element.type===y.Z.FONT_ELEMENT_TYPE}getLivePreviewText(){const e=this.props.element;return"grid"===this.props.viewMode?this.props.gridSizeType===y.Z.GRID_TYPE_WIDE?e.name:y.Z.SHORT_FONT_PREVIEW_TEXT:"thumbnail-large"===this.props.viewMode?this.props.mosaicTileSize?y.Z.SHORT_FONT_PREVIEW_TEXT:e.name:this.isListOrThumbnailViewMode?y.Z.SHORT_FONT_PREVIEW_TEXT:void 0}getLivePreviewFontSize(e){if("grid"===this.props.viewMode){if(this.props.gridSizeType===y.Z.GRID_TYPE_WIDE)return;if(this.props.gridSizeType===y.Z.GRID_TYPE_MEDIUM)return y.Z.GRID_MEDIUM_PREVIEW_FONT_SIZE;if(this.props.gridSizeType===y.Z.GRID_TYPE_LARGE)return y.Z.GRID_LARGE_PREVIEW_FONT_SIZE}if("thumbnail-large"===this.props.viewMode){if(!this.props.mosaicTileSize)return e?y.Z.ONE_UP_ELEMENT_VIEW_MAX_PREVIEW_FONT_SIZE:void 0;if("quarter"===this.props.mosaicTileSize)return y.Z.MOSAIC_VIEW_QUARTER_PREVIEW_FONT_SIZE;if("full"===this.props.mosaicTileSize)return y.Z.MOSAIC_VIEW_FULL_PREVIEW_FONT_SIZE}if(this.isListOrThumbnailViewMode)return y.Z.LIST_VIEW_PREVIEW_FONT_SIZE}get isListOrThumbnailViewMode(){return["list","thumbnail"].includes(this.props.viewMode)}get textStyleGridView(){return this.uselivePreview?this.getTextStyleView({previewText:this.getLivePreviewText(),isCentered:!this.isWideElement,showDetailsLine:this.isWideElement,maxSize:this.getLivePreviewFontSize(!0),minSize:this.getLivePreviewFontSize()}):a.createElement("div",{className:d()("panel-textstyle-rendition-container","center",{"font-thumbnail":this.isFont})},this.getThumbnail("panel-textstyle-item-img"))}get textStyleListView(){return this.uselivePreview?this.getTextStyleView({previewText:this.getLivePreviewText(),maxSize:this.getLivePreviewFontSize(!0),minSize:this.getLivePreviewFontSize(),includeLetterSpacing:!1}):this.getThumbnail("panel-list-textstyle-item-img")}render(){return a.createElement(g.Z,G({},this.props,{elementBadges:[this.syncFontBadge]}),this.isListOrThumbnailViewMode?a.createElement("div",{className:d()("panel-list-textstyle-thumb",{"disabled-item":this.disabled})},this.customRenderer||this.textStyleListView):a.createElement(a.Fragment,null,a.createElement("div",{className:`panel-${this.props.viewMode}-textstyle-thumbnail-holder`},a.createElement("div",{className:"panel-grid-textstyle-thumbnail"},this.customRenderer||this.textStyleGridView))))}}).contextType=S.r,N.defaultProps={viewMode:"grid",mosaicTileSize:void 0},N.propTypes=F(F({},g.Z.propTypes),{},{height:c().number,width:c().number,mosaicTileSize:c().oneOf(["quarter","full"])}),U((D=N).prototype,"style",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"style"),D.prototype),U(D.prototype,"colorStyle",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"colorStyle"),D.prototype),U(D.prototype,"colorSwatchOverlay",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"colorSwatchOverlay"),D.prototype),U(D.prototype,"disabled",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"disabled"),D.prototype),U(D.prototype,"uselivePreview",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"uselivePreview"),D.prototype),U(D.prototype,"_isMissingRendition",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"_isMissingRendition"),D.prototype),U(D.prototype,"syncFontBadge",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"syncFontBadge"),D.prototype),U(D.prototype,"textStyleGridView",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"textStyleGridView"),D.prototype),U(D.prototype,"textStyleListView",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"textStyleListView"),D.prototype),k=D))||k,V=(0,u.Pi)(((M=class extends a.Component{render(){const e=this.props,t=e.width,r=j(e,A),n=_.Z.AutoSizer;return!t&&n?a.createElement(n,null,(({width:e})=>a.createElement(z,G({width:e},r)))):a.createElement(z,this.props)}}).propTypes=F(F({},g.Z.propTypes),{},{height:c().number,width:c().number}),R=M))||R},86357:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(18135),u=r(31408),p=r(47320),d=r(24937);function h(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?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let g=(0,c.Pi)(((i=class extends o.Component{get thumbnail(){const e=p.Z.getCustomRenderer(this.props.element);return e?o.createElement(e,this.props):o.createElement(u.Z,{element:this.props.element,viewMode:this.props.viewMode,thumbnailType:this.context.viewState.thumbnailType})}get thumbnailContainer(){return["list","thumbnail"].includes(this.props.viewMode)?o.createElement("div",{className:"panel-list-item-thumb","img-size":""},this.thumbnail,this.props.children):o.createElement(o.Fragment,null,this.thumbnail,this.props.children)}render(){return o.createElement(l.Z,this.props,this.thumbnailContainer)}}).contextType=d.r,i.defaultProps={viewMode:"grid"},i.propTypes=f(f({},l.Z.propTypes),{},{children:s().node,height:s().number,width:s().number,elementBadges:s().arrayOf(s().node)}),n=i))||n},24099:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(64403),l=r.n(c),u=r(62631),p=r(27611),d=r(72279),h=r(99767);let f=(0,u.Pi)(((i=class extends o.Component{render(){const e=l()("element-badge-container",{disabled:this.props.isDisabled}),t=l()("element-badge-overlay",`element-badge-size-${this.props.badgeSize}`,`element-badge-${this.props.dataTestId}`);return o.createElement(h.Z,{placement:"top-start",content:this.props.tooltipContent},o.createElement("div",{className:e},o.createElement(d.Z,{"data-test-id":`element-badge-${this.props.dataTestId}-button`,className:t,onClick:this.props.onClick,size:"s"},o.createElement(p.Z,{id:this.props.icon,height:this.props.iconHeight}))))}}).propTypes={dataTestId:s().string.isRequired,icon:s().string.isRequired,onClick:s().func.isRequired,tooltipContent:s().string.isRequired,isDisabled:s().bool,iconHeight:s().number,badgeSize:s().oneOf(["small","large"])},i.defaultProps={isDisabled:!1,iconHeight:16,badgeSize:"large"},n=i))||n},31408:(e,t,r)=>{"use strict";r.d(t,{Z:()=>N});var n,i=r(89526),o=r(2652),a=r.n(o),s=r(62631),c=r(50265),l=r(64403),u=r.n(l),p=r(61357),d=r(47320),h=r(99386);let f=(0,s.Pi)(n=class extends i.Component{render(){return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",height:"128",width:"128"},i.createElement("g",null,i.createElement("path",{className:"asset-fileBackground",d:"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z"}),i.createElement("g",null,i.createElement("path",{className:"asset-fileOutline",d:"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z"}))))}})||n;var m,g,v=r(5849),y=r(27611),b=r(24937),_=r(33275),E=r(80091),w=r(99767),L=r(46903),x=r(84824),S=r(76485);let O=(0,s.Pi)(((g=class extends i.Component{constructor(...e){super(...e),this.handleClick=()=>{(0,L.Mo)(this.props.element).hasFailed&&(0,L.vF)(this.props.element)}}get tooltipText(){const e=(0,L.Mo)(this.props.element),t=e.percentDownloaded;return e.hasFailed?(0,x.Iu)("DL_LINK_DOWNLOAD_FAIL_TOOLTIP"):void 0===t?(0,x.Iu)("DL_LINK_DOWNLOAD_TOOLTIP"):(0,x.Iu)("DL_LINK_DOWNLOAD_PROGRESS_TOOLTIP",{percent:t})}getClassNames(){const e="grid"===this.props.viewMode;return u()({"panel-core-overlay-dimmed-top-right":e,"panel-core-overlay-dimmed-center":!e})}get loadingSpinner(){const e=S.Z.SmallSpinner;return e?i.createElement(e,null):i.createElement(v.Z,{size:"small",indeterminate:!0})}render(){const e=(0,L.Mo)(this.props.element),t=e.isDownloadPending,r=e.hasFailed,n=r?this.getClassNames():"panel-core-overlay-dimmed-center";return t&&i.createElement(w.Z,{placement:"top-start",content:this.tooltipText,className:"panel-core-overlay-tooltip"},i.createElement("div",{className:n,onClick:this.handleClick,"data-test-stock-sync-wrapper":"visible","data-test-id":"stock-overlay-tooltip-trigger"},!r&&i.createElement("div",{className:"panel-core-overlay-icon-syncing","data-test-stock-sync":"sync"},this.loadingSpinner),r&&i.createElement("div",{className:"panel-core-overlay-icon-warning","data-test-stock-sync":"fail"},i.createElement(y.Z,{id:"Alert",height:16}))))}}).propTypes={element:a().oneOfType([a().instanceOf(_.W_),a().instanceOf(E.Z)]).isRequired,viewMode:a().oneOf(h.Z.ELEMENT_VIEW_MODES).isRequired,listStyle:a().object},m=g))||m;var T,I,P,C,A=r(31870),k=r(16203);function D(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let N=(0,s.Pi)(((C=class extends i.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="_hasFailed",i=this,(n=P)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this._handleError=()=>{this._hasFailed=!0}}componentDidMount(){this._disposeReaction=(0,c.reaction)((()=>this._url),(()=>{this._hasFailed=!1}))}componentWillUnmount(){this._disposeReaction&&this._disposeReaction()}get _url(){return p.Z.getLocalThumbnailURL(this.props.element,"thumbnail-large"===this.props.viewMode)}get _isLoading(){return p.Z.isThumbnailLoading(this.props.element,"thumbnail-large"===this.props.viewMode)}get disabled(){return d.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")}get stockDownloadOverlay(){const e={viewMode:this.props.viewMode,element:this.props.element,showDetails:this.props.showDetails,gridSizeType:this.props.gridSizeType};return(0,A.Jw)(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")?i.createElement(O,e):null}get loadingView(){return h.Z.currentProduct.config.ghostLoading?this.ghostLoadingView:this.spinnerView}get ghostLoadingView(){return i.createElement("div",{className:"ghost-loading-wrapper"},i.createElement("div",{"data-test-id":"ghost-loading",className:"ghost-loading"},this.stockDownloadOverlay))}get spinnerView(){return i.createElement("div",{"data-test-id":"spinner",className:"loading-spinner"},i.createElement(v.Z,{size:"small",indeterminate:!0}),this.stockDownloadOverlay)}get brokenThumbnailView(){var e,t;const r=d.Z.getBackupThumbnail(this.props.element,this.props.viewMode);if(r)return r;const n=u()("panel-no-rendition-icon",{"panel-grid-icon-missing-rendition":["grid","thumbnail-large"].includes(this.props.viewMode),"panel-list-icon-missing-rendition":["list","thumbnail"].includes(this.props.viewMode)}),o=null!==(e=(t=h.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)?45:20,a=h.Z.currentProduct.config.spectrumFailedThumbnail?i.createElement(f,null):i.createElement(y.Z,{id:"CreativeCloud",height:o});return i.createElement("div",{"data-test-id":"thumbnail-failed-icon",className:`panel-no-rendition-holder-${this.props.viewMode}`},i.createElement("span",{className:n},a))}get showCheckeredBackground(){return this.context.viewState.elementBackgroundPattern===h.Z.ELEMENT_BACKGROUNDS.CHECKERED||d.Z.showCheckeredBackground(this.props.element)}get checkedBackgroundThumbnailView(){const e=u()("panel-item-img-holder","panel-thumbnail-checkered-background",{"panel-thumbnail-disabled":this.disabled});return i.createElement("div",{"data-test-id":"thumbnail-holder",className:e},i.createElement("img",{"data-test-id":"thumbnail",className:"panel-item-img",src:this._url,onError:this._handleError,crossOrigin:"anonymous"}))}get isThumbnailTiled(){return d.Z.isThumbnailTiled(this.props.element)}get tiledThumbnailView(){const e=u()("panel-item-img-holder","panel-item-tiled-thumbnail",{"panel-thumbnail-disabled":this.disabled}),t={backgroundImage:`url("${this._url.replace(/\\/g,"/")}")`};return i.createElement(i.Fragment,null,i.createElement("div",{"data-test-id":"thumbnail-holder",className:e,style:t}),this.props.overlay)}get thumbnailView(){const e=(0,k.Hb)(this.props.element),t=u()({"panel-thumbnail-disabled":this.disabled,"panel-item-img-scale":!e},this.props.className);return i.createElement(i.Fragment,null,i.createElement("img",{"data-test-id":"thumbnail",className:t,src:this._url,onError:this._handleError,crossOrigin:"anonymous"}),this.props.overlay)}render(){if(this._isLoading)return this.loadingView;if(this._hasFailed)return this.brokenThumbnailView;const e=[h.Z.AUDIO_ELEMENT_TYPE];return this._url&&!e.includes(this.props.element.type)?this.isThumbnailTiled?this.tiledThumbnailView:this.showCheckeredBackground?this.checkedBackgroundThumbnailView:this.thumbnailView:this.brokenThumbnailView}}).contextType=b.r,C.defaultProps={viewMode:"grid"},C.propTypes={element:a().oneOfType([a().instanceOf(_.W_),a().instanceOf(E.Z)]).isRequired,viewMode:a().oneOf(h.Z.ELEMENT_VIEW_MODES),thumbnailType:a().oneOf(["list","list-group","grid","grid-group"]),className:a().string,overlay:a().node,showDetails:a().oneOf(["type","none"]),gridSizeType:a().oneOf(h.Z.GRID_SIZE_TYPES)},P=D((I=C).prototype,"_hasFailed",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D(I.prototype,"_url",[c.computed],Object.getOwnPropertyDescriptor(I.prototype,"_url"),I.prototype),D(I.prototype,"_isLoading",[c.computed],Object.getOwnPropertyDescriptor(I.prototype,"_isLoading"),I.prototype),D(I.prototype,"disabled",[c.computed],Object.getOwnPropertyDescriptor(I.prototype,"disabled"),I.prototype),T=I))||T},5425:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ot});var n=r(89526),i=r(62631),o=r(24937),a=r(64403),s=r.n(a),c=r(4294),l=r(55678),u=r(96195),p=r.n(u),d=r(97598),h=r(64114),f=r(86071),m=r(94801),g=r(12252),v=r(84824),y=r(73675);const b="H6Y",_="poT",E="nB6",w="wXD",L="ag5",x="tTX",S="x62",O="Ieh",T="fdP",I="hzc";var P,C,A=r(51461);let k=(0,i.Pi)(((C=class extends n.Component{constructor(...e){super(...e),this.handleBrowseTeam=()=>{A.ZP.reportEvent("Manager","Navigation","click","browse-org"),this.context.libraryManager.openBrowseAll()},this.handleManage=()=>A.ZP.reportEvent("Manager","Navigation","click","manage"),this.handleNewLibraryClick=()=>{if(A.ZP.reportEvent("Manager","Navigation","click","new-library"),!this.context.libraryManager.publishState.isPublished)return this.context.dialogManager.openDialog("createOrPublishLibrary");this.context.libraryActions.create()},this.getSideNavItems=()=>[this.manageNavItem,!this.context.libraryManager.isRestrictedAccount&&this.browseNavItem].filter((e=>e))}get manageNavItem(){return n.createElement(l.yc,{key:"0",title:(0,v.Iu)("DL_LIBRARY_MANAGER_MANAGE"),value:"manage",onClick:this.handleManage,className:O,"data-test-id":"manager-sidenav-navigation-manage"},(0,v.Iu)("DL_LIBRARY_MANAGER_MANAGE"))}get browseNavItem(){return n.createElement(l.yc,{key:"1",title:(0,v.Iu)("DL_LIBRARY_MANAGER_BROWSE_ORG"),value:"browse",onClick:this.handleBrowseTeam,className:s()(O,T),"data-test-id":"manager-sidenav-navigation-browse-team"},(0,v.Iu)("DL_LIBRARY_MANAGER_BROWSE_ORG"))}sideNavButton({id:e,icon:t,label:r,onClick:i}){return n.createElement(p(),{className:S,"data-test-id":`manager-sidenav-action-${e}`,onClick:i,title:r,label:r,icon:t,variant:"action",quiet:!0})}render(){return n.createElement("div",{className:b},n.createElement("div",{className:_},n.createElement("div",{className:E},n.createElement(h.default,{size:"S","data-test-id":"manager-sidenav-cc-libraries-logo"}))),n.createElement(l.kw,{value:"manage",className:s()(w,L)},this.getSideNavItems()),n.createElement(c.default,{variant:"small"}),n.createElement("div",{className:s()(w,x)},this.sideNavButton({id:"create-library",icon:n.createElement(d.default,null),label:(0,v.Iu)("DL_LIBRARY_MANAGER_ACTION_CREATE_LIBRARY"),onClick:this.handleNewLibraryClick})),n.createElement("div",{className:s()(w,I)},n.createElement(m.default,{icon:n.createElement(f.default,{size:"M"}),iconOnly:!0,"data-test-id":"manager-sidenav-footer-help"},(0,y.nN)(null,this.context).map(((e,t)=>n.createElement(g.MenuItem,{key:t,onClick:()=>e.onClick(),ref:t=>this[`${e.id}Ref`]=t,"data-test-id":`manager-help-${e.id}`},(0,v.Iu)(e.label)))))))}}).contextType=o.r,P=C))||P;var D=r(50265),N=r(32817),R=r.n(N),M=r(45079),j=r(95485),Z=r(83300),F=r(2652),B=r.n(F),G=r(21504),U=r(19547),z=r(17632);const V="yXf",H="C-K",Y="tQs",W="H4a",$="cZu";var K,q,X=r(33275),J=r(6535);let Q=(0,i.Pi)(((q=class extends n.Component{constructor(...e){super(...e),this.contextMenu=e=>{const t=this.context.libraryActions.getLibraryActions(e,!1).filter((e=>!e.divider&&e.enableMenu));return n.createElement(m.default,{alignRight:!0,icon:n.createElement(U.default,null),iconOnly:!0,onSelect:e=>e.onClick(),className:$,"data-test-id":"manager-libraries-list-item-context-menu"},t.map(((e,t)=>n.createElement(g.MenuItem,{disabled:!e.enableMenu,key:t,value:e},e.label))))},this.handleLibraryToggle=e=>{const t=!this.context.libraryManager.isLibraryActive(e);A.ZP.reportEvent("Manager","Manage","click",t?"toggle-on":"toggle-off",{ui:{sequence:"toggle-single"}},e),this.context.libraryManager.setLibraryActiveState(e,t)},this.libraryItem=e=>{const t=`${e.id}${"org"===e.ownerType?"-team":""}`;return n.createElement("div",{key:t,className:H,"data-test-id":`manager-libraries-list-item-${e.id}`},n.createElement(G.default,{checked:this.context.libraryManager.isLibraryActive(e),onChange:()=>this.handleLibraryToggle(e),className:Y,"data-test-id":"manager-libraries-list-item-switch"}),n.createElement("div",{className:W,"data-test-id":"manager-libraries-list-item-info"},n.createElement(z.Z,{library:e,disableContextMenu:!0,allowNavigation:!1,allowLongDoubleClick:!1,sharingIconOnly:!1})),this.contextMenu(e))}}render(){return n.createElement("div",{className:V,"data-test-id":"manager-libraries-list"},this.props.libraries.map(this.libraryItem))}}).contextType=o.r,q.propTypes={libraries:B().arrayOf(B().oneOfType([B().instanceOf(X.Zu),B().instanceOf(J.Z)])).isRequired},K=q))||K;var ee=r(3074),te=r.n(ee),re=r(10387),ne=r.n(re),ie=r(76485);const oe="_3C",ae="cDN",se="uTg",ce="k5F",le="F9b";var ue,pe;let de=(0,i.Pi)(((pe=class extends n.Component{constructor(...e){super(...e),this.upgrade=()=>this.context.documentActions.upgradeSubscription()}get upgradeToPublishButton(){return this.button({variant:"secondary",label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE",onClick:this.upgrade,tooltip:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_TOOLTIP"})}get buttonView(){return n.createElement("div",{className:se},this.upgradeToPublishButton)}button({variant:e,label:t,onClick:r,tooltip:i}){const o=ie.Z.isWindowsOS()?s()(ce):s()(ce,e);return n.createElement("div",{className:"upgrade-section-action","data-test-id":"manager-upgrade-section-action-button"},n.createElement(te(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"],disabled:this.context.libraryManager.isOnline},n.createElement(p(),{"data-test-id":"upgrade-section-action-button",className:o,onClick:r,label:(0,v.Iu)(t),variant:e,uxpUseNative:!1}),n.createElement(ne(),{ref:e=>this.tooltipRef=e},(0,v.Iu)(i))))}render(){return n.createElement(n.Fragment,null,n.createElement("div",{className:oe,"data-test-id":"manager-upgrade-section-container"},n.createElement("span",{className:ae,title:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_BODY"),"data-test-id":"manager-upgrade-section-body"},(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_BODY")),this.buttonView),n.createElement("div",{className:le}))}}).contextType=o.r,ue=pe))||ue;var he=r(88166),fe=r.n(he),me=r(77125),ge=r(14928),ve=r(69325),ye=r(11437),be=r(46903),_e=r(5837),Ee=r(2169);const we={container:"fDm",contextMenu:"tgn",libraryName:"dDR",actions:"n0j",statusMessage:"um8",button:"q3Z",disabled:"cD9",cta:"fM3",secondary:"Ssx",wait:"vL3",statusText:"Y8P",statusIcon:"fW2",error:"_Nr"};var Le,xe,Se=r(30131);let Oe=(0,i.Pi)(((xe=class extends n.Component{constructor(...e){super(...e),this.publish=()=>this.context.documentActions.publish(this.props.assetsContainer).catch((()=>{}))}get publishState(){return this.context.libraryManager.publishState}get publishedLibrary(){return this.context.libraryManager.publishedDocumentLibrary}get syncError(){return this.publishState.syncError}get writableFolders(){return this.context.libraryManager.platformFolders&&this.context.libraryManager.platformFolders.filter((e=>e.isWritable))}get canPromote(){return!(this.publishedLibrary&&(0,be.$_)(this.publishedLibrary))&&this.writableFolders&&this.writableFolders.length>0}get canRelinkOrphans(){return!!this.context.libraryManager.orphanedLibraries.length}get documentName(){return ie.Z.documentName}update(){return A.ZP.reportEvent("Manager","Manage","click","update",{event:{count:this.props.assetsContainer.getGroups().length}},this.publishedLibrary),this.publish()}unpublish(){A.ZP.reportEvent("Manager","Manage","click","unpublish",{event:{count:this.props.assetsContainer.getGroups().length}},this.publishedLibrary),this.context.libraryActions.delete(this.publishedLibrary,!1)}share(){A.ZP.reportEvent("Manager","Manage","click","share",{},this.publishedLibrary),ie.Z.showShareSheet(this.publishedLibrary)}promote(){return this.context.libraryActions.promote(this.publishedLibrary)}relinkOrphan(){return this.context.documentActions.relinkDocumentToOrphanedLibrary(this.props.assetsContainer)}get isPublished(){return this.publishState.isPublished}get canPublish(){return this.publishState.canPublish}get canUpgrade(){return this.publishState.canUpgrade}get disabledMessage(){return{OFFLINE:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_OFFLINE"),READ_ONLY:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_READ_ONLY"),QUOTA:(0,v.Iu)("DL_OVER_QUOTA_LIBRARY_ERROR_BODY"),EMPTY:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_EMPTY"),UPGRADE:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_TOOLTIP"),MISSING_STORAGE:(0,v.Iu)("DL_SAVE_CLOUD_DOC_MESSAGE"),COEDITOR_PUBLISHING:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_COEDITOR_PUBLISHING"),MAX_ELEMENTS:(0,v.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_LIMIT_MESSAGE",{num:this.context.libraryManager.MAX_ELEMENTS})}[this.publishState.disabledStatus]}get isPendingUpdate(){return this.publishState.isPendingUpdate}get isPublishing(){return this.publishState.isPublishing}get isLibraryLoading(){return this.publishState.isLoading}get isDocumentSyncing(){return ie.Z.isSavedCloudDocument&&!ie.Z.isSyncedCloudDocument}get isLoading(){return this.isLibraryLoading||this.isPublishing||this.isDocumentSyncing}get syncErrorStatus(){if(!this.syncError)return;const e=this.context.libraryManager.errors;return this.syncError.code===e.EXCEEDS_QUOTA?(0,be.$_)(this.publishedLibrary)||(0,be.R3)(this.publishedLibrary)?this.statusMessage({icon:n.createElement(me.default,{"data-test-id":"document-library-status-error-shared-quota",className:s()(we.statusIcon,we.error),size:"S"}),label:"DL_PUBLISH_UPDATES_ERROR_MESSAGE",tooltip:"DL_PUBLISH_UPDATES_SHARED_QUOTA_ERROR_BODY"}):this.statusMessage({icon:n.createElement(me.default,{"data-test-id":"document-library-status-error-quota",className:s()(we.statusIcon,we.error),size:"S"}),label:"DL_PUBLISH_UPDATES_QUOTA_ERROR_MESSAGE",tooltip:"DL_PUBLISH_UPDATES_QUOTA_ERROR_BODY",onClick:()=>(0,Se.tD)()}):this.statusMessage({icon:n.createElement(me.default,{"data-test-id":"document-library-status-error-generic",className:s()(we.statusIcon,we.error),size:"S"}),label:"DL_PUBLISH_UPDATES_ERROR_MESSAGE",tooltip:"DL_PUBLISH_UPDATES_GENERAL_SYNC_ERROR"})}get syncingStatus(){if(!this.isPublished)return;if(this.syncError)return this.syncErrorStatus;if(!this.context.libraryManager.isOnline)return this.statusMessage({icon:n.createElement(ve.default,{"data-test-id":"document-library-status-offline",className:s()(we.statusIcon),size:"S"}),label:"DL_PUBLISH_UPDATES_OFFLINE_ERROR_MESSAGE",tooltip:"DL_PUBLISH_UPDATES_OFFLINE_ERROR_BODY"});const e=this.publishedLibrary.syncProgress;if(!e||100===e)return;const t="DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_PUBLISHING_PROGRESS";return this.statusMessage({icon:n.createElement(fe(),{variant:"determinate",indeterminate:!1,value:e,"data-test-id":"document-library-status-loading",className:we.wait,size:"S"}),label:(0,v.Iu)(t,{percent:e}),style:{minWidth:(0,Ee.E0)((0,v.Iu)(t,{percent:100}),we.statusMessage).width}})}get loadingStatus(){if(!this.isLoading)return;let e;return e=this.isLibraryLoading?"DL_LOADING":this.isDocumentSyncing?"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_SAVING":"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_PUBLISHING",this.statusMessage({icon:n.createElement(fe(),{"data-test-id":"document-library-status-loading",size:"S"}),label:e,style:we.statusText})}statusMessage({icon:e,label:t,tooltip:r,style:i,onClick:o}){return n.createElement(n.Fragment,null,n.createElement(te(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"],disabled:!r},n.createElement("div",{className:we.statusMessage,"data-test-id":"document-library-status-message"},e,t&&n.createElement(_e.Z,{html:(0,v.Iu)(t),className:i,onClick:o})),n.createElement(ne(),{ref:e=>this.tooltipRef=e},(0,v.Iu)(r))))}button({id:e,variant:t,label:r,onClick:i}){let o=this.canPublish||!this.disabledMessage;this.canUpgrade&&(o=this.canPublish&&"share"===e);const a=ie.Z.isWindowsOS()?s()(we.button):s()(we.button,we[t||"cta"],{[we.disabled]:!this.canPublish});return n.createElement(te(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"],disabled:o},n.createElement(p(),{className:a,disabled:!this.canPublish||this.canUpgrade&&"share"!==e,onClick:()=>i(),label:(0,v.Iu)(r),variant:t||"cta",uxpUseNative:!1,"data-test-id":`manager-document-library-action-${e}`}),n.createElement(ne(),{ref:e=>this.tooltipRef=e},this.disabledMessage))}get pushLibraryButton(){if(!this.isPublished)return this.button({id:"publish",label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_PUBLISH",onClick:this.publish});if(this.isPendingUpdate){if(this.syncError)return;return this.button({id:"update",label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPDATE",onClick:()=>this.update()})}return this.statusMessage({icon:n.createElement(ge.default,{"data-test-id":"document-library-status-up-to-date",className:we.statusIcon,size:"S"}),label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UP_TO_DATE"})}get shareLibraryButton(){if(this.isPublished&&!this.isLoading)return this.button({id:"share",variant:"secondary",label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_SHARE",onClick:()=>this.share()})}get actionsView(){const e=this.pushLibraryButton,t=this.shareLibraryButton,r=this.loadingStatus,i=this.syncingStatus;return n.createElement("div",{className:we.actions},t,this.isPendingUpdate?n.createElement(n.Fragment,null,e,i):r||i||e)}get contextMenu(){const e=!this.isPublished&&!this.canRelinkOrphans||this.isLoading;return n.createElement(m.default,{disabled:!this.canPublish,icon:n.createElement(U.default,null),iconOnly:!0,className:s()(we.contextMenu,{[we.disabled]:e}),"data-test-id":"manager-document-library-context-menu"},this.isPublished?n.createElement(g.MenuItem,{onClick:()=>this.unpublish(),"data-test-id":"manager-document-library-context-menu-action-unpublish",ref:e=>this.unpublishRef=e},(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UNPUBLISH")):n.createElement("div",null),this.isPublished&&this.canPromote?n.createElement(g.MenuItem,{onClick:()=>this.promote(),"data-test-id":"manager-document-library-context-menu-action-promote",ref:e=>this.promoteRef=e},(0,v.Iu)("DL_FLYOUT_PROMOTE_LIB")):n.createElement("div",null),this.canRelinkOrphans?n.createElement(g.MenuItem,{onClick:()=>this.relinkOrphan(),"data-test-id":"manager-document-library-context-menu-action-relink",ref:e=>this.relinkRef=e},(0,v.Iu)("DL_FLYOUT_RELINK_LIB")):n.createElement("div",null))}render(){return n.createElement("div",{className:we.container},n.createElement("span",{className:we.libraryName,title:this.documentName,"data-test-id":"document-library-name"},this.documentName),this.actionsView,this.contextMenu)}}).contextType=o.r,xe.propTypes={assetsContainer:B().instanceOf(ye.Z)},Le=xe))||Le;var Te=r(27611);const Ie="s2a",Pe="gD9",Ce="yXj",Ae="XTa",ke="tfh",De="L9h",Ne="b98",Re="Bb5",Me="c2k",je="wHC",Ze="E-W";var Fe,Be,Ge=r(97536);let Ue=(0,i.Pi)(((Be=class extends n.Component{constructor(...e){super(...e),this.handleMenuSelection=e=>{const t="showAll"===e;this.context.libraryManager.setLibrariesActiveState(this.context.libraryManager.libraries,t),this.context.libraryManager.libraries.forEach((e=>{A.ZP.reportEvent("Manager","Manage","click",t?"toggle-on":"toggle-off",{ui:{sequence:"toggle-all"}},e)}))},this.handleSearchChange=e=>{A.ZP.reportEvent("Manager","Search","input","search"),this.context.viewState.setSearchText(e)},this.managerSection=(e,{localeKey:t,localeParams:r},i)=>{"search-results"===e&&A.ZP.reportEvent("Manager","Search","render","results");let o=Re;return"upgrade-workflow"===e&&(o=je),n.createElement("div",{className:o,"data-test-id":`manager-content-section-${e}`},n.createElement(M.default,{className:Me,variant:"subtitle3","data-test-id":`manager-content-section-${e}-title`},(0,v.Iu)(t,r).toLocaleUpperCase(ie.Z.getLocale())),i)}}componentDidMount(){(0,D.autorun)((()=>{this.context.libraryManager.loaded&&(0,Ge.cb)(this.context)}))}get showSearch(){return this.searchText.length>0}get showUpgradeView(){return this.context.viewState.isUpgradeView}get searchText(){return this.context.viewState.searchText}get libraries(){return this.context.viewState.filteredLibraries}get header(){return n.createElement("div",{className:Pe},n.createElement("div",{className:Ce,"data-test-id":"manager-content-header"},n.createElement(M.default,{variant:"subtitle1","data-test-id":"manager-content-title"},(0,v.Iu)("DL_LIBRARY_MANAGER_TITLE")),n.createElement("div",{className:Ae},n.createElement(R(),{onChange:this.handleSearchChange,placeholder:(0,v.Iu)("DL_LIBRARY_MANAGER_SEARCH_INPUT_PLACEHOLDER"),className:Ne,"data-test-id":"manager-content-search"}),n.createElement(m.default,{alignRight:!0,icon:n.createElement(Z.Z,null),iconOnly:!0,className:ke,"data-test-id":"manager-content-context-menu"},n.createElement(g.MenuItem,{onClick:()=>this.handleMenuSelection("showAll"),"data-test-id":"manager-content-context-menu-action-show-all",ref:e=>this.showAllRef=e},(0,v.Iu)("DL_LIBRARY_MANAGER_ACTION_SHOW_ALL")),n.createElement(g.MenuItem,{onClick:()=>this.handleMenuSelection("hideAll"),"data-test-id":"manager-content-context-menu-action-hide-all",ref:e=>this.hideAllRef=e},(0,v.Iu)("DL_LIBRARY_MANAGER_ACTION_HIDE_ALL"))))),n.createElement(c.default,{variant:"small"}))}get searchView(){return this.libraries.length>0?n.createElement(Q,{libraries:this.libraries,"data-test-id":"manager-content-search-results-list"}):n.createElement(j.default,{"data-test-id":"manager-content-no-search-results-illustration",className:Ze,heading:(0,v.Iu)("DL_LIBRARY_MANAGER_SEARCH_EMPTY_HEADING"),description:n.createElement(_e.Z,{html:(0,v.Iu)("DL_LIBRARY_MANAGER_SEARCH_EMPTY_DESCRIPTION",{searchText:this.searchText}),"data-test-id":"no-search-result-message"}),illustration:n.createElement(Te.Z,{id:"NoSearchResults",height:100})})}get documentLibraryView(){if(this.context.libraryManager.documentAssetsContainer&&!this.context.libraryManager.isRestrictedAccount)return n.createElement(n.Fragment,null,this.managerSection("current-file",{localeKey:"DL_LIBRARY_MANAGER_SECTION_CURRENT_FILE"},n.createElement(Oe,{assetsContainer:this.context.libraryManager.documentAssetsContainer,"data-test-id":"manager-content-document-library"})),n.createElement(c.default,{variant:"small"}))}get allLibrariesView(){return this.managerSection("all-libraries",{localeKey:"DL_LIBRARY_MANAGER_SECTION_ALL_LIBRARIES"},n.createElement(Q,{libraries:this.libraries,"data-test-id":"manager-content-section-all-libraries-list"}))}get upgradeView(){return this.context.libraryManager.documentAssetsContainer&&!this.context.libraryManager.isRestrictedAccount&&this.showUpgradeView?this.managerSection("upgrade-workflow",{localeKey:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_TITLE"},n.createElement(de,{"data-test-id":"manager-content-section-upgrade"})):null}get searchResultsView(){return this.managerSection("search-results",{localeKey:1===this.libraries.length?"DL_SEARCH_RESULT":"DL_SEARCH_RESULTS",localeParams:{count:this.libraries.length}},this.searchView)}render(){return n.createElement("div",{className:Ie},this.header,n.createElement("div",{className:De},this.showSearch?this.searchResultsView:n.createElement(n.Fragment,null,this.documentLibraryView,this.upgradeView,this.allLibrariesView)))}}).contextType=o.r,Fe=Be))||Fe;var ze,Ve,He=r(89910),Ye=r.n(He);let We=(0,i.Pi)(((Ve=class extends n.Component{constructor(...e){super(...e),this.closeDialog=()=>{this.context.dialogManager.closeDialog()}}get dialog(){return this.context.dialogManager.dialog}get dialogName(){return this.context.dialogManager.dialogName}get isTour(){return this.context.dialogManager.isTour}render(){return this.dialog?n.createElement("div",{className:s()("spectrum-Underlay","is-open",{"is-tour":this.isTour}),onClick:this.closeDialog},n.createElement("div",{onClick:e=>e.stopPropagation()},n.createElement(Ye(),{className:`manager-dialog-${this.dialogName}`},this.dialog))):null}}).contextType=o.r,ze=Ve))||ze;var $e,Ke,qe=r(48767),Xe=r(25585);let Je=(0,i.Pi)(((Ke=class extends n.Component{constructor(...e){super(...e),this.onClose=()=>this.context.toastManager.closeToast()}get toast(){return this.context.toastManager.toastData}get variant(){return this.toast&&this.toast.variant}get message(){return this.toast&&this.toast.message}get duration(){return(0,Xe.E4)(this.message)}render(){return this.toast?(setTimeout(this.onClose,this.duration),n.createElement("div",{className:"react-spectrum-ToastContainer react-spectrum-ToastContainer--bottom-center"},n.createElement(qe.ZP,{variant:this.variant,closable:!0,onClose:this.onClose},this.message))):null}}).contextType=o.r,$e=Ke))||$e;var Qe=r(48919);const et="rc4",tt="iLu",rt="E0n";var nt;const it=e=>e.preventDefault();let ot=(0,i.Pi)(nt=class extends n.Component{render(){return n.createElement(o.o,{value:Qe.Z.manager,style:{fontFamily:"inherit"}},n.createElement("div",{id:"manager-root",className:"manager-root body",acceptsFirstPointer:"all"},n.createElement("div",{className:et,"data-test-id":"manager-container",onDragOverCapture:it,onDropCapture:it},n.createElement("div",{className:tt,"data-test-id":"manager-sidenav-container"},n.createElement(k,null)),n.createElement("div",{className:rt,"data-test-id":"manager-content-container"},n.createElement(Ue,null)),n.createElement(Je,null),n.createElement(We,null))))}})||nt},95372:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n,i,o=r(89526),a=r(62631),s=r(72279),c=r(84824),l=r(51461),u=r(27611),p=r(2652),d=r.n(p),h=r(99386),f=r(24937),m=r(10440),g=r(53849),v=r(64403),y=r.n(v);let b=(0,a.Pi)(((i=class extends o.Component{constructor(...e){super(...e),this.onClickButton=e=>{e.stopPropagation(),l.ZP.setExtraEventMetrics("createGroup",{content:{category:"Group Button"}});const t=this.props.disableEmptySubgroups?[]:m.Z.groupSelection,r=g.Z.selection,n=!t.length&&r.length?r:t;this.context.groupActions.createGroupFromSet(n)}}get isVisible(){return this.context.libraryManager.currentLibrary&&!this.context.libraryManager.currentLibrary.isDeletedFromServer}get isDisabled(){return this.context.viewState.isSearchMode()||this.props.disabled}get hasSelection(){return m.Z.groupSelection.length||g.Z.selection.length}get buttonNode(){const e=this.props.showLabel?"AddCircle":"Folder",t=this.props.showLabel&&o.createElement("span",{"data-test-id":"create-group-button-label",className:"create-group-button-text"},(0,c.Iu)("DL_ADD_GROUP")),r=(0,c.Iu)(this.hasSelection?"DL_GROUP_TOGETHER":"DL_NEW_GROUP");return this.isVisible?o.createElement(s.Z,{className:y()("create-group-button",{"svg-disabled":this.props.disabled}),"data-test-id":"create-group-button",tooltip:h.Z.currentProduct.config.disableContentViewTooltips?void 0:r,disabled:this.isDisabled,onClick:this.onClickButton},o.createElement(u.Z,{id:e,height:18,onClick:this.handleAddLibrary}),t):null}render(){return this.buttonNode}}).contextType=f.r,i.defaultProps={showLabel:!1,disabled:!1,disableEmptySubgroups:!1},i.contextType=f.r,i.propTypes={showLabel:d().bool,disabled:d().bool,disableEmptySubgroups:d().bool},n=i))||n},68548:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n,i,o,a,s=r(89526),c=r(2652),l=r.n(c),u=r(64403),p=r.n(u),d=r(62631),h=r(50265),f=r(84824),m=r(51461),g=r(99767),v=r(27611),y=r(37642),b=r(24937),_=r(46903),E=r(99386),w=r(72279);function L(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const x={ok:"SyncDefault",working:"Syncing",syncing:"Syncing",loading:"Syncing",warning:"SyncAlert",error:"SyncError"};let S=(0,d.Pi)(((a=class extends s.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="isMouseDown",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.onMouseUp=()=>{this.isMouseDown=!1,this.shouldShowInfoViewOnMouseDown},this.onMouseDown=()=>{this.isMouseDown=!0,this.shouldShowInfoViewOnMouseDown},this.onClick=e=>{m.ZP.reportEvent("Navigation","Library Panel","click","sync-state"),e.stopPropagation(),this.isSyncDisabled?this.context.dialogManager.openDialog("enableSyncPopup"):this.isOwnedQuotaError||this.isSharedQuotaError?this.context.dialogManager.openDialog("overQuotaError",{errorType:this.isOwnedQuotaError?"owned":"shared"}):this.context.libraryManager.sync()}}get syncStatus(){return this.context.libraryManager.syncStatus}get isSyncDisabled(){return"error"===this.syncStatus.state&&"syncDisabled"===this.syncStatus.errorType}get isOwnedQuotaError(){return"error"===this.syncStatus.state&&"quota"===this.syncStatus.errorType}get isSharedQuotaError(){return"error"===this.syncStatus.state&&"sharedQuota"===this.syncStatus.errorType}get quotaErrorLibraries(){return this.isOwnedQuotaError?(0,_.Iu)():(0,_.cm)()}get shouldShowInfoViewOnMouseDown(){var e;return!(null!==(e=E.Z.currentProduct.config)&&void 0!==e&&e.disableSyncStatusText||this.isSyncDisabled||this.isOwnedQuotaError||this.isSharedQuotaError)}get syncingLibrariesProgress(){if(0===this.syncStatus.syncingLibraries.length)return[(0,f.Iu)("DL_SYNC_PROGRESS")];const e=[(0,f.Iu)("DL_SYNC_PROGRESS_NUM_LIBRARIES",{number:this.syncStatus.syncingLibraries.length})],t=this.syncStatus.syncingLibraries.map((e=>{if(e.progress){if(e.truncatedName){const t={percent:e.progress,name:e.truncatedName};return"uploading"===e.state?(0,f.Iu)("DL_UPLOAD_LIBRARY_PERCENT",t):(0,f.Iu)("DL_DOWNLOAD_LIBRARY_PERCENT",t)}return(0,f.Iu)("DL_DOWNLOAD_NEW_LIBRARY_PERCENT",{percent:e.progress})}}));return e.concat(t).filter((e=>e))}get messageContent(){return"ok"===this.syncStatus.state?[(0,f.Iu)("DL_SYNC_OK")]:"working"===this.syncStatus.state?[(0,f.Iu)("DL_SYNC_PROGRESS")]:"syncing"===this.syncStatus.state?this.syncingLibrariesProgress:"error"===this.syncStatus.state?[y.yN(this.syncStatus),this.syncStatus.retryDuration&&(0,f.Iu)("DL_SYNC_RETRY",{duration:this.syncStatus.retryDuration})]:[]}get infoView(){return this.shouldShowInfoViewOnMouseDown&&this.isMouseDown?s.createElement("div",{"data-test-id":"panel-sync-message",className:"panel-sync-message-container"},s.createElement("div",{className:"panel-sync-message"},this.messageContent.map(((e,t)=>s.createElement("div",{key:t.toString()},e))))):null}get iconView(){let e=x[this.syncStatus.state];"loggedOut"!==this.syncStatus.errorType&&"syncDisabled"!==this.syncStatus.errorType||(e=x.warning);const t=p()("sync-button",`panel-footer-icon-${this.syncStatus.state}`);return s.createElement(w.Z,{variant:"action",quiet:!0,"data-test-id":"sync-button",className:t,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseUp,onClick:this.onClick},e&&s.createElement(v.Z,{height:this.props.height,id:e,key:e}))}render(){return s.createElement(g.Z,{placement:"top-start",content:this.messageContent,disable:Boolean(this.popup)},this.iconView,this.infoView)}}).contextType=b.r,a.propTypes={height:l().number},a.defaultProps={height:16},o=L((i=a).prototype,"isMouseDown",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),L(i.prototype,"syncStatus",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"syncStatus"),i.prototype),L(i.prototype,"isSyncDisabled",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"isSyncDisabled"),i.prototype),L(i.prototype,"isOwnedQuotaError",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"isOwnedQuotaError"),i.prototype),L(i.prototype,"isSharedQuotaError",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"isSharedQuotaError"),i.prototype),L(i.prototype,"syncingLibrariesProgress",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"syncingLibrariesProgress"),i.prototype),L(i.prototype,"messageContent",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"messageContent"),i.prototype),L(i.prototype,"infoView",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"infoView"),i.prototype),L(i.prototype,"iconView",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"iconView"),i.prototype),n=i))||n},43616:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n,i,o,a,s,c,l,u,p,d=r(89526),h=r(2652),f=r.n(h),m=r(64403),g=r.n(m),v=r(50265),y=r(62631),b=r(85080),_=r(27611),E=r(76485),w=r(2169),L=r(99767),x=r(84824),S=r(99386);function O(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 T(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 I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let C=(n=v.observable.ref,i=v.observable.ref,o=v.observable.ref,(0,y.Pi)(((p=class extends d.Component{constructor(...e){super(...e),this.overlayState=new b.Z(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({isOpen:this.props.open,ignoreAllEvents:this._controlled},this.props.dropdownOptions)),O(this,"_menuElement",c,this),O(this,"_menuElement",l,this),this.onKeyNavOnDropDownItem=e=>{e.key&&e.stopPropagation();const t=document.activeElement.shadowRoot.activeElement;if("ArrowDown"===e.key){const e=this._getSiblingNodeForFocus(t.nextSibling,!0);null!==e&&e.focus()}else if("ArrowUp"===e.key){const e=this._getSiblingNodeForFocus(t.previousSibling);null!==e&&e.focus()}else"Escape"===e.key&&this.onClickDropDown(e)},this._getSiblingNodeForFocus=(e,t)=>{for(;null!==e&&null===e.getAttribute("tabIndex");)e=t?e.nextSibling:e.previousSibling;return e},this.onClickDropDown=e=>{if(!this.props.disabled&&!this.props.noDropdown){this.props.onClickLabel&&this.props.onClickLabel();const t=(0,w.j6)(e);t&&t.blur(),this._controlled||this.overlayState.toggleOverlay(),e.stopPropagation()}},this.onItemKeyPress=(e,t)=>{"Enter"===e.key&&t.onClick(e)},this.onDropdownKeyPress=e=>{"Enter"===e.key&&this.onClickDropDown(e)},this.onClickDelete=(e,t)=>{e.stopPropagation(),e.preventDefault(),t.onClickDelete(e)},O(this,"wrappedLabelRef",u,this),this.setWrappedLabelRef=e=>{this.wrappedLabelRef=e},this._setParentElement=e=>{this._parentElement=e,this.overlayState.setParentElement(e)},this._setMenuAlignmentClass=e=>{e&&(e.className+=` dropdown-align-${this.getMenuAlignment()}`)},this._setMenuElement=e=>{this._menuElement=e},this.handleClickButton=e=>{e.stopPropagation()}}componentWillUnmount(){var e;null===(e=this._parentElement)||void 0===e||e.removeEventListener("keydown",this.onKeyNavOnDropDownItem),this.overlayState.hideOverlay()}componentDidUpdate(){this.props.disabled&&this.overlayState.hideOverlay()}componentDidMount(){var e;null===(e=this._parentElement)||void 0===e||e.addEventListener("keydown",this.onKeyNavOnDropDownItem)}get _controlled(){return void 0!==this.props.open}menuItem(e){var t;const r=null!==(t=S.Z.currentProduct.config.defaultCheckMark)&&void 0!==t?t:"Checkmark",n=e.isSelected?{icon:r}:{},i=e.iconId?{icon:e.iconId}:n,o=g()("panel-select-menu-item",e.className,{"is-selected":e.isSelected,disabled:e.disabled});if(e.divider)return d.createElement("div",{"data-test-id":"panel-dropdown-menu-divider",key:e.key,className:"panel-menu-subdivider"});if(e.isTitle){const t=this.disableUpperCaseTitle?e.label:e.label.toLocaleUpperCase(E.Z.getLocale());return d.createElement("div",{className:"panel-select-menu-header",key:e.key,"data-test-id":"panel-dropdown-menu-subtitle"},t)}return d.createElement("div",{key:e.key,className:o,onClick:e.disabled?()=>{}:e.onClick,onMouseOver:e.onMouseOver,onFocus:e.onFocus,tabIndex:"0",onKeyPress:t=>this.onItemKeyPress(t,e),"data-test-id":`panel-dropdown-menu-item-${e.key}`},e.onClickDelete&&d.createElement(L.Z,{content:(0,x.Iu)("DL_LIBRARY_LIST_FILTER_UNLINK_SOURCE_TOOLTIP")},d.createElement("div",{"data-test-id":"panel-dropdown-menu-item-remove",className:"panel-menu-remove-icon",onClick:t=>this.onClickDelete(t,e)},d.createElement(_.Z,{id:"Close",height:18,className:"left-align-correction"}))),d.createElement("div",{"data-test-id":"panel-dropdown-menu-item-text",className:"panel-menu-label"},e.label),d.createElement("div",{"data-test-id":"panel-dropdown-menu-item-icon",className:"panel-menu-icon"},i.icon?d.createElement(_.Z,{className:e.iconClassName,id:i.icon,height:12}):null))}get disableUpperCaseTitle(){return S.Z.currentProduct.config.lowercaseMenuTitles||this.props.disableUpperCaseTitle}get title(){if(this.props.title)return this.disableUpperCaseTitle?this.props.title:this.props.title.toLocaleUpperCase(E.Z.getLocale())}get menu(){return d.createElement("div",{"data-test-id":"panel-dropdown-menu",className:"panel-dropdown-menu",ref:this._setMenuAlignmentClass},d.createElement("div",{"data-test-id":"panel-dropdown-menu-list",style:this.menuListStyle},this.title&&d.createElement("div",{className:"panel-select-menu-header","data-test-id":"panel-dropdown-menu-title"},this.title),this.props.data.map((e=>this.menuItem(e))),this.props.footer))}get isStringLabel(){return"string"==typeof this.props.currentLabel}get currentLabel(){return this.props.currentLabel?this.isStringLabel||this.props.wrapCustomLabel?d.createElement("div",{className:"panel-dropdown-name",ref:this.setWrappedLabelRef},this.props.icon&&d.createElement("div",{"data-test-id":"panel-dropdown-menu-item-type-icon",className:"panel-menu-icon panel-menu-icon-type"},d.createElement(_.Z,{id:this.props.icon,height:18})),d.createElement("div",{"data-test-id":"panel-dropdown-name",className:"panel-select-menu-label"},this.props.currentLabel),!this.props.noDropdown&&d.createElement("div",{className:"panel-menu-icon"},d.createElement(_.Z,{id:"ChevronDownSmall",height:S.Z.currentProduct.config.dropdownChevronHeight||8}))):this.props.currentLabel:null}getMenuAlignment(){if(!this._parentElement)return this.props.align;const e=E.Z.getAdjustedBoundingClientRect?E.Z.getAdjustedBoundingClientRect(this._parentElement):this._parentElement.getBoundingClientRect();if(E.Z.getPanelWidth()<=e.x+180){return e.x<E.Z.getPanelWidth()-e.x?"left":"right"}return e.x-180<=0?"left":this.props.align}get menuListStyle(){const e=E.Z.getAdjustedBoundingClientRect?E.Z.getAdjustedBoundingClientRect(this._parentElement):this._parentElement&&this._parentElement.getBoundingClientRect(),t=e&&e.bottom,r=Math.min(E.Z.getPanelHeight()-t,350);return{maxHeight:`${this.props.maxHeight||22*Math.floor(r/22)}px`,overflow:"auto"}}get menuContainerStyle(){var e;if(!this._menuElement)return;const t=this._menuElement.getBoundingClientRect(),r=null!==(e=null==t?void 0:t.right)&&void 0!==e?e:0,n=E.Z.getPanelWidth()-r;return n<0?{left:`${n}px`}:void 0}get isOpen(){return this._controlled?this.props.open:this.overlayState.isOpen}get currentLabelRef(){return this.isStringLabel||this.props.wrapCustomLabel||!this.props.customLabelRef?this.wrappedLabelRef:this.props.customLabelRef}render(){const e=this.props.tooltip?d.createElement(L.Z,{content:this.props.tooltip},this.currentLabel):this.currentLabel,t=g()("panel-select","panel-dropdown",this.props.className,{disabled:this.props.disabled,"panel-custom-label-dropdown":!this.isStringLabel&&!this.props.wrapCustomLabel}),r=this.isStringLabel||this.props.wrapCustomLabel?"0":null;return d.createElement("div",{tabIndex:r,onKeyPress:this.onDropdownKeyPress,"data-test-id":`${this.props.type}-dropdown`,className:t,onClick:this.onClickDropDown,ref:this._setParentElement},e,this.isOpen&&this.menu)}}).defaultProps={disabled:!1,noDropdown:!1,align:"left"},p.propTypes={wrapCustomLabel:f().bool,dropdownOptions:f().object,customLabelRef:f().shape({current:f().instanceOf(Element)}),currentLabel:f().oneOfType([f().string,f().node]),type:f().string.isRequired,title:f().string,className:f().string,data:f().arrayOf(f().object).isRequired,disabled:f().bool,open:f().bool,icon:f().string,noDropdown:f().bool,tooltip:f().string,onClickLabel:f().func,footer:f().node,maxHeight:f().number,disableUpperCaseTitle:f().bool,align:f().oneOf(["left","right"]),locationBasedOnLabel:f().bool},c=P((s=p).prototype,"_menuElement",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=P(s.prototype,"_menuElement",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(s.prototype,"menu",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"menu"),s.prototype),u=P(s.prototype,"wrappedLabelRef",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(s.prototype,"menuContainerStyle",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"menuContainerStyle"),s.prototype),a=s))||a)},37800:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(62631),u=r(50265),p=r(64403),d=r.n(p),h=r(84824),f=r(43616),m=r(27611),g=r(72279),v=r(24937),y=r(51461),b=r(99386),_=r(85080);function E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let w=(0,l.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.overlayState=new _.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleSortBySelection=e=>{this.context.viewState[{libraries:"setLibrarySortState",elements:this.isSearchMode?"setElementSearchSort":"setElementSortState"}[this.props.mode]].bind(this.context.viewState)(e),this.props.onSortChange&&this.props.onSortChange(e),y.ZP.reportEvent("Navigation","Library Panel","click","sort-change",{content:{type:"libraries"===this.props.mode?"library":"element"}},"libraries"!==this.props.mode&&this.context.libraryManager.currentLibrary)},this.handleSortOrderToggle=()=>{this.context.viewState[{libraries:"setLibrarySortOrderDescendingState",elements:"setElementSortDescendingState"}[this.props.mode]].bind(this.context.viewState)(!this.sortOrderDescending),y.ZP.reportEvent("Navigation","Library Panel","click","sort-change",null,this.context.libraryManager.currentLibrary)},this.handleViewBySelection=e=>{this.context.viewState.setViewByState(e),y.ZP.reportEvent("Navigation","Library Panel","click","filter-change",null,this.context.libraryManager.currentLibrary)},this.handleClick=()=>{this.overlayState.toggleOverlay()},this.setCustomLabelRef=e=>{this.customLabelRef=e}}get library(){return this.context.libraryManager.currentLibrary}get isSearchMode(){return this.context.viewState.isSearchMode()}get sortState(){return this.context.viewState[{libraries:"librarySortState",elements:this.isSearchMode?"elementSearchSort":"elementSortState"}[this.props.mode]]}get sortOrderDescending(){return this.context.viewState[{libraries:"librarySortOrderDescendingState",elements:"elementSortDescendingState"}[this.props.mode]]}get sortOptions(){return this.context.viewState[{libraries:"getLibrariesSearchSortOptions",elements:this.isSearchMode?"getElementSearchSortOptions":"getElementSortOptions"}[this.props.mode]]()}get sortTooltip(){var e,t;return null!==(e=(t=b.Z.currentProduct).isExpandedBrandsView)&&void 0!==e&&e.call(t)?(0,h.Iu)("BRAND_SORT_TOOLTIP"):(0,h.Iu)("DL_SORT_TOOLTIP")}get viewByState(){return this.context.viewState.viewByState}get alwaysShowSortIcon(){return!!this.context.viewState.isStockSearchMode()||!this.context.viewState.isRootView()&&"group"===this.viewByState}get sortControlLabel(){const e=this.sortOrderDescending?"Sort":"SortDescending";return a.createElement("div",{"data-test-id":"sort-dropdown-order-control-label",className:"sort-dropdown-order-control-label"},a.createElement(m.Z,{className:"sort-icon",id:e,height:12}),a.createElement("div",null,(0,h.Iu)("DL_SORT_REVERSE_ORDER")))}get groupByOptions(){return this.context.viewState.getViewByStateOptions().map((e=>({key:e,label:(0,h.Iu)(`DL_VIEW_BY_${e.toUpperCase()}_SHORT`),onClick:()=>this.handleViewBySelection(e),isSelected:this.viewByState===e})))}get sortByOptions(){const e=this.sortOptions.map((e=>({label:(0,h.Iu)("DL_SEARCH_SORT_BY_OPTION_"+e.toUpperCase()),onClick:()=>this.handleSortBySelection(e),isSelected:this.sortState===e,key:e})));return this.props.sortOrderControl&&("group"===this.viewByState&&"name"===this.sortState||this.context.viewState.isRootView()||"group"!==this.viewByState)&&e.push({divider:!0,key:"divider-1"},{label:this.sortControlLabel,id:this.sortOrderDescending?"sortOrderDescending":"sortOrderAscending",onClick:this.handleSortOrderToggle,isSelected:!1,key:"sort-order"}),b.Z.currentProduct.customSortOptions?b.Z.currentProduct.customSortOptions(e):e}get menuData(){const e=[{isTitle:!0,key:"groupBy",label:(0,h.Iu)("DL_GROUP_BY_TITLE")},...this.groupByOptions],t=[{isTitle:!0,key:"sortBy",label:(0,h.Iu)("DL_SORT_BY_TITLE")},...this.sortByOptions];return"elements"!==this.props.mode||this.isSearchMode||this.props.hideGroupBy?t:[...e,{divider:!0,key:"divider-2"},...t]}get labelIcon(){const e=b.Z.currentProduct.config.iconHeight||16,t=b.Z.currentProduct.config.iconWidth||16,r=this.sortOrderDescending&&!this.alwaysShowSortIcon?"SortDescending":"Sort";return a.createElement("div",{ref:this.setCustomLabelRef},a.createElement(g.Z,{selected:this.overlayState.isOpen,quiet:!0,variant:"action","data-test-id":"sort-dropdown-button","aria-label":this.sortTooltip,className:d()("view-toggle-button",{"is-disabled":this.props.disabled,selected:this.overlayState.isOpen}),onClick:this.handleClick},a.createElement(m.Z,{className:"sort-icon","data-test-id":"panel-dropdown-icon",id:r,height:e,width:t})))}render(){return a.createElement(f.Z,{tooltip:this.sortTooltip,disabled:this.props.disabled,data:this.menuData,className:d()("panel-sort-dropdown"),type:"sort",currentLabel:this.labelIcon,locationBasedOnLabel:!0,customLabelRef:this.customLabelRef,align:"right"})}}).contextType=v.r,o.propTypes={mode:c().oneOf(["elements","libraries"]),sortOrderControl:c().bool,onSortChange:c().func,hideGroupBy:c().bool,disabled:c().bool},o.defaultProps={mode:"elements",hideGroupBy:!1,disabled:!1},E((i=o).prototype,"groupByOptions",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"groupByOptions"),i.prototype),E(i.prototype,"sortByOptions",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"sortByOptions"),i.prototype),E(i.prototype,"labelIcon",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"labelIcon"),i.prototype),n=i))||n},48989:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(50265),u=r(62631),p=r(77227),d=r(24937),h=r(99386),f=r(76485),m=r(51461),g=r(64403),v=r.n(g),y=r(27611),b=r(99767),_=r(46903),E=r(84824);function w(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const L=/(\s*\/\s*)|(\s\s)/,x={ESC:"Escape",ENTER:"Enter",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"};let S=(0,u.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.handleInputChange=e=>{const t=e.target.value;if(t.match(/\/$/)&&t.length>this.value.length)return this.handleCreateNew();const r=t.split(h.Z.PATH_VIEW_GROUP_SEPARATOR),n=r.findIndex(((e,t)=>e!==this.pathState.livePath[t].name)),i=r[n].split(L)[0];this.pathState.updateEntry(n,i),this.isRename&&this.context.viewManager.setRenameValue(i)},this.handleKeyDown=e=>{[x.ARROW_LEFT,x.ARROW_RIGHT].includes(e.key)&&e.stopPropagation(),e.key===x.ENTER&&this.handleCommitEdit(),e.key===x.ESC&&this.pathState.stopEdit()},this.handleBlur=()=>{this.props.autocomplete||this.handleCommitEdit()},this.handleInputClick=e=>{e.stopPropagation()},this.setInputRef=e=>{this.inputEl=e,this.pathState.setInputElement(e)}}componentDidMount(){this.pathState.isEditing&&(this.hideHead?this.placeCursorAt(this.value.length):this.selectHead(),this.isRename&&this.context.viewManager.startRename(this.pathState.group))}componentWillUnmount(){this.pathState.stopEdit(),this.context.viewManager.stopRename()}get pathState(){return this.props.pathState}get isRename(){return this.context.viewState.viewByGroupMode!==h.Z.VIEW_BY_GROUP_MODES.PATH&&1===this.pathState.livePath.length}get hideHead(){return!!this.pathState.head.isGroup&&this.pathState.isNewGroup}get value(){return this.pathState.livePath.map(((e,t)=>t===this.headIndex&&this.hideHead?"":e.name)).join(h.Z.PATH_VIEW_GROUP_SEPARATOR)}get headValue(){var e;return null===(e=this.pathState.head)||void 0===e?void 0:e.name}get headIndex(){return this.pathState.headIndex}get isEditing(){return this.pathState.isEditing}setSelectionRangeUXP(e,t){if(document.activeElement===this.inputEl)this.inputEl.setSelectionRange(e,t);else{const r=()=>{this.inputEl.setSelectionRange(e,t),this.inputEl.removeEventListener("focus",r)};this.inputEl.addEventListener("focus",r)}}setSelectionRange(e,t){this.inputEl&&(f.Z.hasUXPInputSelectionRangeBug?this.setSelectionRangeUXP(e,t):this.inputEl.setSelectionRange(e,t),this.inputEl.focus())}selectHead(){const e=this.value.length-this.headValue.length,t=this.value.length;this.setSelectionRange(e,t)}placeCursorAt(e){this.setSelectionRange(e,e)}handleCreateNew(){this.headValue.trim()&&(m.ZP.setExtraEventMetrics("createGroup",{content:{category:"In Path"}}),this.pathState.updateEntry(this.headIndex,this.headValue.trim()),this.pathState.addEntry(),f.Z.hasUXPInputSelectionRangeBug&&this.placeCursorAt(this.value.length))}handleCommitEdit(){if(this.isRename)return this.handleRenameCommit();this.pathState.commitEdit()}handleRenameCommit(){if(!this.isInvalidName&&this.context.viewManager.renameValue){const e=this.context.viewManager.renameValue.trim();this.context.viewManager.stopRename(),(0,_.UE)(this.pathState.group,e)}this.pathState.stopEdit()}get tooltipErrorMessage(){const e=this.context.viewManager.renameStatus;return h.Z.RENAME_STATE_ERROR_MESSAGES[e]}get isInvalidName(){return!!this.isRename&&this.context.viewManager.renameStatus!==h.Z.RENAME_STATES.VALID}render(){const e=v()("panel-group-path-view-edit panel-group-container-text is-editing",{invalid:this.isInvalidName});return a.createElement("div",{className:e},a.createElement("input",{type:"text",spellCheck:"false","uxp-quiet":"false","data-test-id":"panel-group-path-view-entry-input",className:"panel-group-container-input",ref:this.setInputRef,value:this.value,onChange:this.handleInputChange,onKeyDown:this.handleKeyDown,onClick:this.handleInputClick,onBlur:this.handleBlur}),this.isInvalidName&&a.createElement("div",{"data-test-id":"editable-name-alert-tooltip"},a.createElement(b.Z,{className:"editable-name-alert-tooltip",placement:"top",content:(0,E.Iu)(this.tooltipErrorMessage)},a.createElement(y.Z,{className:"editable-name-alert-icon",id:"Alert",height:10}))))}}).contextType=d.r,o.propTypes={pathState:c().instanceOf(p.Z),autocomplete:c().bool},w((i=o).prototype,"value",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"value"),i.prototype),w(i.prototype,"tooltipErrorMessage",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"tooltipErrorMessage"),i.prototype),w(i.prototype,"isInvalidName",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"isInvalidName"),i.prototype),n=i))||n},74242:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(89526),i=r(2652),o=r.n(i),a=r(50265),s=r(62631),c=r(24937),l=r(48989),u=r(99386),p=r(20290),d=r(25585),h=r(69233);class f{constructor(e){this._cb=e}disconnect(){window.removeEventListener("resize",this._cb)}observe(){window.addEventListener("resize",this._cb)}}var m,g,v,y,b=r(33275),_=r(75623);function E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let w=(0,s.Pi)(((y=class extends n.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="_maxWidth",i=this,(n=v)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.setPathRef=e=>{this.pathRef=e},this.handleResize=(0,p.Ds)(u.Z.WINDOW_RESIZE_DEBOUNCE,(()=>{const e=u.Z.currentProduct.config.editWidthSubtraction||0;return this._maxWidth=this.pathRef?this.pathRef.clientWidth-u.Z.SCROLLBAR_WIDTH-e:0,Promise.resolve()})),this.handleDoubleClick=()=>{this.props.disableEditing||this.context.viewManager.startEditPath(this.props.group)}}componentDidMount(){let e=f;window.ResizeObserver&&(e=window.ResizeObserver),this.resizeObserver=new e((()=>this.handleResize())),this.pathRef&&this.resizeObserver.observe(this.pathRef)}componentWillUnmount(){this.resizeObserver?this.resizeObserver.disconnect():window.removeEventListener("resize",this.handleResize)}get pathState(){return this.context.viewManager.pathState}get maxDepth(){return this.props.group.library.pathViewMaxDepth||0}get groupPath(){return[...(0,h._y)(this.props.group),this.props.group].map((e=>e.name)).slice(this.maxDepth)}get isEditing(){return this.context.viewManager.editPathGroup===this.props.group}get maxWidth(){return this._maxWidth}get pathView(){const e=(0,d.Zj)(this.groupPath,{maxWidth:this.maxWidth,className:"panel-group-container-text-sizer"}).split(u.Z.PATH_VIEW_GROUP_SEPARATOR),t=e[e.length-1],r=e.slice(0,e.length-1).join(u.Z.PATH_VIEW_GROUP_SEPARATOR);return n.createElement("div",{ref:this.setPathRef,"data-test-id":"panel-group-path-view",className:"panel-group-container-text panel-group-path-view",onDoubleClick:this.handleDoubleClick},r,r&&u.Z.PATH_VIEW_GROUP_SEPARATOR,n.createElement("span",{className:"panel-group-path-view-head"},t))}render(){return this.isEditing?n.createElement(l.Z,{pathState:this.pathState,autocomplete:!0}):this.pathView}}).contextType=c.r,y.propTypes={group:o().oneOfType([o().instanceOf(b.ZA),o().instanceOf(_.Z)]).isRequired,disableEditing:o().bool},y.defaultProps={disableEditing:!1},v=E((g=y).prototype,"_maxWidth",[a.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),E(g.prototype,"groupPath",[a.computed],Object.getOwnPropertyDescriptor(g.prototype,"groupPath"),g.prototype),E(g.prototype,"pathView",[a.computed],Object.getOwnPropertyDescriptor(g.prototype,"pathView"),g.prototype),m=g))||m},52422:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(64403),u=r.n(l);let p=(0,c.Pi)(((i=class extends o.Component{render(){const e=u()("spectrum-Checkbox-box",{checked:this.props.checked});return o.createElement("label",{className:"spectrum-Checkbox"},o.createElement("input",{tabIndex:0,"data-test-id":"spectrum-checkbox",type:"checkbox",className:"spectrum-Checkbox-input",onClick:this.props.onChange,"aria-checked":this.props.checked,"aria-label":this.props.label,checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),o.createElement("span",{className:e},o.createElement("svg",{className:"spectrum-UIIcon-CheckmarkSmall spectrum-Icon spectrum-Checkbox-checkmark",focusable:"false","aria-hidden":"true",role:"img"},o.createElement("path",{d:"M3.788 9A1 1 0 0 1 3 8.615l-2.288-3a1 1 0 1 1 1.576-1.23l1.5 1.991 3.924-4.991a1 1 0 1 1 1.576 1.23l-4.712 6A1 1 0 0 1 3.788 9z",className:"spectrum-UIIcon--medium"}))),o.createElement("span",{className:"spectrum-Checkbox-label"},this.props.label))}}).propTypes={checked:s().bool,disabled:s().bool,label:s().string,onChange:s().func},n=i))||n},5849:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,i,o=r(89526),a=r(64403),s=r.n(a),c=r(2652),l=r.n(c),u=r(62631),p=r(76485);const d=r(88166);let h=(0,u.Pi)(((i=class extends o.Component{get value(){return Math.min(Math.max(+this.props.progress,0),100)}get progressBar(){let e;const t={},r={};return this.props.indeterminate||(this.value>0&&this.value<=50?(e=this.value/50*180-180,t.transform="rotate("+e+"deg)",r.transform="rotate(-180deg)"):this.value>50&&(e=(this.value-50)/50*180-180,t.transform="rotate(0deg)",r.transform="rotate("+e+"deg)")),o.createElement("div",{className:s()(`spectrum-CircleLoader spectrum-CircleLoader--${this.props.size}`,{"spectrum-CircleLoader--indeterminate":this.props.indeterminate},this.props.className),"data-test-id":this.props["data-test-id"]},o.createElement("div",{className:"spectrum-CircleLoader-track"}),o.createElement("div",{className:"spectrum-CircleLoader-fills"},o.createElement("div",{className:"spectrum-CircleLoader-fillMask1"},o.createElement("div",{"data-test-id":"circle-loader-submask1",className:"spectrum-CircleLoader-fillSubMask1",style:t},o.createElement("div",{className:"spectrum-CircleLoader-fill"}))),o.createElement("div",{className:"spectrum-CircleLoader-fillMask2"},o.createElement("div",{"data-test-id":"circle-loader-submask2",className:"spectrum-CircleLoader-fillSubMask2",style:r},o.createElement("div",{className:"spectrum-CircleLoader-fill"})))))}get uxpProgressBar(){return o.createElement(d,{"data-test-id":"uxp-circle-loader",variant:this.props.indeterminate?"indeterminate":"determinate",indeterminate:this.props.indeterminate,value:this.value,size:this.props.size.substring(0,1).toUpperCase(),className:`spectrum-CircleLoader--${this.props.size}`})}render(){return o.createElement("div",{"data-test-id":"progress",className:"panel-progress"},p.Z.supportsAnimations?this.progressBar:this.uxpProgressBar)}}).defaultProps={progress:0,size:"large",indeterminate:!1},i.propTypes={progress:l().number,size:l().oneOf(["small","medium","large"]),indeterminate:l().bool,className:l().string,"data-test-id":l().string},n=i))||n},58925:(e,t,r)=>{"use strict";r.d(t,{Z:()=>F});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(62631),u=r(64403),p=r.n(u),d=r(31870),h=r(99767),f=r(84824),m=r(27611),g=r(50265),v=r(24937);let y=(0,l.Pi)(((o=class extends a.Component{get isWritable(){return this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary,null,!0)}_getLicensedBadge(){if(this.props.asset.is_licensed)return a.createElement("div",{className:"panel-dl-stock-content-item-licensed-container"},a.createElement(h.Z,{content:(0,f.Iu)("DL_STOCK_LICENSED_SEARCH_RESULT")},a.createElement("div",{className:"panel-dl-stock-content-item-licensed search-asset-icon","data-test-id":"licensed"},a.createElement("div",{className:"panel-dl-stock-content-item-icon-licensed"},a.createElement(m.Z,{id:"StockLicensedBadge",height:40,width:46})))))}_getLicenseButton(){if(this.props.asset.is_licensed||!this.context.libraryManager.currentLibrary)return;const e=this.context.libraryManager.currentLibrary.name;let t=this.props.onLicenseClick;this.isWritable||(t=null);const r=p()("panel-dl-stock-content-item-action","search-asset-icon","show-on-hover-child",{disabled:!this.isWritable});let n;return n=this.isWritable?d.q$()?(0,f.Iu)("DL_STOCK_LICENSE_THEN_SAVE_TO_TOOLTIP",{name:e}):(0,f.Iu)("DL_STOCK_LICENSE_TOOLTIP"):(0,f.Iu)("DL_ERROR_EDIT_READ_ONLY_LIBRARY",{name:e}),a.createElement(h.Z,{content:n},a.createElement("div",{className:r,onClick:t,"data-test-id":"license-button"},a.createElement("div",{className:"panel-dl-stock-content-item-icon"},a.createElement(m.Z,{id:"ShoppingCart",height:18}))))}_getSaveCompButton(){const e=this.props.asset;if(!e.is_licensed&&!d.dF(e)||!this.context.libraryManager.currentLibrary)return;const t=this.context.libraryManager.currentLibrary.name;let r=this.props.onSaveCompClick;this.isWritable||(r=null);const n=p()("panel-dl-stock-content-item-action","search-asset-icon","show-on-hover-child",{disabled:!this.isWritable});let i;return i=this.isWritable?e.is_licensed?(0,f.Iu)("DL_STOCK_SAVE_TO_TOOLTIP",{name:t}):(0,f.Iu)("DL_STOCK_SAVE_PREVIEW_TO_TOOLTIP",{name:t}):(0,f.Iu)("DL_ERROR_EDIT_READ_ONLY_LIBRARY",{name:t}),a.createElement(h.Z,{content:i},a.createElement("div",{className:n,onClick:r,"data-test-id":"savecomp-button"},a.createElement("div",{className:"panel-dl-stock-content-item-icon"},a.createElement(m.Z,{id:"AddStock",height:18}))))}render(){const e=p()({"panel-dl-stock-content-item-hover-vertical":false,"panel-dl-stock-content-item-hover":!0});return a.createElement(a.Fragment,null,a.createElement("div",{className:e,"data-test-id":"badges"},this._getLicenseButton(),this._getSaveCompButton()),this._getLicensedBadge())}}).contextType=v.r,o.propTypes={asset:c().object.isRequired,onLicenseClick:c().func.isRequired,onSaveCompClick:c().func.isRequired},b=(i=o).prototype,_="isWritable",E=[g.computed],w=Object.getOwnPropertyDescriptor(i.prototype,"isWritable"),L=i.prototype,x={},Object.keys(w).forEach((function(e){x[e]=w[e]})),x.enumerable=!!x.enumerable,x.configurable=!!x.configurable,("value"in x||x.initializer)&&(x.writable=!0),x=E.slice().reverse().reduce((function(e,t){return t(b,_,e)||e}),x),L&&void 0!==x.initializer&&(x.value=x.initializer?x.initializer.call(L):void 0,x.initializer=void 0),void 0===x.initializer&&(Object.defineProperty(b,_,x),x=null),n=i))||n;var b,_,E,w,L,x,S=r(93028),O=r(99409),T=r(51461),I=r(4784),P=r(16993),C=r(68370),A=r(30131);function k(e){return S.ZP.libraries.map((t=>({label:t.name,enableMenu:I.Z.canAddElements(t)&&P.Z.isLibraryWritable(t,!1,!0),checked:t.id===S.ZP.currentLibrary.id,onClick:()=>{e(t)}})))}var D,N,R=r(91854),M=r(47320),j=r(76485),Z=r(26981);let F=(0,l.Pi)(((N=class extends a.Component{constructor(...e){super(...e),this._setImageRef=e=>{this.imageElement=e},this._handleSaveCompClick=()=>{const e=this.props.asset;T.ZP.reportStockEvent("Add Stock","click","start",null,e),(0,d.LU)({asset:e,library:S.ZP.currentLibrary,img:this.imageElement}).then((e=>{T.ZP.reportStockEvent("Add Stock","render","success",{},e)})).catch((()=>{T.ZP.reportStockEvent("Add Stock","render","error",{event:{error_desc:"unknown"}})}))},this._handleLicenseClick=()=>{const e=T.ZP.STOCK_EVENTSOURCE.SEARCH,t=this.props.asset;T.ZP.reportStockEvent("License","click","start",{ui:{sequence:e}},t),d.q$()?(0,d.S8)({asset:t,library:S.ZP.currentLibrary,img:this.imageElement}).then((()=>{T.ZP.reportStockEvent("License","render","success",{ui:{sequence:e}},t)})).catch((()=>{T.ZP.reportStockEvent("License","render","error",{event:{error_desc:"unknown"},ui:{sequence:e}},t)})):A.WS(t.id,t.type)},this._handleContextMenu=e=>{e.stopPropagation(),function(e,t){const r=[],n=[];if(!e.is_licensed)if(d.q$()){const t=k((t=>{const r=T.ZP.STOCK_EVENTSOURCE.CONTEXT_MENU;T.ZP.reportStockEvent("License","click","start",{ui:{sequence:r}},e),d.S8({asset:e,library:t}).then((()=>{T.ZP.reportStockEvent("License","render","success",{ui:{sequence:r}},e)})).catch((()=>{T.ZP.reportStockEvent("License","render","error",{event:{error_desc:"unknown"},ui:{sequence:r}},e)}))}));n.push({label:"DL_STOCK_LICENSE_THEN_SAVE_TO",enableMenu:!0,menuItems:t})}else n.push({label:"DL_STOCK_LICENSE_TOOLTIP",onClick:()=>{const t=T.ZP.STOCK_EVENTSOURCE.CONTEXT_MENU;T.ZP.reportStockEvent("License","click","start",{ui:{sequence:t}},e),(0,A.WS)(e.id,e.type)}});if(d.dF(e)||e.is_licensed){const r=k((r=>{T.ZP.reportStockEvent("Add Stock","click","start",null,e),d.LU({asset:e,library:r,img:t}).then((e=>{T.ZP.reportStockEvent("Add Stock","render","success",{},e)})).catch((()=>{T.ZP.reportStockEvent("Add Stock","render","error",{event:{error_desc:"unknown"}})}))}));n.push({label:e.is_licensed?"DL_STOCK_SAVE_TO":"DL_STOCK_SAVE_PREVIEW_TO",enableMenu:!0,menuItems:r})}(0,C.s)(r,n);const i=[];7!==e.media_type_id&&i.push({label:"DL_STOCK_FIND_SIMILAR_MENU",onClick:()=>{T.ZP.reportStockEvent("Find Similar","click","find",{ui:{sequence:"search"}},e),P.Z.setFindSimilarSearchMode(e.id)}}),i.push({label:"DL_STOCK_VIEW_ON_WEB",onClick:()=>{(0,A.WS)(e.id,e.type)}}),(0,C.s)(r,i),O.Z.setContextMenu(r)}(this.props.asset,this.imageElement),j.Z.onContextMenu(e)},this._handleDragStart=e=>{const t={asset:this.props.asset,imageElement:this.imageElement,dragStartEvent:e},r=Z.Ig();R.Z.handleDragStart("stock",t,r?t=>{const r=this.imageElement.cloneNode(!0);r.style.opacity=.8,r.style.width=this.props.layout.width+"px",r.style.height=this.props.layout.height+"px",r.style.left=e.target.clientX-e.target.clientWidth/2+"px",r.style.top=e.target.clientY-e.target.clientHeight/2+"px",t.appendChild(r),document.body.appendChild(t)}:null)},this._handleDragEnd=e=>{R.Z.handleDragEnd({dragEndEvent:e})},this._handleDoubleClick=()=>{A.WS(this.props.asset.id,this.props.asset.type)}}render(){const e=this.props.asset,t=d.BG(e.media_type_id,e.content_type),r=e.thumbnail_url,n=e.id;return a.createElement(h.Z,{content:(0,d.gB)(e)},a.createElement("div",{className:"panel-stock-search-result-container show-on-hover-parent",onContextMenu:this._handleContextMenu,onDragStart:this._handleDragStart,onDragEnd:this._handleDragEnd,onDoubleClick:this._handleDoubleClick,"data-test-id":`stock-result-${n}`,draggable:M.Z.isStockAssetDraggable(t)},a.createElement("img",{className:"panel-stock-search-result-image",src:r,ref:this._setImageRef,"data-test-id":"image",crossOrigin:"anonymous"}),a.createElement("div",{className:"panel-stock-search-result-children-container"},this.props.children),a.createElement(y,{asset:e,onLicenseClick:this._handleLicenseClick,onSaveCompClick:this._handleSaveCompClick})))}}).propTypes={asset:c().object.isRequired,children:c().node.isRequired,layout:c().shape({width:c().number.isRequired,height:c().number.isRequired}).isRequired},D=N))||D},14241:(e,t,r)=>{"use strict";r.d(t,{X:()=>l,w:()=>c});var n=r(89526),i=r(2652),o=r.n(i),a=r(24937),s=r(48919);const c=n.createContext();class l extends n.Component{render(){return n.createElement(c.Provider,{value:this.props.portalNode},n.createElement(a.o,{value:s.Z.panel,style:{height:"100%",width:"100%",borderRadius:"inherit",background:"inherit"}},this.props.children))}}l.propTypes={children:o().node,portalNode:o().instanceOf(HTMLElement)}},48346:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(35938),i=r(39808),o=r(10206),a=r.n(o),s=r(31870),c=r(76485),l=r(89526);const u=["type","data","height","width","additionalStyles","library","viewMode","gridSizeType"];function p(){return p=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},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function h(e){return e}function f(e){const t="element"===e.type&&(0,s.kv)(e.data);return`${e.data&&e.data.type?e.data.type:e.type}:${t?1:0}`}const m="function"==typeof n.Z?n.Z:class{};class g extends m{constructor(...e){super(...e),this._setVirtualScroller=e=>{this._uxpVirtualScroller=e}}_onDragOver(e,t){if(c.Z.autoScrollNotSupported&&!this._autoScrolling){const e=t-this._scrollTop,r=this.props.height,n=40,i=20,o=e<n?-1:r-e<n?1:0;if(o){const e=o*i;this._autoScrolling=requestAnimationFrame((()=>{delete this._autoScrolling,this._uxpVirtualScroller&&this._uxpVirtualScroller.scrollBy(0,e)}))}}}renderVirtualizer(){const e=this._getScrollToCellAndClearPending(),t=e>=0?this._getCellItemKey(this.items[e]):void 0;return l.createElement(a(),{id:"collection",items:this.items,itemKey:this._getCellItemKey,itemType:f,itemRect:h,scrollToItem:t,style:{width:this.props.width,height:this.props.height,zIndex:0},ref:this._setVirtualScroller},(e=>{const t=e.type,r=e.data,i=e.height,o=e.width,a=e.additionalStyles,s=e.library,c=e.viewMode,p=e.gridSizeType,h=d(e,u),f=n.Z.ITEM_VIEWS[t](r,i,o,s,c,p,h),m={zIndex:e.zIndex};return a&&Object.assign(m,a),l.createElement("div",{style:m},f)}))}}const v=e=>l.createElement(i.Z,p({},e,{baseContentView:g}));v.displayName="UXPLibraryContentsView";const y=v},73645:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(64403),u=r.n(l);let p=(0,c.Pi)(((i=class extends o.Component{get divider(){const e=this.props.content.filter((e=>!e.divider)),t=Math.max(...e.map((e=>e.length)));return"⎼".repeat(Math.min(t,36))}get tooltipContent(){var e;const t=null===(e=this.props.content)||void 0===e?void 0:e.map((e=>e&&e.divider?this.divider:e)).join("\n");if(!this.props.disable&&t)return t}render(){return o.createElement("div",{"data-test-id":"tooltip-wrapper",className:u()("tooltip-ref",this.props.className),title:this.tooltipContent},this.props.children)}}).propTypes={children:s().node,featureId:s().string,content:s().array,disable:s().bool,className:s().string},n=i))||n},43393:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n,i,o,a,s,c=r(50265),l=r(99386);function u(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 p(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let d=(i=p((n=class{constructor(e){u(this,"_searchTypeOptions",i,this),u(this,"_searchLibrariesOptions",o,this),u(this,"_searchDocumentGroupOptions",a,this),u(this,"_searchDocumentLinkOptions",s,this),this.viewState=e}_getSearchFilters(e){return Array.from(e.entries()).filter((([e,t])=>t&&"editorial"!==e)).map((([e])=>e))}get _searchTypeFilters(){return this._getSearchFilters(this._searchTypeOptions)}get _searchLibrariesFilters(){return this._getSearchFilters(this._searchLibrariesOptions)}get _searchDocumentGroupFilters(){return this._getSearchFilters(this._searchDocumentGroupOptions)}get _searchDocumentLinkFilters(){return this._getSearchFilters(this._searchDocumentLinkOptions)}get filterCount(){let e=[this._searchTypeFilters,this._searchLibrariesFilters];return(this.viewState.isDocumentSearchType()||l.Z.currentProduct.config.includeGroupFilters)&&(e=e.concat([this._searchDocumentGroupFilters,this._searchDocumentLinkFilters])),e.reduce(((e,t)=>e+t.length),0)}clearFilters(){this._searchTypeOptions=new Map,this._searchLibrariesOptions=new Map}isSearchOptionEnabled(e){return Boolean(this._searchTypeOptions.get(e)||this._searchLibrariesOptions.get(e)||this._searchDocumentGroupOptions.get(e)||this._searchDocumentLinkOptions.get(e))}}).prototype,"_searchTypeOptions",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),o=p(n.prototype,"_searchLibrariesOptions",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),a=p(n.prototype,"_searchDocumentGroupOptions",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),s=p(n.prototype,"_searchDocumentLinkOptions",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),n)},24937:(e,t,r)=>{"use strict";r.d(t,{r:()=>re,o:()=>ne});var n=r(21955),i=r(13824),o=r(10470),a=r(20512),s=r(55725),c=(r(62103),r(89526));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 u(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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d={componentStack:null,error:null,eventId:null};class h extends c.Component{constructor(e){super(e),h.prototype.__init.call(this),this.state=d,this._openFallbackReportDialog=!0;const t=(0,n.Gd)().getClient();t&&t.on&&e.showDialog&&(this._openFallbackReportDialog=!1,t.on("afterSendEvent",(t=>{t.type||t.event_id!==this._lastEventId||(0,i.jp)(u(u({},e.dialogOptions),{},{eventId:this._lastEventId}))})))}componentDidCatch(e,{componentStack:t}){const r=this.props,n=r.beforeCapture,l=r.onError,p=r.showDialog,d=r.dialogOptions;(0,o.$e)((r=>{if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(c.version)&&(0,a.VZ)(e)){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,function(e,t){const r=new WeakMap;!function e(t,n){if(!r.has(t))return t.cause?(r.set(t,!0),e(t.cause,n)):void(t.cause=n)}(e,t)}(e,r)}n&&n(r,e,t),r.addEventProcessor((e=>((0,s.EG)(e,{handled:!1}),e)));const h=(0,o.Tb)(e,{contexts:{react:{componentStack:t}}});l&&l(e,t,h),p&&(this._lastEventId=h,this._openFallbackReportDialog&&(0,i.jp)(u(u({},d),{},{eventId:h}))),this.setState({error:e,componentStack:t,eventId:h})}))}componentDidMount(){const e=this.props.onMount;e&&e()}componentWillUnmount(){const e=this.state,t=e.error,r=e.componentStack,n=e.eventId,i=this.props.onUnmount;i&&i(t,r,n)}__init(){this.resetErrorBoundary=()=>{const e=this.props.onReset,t=this.state,r=t.error,n=t.componentStack,i=t.eventId;e&&e(r,n,i),this.setState(d)}}render(){const e=this.props,t=e.fallback,r=e.children,n=this.state;if(n.error){let e;return e="function"==typeof t?t({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):t,c.isValidElement(e)?e:null}return"function"==typeof r?r():r}}var f=r(2652),m=r.n(f),g=r(57806),v=r(83377),y=r(28086),b=r(30222),_=r(94859),E=r(54071),w=r(70040),L=r(82530);const x=["className","locale","scale","spectrumTheme","theme","typekitId"];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){T(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 T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function P(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function C(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function A(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){C(o,n,i,a,s,"next",e)}function s(e){C(o,n,i,a,s,"throw",e)}a(void 0)}))}}const k=(0,_.Z)(r(30665)).default,D="sp-theme";let N;L.env.EXCLUDE_SWC||(N=new y.t([D],A(P().mark((function e(){var t,n;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5144)]).then(r.bind(r,93588));case 2:return t=e.sent,n=t.Theme,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));let R=()=>Promise.resolve(),M=()=>Promise.resolve(),j=()=>Promise.resolve(),Z=()=>Promise.resolve(),F=()=>Promise.resolve(),B=()=>Promise.resolve(),G=()=>Promise.resolve(),U=()=>Promise.resolve(),z=()=>Promise.resolve(),V=()=>Promise.resolve(),H=()=>Promise.resolve(),Y=()=>Promise.resolve();function W(e){return $.apply(this,arguments)}function $(){return($=A(P().mark((function e(t){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("large"!==t.scale){e.next=8;break}if("express"!==t.system){e.next=5;break}return e.abrupt("return",H());case 5:return e.abrupt("return",z());case 6:e.next=13;break;case 8:if("express"!==t.system){e.next=12;break}return e.abrupt("return",Y());case 12:return e.abrupt("return",V());case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e){return q.apply(this,arguments)}function q(){return(q=A(P().mark((function e(t){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.color,e.next="dark"===e.t0?3:"darkest"===e.t0?8:"light"===e.t0?13:(e.t0,18);break;case 3:if("express"!==t.system){e.next=7;break}return e.abrupt("return",F());case 7:return e.abrupt("return",R());case 8:if("express"!==t.system){e.next=12;break}return e.abrupt("return",B());case 12:return e.abrupt("return",M());case 13:if("express"!==t.system){e.next=17;break}return e.abrupt("return",G());case 17:return e.abrupt("return",j());case 18:if("express"!==t.system){e.next=22;break}return e.abrupt("return",U());case 22:return e.abrupt("return",Z());case 23:case"end":return e.stop()}}),e)})))).apply(this,arguments)}L.env.EXCLUDE_SWC||(R=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(8684)]).then(r.bind(r,32639));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(8051)]).then(r.bind(r,95013));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(2729)]).then(r.bind(r,78577));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(7311)]).then(r.bind(r,23183));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(9515),r.e(8689)]).then(r.bind(r,80475));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(9515),r.e(2039)]).then(r.bind(r,30097));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(1138),r.e(6875)]).then(r.bind(r,74628));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(1138),r.e(8202)]).then(r.bind(r,84578));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(5458)]).then(r.bind(r,82252));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(4268)]).then(r.bind(r,39685));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(2659)]).then(r.bind(r,73100));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=A(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(1892)]).then(r.bind(r,61234));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),(0,w.I)((function(e){const t=e.scale,r=e.spectrumTheme,n=e.theme,i=e.typekitId,o=[W({scale:t,system:r}),K({color:n,system:r}),(0,b.Yn)(i)];return(0,b.Vc)(D)&&o.push((0,b.A2)(D,e,N)),Promise.all(o)}));const X=(0,v.Z)({displayName:"Provider",fallback:k,swcLoader:N,SWCWrapper:function(e){const t=e.className,r=e.locale,n=e.scale,i=e.spectrumTheme,o=e.theme,a=e.typekitId,s=void 0===a?"ruf7eed":a,l=I(e,x);(0,c.useEffect)((()=>{W({scale:n,system:i}).catch(console.error)}),[n,i]),(0,c.useEffect)((()=>{K({color:o,system:i}).catch(console.error)}),[i,o]),(0,c.useEffect)((()=>{(0,b.Yn)(s).catch(console.error)}),[s]);const u=(0,b.Co)(D);return c.createElement(u,O(O({},l),{},{class:t,color:o,lang:r,scale:n,system:i}))},tagName:D});function J(e){const t=e.scale,r=e.spectrumTheme,n=e.theme,i=e.typekitId,o=(0,c.useMemo)((()=>(0,E.V)({scale:t,spectrumTheme:r,theme:n,typekitId:i})),[t,r,n,i]);return c.createElement(E.N.Provider,{value:o},c.createElement(X,O({},e)))}var Q,ee,te=r(62631);const re=c.createContext({});let ne=(0,te.Pi)(((ee=class extends c.Component{render(){return c.createElement(h,null,c.createElement(re.Provider,{value:this.props.value},c.createElement(J,{"data-test-id":"react-spectrum-provider",boundariesElement:"container",theme:g.ZP.reactSpectrumTheme,spectrumTheme:g.ZP.themeSystem,scale:"medium",style:this.props.style},this.props.children)))}}).propTypes={children:m().node,value:m().object,style:m().object},Q=ee))||Q},60620:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>H});var n,i,o,a,s=r(77560),c=r(89526),l=r(62631),u=r(50265),p=r(2652),d=r.n(p),h=r(84824),f=r(93028),m=r(33275),g=r(96195),v=r.n(g),y=r(27611),b=r(74149),_=r(16993),E=r(91854),w=r(99987),L=r(95372),x=r(24937),S=r(20290),O=r(99386),T=r(68895);let I=(0,l.Pi)((a=class extends c.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="_contentWidth",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.handleResize=(0,S.Ds)(O.Z.WINDOW_RESIZE_DEBOUNCE,(()=>(this._contentWidth=this.contentRef?this.contentRef.clientWidth:0,Promise.resolve()))),this.openAddElementsDialog=()=>{(0,b.fY)(this.props.library||f.ZP.currentLibrary,"Empty State")},this.libraryContent=e=>{const t=this.emptyStateContents[e];return c.createElement("div",{"data-test-id":`empty-state-${e}`},c.createElement("div",{className:"panel-empty-icon","data-test-id":`empty-state-${e}-icon`},c.createElement(y.Z,{height:150,id:t.icon})),c.createElement("div",{className:"panel-empty-title","data-test-id":`empty-state-${e}-title`},(0,h.Iu)(t.title)),c.createElement("div",{className:"panel-empty-text","data-test-id":`empty-state-${e}-text`},(0,h.Iu)(t.text)),t.button)},this.handleDrop=e=>{this.props.library.isWritable&&E.Z.handleDrop(e)},this._dropTarget=new w.Z({}),this.handleDragOver=()=>{this.props.library.isWritable&&E.Z.setActiveDropTarget(this._dropTarget)},this.setContentRef=e=>{this.contentRef=e}}componentDidMount(){const e=window.ResizeObserver;this.resizeObserver=new e((()=>this.handleResize())),this.contentRef&&this.resizeObserver.observe(this.contentRef),this._contentWidth=this.contentRef?this.contentRef.clientWidth:0}componentWillUnmount(){this.resizeObserver.disconnect()}get contentWidth(){return this._contentWidth}get addElementsButton(){return c.createElement(v(),{disabled:_.Z.isLocked(this.props.library),"data-test-id":"primary-action-empty-button",className:"primary-action-empty-button",onClick:this.openAddElementsDialog,tabIndex:"0"},c.createElement("span",{className:"primary-action-empty-button-label"},(0,h.Iu)("DL_EMPTY_LIB_ACCC_PRIMARY_ACTION")))}get emptyLibCards(){const e=Math.floor(this.contentWidth/192);return[{img:"EmptyLibrary2",instruction:"DL_EMPTY_LIB_PANEL_INSTRUCTION_ACCC_2",testID:"instruction2",button:this.addElementsButton},{img:"EmptyLibrary1",instruction:"DL_EMPTY_LIB_PANEL_INSTRUCTION_ACCC_1",testID:"instruction1",button:this.addGroupButton,isHidden:e<2},{img:"EmptyLibrary3",testID:"instruction3",instruction:"DL_EMPTY_LIB_PANEL_INSTRUCTION_ACCC_3",isHidden:e<3}].filter((e=>!e.isHidden))}get addOpenFileButton(){return c.createElement(v(),{className:"empty-state-open-file-button",label:(0,h.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY"),onClick:()=>(0,T.Fb)(this.props.library),variant:"cta",icon:c.createElement(y.Z,{width:14,height:14,id:"Link",label:(0,h.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY"),className:"empty-state-button-icon"})})}get emptyStateContents(){return{"linked-library-read":{icon:"LinkedDocumentLibrary_CanView",title:"DL_EMPTY_LIB_LINKED_LIBRARY_READ_ONLY_TITLE",text:"DL_EMPTY_LIB_LINKED_LIBRARY_READ_ONLY_TEXT",type:"linked-library"},"linked-library-edit":{icon:"LinkedDocumentLibrary_CanEdit",title:"DL_EMPTY_LIB_LINKED_LIBRARY_WRITE_TITLE",text:"DL_EMPTY_LIB_LINKED_LIBRARY_WRITE_TEXT",type:"linked-library",button:this.addOpenFileButton},"library-read":{icon:"TraditionalLibrary_CanView",title:"DL_EMPTY_LIB_TRADITIONAL_LIBRARY_READ_ONLY_TITLE",text:"DL_EMPTY_LIB_TRADITIONAL_LIBRARY_READ_ONLY_TEXT",type:"traditional-library"}}}get editStateTraditionalLibrary(){return this.emptyLibCards.map((e=>c.createElement("div",{key:`empty-card-${e.testID}`,"data-test-id":`panel-empty-${e.testID}`,className:"panel-empty-card"},c.createElement("div",{className:"panel-empty-card-image"},c.createElement(y.Z,{height:136,width:136,id:e.img})),c.createElement("div",{className:"panel-empty-card-instruction","data-test-id":e.testID},(0,h.Iu)(e.instruction)),e.button)))}get header(){return c.createElement("h1",{className:"panel-empty-heading-label","data-test-id":"header"},(0,h.Iu)("DL_EMPTY_LIB_ACCC_TITLE"))}get addGroupButton(){return c.createElement(L.Z,{showLabel:!0})}get writableContent(){if(!this.props.library||this.props.library.isDeletedFromServer)return;const e=this.props.library.documentType;return c.createElement(c.Fragment,null,!e&&this.header,!e&&c.createElement("div",{className:"panel-empty-cards","data-test-id":"writable-cards"},this.editStateTraditionalLibrary),e&&this.libraryContent("linked-library-edit"))}get readOnlyContent(){const e=this.props.library.documentType?"linked-library-read":"library-read";return c.createElement(c.Fragment,null,this.libraryContent(e))}render(){return c.createElement("div",{className:"panel-empty-container","data-test-id":"emptyLibraryView-ccd",id:"emptyPanelContainer",onDrop:this.handleDrop,onDragOver:this.handleDragOver,ref:this.setContentRef},c.createElement("div",{className:"panel-empty-inner-container","data-test-id":"content"},this.props.library&&this.props.library.isWritable?this.writableContent:this.readOnlyContent))}},a.contextType=x.r,a.defaultProps={library:null},a.propTypes={library:d().instanceOf(m.Zu)},P=(i=a).prototype,C="_contentWidth",A=[u.observable],k={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}},N={},Object.keys(k).forEach((function(e){N[e]=k[e]})),N.enumerable=!!N.enumerable,N.configurable=!!N.configurable,("value"in N||N.initializer)&&(N.writable=!0),N=A.slice().reverse().reduce((function(e,t){return t(P,C,e)||e}),N),D&&void 0!==N.initializer&&(N.value=N.initializer?N.initializer.call(D):void 0,N.initializer=void 0),void 0===N.initializer&&(Object.defineProperty(P,C,N),N=null),o=N,n=i))||n;var P,C,A,k,D,N,R=r(30131),M=r(48919),j=r(5837),Z=r(76485);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 B(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){G(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 G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const U={[O.Z.GRID_TYPE_SMALL]:{MIN_WIDTH:88,HORIZONTAL_SPACING:12,VERTICAL_SPACING:12,MIN_NUM_COLUMNS:1,HEIGHT_OFFSET:0},[O.Z.GRID_TYPE_MEDIUM]:{MIN_WIDTH:112,HORIZONTAL_SPACING:16,VERTICAL_SPACING:35,MIN_NUM_COLUMNS:1,HEIGHT_OFFSET:29},[O.Z.GRID_TYPE_LARGE]:{MIN_WIDTH:168,HORIZONTAL_SPACING:16,VERTICAL_SPACING:41,MIN_NUM_COLUMNS:1,HEIGHT_OFFSET:47}};class z{constructor(e,t={}){this.sizes={},this.mobileSizes={};for(const r in U){const n=(null==e?void 0:e[r])||{},i=(null==t?void 0:t[r])||{};this.sizes[r]=B(B({},U[r]),n),this.mobileSizes[r]=B(B({},this.sizes[r]),i)}}_getCurrentSizes(){return Z.Z.isMobileView?this.mobileSizes:this.sizes}getDynamicLayoutMinimumBreakpoint(){return this.getDynamicLayoutBreakpointWidth()}getDynamicLayoutBreakpointWidth(){const e=this._getCurrentSizes(),t=e[_.Z.gridZoomFactor]||e[O.Z.GRID_TYPE_LARGE];return t.MIN_WIDTH+t.HORIZONTAL_SPACING}getDynamicLayoutRules(){const e=this._getCurrentSizes(),t=e[O.Z.GRID_TYPE_LARGE],r=e[O.Z.GRID_TYPE_MEDIUM],n=e[O.Z.GRID_TYPE_SMALL];return{[O.Z.GRID_TYPE_LARGE]:this._getDynamicLayoutRule(t),[O.Z.GRID_TYPE_MEDIUM]:this._getDynamicLayoutRule(r),[O.Z.GRID_TYPE_SMALL]:this._getDynamicLayoutRule(n)}}_getDynamicLayoutRule(e){return{getHeight:t=>t+e.HEIGHT_OFFSET,getColumns:t=>e.MIN_NUM_COLUMNS+t,verticalSpacing:e.VERTICAL_SPACING,horizontalSpacing:e.HORIZONTAL_SPACING}}}var V=r(89526);function H(){return this.config={},this.config.code="ACCC",this.config.fullName="Creative Cloud Desktop",this.config.translationSuffix="ACCC",this.config.ghostLoading=!0,this.config.lastSectionFullHeight=!0,this.config.disabledCollapseSectionIds=["type","group"],this.config.enableUnusableElements=!0,this.config.groupScrollAlignment="start",this.config.windowGutterPaddingWidth=48,this.config.headerHeight=()=>36,this.config.headerMargin=16,this.config.disableGroupMargin=!0,this.config.gridLeftPadding=16,this.config.mediumIconHeight=12,this.config.smallIconHeight=12,this.config.extraSmallIconHeight=8,this.config.emptyGroupHeight=72,this.config.paddingBetweenGroups=36,this.config.disableGroupSeparator=!0,this.config.emptyGroupBottomPadding=40,this.config.sectionNavIndent=8,this.config.emptyUngroupedCustomMessage="DL_EMPTY_UNGROUP_INSTRUCTIONS",this.config.viewBySelectCustomOptionGroup="DL_VIEW_BY_GROUP_SHORT",this.config.viewBySelectCustomOptionType="DL_VIEW_BY_TYPE_SHORT",this.config.customPanelTitle="DL_LIBRARIES_PANEL_NAME_YOUR_LIBRARIES",this.config.invalidGroupNameSlashMessage="DL_GROUP_NAME_INVALID_SLASHES_ACCC",this.config.emptyLibraryCustomComponent=I,this.config.enableUngroupedDropOverlay=!0,this.config.customDragCardHeight=96,this.config.customDragCardWidth=96,this.config.spectrumFailedThumbnail=!0,this.config.uniformElementSize=!0,this.config.disablePaddingWithinGridGroup=!0,this.config.evenlySpacedSubgroups=!0,this.config.disableGroupViewRename=!0,this.config.disableGroupViewDragging=!0,this.config.disableGroupViewHeaderClick=!0,this.config.disableFindSimilar=!0,this.config.disableDefaultEditError=!0,this.config.disableOneUpMode=!0,this.config.enableUppercaseGridDetails=!0,this.config.enableReplaceGraphic=!0,this.config.maintainCurrentSectionOnResize=!0,this.config.useTextStyleThumbnails=!0,this.config.disableContentViewTooltips=!0,this.config.hideExtraBottomSpace=!0,this.config.hideFirstSectionHeader=!0,this.config.disableRestorePreviousCurrentLibrary=!0,this.config.defaultViewByState="group",this.config.defaultViewByGroupMode="path",this.config.teamOnboardingRightSpacing=100,this.config.teamOnboardingTopSpacing=90,this.config.showCCDTeamsOnboarding=!0,this.config.disableCCDTeamsOneUpOnboarding=!0,this.config.noFlyoutMenu=!0,this.config.showOpenInAppMenu=!0,this.config.disableGroupContextMenuInView=!0,this.config.disableNestedGroupIndent=!0,this.config.disableEditPathOperation=!0,this.config.disableDeleteEmptyAncestors=!0,this.config.editWidthSubtraction=64,this.config.mosaicCardVariant="quiet",this.config.mosaicCellPaddingBottom=48,this.config.themes={ffffff:"light",111111:"darker"},this.config.translationOverrides={DL_NO_LIBS_SYNCING:"DL_LOADING_LIBRARIES"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="light",this.config.elementTypes=[s.Z.ColorElementConfig,s.Z.ColorThemeElementConfig,s.Z.ImageElementConfig,s.Z.TextStyleElementConfig,s.Z.FontElementConfig,s.Z.ParagraphStyleElementConfig,s.Z.TextElementConfig,s.Z.LayerStyleElementConfig,s.Z.BrushElementConfig,s.Z.VideoElementConfig,s.Z.LookElementConfig,s.Z.CapsuleElementConfig,s.Z.PatternElementConfig,s.Z.TemplateElementConfig,s.Z.AnimationElementConfig,s.Z.ThreeDElementConfig,s.Z.MaterialElementConfig,s.Z.LightElementConfig,s.Z.GradientElementConfig,s.Z.ComponentElementConfig,s.Z.AudioElementConfig,s.Z.ChannelElementConfig,s.Z.ImageGuidelineElementConfig,s.Z.UnsupportedElementConfig],this.init=()=>Promise.resolve(),this._dynamicGrid=new z,this.config.getDynamicLayoutBreakpointWidth=()=>this._dynamicGrid.getDynamicLayoutBreakpointWidth(),this.config.getDynamicLayoutMinimumBreakpoint=()=>this._dynamicGrid.getDynamicLayoutMinimumBreakpoint(),this.config.getDynamicLayoutRules=()=>this._dynamicGrid.getDynamicLayoutRules(),this.config.handleViewPathView=function(){(0,R.UK)()},this._handleToastClick=()=>{const e=Z.Z.ccdAPI.ccdContext.get("onboardingTourStore"),t={componentId:"/assets/libraries",tourId:"ccd.libraries.nestedGroups"+Math.floor(1e3*Math.random()),version:1,viewType:"Main",disableProgress:!0,onTourEnd:()=>{},tourContent:[{id:"ccd.libraries.nestedGroups",stepNumber:10,type:"coachMark",title:(0,h.Iu)("DL_VIEW_BY_GROUP_POPOVER_TITLE"),target:".view-type-dropdown",domTarget:"library-contents-view",description:(0,h.Iu)("DL_VIEW_BY_GROUP_POPOVER_BODY"),confirmLabel:(0,h.Iu)("DL_OK"),cancelLabel:(0,h.Iu)("DL_CANCEL"),mandatory:!1,placement:"bottom left",confirmAnalyticsId:"tour",cancelAnalyticsId:"skip"}]};e.register(t)},this.config.showCustomGroupViewPopover=()=>{const e=V.createElement(j.Z,{className:"panel-toast-group-sort",html:(0,h.Iu)("DL_VIEW_BY_GROUP_POPOVER_BODY_LINK"),onClick:this._handleToastClick});M.Z.panel.toastManager.openToast("message",{variant:"info",message:e})},this.config.setElementDragData=(e,t)=>{e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setData(Z.Z.ElementDragId,JSON.stringify({libraryId:t[0].library.id,elementIds:t.map((e=>e.id))}))},this}},54697:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>D});var n=r(99386),i=r(76485),o=r(93028),a=r(53849),s=r(74379),c=r(34038),l=r(46903),u=r(77560),p=r(8733),d=r(16771);class h extends d.Z{_setColor(e,t,r){return t||(t=[],e.representations.forEach((e=>{const r=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.getValue("library","rel")?t.unshift(r):t.push(r)})),e.representations.length>0&&(0,l.vM)(e.representations[0],"setColor")),r&&r("setColor"),i.Z.execApp("setColor",[t])}getApplyOperations(e){const t=p.Z.getLayerInfo();return!t||t&&!t.selectionExists?[]:[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",isDraggable:!1,apply:(t,r)=>this._setColor(e,t,r),displayInMenu:!0,onClick:!0}]}}var f=r(48124),m=r(47320),g=r(31870),v=r(76325);function y(...e){const t=function(e,...t){return e.replace(/\{(\d+)\}/gm,((e,r)=>t[r]))}(...e);return i.Z.execApp("log",[t,"cc-libraries-panel"])}function b(e,t=!1){y("addOrUpdateElementInProject(element:{0}({1}), addingElement:{2})",e.name,e.id,t);const r={name:e.name,id:e.id,libraryName:e.library.name,reference:e.getLegacyReference(),modified:e.modified,created:e.created,adobeStockId:g.wq(e)};r.licensed=r.adobeStockId?g.kv(e):null;const n=m.Z.findUsableRepresentation(e,c.ku(e.type));if(n){const s=t?"com.adobe.DesignLibraries.events.CreateLibrariesFootage":"com.adobe.DesignLibraries.events.UpdateLibrariesFootage";r.width=n.width,r.height=n.height,r.contentLength=n.contentLength,r.contentType=n.type;const u=c.vn(n.type);r.extension=u[0];const p=n.getValue("video","data");if(p?(r.framerate=p.framerate&&Number(p.framerate),r.duration=Math.floor(p.duration)):(r.framerate=1,r.duration=1),t&&(0,l.vM)(n,"placeAsset"),g.Jw(e)){var a;r.url=n.getContentURL(),r.trackingdata=n.getValue("adobestock","trackingdata");const e=null!==(a=o.ZP.userId)&&void 0!==a?a:"";return y("Retrieving IMS access token."),v.Z.getAccessToken(e).then((function(e){y("IMS access token: {0}",e),r.imsToken=e;const t=i.Z.createEvent(s,"APPLICATION");t.data=JSON.stringify(r),y("Dispatching event to application: {0}: {1}",t.name,t.data),i.Z.dispatchEvent(t)})).catch((function(e){y("WARNING: Failed to get IMS access token: {0}",JSON.stringify(e));const t=i.Z.createEvent(s,"APPLICATION");t.data=JSON.stringify(r),y("Dispatching event to application: {0}: {1}",t.name,t.data),i.Z.dispatchEvent(t)}))}n.getContentPath().then((e=>{r.assetPath=e;const t=i.Z.createEvent(s,"APPLICATION");t.data=JSON.stringify(r),y("Dispatching event to application: {0}: {1}",t.name,t.data),i.Z.dispatchEvent(t)}))}y("WARNING: No assetRep found.")}class _ extends f.Z{getApplyOperations(e){return[{name:"DL_ADD_IMAGE_TO_PROJECT",onClick:!1,isDraggable:!0,apply:()=>b(e,!0),displayInMenu:!0}]}}var E=r(65944);class w extends E.Z{_applyLook(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,l.vM)(t,"placeAsset"),t.getContentPath().then((t=>i.Z.execApp("placeAsset",[t,!1,e.name])))}getApplyOperations(e){return[{name:"DL_APPLY_LOOK",onClick:!1,isDraggable:!0,apply:()=>this._applyLook(e),displayInMenu:!0}]}}var L=r(4328);class x extends L.Z{getApplyOperations(e){return[{name:"DL_ADD_TO_PROJECT",icon:"download",apply:()=>b(e,!0),displayInMenu:!0}]}}var S=r(54888);class O extends S.Z{getApplyOperations(e){return[{name:"DL_ADD_TO_PROJECT",onClick:!1,isDraggable:!0,apply:()=>b(e,!0),displayInMenu:!0}]}}var T=r(82359);class I extends T.Z{getApplyOperations(e){return[{name:"DL_ADD_TO_PROJECT",onClick:!1,isDraggable:!0,apply:()=>b(e,!0),displayInMenu:!0}]}}var P=r(59846);class C extends P.Z{getApplyOperations(e){return[{name:"DL_ADD_TO_PROJECT",onClick:!1,isDraggable:!0,apply:()=>b(e,!0),displayInMenu:!0}]}}function A(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */A=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function k(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function D(){function e(e){return s.vq(e,e,e).slice(1).toLowerCase()}this.getScaleColor=function(t){const r=.4*t+35;return e(r)},this.cssThemeBGScale=function(){const t={},r={darker:"darker",dark_v7:"dark-v7",dark:"dark",light:"light",lighter:"lighter"},n=e=>{switch(e){case 0:return r.darker;case 100:return r.dark;default:return"generated/"+e}};for(let e=0;e<=100;e++){const r=this.getScaleColor(e);(!Object.prototype.hasOwnProperty.call(t,r)||Object.prototype.hasOwnProperty.call(t,r)&&n(e)!=="generated/"+e)&&(t[r]=n(e))}return[[30,r.darker],[50,r.dark_v7],[245,r.light]].forEach((r=>{const n=e(r[0]);t[n]=r[1]})),t},this.config={},this.config.code="AEFT",this.config.fullName="After Effects",this.config.translationSuffix="AE",this.config.dragDropSource="com.adobe.aftereffects",this.config.defaultStockSearchOptions=[n.Z.STOCK_SEARCH_OPTION_VIDEO.id],this.config.themes=this.cssThemeBGScale(),this.config.defaultTheme="darker",this.config.elementTypes=[h,u.Z.ColorThemeElementConfig,_,x,w,O,I,C,u.Z.AudioElementConfig,u.Z.ComponentElementConfig,u.Z.CapsuleElementConfig,u.Z.TextStyleElementConfig,u.Z.FontElementConfig,u.Z.ParagraphStyleElementConfig,u.Z.LayerStyleElementConfig,u.Z.BrushElementConfig,u.Z.PatternElementConfig,u.Z.TemplateElementConfig,u.Z.TextElementConfig,u.Z.AnimationElementConfig,u.Z.GradientElementConfig,u.Z.ChannelElementConfig,u.Z.ImageGuidelineElementConfig,u.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.AUDIO_ELEMENT_TYPE,n.Z.BRUSH_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.init=function(){c.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/pdf","application/illustrator","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","image/png","image/jpeg","image/jpg","image/tiff","image/bmp","image/svg+xml","image/heic","image/x-adobe-dng","image/dng"]),c.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),c.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),c.Zh(n.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt","application/vnd.adobe.look+xml"]),c.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),c.Zh(n.Z.VIDEO_ELEMENT_TYPE,["video/mp4","video/quicktime","video/x-quicktime","video/x-ms-wmv","video/x-ms-asf","video/x-msvideo","video/mpeg"]),c.Zh(n.Z.THREE_D_ELEMENT_TYPE,["application/vnd.adobe.obj.3d+zip","model/gltf+json","model/gltf-binary"]),c.Zh(n.Z.MATERIAL_ELEMENT_TYPE,["application/vnd.adobe.sbsar+zip"]),c.Zh(n.Z.LIGHT_ELEMENT_TYPE,["image/vnd.radiance"]),i.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),this.startEventListener()},this.reportEvent=function(){},this.getUserData=function(e){i.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))},this.config.hideAddControls=!0;const t=function(){var e,t=(e=A().mark((function e(t){var r,n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y("onFootageNeedsUpdate event.data.element.reference={0}",t.data.element.reference),e.next=3,o.ZP.resolveElementReference(t.data.element.reference);case 3:if(r=e.sent,n=!!t.data.element.addingElement,r){e.next=8;break}throw y("Cound not resolve element."),"Element not found";case 8:b(r,n);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){k(o,n,i,a,s,"next",e)}function s(e){k(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),r=e=>{const t=0,r=1,s=2,u=3,p=4,d=5,h=6,f=i.Z.createEvent("com.adobe.DesignLibraries.events.UploadCapsuleResponse","APPLICATION"),m={code:t},g=e.data,v=o.ZP.getLibraryById(g.libraryId);let y=t;if(c.xW(g.primaryPath)||(y=s),y!==t||c.xW(g.secondaryPath)||(y=u),y!==t||c.xW(g.thumbnailPath)||(y=p),y!==t||v||(y=d),y!==t||v.isWritable||(y=h),y===t){const e=(e,t)=>{const r=i.Z.createEvent("com.adobe.DesignLibraries.events.UploadCapsuleProgress","APPLICATION");r.data=JSON.stringify({current:e,total:t}),i.Z.dispatchEvent(r)},t=[];let o,s,u=3,p=0;g.videoPreviewPath&&c.xW(g.videoPreviewPath)&&u++,e(p,u);const d=(0,l.MN)(v,g.capsuleName,n.Z.CAPSULE_ELEMENT_TYPE,{});if(g.primaryPath){if(o=d.createRepresentation("application/vnd.adobe.ae.graphic+zip","primary"),g.metadata){const e=JSON.parse(g.metadata);o.setValue(n.Z.CAPSULE_NAMESPACE,n.Z.CAPSULE_DATA_KEY,e)}s=o.setContentFromPath(g.primaryPath).then((()=>{p+=1,e(p,u)})),t.push(s)}g.secondaryPath&&(o=d.createRepresentation("application/vnd.adobe.graphic+json","alternate"),s=o.setContentFromPath(g.secondaryPath).then((()=>{p+=1,e(p,u)})),t.push(s)),g.thumbnailPath&&(o=d.createRepresentation("image/png","rendition"),s=o.setContentFromPath(g.thumbnailPath).then((()=>{p+=1,e(p,u)})),t.push(s)),g.videoPreviewPath&&c.xW(g.videoPreviewPath)&&(o=d.createRepresentation("video/mp4","rendition"),s=o.setContentFromPath(g.videoPreviewPath).then((()=>{p+=1,e(p,u)})),t.push(s));const h=()=>{const e=[d.setThumbnailCache(n.Z.CAPSULE_THUMBNAIL_SIZE,g.thumbnailPath),d.endOperation()];Promise.all(e).then((()=>{g.primaryPath&&c._I(g.primaryPath),g.secondaryPath&&c._I(g.secondaryPath),g.thumbnailPath&&c._I(g.thumbnailPath)})),a.Z.revealElement(d),f.data=JSON.stringify(m),i.Z.dispatchEvent(f)},y=()=>{v.removeElement(d,!0),m.code=r,f.data=JSON.stringify(m),i.Z.dispatchEvent(f)};Promise.all(t).then(h,y)}else m.code=y,f.data=JSON.stringify(m),i.Z.dispatchEvent(f)};return this.startEventListener=function(){i.Z.addEventListener("com.adobe.csxs.events.ShouldUpdateFootage",t),i.Z.addEventListener("uploadCapsuleEvent",r)},this.stopEventListener=function(){i.Z.removeEventListener("com.adobe.csxs.events.ShouldUpdateFootage",t),i.Z.removeEventListener("uploadCapsuleEvent",r)},this}},1149:(e,t,r)=>{"use strict";r.d(t,{$2:()=>n});r(31870),r(2169);function n(e){switch(e){case"private":case"outgoing":case"collaborated":return"owned";case"incoming":return"shared";default:return e}}},68051:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(76485),i=r(8733),o=r(46903),a=r(12894),s=r(13293);class c extends a.Z{_setStyleInfo(e,t,r){e.type="charstyle",e.name=t,e.id=r}_setFont(e,t,r){const i=1===r.index,a=r.index===r.length,c=this._config.findUsableRepresentation(e);if(!c)return;const l=(0,s.R)(e);l&&l.id?(0,o.vM)(c,t,null,{event:{value:"typekit"}}):(0,o.vM)(c,t);const u=e.name,p=e.id+";"+e.modified,d=this._getStyleData(e,!0);return this._setStyleInfo(d,u,p),n.Z.execApp(t,[d,i,a])}getApplyOperations(e,t,r){const n=i.Z.getLayerInfo();return n&&"LayerKind.TEXT"===n.kind?[{name:"DL_SET_FONT_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setFont(e,"setFont",r),displayInMenu:!0}]:[]}}},39360:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>y});var n=r(99386),i=r(47320),o=r(76485),a=r(93028),s=r(31870),c=r(74379),l=r(8733),u=r(34038),p=r(26964),d=r(77560),h=r(46903),f=r(16771);class m extends f.Z{_copyColorValue(e,t,r,i){r||(r=[],e.representations.forEach((e=>{const t=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?r.unshift(t):r.push(t)})),e.representations.length>0&&(0,h.vM)(e.representations[0],t)),i&&i(t);const a=c.Nh(r);if(!a)return;if("copyRGB"===t)return o.Z.execApp(t,[JSON.stringify(a.value)]);const s=c.m3(a),l=!(!event||1!==event.which);return o.Z.execApp(t,[s.toUpperCase(),l])}getApplyOperations(e){return[{name:"DL_COPY_HEX_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._copyColorValue(e,"copyHex",t,r),displayInMenu:!0,onClick:!0},{name:"DL_COPY_RGB_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._copyColorValue(e,"copyRGB",t,r),displayInMenu:!0}]}}var g=r(48124);class v extends g.Z{_addImageToDocument(e,t,r){const i=s.wq(e),a=this._config.findUsableRepresentation(e);return a?((0,h.vM)(a,"placeAsset",t),a.getContentPath().then((c=>{const l=u.i_(n.Z.IMAGE_ELEMENT_TYPE,a.type),p=l&&"PHXS"===l.app;return o.Z.execApp("placeAsset",[c,p,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,i||"",i?s.kv(e):null,t,r])}))):e.getThumbnailPath().then((function(n){return(0,h.dN)(e,"placeAsset",t),o.Z.execApp("placeAsset",[n,!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,i||"",i?s.kv(e):null,t,r])}))}getApplyOperations(e){return[{name:"DL_INSERT_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0,!1),displayInMenu:n.Z.currentProduct.config.isDocumentOpen},{name:"DL_INSERT_IMAGE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e,!1,!1),displayInMenu:n.Z.currentProduct.config.isDocumentOpen},{name:"DL_DOWNLOAD_IMAGE_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0,!0),displayInMenu:!0},{name:"DL_DOWNLOAD_IMAGE_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e,!1,!0),displayInMenu:!0}]}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}function y(){this.config={},this.config.code="DRWV",this.config.fullName="Dreamweaver",this.config.translationSuffix="DW",this.config.dragDropSource="com.adobe.dreamweaver",this.config.themes={323232:"darker",484848:"dark",cacaca:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.isDocumentOpen=!1,this.config.isReadOnly=!0,this.config.elementTypes=[v,m,d.Z.ColorThemeElementConfig,d.Z.ComponentElementConfig,d.Z.TextStyleElementConfig,d.Z.FontElementConfig,d.Z.ParagraphStyleElementConfig,d.Z.VideoElementConfig,d.Z.LayerStyleElementConfig,d.Z.LookElementConfig,d.Z.CapsuleElementConfig,d.Z.BrushElementConfig,d.Z.ThreeDElementConfig,d.Z.PatternElementConfig,d.Z.TemplateElementConfig,d.Z.TextElementConfig,d.Z.AnimationElementConfig,d.Z.LightElementConfig,d.Z.MaterialElementConfig,d.Z.GradientElementConfig,d.Z.AudioElementConfig,d.Z.ChannelElementConfig,d.Z.ImageGuidelineElementConfig,d.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.CHARACTER_STYLE_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.BRUSH_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE];let e={};let t=!1;const r=()=>{t||(t=!0,setTimeout((function(){t=!1,(()=>{const t=[];function r(t){u.colors=t.colors;const r=[];let n;if(t.images){for(let e=t.images.length-1;e>=0;--e)t.images[e].thumbnailError?t.images.splice(e,1):(n={},n.path=t.images[e].thumbnail,r.push(n));r.reverse,u.images=t.images}e.thumbnails=r,e.currentLibraryItemList=u,o.Z.execApp("setLibraryCollection",[JSON.stringify(e)])}function l(){const t=e.libraries[0];t&&t.images.every((e=>""!==e.thumbnail||e.thumbnailError))&&r(t)}a.ZP.libraries.forEach((function(e){e.isDeletedFromServer||t.push({name:e.name,id:e.id})})),t.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),e={},e.libraryNames=t,e.libraries=[];const u={},d=a.ZP.currentLibrary;d&&(e.currentLibrary=t.findIndex((e=>e.id===d.id)),function(t){const r={};r.name=t.name,r.id=t.id,r.images=[],r.colors=[];const o=t.elements,a=o.length;let u,d,h,f=0;for(let e=0;e<a&&f<3e3;e++){const t={};if(h=o[e],h.type===n.Z.IMAGE_ELEMENT_TYPE){f++;const e=h.getPrimaryRepresentation();t.elementRef=h.getLegacyReference(),t.primaryType=e?e.type:"",t.elementName=h.name,t.adobeStockID=s.wq(h)||"",t.isUnlicensedStockAsset=!!t.adobeStockID&&!s.kv(h);const n=i.Z.getThumbnailSize(h);t.thumbnail=h.getCachedThumbnailPath(n),t.thumbnail||(t.thumbnail="",h.getThumbnailPath(n).then((e=>t.thumbnail=e),(e=>{p.Z.log(e),t.thumbnailError=!0})).then(l)),r.images.push(t)}else if(h.type===n.Z.COLOR_ELEMENT_TYPE){f++;for(let e=0;e<h.representations.length;e++)if(c.lP(h)){const t={};u=h.representations[e].getValue("color","data"),d=c.m3(u),t.hexValue=d,t.source="color",t.colorAliasName=h.name&&""!==h.name?h.name:d,r.colors.push(t)}}else if(h.type===n.Z.COLOR_THEME_ELEMENT_TYPE&&h.getPrimaryRepresentation().getValue("colortheme","data")){const e=h.getPrimaryRepresentation().getValue("colortheme","data").swatches;f++;for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)if(c.Nh(e[t])){const i={};u=e[t][n],d=c.m3(u),i.hexValue=d,i.source="colorTheme",r.colors.push(i)}}}e.libraries.push(r)}(d),e.libraries.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),r(e.libraries[0]))})()}),100))};this.init=function(){u.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/bmp","image/svg+xml"]),u.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),u.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),u.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,[]),u.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,[]),u.Zh(n.Z.LAYER_STYLE_ELEMENT_TYPE,[]),u.Zh(n.Z.BRUSH_ELEMENT_TYPE,[]),u.Zh(n.Z.LOOK_ELEMENT_TYPE,[]),u.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),o.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),this.startEventListener(),a.ZP.addListener("libraryList",(function(){r()})),a.ZP.addListener("currentLibrary",(function(){r()})),a.ZP.addListener("libraryStatus",(function(){r()}))},this.reportEvent=function(e,t){const r=o.Z.createEvent("com.adobe.DesignLibraries.events.LOGPIP","APPLICATION"),n=function(e){return e||"N/A"},i={eventName:n(e),libraryID:n(t.libraryID),elementType:n(t.elementType),opType:n(t.opType)};r.data=JSON.stringify(i),o.Z.dispatchEvent(r)},this.getUserData=function(e){o.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))};const h=()=>{l.Z.handleSelectionChange()};this.config.hideAddControls=!0;const f=()=>{},g=e=>{"open"===e.data.documentStatus?n.Z.currentProduct.config.isDocumentOpen=!0:n.Z.currentProduct.config.isDocumentOpen=!1};return this.startEventListener=function(){o.Z.addEventListener("selectionChanged",h),o.Z.addEventListener("addAssetToLibrary",f),o.Z.addEventListener("requestContextRebuild",r),o.Z.addEventListener("documentChanged",g)},this.stopEventListener=function(){o.Z.removeEventListener("selectionChanged",h),o.Z.removeEventListener("addAssetToLibrary",f),o.Z.removeEventListener("requestContextRebuild",r),o.Z.removeEventListener("documentChanged",g)},this}},91828:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>z});var n=r(99386),i=r(93028),o=r(76485),a=r(34038),s=r(26964),c=r(8733),l=r(53849),u=r(46903),p=r(47320),d=r(15909),h=r(9494),f=r(84824),m=r(92098),g=r(80804);function v(e){const t=p.Z.findUsableRepresentation(e,a.PX(n.Z.ANIMATION_ELEMENT_TYPE)),r="documentLock_"+e.id,s=e.library&&e.library.name;if(!t)return!1;let c,v,y=!1,b=!1;m.Z.getTempFile(t).then((e=>(c=e,v=a.K3(c)+".png",o.Z.execApp("openAssetForEdit",[e,v])))).then((t=>{const p=g.Z.startListening(t,c,(t=>{switch(t){case"closed":h.Z.obtainLock(r,(()=>{g.Z.stopListening(p),y=!0,b||m.Z.deleteTempFile(c),d.Z.elementEditCompleted(e),h.Z.releaseLock(r)}));break;case"saved":{if(!(0,u.ii)(c))return;let t=e.library;const p=!t||t.isDeletedLocally;let g;if(p||!t.isWritable){if(t=i.ZP.getRecoveryLibrary(s),!t)return;g=!0}const _=[];h.Z.obtainLock(r,(()=>{b=!0,e.isDeletedLocally||g?e=t.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const i=a.pH(c,e.type),E=e.createRepresentation(i,"primary");_.push(E.setContentFromPath(c)),v&&a.xW(v)&&_.push((0,u.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,v));const w=e.endOperation(),L=()=>{d.Z.sendElementUpdated(E),h.Z.releaseLock(r),g&&(l.Z.revealElement(e),p?o.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:t.name})):o.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:t.name,originalLibraryName:s}))),w.then((()=>{y?m.Z.deleteTempFile(c):m.Z.updateTempFile(E,c),b=!1}))};Promise.all(_).then(L,L)}));break}}}))}))}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))}}const E=(e,t)=>{if(e){const r=e.element,n=r.getLegacyReference();e.getContentPath().then((function(e){const i=o.Z.createEvent("com.adobe.DesignLibraries.events.attachRenditionCompleted","APPLICATION");i.data=JSON.stringify({requestRef:t,elementRef:n,name:r.name,libraryName:r.library.name,modifiedTime:(0,u.RW)(r),creationTime:r.created,data:[e]}),o.Z.dispatchEvent(i)}))}},w=(e,t,r)=>{const n=t&&t.files||[];for(let t=0;t<n.length;t++){const i=n[t];if(a.xW(i.path)){const t=a.pH(i.path,r.type),n=r.createRepresentation(t,i.relationship).setContentFromPath(i.path);e.push(n)}}},L=e=>{for(let t=0;t<e.length;t++)a._I(e[t].path)},x=(e,t,r)=>{if(!e)throw"No current library";if(!t||!t.files||!r)throw"event data invalid"};function S(e){return O.apply(this,arguments)}function O(){return(O=_(y().mark((function e(t){var r,o,s,c,p,d;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data.fileData,o=t.data.elementType,s=t.data.elementRef,e.prev=3,s){e.next=6;break}throw"elementRef missing";case 6:return e.next=8,i.ZP.resolveElementReference(s);case 8:if(c=e.sent){e.next=11;break}throw"Element not found";case 11:if(l.Z.revealElement(c),p=c.library,(0,u.oY)(p)){e.next=15;break}return e.abrupt("return");case 15:return x(p,r,o),c.isDeletedLocally?c=p.createElement(c.name,c.type):(c.beginOperation(),c.removeAllRepresentations()),w(d=[],r,c),e.abrupt("return",Promise.all(d).then((function(){const e=[];return r.rendition&&e.push(c.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,r.rendition)),e.push(c.endOperation),Promise.all(e).then((()=>{r.rendition&&a._I(r.rendition.path),L(r.files)})),E(c.getPrimaryRepresentation(),t.data.requestRef),c}),(()=>Promise.reject("Could not update element"))));case 22:return e.prev=22,e.t0=e.catch(3),e.abrupt("return",Promise.reject("Could not update element: "+e.t0));case 25:case"end":return e.stop()}}),e,null,[[3,22]])})))).apply(this,arguments)}const T="application/vnd.adobe.animate-xfl+zip",I="application/vnd.adobe.animate-sym+zip";function P(e){return C.apply(this,arguments)}function C(){return(C=_(y().mark((function e(t){var r,n,o,a,s;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data.elementRef){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,i.ZP.resolveElementReference(r);case 5:if(n=e.sent){e.next=8;break}return e.abrupt("return");case 8:if(o=n.library,(0,u.oY)(o)){e.next=11;break}return e.abrupt("return");case 11:if(a=n.getPrimaryRepresentation(),s=a&&a.type===I,!(a&&a.type===T)&&!s){e.next=16;break}return e.abrupt("return",v(n));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const A=()=>{c.Z.handleSelectionChange()};var k=r(77560),D=r(74149),N=r(71923);class R extends N.Z{_addAnimationToDocument(e,t){const r=this._config.findUsableRepresentation(e);return r?((0,u.vM)(r,"placeAsset"),r.getContentPath().then((r=>o.Z.execApp("placeAsset",[r,e.library.name,e.name,e.getLegacyReference(),(0,u.RW)(e),e.created,t,JSON.stringify(e.getValues())])))):e.getThumbnailPath().then((r=>((0,u.dN)(e,"placeAsset"),o.Z.execApp("placeAsset",[r,e.library.name,e.name,e.getLegacyReference(),(0,u.RW)(e),e.created,t]))))}getApplyOperations(e){if(!c.Z.getLayerInfo())return[];const t=e.getPrimaryRepresentation();return t&&"application/vnd.adobe.animate-sym+zip"===t.type?[{name:"DL_ADD_ANIMATION_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!0,apply:()=>this._addAnimationToDocument(e,!0),displayInMenu:!0},{name:"DL_ADD_ANIMATION_TO_DOC_AS_COPY",icon:"download",allowMultiple:!0,apply:()=>this._addAnimationToDocument(e,!1),displayInMenu:!0}]:t&&"application/vnd.adobe.animate-xfl+zip"===t.type?[{name:"DL_OPEN_IN_NEW_DOCUMENT",icon:"download",allowMultiple:!0,apply:()=>this._addAnimationToDocument(e,!1),displayInMenu:!0}]:[]}_addDocContent(e,t){return this._confirmAddOperation().then((()=>o.Z.execApp("uploadCurrentDoc",[]))).then((r=>{const n=JSON.parse(r),i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:""};return(0,D.Cf)(n.layerName,n.files,n.rendition,e,t,i,n.elementData)}),(()=>Promise.reject("Could not extract asset.")))}_addAsset(e,t,r=""){return(0,u.g0)(r).then((n=>{const i=n.map((n=>{const i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:r};return(0,D.Cf)(n.layerName,n.files,n.rendition,e,t,i,n.elementData)}));return Promise.all(i).catch((()=>Promise.reject("Could not upload files")))}),(()=>Promise.reject("Could not extract asset.")))}_confirmAddOperation(){return o.Z.execApp("saveCurrentDoc",[]).then((e=>{if("true"!==e.toLowerCase())return Promise.reject("Did not save document")}))}getAddOperations(e){if(!e)return[];const t=[];return e.enableDocumentUpload&&t.push({name:"DL_ADD_ENTIRE_ANIMATION_TO_LIBRARY",order:1,icon:"AddAnimation",apply:(e,t)=>this._addDocContent(e,t)}),e.enableAnimationUpload&&t.push({name:"DL_ADD_SYMBOL_TO_LIBRARY",order:2,icon:"AddAnimation",dropSupport:!0,apply:(e,t,r)=>this._addAsset(e,t,r)}),t}defaultEditOperation(e){return v(e)}getDragData(e){let t,r=this._config.findUsableRepresentation(e);if(r)t=r.getCachedContentPath();else if(e){const n=e.getCachedThumbnailPath();n&&(t=n,r={type:"image/png",element:e})}if(t)return{data:[t],usedRepresentationForAnalytics:r,metaData:e.getValue("FLPR","assetInfo")}}}var M=r(74379),j=r(16771);class Z extends j.Z{_setColor(e,t,r){t||(t=[],e.representations.forEach((e=>{const r=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?t.unshift(r):t.push(r)})),e.representations.length>0&&(0,u.vM)(e.representations[0],"setColor"));const i=M.Nh(t);if(!i)return;r&&r("setColor");const a=M.m3(i);return o.Z.execApp("setColor",[a.toUpperCase()])}getApplyOperations(e){const t=c.Z.getLayerInfo();return!t||t&&!t.selectionExists?[]:[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,t,r),displayInMenu:!0,onClick:!0}]}}var F=r(76572);class B extends F.Z{_addBrushToDocument(e,t){return(0,u.vM)(t,"useBrush"),t.getContentPath().then((t=>o.Z.execApp("loadAndSelectBrush",[e.library.name,e.name,t])))}getApplyOperations(e){const t=a.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}));return c.Z.getLayerInfo()&&r?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,allowMultiple:!0,apply:()=>this._addBrushToDocument(e,r),displayInMenu:!0}]:[]}_addBrush(e,t){return o.Z.execApp("uploadBrushes",[e.name]).then((r=>{const n=JSON.parse(r).files.map((r=>(0,D.D5)(r.name,r.primary,r.rendition,e,t)));return Promise.all(n).then((e=>(e[0]&&l.Z.revealElement(e[0]),e)),(()=>Promise.reject("Could not upload some brushes.")))}),(()=>Promise.reject("Could not extract brushes.")))}getAddOperations(e){return e&&e.enableBrushUpload?[{name:"DL_ADD_BRUSH_TO_LIBRARY",order:3,iconToolTip:"DL_ADD_BRUSH_TO_LIBRARY_ICON_TOOLTIP",icon:"AddBrush",apply:(e,t)=>this._addBrush(e,t)}]:[]}}var G=r(48124);class U extends G.Z{_addImageToDocument(e,t=!1){const r=this._config.findUsableRepresentation(e);return r?((0,u.vM)(r,"placeAsset"),r.getContentPath().then((r=>o.Z.execApp("placeAsset",[r,e.library.name,e.name,e.getLegacyReference(),(0,u.RW)(e),e.created,t])))):e.getThumbnailPath().then((r=>((0,u.dN)(e,"placeAsset"),o.Z.execApp("placeAsset",[r,e.library.name,e.name,e.getLegacyReference(),(0,u.RW)(e),e.created,t]))))}getApplyOperations(e){return c.Z.getLayerInfo()?[{name:"DL_ADD_IMAGE_TO_DOC",icon:"download",allowMultiple:!0,apply:()=>this._addImageToDocument(e),displayInMenu:!0}]:[]}getAddOperations(){return[]}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}function z(){return this.config={},this.config.code="FLPR",this.config.fullName="FlashPro",this.config.translationSuffix="FP",this.config.dragDropSource="com.adobe.flashpro",this.config.themes={444444:"dark",dbdbdb:"lighter"},this.config.elementTypes=[Z,k.Z.ColorThemeElementConfig,B,R,U,k.Z.ComponentElementConfig,k.Z.VideoElementConfig,k.Z.TextStyleElementConfig,k.Z.FontElementConfig,k.Z.ParagraphStyleElementConfig,k.Z.LayerStyleElementConfig,k.Z.LookElementConfig,k.Z.CapsuleElementConfig,k.Z.ThreeDElementConfig,k.Z.PatternElementConfig,k.Z.TemplateElementConfig,k.Z.LightElementConfig,k.Z.MaterialElementConfig,k.Z.TextElementConfig,k.Z.GradientElementConfig,k.Z.AudioElementConfig,k.Z.ChannelElementConfig,k.Z.ImageGuidelineElementConfig,k.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.VIDEO_ELEMENT_TYPE,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.startEventListener=function(){o.Z.addEventListener("com.adobe.events.flash.documentChanged",A),o.Z.addEventListener("com.adobe.events.flash.attachRendition",S),o.Z.addEventListener("com.adobe.events.flash.editElement",P)},this.stopEventListener=function(){o.Z.removeEventListener("com.adobe.events.flash.documentChanged",A),o.Z.removeEventListener("com.adobe.events.flash.attachRendition",S),o.Z.removeEventListener("com.adobe.events.flash.editElement",P)},this.addOperationInstantiated=function(){o.Z.addEventListener("com.adobe.events.flash.selectionChanged",A),A()},this.addOperationComplete=function(){o.Z.removeEventListener("com.adobe.events.flash.selectionChanged",A)},this.init=function(){a.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),a.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),a.Zh(n.Z.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip"]),a.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/svg+xml","image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","image/vnd.adobe.photoshop","application/photoshop.large","application/illustrator"]),a.Zh(n.Z.VIDEO_ELEMENT_TYPE,[]),a.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,[]),a.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,[]),a.Zh(n.Z.LAYER_STYLE_ELEMENT_TYPE,[]),a.Zh(n.Z.LOOK_ELEMENT_TYPE,[]),a.Zh(n.Z.THREE_D_ELEMENT_TYPE,[]),a.Dk(n.Z.ANIMATION_ELEMENT_TYPE,["application/vnd.adobe.animate-xfl+zip","application/vnd.adobe.animate-sym+zip"]),a.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),o.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),this.startEventListener(),i.ZP.waitForInitialLoad().then((function(){const e=o.Z.createEvent("com.adobe.events.flash.extensionLoaded","APPLICATION");e.data="",e.extensionId="com.adobe.DesignLibraries.angular",o.Z.dispatchEvent(e)}))},this.reportEvent=function(e,t){o.Z.execApp("reportEvent",[e,t]).then((function(t){JSON.parse(t)&&s.Z.log(e+" metric reported to FL")}))},this.getUserData=function(e){o.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))},this}},13594:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>Q});var n=r(99386),i=r(47320),o=r(93028),a=r(76485),s=r(31870),c=r(8733),l=r(84074),u=r(26964),p=r(34038),d=r(16993),h=r(46903),f=r(84824),m=r(57613);const g={};function v(e,t,r,i){const o=g[e.type];if(r.index===r.length){const e="addElement",t={opType:o.ANALYTICS_OP_TYPE,elementType:o.ANALYTICS_ELEMENT_TYPE,numElements:r.length};n.Z.currentProduct.reportEvent(e,t)}const c=s.wq(e),l=r.length>1;return t?((0,h.vM)(t,"placeAsset",i),t.getContentPath().then((t=>a.Z.execApp("placeAsset",[t||"",e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,c,c?s.kv(e):null,i,l])))):e.getThumbnailPath().then((t=>((0,h.dN)(e,"placeAsset",i),a.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,c,c?s.kv(e):null,i,l]))))}function y(e,t,r){const o=c.Z.getLayerInfo();if(!o||!0===o.noDocState)return[];const a=g[e.type],s=i.Z.findUsableRepresentation(e);if(!s&&!a.ALLOW_PNG_FALLBACK)return[];const l=s&&"application/vnd.adobe.indesign-idms"===s.type;return n.Z.IS_APP_IN_TOUCH_MODE?[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!1,apply:()=>v(e,s,r,!0),displayInMenu:!0,onClick:!0}]:[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!0,apply:()=>v(e,s,r,!0),displayInMenu:!l},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",allowMultiple:!0,apply:()=>v(e,s,r,!1),displayInMenu:!0}]}g[n.Z.IMAGE_ELEMENT_TYPE]={ANALYTICS_OP_TYPE:"addImageToDocument",ANALYTICS_ELEMENT_TYPE:"image",ALLOW_PNG_FALLBACK:!0},g[n.Z.COMPONENT_ELEMENT_TYPE]={ANALYTICS_OP_TYPE:"addComponentToDocument",ANALYTICS_ELEMENT_TYPE:"component",ALLOW_PNG_FALLBACK:!0},g[n.Z.ANIMATION_ELEMENT_TYPE]={ANALYTICS_OP_TYPE:"addAnimationToDocument",ANALYTICS_ELEMENT_TYPE:"animation",ALLOW_PNG_FALLBACK:!1};var b=r(71923);class _ extends b.Z{getApplyOperations(e,t,r){return y(e,0,r)}defaultEditOperation(){return!1}}var E=r(16771);class w extends E.Z{_setColor(e,t,r,i,o){const s=1===r.index,c=r.index===r.length;return i||(i=[],e.representations.forEach((t=>{const r=t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);void 0!==e.name&&(r.name=e.name),"primary"===t.relationship?i.unshift(r):i.push(r)})),e.representations.length>0&&((0,h.vM)(e.representations[0],t),"addColor"===t&&!0===c&&n.Z.currentProduct.reportEvent("addElement",{opType:"addColor",elementType:"color",numElements:r.length}))),o&&o(t),a.Z.execApp(t,[i,s,c])}getApplyOperations(e,t,r){const n=c.Z.getLayerInfo();if(!n||!n.selectionExists&&!n.textSelectionExists&&!n.insertionPointExists)return[{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,n)=>this._setColor(e,"addColor",r,t,n),displayInMenu:!0}];return[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,n)=>this._setColor(e,"setColor",r,t,n),displayInMenu:!0,onClick:!0},{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,n)=>this._setColor(e,"addColor",r,t,n),displayInMenu:r.length>1}]}defaultEditOperation(e){if(n.Z.IS_APP_IN_TOUCH_MODE)return;const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);return a.Z.execApp("replaceColor",[r]).then((t=>{if(t.length&&JSON.parse(t))return a.Z.execApp("getLayerColor",[]).then((t=>{const r=JSON.parse(t);e.beginOperation(),e.removeAllRepresentations(),r.forEach(((t,r)=>{const i=0===r?"primary":"rendition";e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation()}))}))}}var L=r(38122);class x extends L.Z{_createColorGroup(e,t){const r=1===t.index,i=t.index===t.length,o=this._config.findUsableRepresentation(e),s=o.getValue("colortheme","data");return s.name=e.name,(0,h.vM)(o,"createColorGroup"),i&&n.Z.currentProduct.reportEvent("addElement",{opType:"createColorGroup",elementType:"colortheme",numElements:t.length}),a.Z.execApp("createColorGroup",[s,r,i])}getApplyOperations(e,t,r){const n=super.getApplyOperations(e,t,r);return n.push({name:"DL_ID_ADD_COLORTHEME_TOOLTIP",icon:"paintbucket",apply:()=>this._createColorGroup(e,r),displayInMenu:!0,allowMultiple:!0}),n}}var S=r(77560),O=r(68051),T=r(53849),I=r(15909),P=r(9494),C=r(48124),A=r(92098),k=r(80804);class D extends C.Z{getApplyOperations(e,t,r){return y(e,0,r)}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);P.Z.obtainLock(r,(()=>{k.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&(A.Z.deleteTempFile(t.tempPath),p._I(t.docPath)),I.Z.elementEditCompleted(e),P.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,h.ii)(t.tempPath))return;t.isSaveInProgress=!0;const r=p.K3(t.tempPath)+".pdf",i=p.K3(t.tempPath)+".png";if(!p.xW(t.tempPath)||!p.xW(r))return void(t.isSaveInProgress=!1);let c=e.library;const l=c.name,u=!c||c.isDeletedLocally;let d=!1;if(u||!c.isWritable){if(c=o.ZP.getRecoveryLibrary(c.name),!c)return;d=!0}const m=this._getLockId(e);P.Z.obtainLock(m,(()=>{const o=s.si(e);e.isDeletedLocally||d?e=c.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const g=[],v=p.pH(t.tempPath,e.type),y=e.createRepresentation(v,"primary");o&&s.i2(y,o),g.push(y.setContentFromPath(t.tempPath));const b=p.pH(r,e.type),_=e.createRepresentation(b,"rendition");g.push(_.setContentFromPath(r)),i&&p.xW(i)&&g.push((0,h.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,i));const E=()=>{I.Z.sendElementUpdated(y);const r=e.endOperation();P.Z.releaseLock(m),d&&(T.Z.revealElement(e),u?a.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:c.name})):a.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:c.name,originalLibraryName:l}))),r.then((()=>{t.isClosed?A.Z.deleteTempFile(t.tempPath):A.Z.updateTempFile(y,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(g).then(E,E)}))}defaultEditOperation(e){if(!0===n.Z.IS_APP_IN_TOUCH_MODE)return;if(!this._config.isEditable(e))return!1;const t=e.getPrimaryRepresentation();A.Z.getTempFile(t).then((t=>a.Z.execApp("openAssetForEdit",[t,"image",e.getLegacyReference()]).then((r=>{const n=p.K3(t),i={docPath:n,tempPath:t,isClosed:!1,isSaveInProgress:!1};i.listenerId=k.Z.startListening(r,n,(t=>{"closed"===t?this._onDocumentClose(e,i):"saved"===t&&this._onDocumentSave(e,i)}))}))))}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var N=r(83841);const R="application/vnd.adobe.paragraphstyle+json",M="paragraphstyle",j="data";class Z extends N.Z{constructor(...e){super(...e),this._setStyleInfo=function(e,t,r){e.type="parastyle",e.name=t,e.id=r}}_useParaStyle(e,t,r){const n=1===r.index,i=r.index===r.length,o=this._config.findUsableRepresentation(e);if(!o)return;(0,h.vM)(o,t);const s=e.name,c=e.id+";"+e.modified;let l,u;return o.type===R?(u=o.getValue(M,j),this._setStyleInfo(u,s,c),l=a.Z.execApp(t,[u,n,i])):"application/vnd.adobe.paragraphstyle+snippet"===o.type&&(l=o.getContentPath().then((r=>{u={},this._setStyleInfo(u,s,c),u.idmsPath=r;const o=this._config.findUsableRepresentation(e,R).getValue(M,j);return u.adbeFont=o.adbeFont,u.fontFamily=o.fontFamily,a.Z.execApp(t,[u,n,i])}))),l}_setParaStyle(e,t){return this._useParaStyle(e,"setFont",t)}_addTextStyle(e,t){return t.index===t.length&&n.Z.currentProduct.reportEvent("addElement",{opType:"addTextStyle",elementType:"paragraphstyle",numElements:t.length}),this._useParaStyle(e,"addTextStyle",t)}getApplyOperations(e,t,r){const n=c.Z.getLayerInfo();if(!n)return[];const i=[];return n&&"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_PARA_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setParaStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_PARA_STYLE_TOOLTIP",icon:"pastetext",allowMultiple:!0,apply:()=>this._addTextStyle(e,r),displayInMenu:!0}),i}}var F=r(54712);class B extends F.Z{_openDocumentFromTemplate(e,t,r){return r?a.Z.showError((0,f.Iu)(s.hr(e))):((0,h.vM)(t,"useTemplate"),t.getContentPath().then((t=>a.Z.execApp("openDocumentFromTemplate",[t,e.name]))))}getApplyOperations(e){const t=p.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n})),n=!r&&this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0);return r||n?[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:()=>this._openDocumentFromTemplate(e,r,n),displayInMenu:!0}]:[]}}var G=r(91696);class U extends G.Z{_useText(e,t,r,i,o){const s=1===t.index,c=t.index===t.length,l=this._config.findUsableRepresentation(e);if(!l)return;o?(0,h.vM)(l,"InlineText"):r&&i?(0,h.vM)(l,"LinkedTextWithStyles"):i?(0,h.vM)(l,"TextWithStyles"):(0,h.vM)(l,"TextWithoutStyles");const u=e.id+";"+e.modified;if(l.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE){const t=l.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);return t.id=u,t.type="text",a.Z.execApp("placeText",[t,e.getLegacyReference(),r,i,o,s,c])}return l.type===n.Z.TEXT_REPRESENTATION_ID_SNIPPET_TYPE?l.getContentPath().then((t=>{const l={id:u,type:"text",idmsPath:t,fonts:[]},p=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE).getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY).styles;return Object.keys(p).map((e=>p[e])).forEach((e=>{e.value.adbeFont&&l.fonts.push({adbeFont:e.value.adbeFont,fontFamily:e.value.fontFamily})})),a.Z.execApp("placeText",[l,e.getLegacyReference(),r,i,o,s,c])})):void 0}_setText(e,t){return this._useText(e,t,!0,!0,!1)}_setTextUnLinked(e,t){return this._useText(e,t,!1,!0,!1)}_setPlainText(e,t){return this._useText(e,t,!1,!1,!1)}_setTextInline(e,t){return this._useText(e,t,!1,!0,!0)}getApplyOperations(e,t,r){const n=c.Z.getLayerInfo();return n?!0===n.canBringTextInline?[{name:"DL_ADD_TEXT_INLINE_ID",icon:"text",onClick:!1,apply:()=>this._setTextInline(e,r),displayInMenu:!0}]:n.noDocState?[]:[{name:"DL_ADD_TEXT_LINKED_ID",icon:"text",onClick:!1,apply:()=>this._setText(e,r),displayInMenu:!0,allowMultiple:!0},{name:a.Z.isWindowsOS()?"DL_ADD_TEXT_UNLINKED_ID_WIN":"DL_ADD_TEXT_UNLINKED_ID_MAC",icon:"text",onClick:!1,apply:()=>this._setTextUnLinked(e,r),displayInMenu:!0,allowMultiple:!0},{name:"DL_ADD_TEXT_UNLINKED_NOSTYLES",icon:"text",onClick:!1,apply:()=>this._setPlainText(e,r),displayInMenu:!0,allowMultiple:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);P.Z.obtainLock(r,(()=>{k.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&(A.Z.deleteTempFile(t.tempPath),p._I(t.docPath)),I.Z.elementEditCompleted(e),P.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,h.ii)(t.tempPath))return;t.isSaveInProgress=!0;const r=p.K3(t.tempPath)+".png";if(!p.xW(t.tempPath)||!p.xW(r))return void(t.isSaveInProgress=!1);let i=e.library;const s=i.name,c=!i||i.isDeletedLocally;let l=!1;if(c||!i.isWritable){if(i=o.ZP.getRecoveryLibrary(i.name),!i)return;l=!0}const u=this._getLockId(e);P.Z.obtainLock(u,(()=>{let o;e.isDeletedLocally||l?e=i.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations()),o=p.xW(t.docPath)?a.Z.execApp("getTextInfoFromDocument",[t.docPath]):a.Z.execApp("getTextInfoFromSnippet",[t.tempPath]),o.then((o=>{const d=[],m=p.pH(t.tempPath,e.type),g=e.createRepresentation(m,"primary");d.push(g.setContentFromPath(t.tempPath));const v=JSON.parse(o);e.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,v.textInfo),r&&p.xW(r)&&d.push((0,h.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,r));const y=()=>{I.Z.sendElementUpdated(g);const r=e.endOperation();P.Z.releaseLock(u),l&&(T.Z.revealElement(e),c?a.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:i.name})):a.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:i.name,originalLibraryName:s}))),r.then((()=>{t.isClosed?A.Z.deleteTempFile(t.tempPath):A.Z.updateTempFile(g,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(d).then(y,y)}))}))}defaultEditOperation(e){if(!0===n.Z.IS_APP_IN_TOUCH_MODE)return;if(!this._config.isEditable(e))return!1;const t=e.getPrimaryRepresentation();A.Z.getTempFile(t).then((t=>{const r=[],i=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE).getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY).styles;return Object.keys(i).map((e=>i[e])).forEach((e=>{e.value.adbeFont&&r.push({adbeFont:e.value.adbeFont,fontFamily:e.value.fontFamily})})),a.Z.execApp("openAssetForEdit",[t,"text",e.getLegacyReference(),r]).then((r=>{const n=p.K3(t),i={docPath:n,tempPath:t,isClosed:!1,isSaveInProgress:!1};i.listenerId=k.Z.startListening(r,n,(t=>{"closed"===t?this._onDocumentClose(e,i):"saved"===t&&this._onDocumentSave(e,i)}))}))}))}getDragData(e){const t=this._config.findUsableRepresentation(e);if(!t)return;const r={};if(t.type===n.Z.TEXT_REPRESENTATION_ID_SNIPPET_TYPE){r.fonts=[];const t=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE).getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY).styles;Object.keys(t).map((e=>t[e])).forEach((e=>{e.value.adbeFont&&r.fonts.push({adbeFont:e.value.adbeFont,fontFamily:e.value.fontFamily})}))}return r}}var z=r(54142),V=r(13293);const H="application/vnd.adobe.characterstyle+json",Y="application/vnd.adobe.characterstyle+snippet",W="characterstyle",$="data";class K extends z.Z{_setStyleInfo(e,t,r){e.type="charstyle",e.name=t,e.id=r}_useTextStyle(e,t,r){const n=1===t.index,i=t.index===t.length,o=this._config.findUsableRepresentation(e);if(!o)return;const s=V.R(e);s&&s.id?(0,h.vM)(o,r,null,{event:{value:"typekit"}}):(0,h.vM)(o,r);const c=e.name,l=e.id+";"+e.modified;if(o.type===H){const e=o.getValue(W,$);return this._setStyleInfo(e,c,l),a.Z.execApp(r,[e,n,i])}return o.type===Y?o.getContentPath().then((t=>{const o={};this._setStyleInfo(o,c,l),o.idmsPath=t;const s=this._config.findUsableRepresentation(e,H).getValue(W,$);return o.adbeFont=s.adbeFont,o.fontFamily=s.fontFamily,a.Z.execApp(r,[o,n,i])})):void 0}_setTextStyle(e,t){return this._useTextStyle(e,t,"setFont")}_addTextStyle(e,t){return t.index===t.length&&n.Z.currentProduct.reportEvent("addElement",{opType:"addTextStyle",elementType:"characterstyle",numElements:t.length}),this._useTextStyle(e,t,"addTextStyle")}getApplyOperations(e,t,r){const n=c.Z.getLayerInfo();if(!n)return[];const i=[];return n&&"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_TEXT_STYLE_TOOLTIP",icon:"pastetext",allowMultiple:!0,apply:()=>this._addTextStyle(e,r),displayInMenu:!0}),i}_addTextStyleElement(e,t,r){return e&&"LayerKind.TEXT"===e.kind?a.Z.execApp("getCharStyleInfo").then((e=>{var i;const o=JSON.parse(e);null!==(i=n.Z.currentProduct.config)&&void 0!==i&&i.copyTempFileIfNecessary&&(o.idmsPath=o.idmsPath&&n.Z.currentProduct.config.copyTempFileIfNecessary(o.idmsPath),o.previewPath=o.previewPath&&n.Z.currentProduct.config.copyTempFileIfNecessary(o.previewPath));const a=(0,h.MN)(t,o.styleName,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r}),s=[];if(o.idmsPath){const e=a.createRepresentation(Y,"primary");s.push(e.setContentFromPath(o.idmsPath));a.createRepresentation(H,"rendition").setValue(W,$,o.styleInfo)}else{a.createRepresentation(H,"primary").setValue(W,$,o.styleInfo)}if(o.previewPath){const e=a.createRepresentation("image/png","rendition");s.push(e.setContentFromPath(o.previewPath))}return Promise.all(s).then((()=>{const e=[];return o.previewPath&&e.push(a.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,o.previewPath)),e.push(a.endOperation()),Promise.all(e).then((()=>{o.idmsPath&&p._I(o.idmsPath),o.previewPath&&p._I(o.previewPath)})),a})).catch((()=>(t.removeElement(a,!0),Promise.reject("Could not create element."))))})):Promise.reject("not a text layer")}getAddOperations(e){if(!e||!e.text||!1===e.isAppliedCharStyleSupported)return[];return[{name:"DL_ADD_TEXT_STYLE_NAME",order:2,icon:"AddCharacterStyle",apply:(t,r)=>new Promise((n=>{c.Z.updateLayerInfo().then((()=>n(this._addTextStyleElement(e,t,r))))}))}]}}function q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */q=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function X(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function J(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){X(o,n,i,a,s,"next",e)}function s(e){X(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Q(){this.config={},this.config.code="IDSN",this.config.fullName="InDesign",this.config.translationSuffix="ID",this.config.dragDropSource="com.adobe.indesign",this.config.offsetSelectMenu=!0,this.config.stateMethod="getCurrentStates",this.config.usesEscapedFilePathsInEvents=!0,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark","com.adobe.DesignLibraries.touch"===a.Z.getExtensionID()?(n.Z.IS_APP_IN_TOUCH_MODE=!0,n.Z.CONTEXT_MENUS_ENABLED=!1):(n.Z.IS_APP_IN_TOUCH_MODE=!1,n.Z.CONTEXT_MENUS_ENABLED=!0),this.config.elementTypes=[w,x,U,K,O.Z,Z,D,B,S.Z.ComponentElementConfig,_,S.Z.PatternElementConfig,S.Z.BrushElementConfig,S.Z.VideoElementConfig,S.Z.LookElementConfig,S.Z.CapsuleElementConfig,S.Z.ThreeDElementConfig,S.Z.LayerStyleElementConfig,S.Z.LightElementConfig,S.Z.MaterialElementConfig,S.Z.GradientElementConfig,S.Z.AudioElementConfig,S.Z.ChannelElementConfig,S.Z.ImageGuidelineElementConfig,S.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.PATTERN_ELEMENT_TYPE,n.Z.BRUSH_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.isCaptureEnabled=!1,this.config.captureModules=["Colors","Shapes","Type"],this.config.includeGuidInTempFileName=!0,this.config.tempFolder=()=>18===this.config.majorVersion?n.Z.strTempFolder.replace(/TemporaryItems/,"").replace(/\/private/,""):n.Z.strTempFolder+"/",this.config.copyTempFileIfNecessary=e=>{let t=e;if(18===this.config.majorVersion&&t.includes("TemporaryItems"))try{t=t.replace(/\/TemporaryItems/,""),window.nodeRequire("fs").copyFileSync(e,t)}catch(e){u.Z.log("Error copying file: "+e)}return t};const e=()=>{d.Z.isRelinkLayerMode()&&d.Z.resetMode()},t=()=>{e()},r=()=>{const e=o.ZP.libraries.filter((e=>!e.isDeletedFromServer)),t=e.map((e=>({name:e.name,id:e.id,writable:e.isWritable}))),r=o.ZP.currentLibrary,n=r?e.indexOf(r):-1;a.Z.execApp("setLibraryCollection",[JSON.stringify({names:t,current:n})])};let g;this.init=function(){p.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.indesign-idms","image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/illustrator","application/pdf","image/tiff"]),p.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),p.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json","application/vnd.adobe.paragraphstyle+snippet"]),p.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json","application/vnd.adobe.characterstyle+snippet"]),p.Zh(n.Z.FONT_ELEMENT_TYPE,["application/vnd.adobe.font+json"]),p.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["application/vnd.adobe.indesign.template"]),p.Zh(n.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.text+json","application/vnd.adobe.indesign-idms-text"]),p.Zh(n.Z.ANIMATION_ELEMENT_TYPE,["application/vnd.adobe.animate-xfl+zip","application/vnd.adobe.indesign-idms"]),p.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/png"]),p.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),p.Dk(n.Z.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.indesign-idms"]),p.Dk(n.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.indesign-idms-text"]),a.Z.execApp("setThumbnailExportOptions"),a.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),a.Z.exec("CORE","getApplicationVersion",[]).then((e=>{try{const t=parseInt(e.split(".")[0]);a.Z.execApp("setHSBSupport",[t>=16]),this.config.isCaptureEnabled=t>=17,this.config.majorVersion=t}catch(e){}})),this.startEventListener(),o.ZP.waitForInitialLoad().then((function(){t();const e=a.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");a.Z.dispatchEvent(e)})),o.ZP.addListener("libraryList",(function(){r()})),o.ZP.addListener("currentLibrary",(function(){r()}))},this.config.useMouseEventToDetectDrop=!0;const v=e=>{g=void 0,e instanceof Object&&Object.prototype.hasOwnProperty.call(e,"exportContext")?g=e.exportContext:e instanceof String&&(g=e)},y=()=>g=void 0;this.reportEvent=function(e,t){u.Z.log("Metric reported to ID"),t.event=e,"createElement"===e&&(t.creationContext=void 0!==g?g:"");const r=a.Z.createEvent("com.adobe.DesignLibraries.events.LOGPIP","APPLICATION");r.data=JSON.stringify(t),a.Z.dispatchEvent(r),delete t.event,"createElement"===e&&delete t.creationContext},this.getUserData=function(e){a.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))};const b=()=>{c.Z.handleSelectionChange()},E=()=>{a.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e}))};this.fontManager=new m.Z;const L=()=>this.fontManager.invalidateFontList(),T=()=>this.fontManager.invalidateFontList(),I=()=>e(),P=e=>{const t=e.data,r=t.idmsPath,i=t.pdfPath,a=t.pngPath;if(!p.xW(r)||!p.xW(i))return;let s;if(Object.prototype.hasOwnProperty.call(t,"libraryId")?""!==t.libraryId&&(s=o.ZP.getLibraryById(t.libraryId),s&&(o.ZP.currentLibrary=s)):s=o.ZP.currentLibrary,s||t.libraryName||(s=o.ZP.recentLibraries[0]),!s){const e=t.libraryName||(0,f.Iu)("DL_DEFAULT_LIBRARY_NAME"),r=o.ZP.createLibrary(e);if(!r)return;o.ZP.currentLibrary=r,s=o.ZP.currentLibrary}if(!(0,h.oY)(s))return;const c=s.createElement(t.assetName,n.Z.IMAGE_ELEMENT_TYPE),l=[],u=p.pH(r,n.Z.IMAGE_ELEMENT_TYPE),d=c.createRepresentation(u,"primary");l.push(d.setContentFromPath(r));const m=p.pH(i,n.Z.IMAGE_ELEMENT_TYPE),g=c.createRepresentation(m,"rendition");l.push(g.setContentFromPath(i)),a&&p.xW(a)&&l.push((0,h.bf)(c,n.Z.IMAGE_THUMBNAIL_SIZE,a)),Promise.all(l).then((function(){c.endOperation()}),(function(){s.removeElement(c,!0)}))},C=()=>{l.ZP.openDialog("createLibrary")},A=(e,t)=>{if(t){const e=(0,f.Iu)("DL_DEFAULT_LIBRARY_NAME");return o.ZP.createLibrary(e)}let r;if(e&&(r=o.ZP.getLibraryById(e)),r||(r=o.ZP.currentLibrary||o.ZP.recentLibraries[0]),r&&(0,h.oY)(r))return o.ZP.currentLibrary=r,r=o.ZP.currentLibrary,r},k=e=>{const t=A();if(!t)return;const r=e.data,i={},o=r.themeName;Object.prototype.hasOwnProperty.call(r,"rule")&&(i.rule=r.rule,i.baseSwatchIndex=r.baseColorIndex),Object.prototype.hasOwnProperty.call(r,"mood")&&(i.mood=r.mood),i.swatches=[];const s=r.assetList.map((e=>a.Z.execApp("getColorDataFromJSON",[JSON.stringify(e)]).then((e=>{const t=JSON.parse(e);i.swatches.push(t)}))));Promise.all(s).then((()=>{v(r);const e=t.createElement(o,n.Z.COLOR_THEME_ELEMENT_TYPE);e.createRepresentation("application/vnd.adobe.colortheme+json","primary").setValue("colortheme","data",i),y(),e.endOperation()}))},N=e=>{const t=e.data.libraryID,r=!!e.data.createNewLibrary,i=A(t,r);if(!i)return;const o=[],s=e.data.colorList.map((e=>a.Z.execApp("getColorDataFromJSON",[JSON.stringify(e)]).then((t=>{o.push({name:e.colorName,data:JSON.parse(t)})}))));Promise.all(s).then((()=>{const t=e=>{const t=i.createElement(e.name,n.Z.COLOR_ELEMENT_TYPE);e.data.forEach(((e,r)=>{const i=0===r?"primary":"rendition";t.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,e)})),t.endOperation()};v(e.data);for(let e=0;e<o.length;++e)t(o[e]);y()}))},R=(e,t)=>{const r=e.data.libraryID,i=!!e.data.createNewLibrary,o=A(r,i);if(!o)return;let s,c,l,u,d;t?(s="data",c="characterstyle",l=n.Z.CHARACTER_STYLE_ELEMENT_TYPE,u="application/vnd.adobe.characterstyle+json",d="application/vnd.adobe.characterstyle+snippet"):(s="data",c="paragraphstyle",l=n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,u="application/vnd.adobe.paragraphstyle+json",d="application/vnd.adobe.paragraphstyle+snippet");const h=e.data.documentID||-1;e.data.styleUIDList.forEach((r=>{const n=t?"getCharStyleInfoByID":"getParaStyleInfoByID";a.Z.execApp(n,[h,r]).then((t=>{const r=JSON.parse(t);v(e.data);const n=o.createElement(r.styleName,l);y();const i=[],a=n.createRepresentation(d,"primary").setContentFromPath(r.idmsPath);i.push(a);if(n.createRepresentation(u,"rendition").setValue(c,s,r.styleInfo),r.previewPath){const e=n.createRepresentation("image/png","rendition").setContentFromPath(r.previewPath);i.push(e)}Promise.all(i).then((function(){const e=[];r.previewPath&&e.push(n.setThumbnailCache(104,r.previewPath)),e.push(n.endOperation()),Promise.all(e).then((()=>{r.previewPath&&p._I(r.previewPath),r.idmsPath&&p._I(r.idmsPath)}))}))}))}))},M=e=>R(e,!1),j=e=>R(e,!0),F=e=>e.data?(e=>{const t=e.data;if(""!==t&&void 0!==t){const e=o.ZP.getLibraryById(t);e&&(o.ZP.currentLibrary=e)}})(e):t(),G=function(){var e=J(q().mark((function e(t){var r,c,l;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.data||void 0===t.data.elementRef){e.next=9;break}return e.next=3,o.ZP.resolveElementReference(t.data.elementRef);case 3:if(r=e.sent,c=s.wq(r),!(l=i.Z.findUsableRepresentation(r,p.ku(n.Z.IMAGE_ELEMENT_TYPE)))){e.next=8;break}return e.abrupt("return",l.getContentPath().then((function(e){return a.Z.execApp("placeAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,h.RW)(r),r.created,c,c?s.kv(r):null,!0,!1,!0])})));case 8:return e.abrupt("return",r.getThumbnailPath().then((function(e){return a.Z.execApp("placeAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,h.RW)(r),r.created,c,c?s.kv(r):null,!0,!1])}),(e=>u.Z.log(e))));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=J(q().mark((function e(t){var r,s;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.data||void 0===t.data.elementRef){e.next=7;break}return e.next=3,o.ZP.resolveElementReference(t.data.elementRef);case 3:if(r=e.sent,!(s=i.Z.findUsableRepresentation(r,p.ku(n.Z.TEMPLATE_ELEMENT_TYPE)))){e.next=7;break}return e.abrupt("return",s.getContentPath().then((function(e){return a.Z.execApp("openDocumentFromTemplate",[e])})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=J(q().mark((function e(t){var r,s,c,l;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=e=>{const r={},n=a.Z.createEvent("com.adobe.DesignLibraries.events.SnippetCreated","APPLICATION");r.idmsPath=e||"",t.data.elementRef&&(r.elementRef=t.data.elementRef),t.data.guid&&(r.guid=t.data.guid),n.data=JSON.stringify(r),a.Z.dispatchEvent(n)},!t.data||void 0===t.data.elementRef){e.next=8;break}return e.next=4,o.ZP.resolveElementReference(t.data.elementRef);case 4:(s=e.sent).type===n.Z.TEXT_ELEMENT_TYPE&&(c=i.Z.findUsableRepresentation(s))&&(c.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE?((l=c.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY)).id=s.id+";"+s.modified,l.type="text",a.Z.execApp("getSnippetForText",[l,!t.data.stripStyles]).then((function(e){r(e)}),(function(){r()}))):c.type===n.Z.TEXT_REPRESENTATION_ID_SNIPPET_TYPE&&c.getContentPath().then((function(e){r(e)}))),e.next=9;break;case 8:r();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return this.startEventListener=function(){a.Z.addEventListener("afterSelectionChanged",b),a.Z.addEventListener("afterSelectionAttributeChanged",b),a.Z.addEventListener("colorChanged",b),a.Z.addEventListener("colorTransformChanged",b),a.Z.addEventListener("uiPreferencesChanged",E),a.Z.addEventListener("fontListChanged",L),a.Z.addEventListener("documentAfterActivate",T),a.Z.addEventListener("documentAfterDeactivate",I),a.Z.addEventListener("afterWorkspaceChanged",F),!1===n.Z.IS_APP_IN_TOUCH_MODE&&(a.Z.addEventListener("newAssetToMigrate",P),a.Z.addEventListener("createNewCloudLibrary",C),a.Z.addEventListener("createNewColorTheme",k),a.Z.addEventListener("createNewColors",N),a.Z.addEventListener("createNewParaStyles",M),a.Z.addEventListener("createNewCharStyles",j),a.Z.addEventListener("openStock",G),a.Z.addEventListener("openStockTemplate",z),a.Z.addEventListener("createSnippetForElement",V))},this.stopEventListener=function(){a.Z.removeEventListener("afterSelectionChanged",b),a.Z.removeEventListener("afterSelectionAttributeChanged",b),a.Z.removeEventListener("colorChanged",b),a.Z.removeEventListener("colorTransformChanged",b),a.Z.removeEventListener("uiPreferencesChanged",E),a.Z.removeEventListener("fontListChanged",L),a.Z.removeEventListener("documentAfterActivate",T),a.Z.removeEventListener("documentAfterDeactivate",I),a.Z.removeEventListener("afterWorkspaceChanged",F),!1===n.Z.IS_APP_IN_TOUCH_MODE&&(a.Z.removeEventListener("newAssetToMigrate",P),a.Z.removeEventListener("createNewCloudLibrary",C),a.Z.removeEventListener("createNewColorTheme",k),a.Z.removeEventListener("createNewColors",N),a.Z.removeEventListener("createNewParaStyles",M),a.Z.removeEventListener("createNewCharStyles",j),a.Z.removeEventListener("openStock",G),a.Z.removeEventListener("openStockTemplate",z),a.Z.removeEventListener("createSnippetForElement",V))},this.dropHandler=function(e,t){u.Z.log("InDesign drop handler",e);return(a.Z.isWindowsOS()?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type&&(e.assetList[0].type="image"),Promise.reject()},this.customDropMessage=function(e,t){const r=a.Z.isWindowsOS();if(!(r?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type){const e="DL_CUSTOM_DROP_MESSAGE_ID_TEXT_"+(r?"WIN":"MAC");return(0,f.Iu)(e)}},this.customOverlayMessage=function(e,t){let r="";return"place"===e?r="DL_CUSTOM_PLACE_OVERLAY_MESSAGE_ID":"relink"===e&&(r=1===t.length&&"text"===t[0]?"DL_CUSTOM_RELINK_TEXT_OVERLAY_MESSAGE_ID":"DL_RELINK_RELINK_OVERLAY_MESSAGE"),r&&(0,f.Iu)(r)},this.allowCmdDrag=!0,this}},11511:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>Ge});var n=r(99386),i=r(93028),o=r(76485),a=r(26964),s=r(34038),c=r(84824),l=r(57613),u=r(47320),p=r(31870),d=r(8733),h=r(16993),f=r(46903);const m="DL_To_Ai",g="Character_Style",v="Paragraph_Style",y="Color",b="Swatch_Groups",_="Added",E="Applied";function w(e){let t;Object.prototype.hasOwnProperty.call(e,"libraryID")&&(t=e.libraryID);let r=!1;return Object.prototype.hasOwnProperty.call(e,"createNewLibrary")&&(r=JSON.parse(e.createNewLibrary)),function(e,t){let r;if(e&&(r=i.ZP.getLibraryById(e)),r||t||(r=i.ZP.currentLibrary),r||(r=i.ZP.recentLibraries[0]),!r){const e=(0,c.Iu)("DL_DEFAULT_LIBRARY_NAME");r=i.ZP.createLibrary(e)}return r&&(i.ZP.currentLibrary=r,r=i.ZP.currentLibrary),r}(t,r)}function L(e,t,r){"function"==typeof n.Z.currentProduct.reportEvent&&n.Z.currentProduct.reportEvent("event",{category:e,subcategory:t,eventname:r})}var x=r(53849);const S="illustrator",O="data";function T(e){return e.getValue(S,O)}function I(e,t){e.setValue(S,O,{global:t.global})}const P=e=>{const t=w(e.data);if(!t)return Promise.reject("Library Error");if(!(0,f.oY)(t))return Promise.reject("Library Error");let r;Object.prototype.hasOwnProperty.call(e.data,"isNew")&&(r=e.data.isNew?"swatchPanelNew":"swatchPanelExisting");return o.Z.execApp("getSelectedSwatchList").then((function(e){if(!e)return Promise.reject("err");try{e=JSON.parse(e)}catch(e){return Promise.reject("err")}let i;e.forEach((e=>{e.data&&(i=(e=>{let i=e.name;i||(e.data&&e.data[0]&&e.data[0].type&&"spot"===e.data[0].type&&(i=e.data[0].spotColorName),i=i||"");const o=t.createElement(i,n.Z.COLOR_ELEMENT_TYPE);return e.data.forEach(((e,t)=>{const r=0===t?"primary":"rendition",i=o.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,r);"global"in e&&(I(i,e),delete e.global),i.setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,e)})),o.endOperation(),r&&(0,f.vM)(o.representations[0],r),o})(e))})),i&&x.Z.revealElement(i)}))},C=e=>{const t=w(e.data);if(!t)return Promise.reject("Library Error");if(!(0,f.oY)(t))return Promise.reject("Library Error");return o.Z.execApp("getSelectedSwatchGroupList").then((e=>{if(!e)return Promise.reject("err");if((e=JSON.parse(e)).length>0){let r;e.forEach((e=>{r=(e=>{const r=e.mood||"";let i;e.swatches&&e.swatches.length<=5&&e.swatches.length>0&&(i=t.createElement(r,n.Z.COLOR_THEME_ELEMENT_TYPE),i.createRepresentation(n.Z.COLOR_THEME_REPRESENTATION_TYPE,"primary").setValue(n.Z.COLOR_THEME_NAMESPACE,n.Z.COLOR_THEME_DATA_KEY,e),i.endOperation());return i})(e)})),r&&x.Z.revealElement(r)}}))};function A(e){const t=e.data,r=[];return t&&(t.uploadSwatch&&r.push(P(e)),t.uploadSwatchGroup&&r.push(C(e))),Promise.all(r)}const k=(e,t)=>{const r=w(e.data);if(!r)return;if(!(0,f.oY)(r))return;let i,a,c,l,u;if(Object.prototype.hasOwnProperty.call(e.data,"isNew")){i=`${t?"characterStyle":"paragraphStyle"}${e.data.isNew?"New":"Existing"}`}t?(a="data",c="characterstyle",l=n.Z.CHARACTER_STYLE_ELEMENT_TYPE,u="application/vnd.adobe.characterstyle+json"):(a="data",c="paragraphstyle",l=n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,u="application/vnd.adobe.paragraphstyle+json");const p=e.data.styleNames,d=t?"addCharStyleById":"addParaStyleById";p.forEach((e=>{o.Z.execApp(d,[e]).then((e=>{const t=JSON.parse(e),o=r.createElement(t.styleName,l),p=[];if(o.createRepresentation(u,"primary").setValue(c,a,t.styleInfo),t.previewPath){const e=o.createRepresentation("image/png","rendition").setContentFromPath(t.previewPath);p.push(e)}Promise.all(p).then((function(){const e=[];t.previewPath&&e.push(o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,t.previewPath)),e.push(o.endOperation()),Promise.all(e).then((()=>{t.previewPath&&s._I(t.previewPath)})),i&&(0,f.vM)(o.representations[0],i),x.Z.revealElement(o)}))}))}))};function D(e){k(e,!0)}function N(e){k(e,!1)}var R=r(15909),M=r(74149),j=r(30131),Z=r(36351),F=r(51461);function B(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function G(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function U(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){G(o,n,i,a,s,"next",e)}function s(e){G(o,n,i,a,s,"throw",e)}a(void 0)}))}}const z=(e,t)=>{if(e){const r=e.element,n=r.getLegacyReference();e.getContentPath().then((e=>{const i=o.Z.createEvent("com.adobe.DesignLibraries.events.ElementUpdated","APPLICATION");i.data=JSON.stringify({requestRef:t,elementRef:n,name:r.name,libraryName:r.library.name,modifiedTime:(0,f.RW)(r),creationTime:r.created,data:[e]}),o.Z.dispatchEvent(i)}))}},V=(e,t,r)=>{const n=t&&t.files||[];for(let t=0;t<n.length;t++){const i=n[t],o=s.pH(i.path,r.type),a=r.createRepresentation(o,i.relationship).setContentFromPath(i.path);e.push(a)}},H=e=>{const t=o.Z.createEvent("ILST.InitialCommunicationError","APPLICATION"),r=i.ZP.syncStatus;t.data={elementIdentifier:e,status:"error",error:r&&r.errorType||"kError"},o.Z.dispatchEvent(t)},Y=(e,t,r,n)=>{let a=!1,s=!1;const c=t=>{const r=o.Z.createEvent("ILST.elementUploaded","APPLICATION"),n=t||{errorType:"kNoErr",state:"ok"};Z.Z.isOnline||(n.state="error",n.errorType="kNoInternet"),r.data={elementRef:e.getLegacyReference(),status:n.state,error:n.errorType||"kNoErr"},o.Z.dispatchEvent(r)},l=()=>{const o=i.ZP.syncStatus;s||"ok"!==o.state&&"error"!==o.state||(c(o),s=!0,t&&"ok"===o.state&&!a&&("kAIChart"===n?(0,j.w3)(e,"charts",r):"kAIArt"===n&&(0,j.w3)(e,"details",r),a=!0),i.ZP.removeListener("libraryStatus",l))};i.ZP.syncingEnabled()?i.ZP.addListener("libraryStatus",l):c(i.ZP.syncStatus)},W=e=>{for(let t=0;t<e.length;t++)s._I(e[t].path)},$=(e,t,r)=>{if(!e)throw"No current library";if(!t||!t.files||!r)throw"event data invalid"};function K(e){const t=e.data.fileData,r=i.ZP.currentLibrary,o=e.data.additionalQueryParameters,a=e.data.openBrowserAfterOperation,c=e.data.elementType;let l=null;if((0,f.oY)(r))try{if($(r,t,c),null===t.layerIds||null===t.documentId)throw"layer Ids Or documentId cannot be null";if("kAIArt"!==c&&"kAIChart"!==c)throw"Element not supported yet";l=n.Z.IMAGE_ELEMENT_TYPE,t.layerName="kAIChart"===c?(0,f.In)(r,t.layerName,"DL_CHART_LABEL"):(0,f.In)(r,t.layerName);const e=r.createElement(t.layerName,l),i=[];return V(i,t,e),Promise.all(i).then((function(){const r=[];t.rendition&&r.push(e.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,t.rendition)),r.push(e.endOperation()),Promise.all(r).then((()=>{W(t.files),t.rendition&&s._I(t.rendition.path)})),x.Z.revealElement(e);const i={documentId:t.documentId,layerIds:t.layerIds};return R.Z.sendElementCreated(e,i).then((()=>(Y(e,a,o,c),e)))}),(()=>Promise.reject("Could not add element")))}catch(e){return H(t.layerIds&&t.layerIds[0]||null),Promise.reject("Could not add element: "+e)}}function q(e){return X.apply(this,arguments)}function X(){return(X=U(B().mark((function e(t){var r,o,a,c,l,u,p,d;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data.fileData,o=t.data.elementType,a=t.data.elementRef,c=t.data.additionalQueryParameters,l=t.data.openBrowserAfterOperation,e.prev=5,a){e.next=8;break}throw"elementRef missing";case 8:return e.next=10,i.ZP.resolveElementReference(a);case 10:if(u=e.sent){e.next=13;break}throw"Element not found";case 13:if(x.Z.revealElement(u),p=u.library,(0,f.oY)(p)){e.next=17;break}return e.abrupt("return");case 17:return $(p,r,o),u.isDeletedLocally?u=p.createElement(u.name,u.type):(u.beginOperation(),u.removeAllRepresentations()),V(d=[],r,u),e.abrupt("return",Promise.all(d).then((function(){const e=[];return r.rendition&&e.push(u.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,r.rendition)),e.push(u.endOperation()),Promise.all(e).then((()=>{W(r.files),r.rendition&&s._I(r.rendition.path)})),z(u.getPrimaryRepresentation(),t.data.requestRef),Y(u,l,c,o),u}),(()=>Promise.reject("Could not update element"))));case 24:return e.prev=24,e.t0=e.catch(5),H(t.data.requestRef),e.abrupt("return",Promise.reject("Could not update element: "+e.t0));case 28:case"end":return e.stop()}}),e,null,[[5,24]])})))).apply(this,arguments)}const J=e=>{var t,r;if(e&&(void 0===e.canAddTextAsset||!1!==e.canAddTextAsset))return void 0!==e.canAddTextAsset?function(e,t){return o.Z.execApp("getTextInfo").then((r=>{const i=JSON.parse(r);if(!i||!i.textInfo)return Promise.reject("Could not create element.");const o=t.textAssetName||i.name,a=(0,f.In)(e,o,"DL_TEXT_LABEL"),c=(0,f.MN)(e,a,n.Z.TEXT_ELEMENT_TYPE,{opType:"canvasContextMenu"}),l=[];if(i.primaryRepresentation){const e=c.createRepresentation(i.primaryRepresentation.representationType,"primary");if(i.primaryRepresentation.isFile){const t=e.setContentFromPath(i.primaryRepresentation.filePath).then((()=>{l.push(t)}))}else e.setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.primaryRepresentation.data);c.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.textInfo)}else c.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"primary").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.textInfo);if(i.previewPath){const e=c.createRepresentation("image/png","rendition");e.isPreferredThumbnail=!0;const t=e.setContentFromPath(i.previewPath);l.push(t)}return Promise.all(l).then((function(){const e=[];return i.previewPath&&e.push(c.setThumbnailCache(n.Z.TEXT_THUMBNAIL_SIZE,i.previewPath)),e.push(c.endOperation()),Promise.all(e).then((()=>{i.previewPath&&s._I(i.previewPath),i.primaryRepresentation.isFile&&s._I(i.primaryRepresentation.filePath)})),(0,f.vM)(c.representations[0],"canvasContextMenu"),c}),(()=>(e.removeElement(c),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save text preview.")))}(i.ZP.currentLibrary,e):(t=i.ZP.currentLibrary,r=void 0,(0,f.g0)(r).then((e=>{const n={documentId:e.documentId,layerIds:e.layerIds,dragAssetId:r};return F.ZP.setExtraEventMetrics("createElement",{opType:"canvasContextMenu"}),(0,M.Bm)(e.layerName,e.files,e.rendition,t,n).then((e=>{(0,f.vM)(e.representations[0],"canvasContextMenu")})).catch((()=>{F.ZP.clearExtraEventMetrics("createElement")}))}),(()=>Promise.reject("Could not extract asset."))))};function Q(){d.Z.updateLayerInfo().then(J)}function ee(e){if(!e.data)return Promise.reject(new Error("Empty Event sent"));const t=w(e.data);if(!t)return Promise.reject(new Error("Library Not Found"));if(!(0,f.oY)(t))return Promise.reject(new Error("Could not create element: library is read-only"));const r=e=>{const r=[{path:e.representations[0].source.path,relationship:"primary",data:[{namespace:"3d",key:"data",value:e.representations[0]["3d#data"]}],moveFile:!1}];return function(e,t,r=[],n,i,o){for(let e=0;e<r.length;e++)if(!s.xW(r[e].path))return Promise.reject(new Error(`Could not add new element: path ${r[e].path} does not exist`));for(let e=0;e<r.length;e++)if(!s.lc(r[e].path))return Promise.reject(new Error(`Could not add new element: ${r[e].path} not supported`));if(n&&!s.xW(n))return Promise.reject(new Error(`Could not add new element: thumbnail path ${n} does not exist`));if(!i)return Promise.reject(new Error("Could not add new element: no library"));if(!(0,f.oY)(i,!0))return Promise.reject(new Error("Could not create element: library is read-only"));if(!(0,f.mM)(r,!0))return Promise.reject(new Error("Could not create element: one or more files exceed 1GB limit"));const a=(0,f.MN)(i,t,e,{opType:o}),c=[];if(r.forEach((t=>{const r=t.type||s.pH(t.path,e),n=a.createRepresentation(r,t.relationship);t.data&&t.data.forEach((e=>n.setValue(e.namespace,e.key,e.value))),c.push(n.setContentFromPath(t.path,t.moveFile).then((()=>{t.dimensions&&(n.width=t.dimensions.width,n.height=t.dimensions.height)})))})),n){const e=u.Z.getThumbnailSize(a);c.push((0,f.bf)(a,e,n))}return Promise.all(c).then((()=>(a.endOperation(),a))).catch((e=>(i.removeElement(a,!0),Promise.reject(new Error(`Could not create element: ${e}`)))))}(n.Z.MATERIAL_ELEMENT_TYPE,e.name,r,e.representations[1].source.path,t,"Existing")};return o.Z.execApp("getSelectedMaterialList").then((e=>{if(!e)return Promise.reject(new Error("Could Not get selected materials"));try{(e=JSON.parse(e)).filter((e=>e)).map(r)}catch(e){return Promise.reject(new Error("Add Material Failed"))}}))}function te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */te=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function re(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ne(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){re(o,n,i,a,s,"next",e)}function s(e){re(o,n,i,a,s,"throw",e)}a(void 0)}))}}const ie=()=>{n.Z.currentProduct.fontManager.invalidateFontList()},oe=()=>{d.Z.handleSelectionChange()},ae=()=>{h.Z.isStockSearchMode()||h.Z.resetMode()};function se(){const e=i.ZP.libraries.filter((e=>!e.isDeletedFromServer)).map((e=>({name:e.name,id:e.id,writable:e.isWritable}))),t=i.ZP.currentLibrary,r=t?e.findIndex((e=>e.id===t.id)):-1,n=o.Z.createEvent("ILST.libraryListUpdated","APPLICATION");n.data={names:e,current:r},o.Z.dispatchEvent(n)}const ce=()=>{i.ZP.sync(!1,!1)},le=e=>{w(e.data)},ue=function(){var e=ne(te().mark((function e(t){var r,c,l;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.data&&void 0!==t.data.elementRef){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,i.ZP.resolveElementReference(t.data.elementRef);case 4:if(r=e.sent,c=p.wq(r),!(l=u.Z.findUsableRepresentation(r,s.ku(n.Z.IMAGE_ELEMENT_TYPE)))){e.next=9;break}return e.abrupt("return",l.getContentPath().then((e=>o.Z.execApp("placeAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,f.RW)(r),r.created,c,c?p.kv(r):null,!0,!0]))));case 9:return e.abrupt("return",r.getThumbnailPath().then((e=>o.Z.execApp("placeAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,f.RW)(r),r.created,c,c?p.kv(r):null,!0,!0])),(e=>a.Z.log(e))));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=ne(te().mark((function e(t){var r,a;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.data||void 0===t.data.elementRef){e.next=7;break}return e.next=3,i.ZP.resolveElementReference(t.data.elementRef);case 3:if(r=e.sent,!(a=u.Z.findUsableRepresentation(r,s.ku(n.Z.TEMPLATE_ELEMENT_TYPE)))){e.next=7;break}return e.abrupt("return",a.getContentPath().then((e=>o.Z.execApp("openDocumentFromTemplate",[e]))));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=ne(te().mark((function e(t){var r,a,s,c;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(e,t,r)=>{const n=o.Z.createEvent("ILST.textFileCreated","APPLICATION"),i={};e&&(i.stripStyle=t,i.path=e,i.usingContextMenu=!1,i.placeInline=!1,i.contextData=r),n.data=JSON.stringify(i),o.Z.dispatchEvent(n)},t.data&&void 0!==t.data.elementRef){e.next=4;break}return r(),e.abrupt("return");case 4:return e.next=6,i.ZP.resolveElementReference(t.data.elementRef);case 6:a=e.sent,s=u.Z.findUsableRepresentation(a),a.type===n.Z.TEXT_ELEMENT_TYPE&&s&&(s.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE?((c=s.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY)).id=a.id+";"+a.modified,c.type="text",o.Z.execApp("getAiFileForText",[c]).then((e=>r(e,t.data.stripStyle,t.data.contextData)),r)):"application/illustrator-text"===s.type&&s.getContentPath().then((e=>r(e,t.data.stripStyle,t.data.contextData))));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var he=r(77560),fe=r(76572);class me extends fe.Z{constructor(...e){super(...e),this._addBrushToDocument=function(e,t){return(0,f.vM)(t,"useBrush"),t.getContentPath().then((t=>o.Z.execApp("loadAndSelectBrush",[t,e.name])))}}getApplyOperations(e){const t=s.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}));return d.Z.getLayerInfo()&&r?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:()=>this._addBrushToDocument(e,r),displayInMenu:!0}]:[]}}var ge=r(16771);class ve extends ge.Z{_setColor(e,t,r,i){return r||(r=[],e.representations.forEach((t=>{const i=t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY),o=T(t);o&&(i.global=o.global);const a=e.name;i.name=a,"primary"===t.relationship?r.unshift(i):r.push(i)})),e.representations.length>0&&(L(m,y,_),(0,f.vM)(e.representations[0],t))),i&&i(t),o.Z.execApp(t,[r]).then((e=>{"true"===e&&function(){const e=o.Z.createEvent("ILST.SpotMismtached","APPLICATION");o.Z.dispatchEvent(e)}()}))}getApplyOperations(e){const t=d.Z.getLayerInfo();return t?t.selectionExists||t.textSelectionExists||t.insertionPointExists?[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setColor",t,r),displayInMenu:!0,onClick:!0},{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,r)=>this._setColor(e,"addColor",t,r),displayInMenu:!0}]:[{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,r)=>this._setColor(e,"addColor",t,r),displayInMenu:!0}]:[]}defaultEditOperation(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY),i=t&&T(t);return i&&(r.global=i.global),o.Z.execApp("replaceColor",[r]).then((t=>{if(JSON.parse(t))return o.Z.execApp("getLayerColor",[]).then((t=>{const r=JSON.parse(t);e.beginOperation(),e.removeAllRepresentations(),r.forEach(((t,r)=>{const i=0===r?"primary":"rendition",o=e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i);"global"in t&&(I(o,t),delete t.global),o.setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation()}))}))}}var ye=r(38122);class be extends ye.Z{_addThemeAsSwatchGroup(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("colortheme","data");return o.Z.execApp("addSwatchGroup",[r,e.name]).then((e=>{"undefined"===e&&L(m,b,_),(0,f.vM)(t,"AddColorTheme")}))}getApplyOperations(e,t){const r=super.getApplyOperations(e,t);return d.Z.getLayerInfo()&&r.push({name:"DL_ADD_COLORTHEME_TO_SWATCHES",icon:"download",displayInMenu:!0,allowMultiple:!0,apply:()=>this._addThemeAsSwatchGroup(e)}),r}}var _e=r(68051);class Ee extends _e.Z{_setFont(e,t,r){L(m,g,E),super._setFont(e,t,r)}}var we=r(9494),Le=r(48124),xe=r(92098),Se=r(80804);class Oe extends Le.Z{_addImageToDocument(e,t){const r=p.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,f.vM)(n,"placeAsset",t),n.getContentPath().then((n=>o.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,r,r?p.kv(e):null,t])))):e.getThumbnailPath().then((n=>((0,f.dN)(e,"placeAsset",t),o.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,r,r?p.kv(e):null,t]))))}getApplyOperations(e){return d.Z.getLayerInfo()?[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);we.Z.obtainLock(r,(()=>{Se.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&xe.Z.deleteTempFile(t.tempPath),R.Z.elementEditCompleted(e),we.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,f.ii)(t.tempPath))return;t.isSaveInProgress=!0;let r=e.library;const a=r.name,l=!r||r.isDeletedLocally;let u=!1;if(l||!r.isWritable){if(r=i.ZP.getRecoveryLibrary(r.name),!r)return;u=!0}const d=this._getLockId(e);we.Z.obtainLock(d,(()=>{const i=p.si(e);e.isDeletedLocally||u?e=r.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const h=[],m=s.pH(t.tempPath,e.type),g=e.createRepresentation(m,"primary");i&&p.i2(g,i),h.push(g.setContentFromPath(t.tempPath));const v=s.K3(t.tempPath)+".png";v&&s.xW(v)&&h.push((0,f.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,v));const y=()=>{R.Z.sendElementUpdated(g);const n=e.endOperation();we.Z.releaseLock(d),u&&(x.Z.revealElement(e),l?o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:r.name})):o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:r.name,originalLibraryName:a}))),n.then((()=>{t.isClosed?xe.Z.deleteTempFile(t.tempPath):xe.Z.updateTempFile(g,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(h).then(y,y)}))}defaultEditOperation(e){if(!this._config.isEditable(e))return!1;const t=e.getPrimaryRepresentation();xe.Z.getTempFile(t).then((t=>{const r=s.K3(t)+".png";o.Z.execApp("openAssetForEdit",[t,r,"Image"]).then((r=>{const n=o.Z.createEvent("com.adobe.illustrator.FitCurrentDocumentViewToActiveArtboard","APPLICATION");o.Z.dispatchEvent(n);const i={tempPath:t,isClosed:!1,isSaveInProgress:!1};i.listenerId=Se.Z.startListening(r,t,(t=>{"closed"===t?this._onDocumentClose(e,i):"saved"===t&&this._onDocumentSave(e,i)}))}))}))}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var Te=r(83841);class Ie extends Te.Z{_setStyleInfo(e,t,r){e.type="parastyle",e.name=t,e.id=r}_useParaStyle(e,t,r){const n=1===r.index,i=r.index===r.length,a=this._config.findUsableRepresentation(e);if((0,f.vM)(a,t),a){const r=e.name,s=e.id+";"+e.modified;if("application/vnd.adobe.paragraphstyle+json"===a.type){const e=a.getValue("paragraphstyle","data");return this._setStyleInfo(e,r,s),o.Z.execApp(t,[e,n,i])}}}_setParaStyle(e,t){return L(m,v,E),this._useParaStyle(e,"setFont",t)}_createTextLayer(e,t){return L(m,v,_),this._useParaStyle(e,"createTextLayer",t)}getApplyOperations(e,t,r){const n=d.Z.getLayerInfo();if(!n)return[];const i=[];return n&&"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_PARA_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setParaStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_PARA_STYLE_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e,r),displayInMenu:!0,allowMultiple:!0}),i}}var Pe=r(95134);class Ce extends Pe.Z{constructor(...e){super(...e),this.dragType="image",this.allowDragWithoutUsableRepresentation=!0}_applyPattern(e,t){let r;return r=t&&n.Z.currentProduct.config.enableSVGPatterns?t:this._config.findUsableRepresentation(e),r?((0,f.vM)(r,"applyPattern"),r.getContentPath().then((t=>{const n=o.Z.createEvent("ILST.patternApplied","APPLICATION");return n.data={path:t,type:r.type,name:e.name},o.Z.dispatchEvent(n)}))):e.getThumbnailPath().then((t=>{(0,f.dN)(e,"applyPattern");const r=o.Z.createEvent("ILST.patternApplied","APPLICATION");return r.data={path:t,name:e.name},o.Z.dispatchEvent(r)}))}_addImageToDocument(e,t=!1){const r=p.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,f.vM)(n,"placeAsset",t),n.getContentPath().then((n=>o.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,r,r?p.kv(e):null,t])))):e.getThumbnailPath().then((n=>((0,f.dN)(e,"placeAsset",t),o.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,r,r?p.kv(e):null,t]))))}_addVectorPatternTileToDocument(e,t,r=!1){const n=p.wq(e);return(0,f.vM)(t,"placeAsset",r),t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,n,n?p.kv(e):null,r])))}getApplyOperations(e){if(!d.Z.getLayerInfo())return[];const t=e.representations.find((t=>{const r="image/svg+xml"===t.type,n=this._config.isRepresentationCompatible(t,s.ku(e.type));return r&&n})),r=[{name:"DL_APPLY_PATTERN",icon:"paintbucket",apply:()=>this._applyPattern(e,t),displayInMenu:!0,onClick:!0},{name:"DL_ADD_PATTERN_TO_DOC_AS_IMAGE_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e),displayInMenu:!0}];return t&&r.push({name:"DL_ADD_VECTOR_PATTERN_TILE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addVectorPatternTileToDocument(e,t),displayInMenu:!0}),r}getDragData(e){const t=this._config.findUsableRepresentation(e);let r;if(t&&(r=t.getCachedContentPath()),r)return{data:[r],placeType:"unlinked",usedRepresentationForAnalytics:t}}}var Ae=r(54712);class ke extends Ae.Z{_openDocumentFromTemplate(e,t,r){return r?o.Z.showError((0,c.Iu)(p.hr(e))):((0,f.vM)(t,"useTemplate"),t.getContentPath().then((t=>o.Z.execApp("openDocumentFromTemplate",[t,e.name]))))}getApplyOperations(e){const t=s.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n})),n=!r&&this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0);return r||n?[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:()=>this._openDocumentFromTemplate(e,r,n),displayInMenu:!0}]:[]}}var De=r(91696);class Ne extends De.Z{_sendAiTextFileCreatedEvent(e,t,r){const n=o.Z.createEvent("ILST.textFileCreated","APPLICATION"),i={};e&&(i.stripStyle=t,i.placeInline=r,i.path=e,i.usingContextMenu=!0),n.data=JSON.stringify(i),o.Z.dispatchEvent(n)}_useText(e,t,r,i){const a=this._config.findUsableRepresentation(e);if(!a)return;(0,f.vM)(a,t);const s=e.id+";"+e.modified;if(a.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE){const e=a.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);return e.id=s,e.type="text",o.Z.execApp(t,[e]).then((e=>this._sendAiTextFileCreatedEvent(e,r,i)))}return"application/illustrator-text"===a.type?a.getContentPath().then((e=>this._sendAiTextFileCreatedEvent(e,r,i))):void 0}_setText(e){return this._useText(e,"getAiFileForText",!1,!1)}_setPlainText(e){return this._useText(e,"getAiFileForText",!0,!1)}_setTextInline(e){return this._useText(e,"getAiFileForText",!1,!0)}getApplyOperations(e){const t=d.Z.getLayerInfo();return t?!0===t.textSelectionExists||!0===t.insertionPointExists?[{name:"DL_ADD_TEXT_INLINE_AI",icon:"text",onClick:!1,apply:()=>this._setTextInline(e),displayInMenu:!0}]:[{name:"DL_ADD_TEXT_UNLINKED_AI",icon:"text",onClick:!1,apply:()=>this._setText(e),displayInMenu:!0},{name:"DL_ADD_TEXT_UNLINKED_NOSTYLES",icon:"text",onClick:!1,apply:()=>this._setPlainText(e),displayInMenu:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);we.Z.obtainLock(r,(()=>{Se.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&xe.Z.deleteTempFile(t.tempPath),R.Z.elementEditCompleted(e),we.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,f.ii)(t.tempPath))return;if(t.isSaveInProgress=!0,!s.xW(t.tempPath))return void(t.isSaveInProgress=!1);let r=e.library;const a=r.name,l=!r||r.isDeletedLocally;let u=!1;if(l||!r.isWritable){if(r=i.ZP.getRecoveryLibrary(r.name),!r)return;u=!0}const p=this._getLockId(e);we.Z.obtainLock(p,(()=>{o.Z.execApp("getUpdatedTextInfo",[t.tempPath]).then((i=>{const d=[],h=JSON.parse(i);if(!0!==h.isValidSave)return;e.isDeletedLocally||u?e=r.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const m=h.textData,g=s.pH(t.tempPath,e.type),v=e.createRepresentation(g,"primary");d.push(v.setContentFromPath(t.tempPath));e.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,m.textInfo);const y=s.K3(t.tempPath)+".png";y&&s.xW(y)&&d.push((0,f.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,y));const b=()=>{R.Z.sendElementUpdated(v);const n=e.endOperation();we.Z.releaseLock(p),u&&(x.Z.revealElement(e),l?o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:r.name})):o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:r.name,originalLibraryName:a}))),n.then((()=>{t.isClosed?xe.Z.deleteTempFile(t.tempPath):xe.Z.updateTempFile(v,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(d).then(b,b)}))}))}defaultEditOperation(e){if(!this._config.isEditable(e))return!1;const t=e.getPrimaryRepresentation();xe.Z.getTempFile(t).then((t=>{const r=s.K3(t)+".png";o.Z.execApp("openAssetForEdit",[t,r,"text"]).then((r=>{const n={tempPath:t,isClosed:!1,isSaveInProgress:!1};n.listenerId=Se.Z.startListening(r,t,(t=>{"closed"===t?this._onDocumentClose(e,n):"saved"===t&&this._onDocumentSave(e,n)}))}))}))}}var Re=r(54142),Me=r(13293);const je="application/vnd.adobe.characterstyle+json",Ze="characterstyle",Fe="data";class Be extends Re.Z{constructor(...e){super(...e),this._setTextStyle=function(e,t){return L(m,g,E),this._useTextStyle(e,"setFont",t)},this._createTextLayer=function(e,t){return L(m,g,_),this._useTextStyle(e,"createTextLayer",t)}}_setStyleInfo(e,t,r){e.type="charstyle",e.name=t,e.id=r}_useTextStyle(e,t,r){const n=1===r.index,i=r.index===r.length,a=this._config.findUsableRepresentation(e);if(!a)return;const s=Me.R(e);s&&s.id?(0,f.vM)(a,t,null,{event:{value:"typekit"}}):(0,f.vM)(a,t);const c=e.name,l=e.id+";"+e.modified;if(a.type===je){const e=a.getValue(Ze,Fe);return this._setStyleInfo(e,c,l),o.Z.execApp(t,[e,n,i])}}getApplyOperations(e,t,r){const n=d.Z.getLayerInfo();if(!n)return[];const i=[];return"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_TEXT_STYLE_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e,r),displayInMenu:!0,allowMultiple:!0}),i}_addTextStyleElement(e,t,r){return e&&"LayerKind.TEXT"===e.kind?o.Z.execApp("getCharStyleInfo").then((e=>{const i=JSON.parse(e);i.styleName||(i.styleName=(0,c.Iu)("DL_TYPE_NEW_CHAR_STYLE"));const o=(0,f.MN)(t,i.styleName,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r});o.createRepresentation(je,"primary").setValue(Ze,Fe,i.styleInfo);const a=[];if(i.previewPath){const e=o.createRepresentation("image/png","rendition");a.push(e.setContentFromPath(i.previewPath))}return Promise.all(a).then((()=>{const e=[];return i.previewPath&&e.push(o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,i.previewPath)),e.push(o.endOperation()),Promise.all(e).then((()=>{i.previewPath&&s._I(i.previewPath)})),o})).catch((()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))})):Promise.reject("not a text layer")}getAddOperations(e){if(!e||!e.text||!1===e.isAppliedCharStyleSupported)return[];return[{name:"DL_ADD_TEXT_STYLE_NAME",order:2,icon:"AddCharacterStyle",apply:(t,r)=>new Promise((n=>{d.Z.updateLayerInfo().then((()=>n(this._addTextStyleElement(e,t,r))))}))}]}}function Ge(){return this.config={},this.config.code="ILST",this.config.fullName="Illustrator",this.config.translationSuffix="AI",this.config.dragDropSource="com.adobe.illustrator",this.config.offsetSelectMenu=!0,this.config.enableSVGPatterns=!1,this.config.usesEscapedFilePathsInEvents=!0,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.elementTypes=[ve,be,Ne,Be,Ee,Ie,Oe,me,ke,Ce,he.Z.ComponentElementConfig,he.Z.GradientElementConfig,he.Z.VideoElementConfig,he.Z.LookElementConfig,he.Z.CapsuleElementConfig,he.Z.ThreeDElementConfig,he.Z.LayerStyleElementConfig,he.Z.AnimationElementConfig,he.Z.LightElementConfig,he.Z.MaterialElementConfig,he.Z.AudioElementConfig,he.Z.ChannelElementConfig,he.Z.ImageGuidelineElementConfig,he.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.GRADIENT_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.includeGuidInTempFileName=!0,this.startEventListener=function(){o.Z.addEventListener("documentAfterDeactivate",ae),o.Z.addEventListener("artSelectionChanged",oe),o.Z.addEventListener("fontListChanged",ie),o.Z.addEventListener("ILST.addElementToLibrary",K),o.Z.addEventListener("ILST.updateElement",q),o.Z.addEventListener("ILST.forceSyncLibrary",ce),o.Z.addEventListener("ILST.pushColorsToLibrary",A),o.Z.addEventListener("ILST.pushCharStyleToLibrary",D),o.Z.addEventListener("ILST.pushParaStyleToLibrary",N),o.Z.addEventListener("ILST.addSelectionToLibrary",Q),o.Z.addEventListener("ILST.workspaceChanged",le),o.Z.addEventListener("ILST.openStock",ue),o.Z.addEventListener("ILST.openStockTemplate",pe),o.Z.addEventListener("ILST.getTextAsAiFile",de),o.Z.addEventListener("ILST.pushMaterialsToLibrary",ee)},this.stopEventListener=function(){o.Z.removeEventListener("documentAfterDeactivate",ae),o.Z.removeEventListener("artSelectionChanged",oe),o.Z.removeEventListener("fontListChanged",ie),o.Z.removeEventListener("ILST.addElementToLibrary",K),o.Z.removeEventListener("ILST.updateElement",q),o.Z.removeEventListener("ILST.forceSyncLibrary",ce),o.Z.removeEventListener("ILST.pushColorsToLibrary",A),o.Z.removeEventListener("ILST.pushCharStyleToLibrary",D),o.Z.removeEventListener("ILST.pushParaStyleToLibrary",N),o.Z.removeEventListener("ILST.addSelectionToLibrary",Q),o.Z.removeEventListener("ILST.workspaceChanged",le),o.Z.removeEventListener("ILST.openStock",ue),o.Z.removeEventListener("ILST.openStockTemplate",pe),o.Z.removeEventListener("ILST.getTextAsAiFile",de),o.Z.removeEventListener("ILST.pushMaterialsToLibrary",ee)},this.fontManager=new l.Z,this.init=function(){s.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/svg+xml","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/illustrator","application/pdf"]),s.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),s.Zh(n.Z.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip"]),s.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),s.Zh(n.Z.FONT_ELEMENT_TYPE,["application/vnd.adobe.font+json"]),s.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json"]),s.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["application/illustrator.template","application/vnd.adobe.illustrator.template"]),s.Zh(n.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png","image/svg+xml"]),s.Zh(n.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.text+json","application/illustrator-text"]),s.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),s.Zh(n.Z.MATERIAL_ELEMENT_TYPE,["application/vnd.adobe.sbsar+zip","application/vnd.adobe.mdl.material+zip"]),s.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),s.Dk(n.Z.IMAGE_ELEMENT_TYPE,["image/svg+xml","application/illustrator"]),s.Dk(n.Z.TEXT_ELEMENT_TYPE,["application/illustrator-text"]),o.Z.execApp("setThumbnailExportOptions"),o.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),o.Z.exec("CORE","getApplicationVersion",[]).then((e=>{try{const t=parseInt(e.split(".")[0]);this.config.enableSVGPatterns=t>=23}catch(e){}})),this.startEventListener(),i.ZP.waitForInitialLoad().then((function(){const e=o.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");o.Z.dispatchEvent(e)})),i.ZP.addListener("libraryList",(function(){se()})),i.ZP.addListener("currentLibrary",(function(){se()}))},this.reportEvent=function(e,t){a.Z.log("Metric reported to AI"),t.event=e;const r=o.Z.createEvent("com.adobe.illustrator.LOGPIP","APPLICATION");r.data=JSON.stringify(t),o.Z.dispatchEvent(r),delete t.event},this.getUserData=function(e){o.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))},this.config.useMouseEventToDetectDrop=!0,this.dropHandler=function(e,t){a.Z.log("Illustrator drop handler",e);return(o.Z.isWindowsOS()?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type&&(e.assetList[0].type="image"),Promise.reject()},this.customDropMessage=function(e,t){const r=o.Z.isWindowsOS();if(!(r?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type){const e="DL_CUSTOM_DROP_MESSAGE_ID_TEXT_"+(r?"WIN":"MAC");return(0,c.Iu)(e)}},this.allowCmdDrag=!0,this}},15577:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{constructor(){this.colorModifiedByUser=""}Color(){this.spotMismatch=!1}isColorSupported(e){return"NoColor"!==e._className&&"GradientColor"!==e._className&&"PatternColor"!==e._className}isModeSupported(e){return e&&("RGB"===e.mode||"CMYK"===e.mode||"Gray"===e.mode)}colorToRGB(e){const t=window.app,r=new RGBColor;let n;switch(e._className){case"RGBColor":r.red=e.red,r.green=e.green,r.blue=e.blue;break;case"CMYKColor":n=t.convertSampleColor(ImageColorSpace.CMYK,[e.cyan,e.magenta,e.yellow,e.black],ImageColorSpace.RGB,ColorConvertPurpose.dummypurpose),r.red=n[0],r.green=n[1],r.blue=n[2];break;case"LabColor":n=t.convertSampleColor(ImageColorSpace.LAB,[e.l,e.a,e.b],ImageColorSpace.RGB,ColorConvertPurpose.dummypurpose),r.red=n[0],r.green=n[1],r.blue=n[2];break;case"GrayColor":n=t.convertSampleColor(ImageColorSpace.GrayScale,[e.gray],ImageColorSpace.RGB,ColorConvertPurpose.dummypurpose),r.red=n[0],r.green=n[1],r.blue=n[2];break;case"SpotColor":return this.colorToRGB(e.spot.color)}return r}colorToCMYK(e){const t=window.app,r=new CMYKColor;let n;switch(e._className){case"CMYKColor":r.cyan=e.cyan,r.magenta=e.magenta,r.yellow=e.yellow,r.black=e.black;break;case"RGBColor":n=t.convertSampleColor(ImageColorSpace.RGB,[e.red,e.green,e.blue],ImageColorSpace.CMYK,ColorConvertPurpose.dummypurpose),r.cyan=n[0],r.magenta=n[1],r.yellow=n[2],r.black=n[3];break;case"LabColor":n=t.convertSampleColor(ImageColorSpace.LAB,[e.l,e.a,e.b],ImageColorSpace.CMYK,ColorConvertPurpose.dummypurpose),r.cyan=n[0],r.magenta=n[1],r.yellow=n[2],r.black=n[3];break;case"GrayColor":n=t.convertSampleColor(ImageColorSpace.GrayScale,[e.gray],ImageColorSpace.CMYK,ColorConvertPurpose.dummypurpose),r.cyan=n[0],r.magenta=n[1],r.yellow=n[2],r.black=n[3];break;case"SpotColor":return this.colorToCMYK(e.spot.color)}return r}findRepWithMode(e,t){var r;return null===(r=e.filter((e=>e.mode===t)))||void 0===r?void 0:r[0]}getBestColorRepresentation(e){const t=e[0];return this.isModeSupported(t)?t:this.findRepWithMode(e,"RGB")}areDataSame(e,t){if(e.mode!==t.mode)return!1;const r=e.value,n=t.value;return Object.keys(r).forEach((e=>{if(t=e,parseFloat(r[t])!==parseFloat(n[t]))return!1;var t})),!0}dataToSolidColor(e){const t=window.app,r=t.activeDocument;if(Array.isArray(e)&&(e=this.getBestColorRepresentation(e)),"spot"===e.type){let n,i=!1;const o=new SpotColor;void 0!==e.name&&(e.spotColorName=e.name);try{n=r.spots.getByName(e.spotColorName);const t=this.solidColorToData(n.color),o=this.getBestColorRepresentation(t),a=this.areDataSame(o,e);this.spotMismatch=!a,i=!0}catch(e){i=!1}return i?(o.spot=n,o):(o.spot=t.activeDocument.spots.add(),o.spot.name=e.spotColorName,o.spot.color=this._colorByMode(e),o.spot.colorType=ColorModel.SPOT,o)}if("none"===e.type)return NoColor;if("registration"===e.type)return void 0===TEXT.RegistrationColor&&TEXT.updateRegistrationColor(),TEXT.RegistrationColor;if("process"===e.type&&e.global){let n,i=!1;const o=new SpotColor;void 0!==e.name&&(e.spotColorName=e.name);try{n=r.spots.getByName(e.spotColorName);const t=this.solidColorToData(n.color),o=this.getBestColorRepresentation(t),a=this.areDataSame(o,e);this.spotMismatch=!a,i=!0}catch(e){i=!1}return i?(o.spot=n,o):(o.spot=t.activeDocument.spots.add(),o.spot.name=e.spotColorName,o.spot.color=this._colorByMode(e),o.spot.colorType=ColorModel.PROCESS,o)}return this._colorByMode(e)}_colorByMode(e){let t=new RGBColor;if(e)switch(e.mode){case"RGB":t=new RGBColor,t.red=e.value.r,t.green=e.value.g,t.blue=e.value.b;break;case"CMYK":t=new CMYKColor,t.cyan=e.value.c,t.magenta=e.value.m,t.yellow=e.value.y,t.black=e.value.k;break;case"Lab":t=new LabColor,t.l=e.value.l,t.a=e.value.a,t.b=e.value.b;break;case"Gray":t=new GrayColor,t.gray=e.value}return t}solidColorToData(e){if(!this.isColorSupported(e))return;const t=window.app;let r,n=[];try{r=t.activeDocument.colorProfileName}catch(e){}if("SpotColor"===e._className){if(e.spot.colorType===ColorModel.SPOT)return n=this.solidColorToData(e.spot.color),n.map((function(t){return t.type="spot",t.spotColorName=e.spot.name,t.global=!0,t}));if(e.spot.colorType===ColorModel.PROCESS)return n=this.solidColorToData(e.spot.color),n.map((function(t){return t.type="process",t.spotColorName=e.spot.name,t.global=!0,t}))}const i=this.colorToRGB(e);return n.push({mode:"RGB",value:{r:i.red,g:i.green,b:i.blue},type:"process",global:!1,profileName:r}),"CMYKColor"===e._className&&n.unshift({mode:"CMYK",value:{c:e.cyan,m:e.magenta,y:e.yellow,k:e.black},type:"process",global:!1,profileName:r}),"LabColor"===e._className&&n.unshift({mode:"Lab",value:{l:e.l,a:e.a,b:e.b},type:"process",global:!1,profileName:r}),"GrayColor"===e._className&&n.unshift({mode:"Gray",value:e.gray,type:"process",global:!1,profileName:r}),n}getDisplayName(e){let t="";if(e)switch(e.mode){case"RGB":t+="R="+Math.round(e.value.r).toString(),t+=" G="+Math.round(e.value.g).toString(),t+=" B="+Math.round(e.value.b).toString();break;case"CMYK":t+="C="+Math.round(e.value.c).toString(),t+=" M="+Math.round(e.value.m).toString(),t+=" Y="+Math.round(e.value.y).toString(),t+=" K="+Math.round(e.value.k).toString();break;case"Lab":t+="L="+Math.round(e.value.l).toString(),t+=" A="+Math.round(e.value.a).toString(),t+=" B="+Math.round(e.value.b).toString();break;case"Gray":t="Gray"}return t||(t="Undefined"),t}getSelectedSwatchList(){return new Promise((e=>{const t=window.app.activeDocument,r=[];if(t){const e=t.swatches;if(e){const t=e.getSelected(!1);null!=t&&t.length&&t.forEach((e=>r.push({name:e.name,data:this.solidColorToData(e.color)})))}}e(JSON.stringify(r))}))}getSelectedSwatchGroupList(){return new Promise((e=>{const t=window.app.activeDocument,r=[];let n,i,o;if(t){const e=t.swatchGroups;var a;if(e)n=e.getSelected(),null!==(a=n)&&void 0!==a&&a.length&&n.forEach((e=>{o={},o.mood=e.name,i=e.getAllSwatches();const t=i.map((e=>this.solidColorToData(e.color)));o.swatches=t,r.push(o)}))}e(JSON.stringify(r))}))}addSwatchGroup(e,t){return new Promise((()=>{const r=window.app;if(e){const n=r.activeDocument,i="mood",o="swatches";let a,s,c,l,u;if(n){const r=n.swatchGroups;r&&(s=r.add(),s.name=t||e[i],l=e[o],l.forEach((e=>{c=this.getBestColorRepresentation(e),u=this.dataToSolidColor(c),"spot"===c.type?s.addSpot(u.spot):(a=n.swatches.add(),a.color=u,a.name=this.getDisplayName(c),s.addSwatch(a))})))}}}))}setFillColor(e){try{const t=window.app,r=this.dataToSolidColor(e);t.activeDocument.defaultFillColor=r}catch(e){}}setStrokeColor(e){try{const t=window.app,r=this.dataToSolidColor(e);t.activeDocument.defaultStrokeColor=r}catch(e){}}setColor(e){return new Promise(((t,r)=>{const n=window.app;this.spotMismatch=!1;try{if(0===n.documents.length)return;n.isFillActive()&&this.setFillColor(e),n.isStrokeActive()&&this.setStrokeColor(e);const r=this.spotMismatch;!0===this.spotMismatch&&(this.spotMismatch=!1),t(r)}catch(e){}}))}addColor(e){return new Promise(((t,r)=>{const n=window.app;this.spotMismatch=!1;try{if(0===n.documents.length)return;const r=n.activeDocument,i=this.getBestColorRepresentation(e),o=this.dataToSolidColor(i);if("spot"!==i.type&&!i.global){const e=r.swatches.add();e.color=o,e.name=this.getDisplayName(i)}const a=this.spotMismatch;!0===this.spotMismatch&&(this.spotMismatch=!1),t(a)}catch(e){}}))}getLayerColor(){return new Promise(((e,t)=>{try{const t=this.solidColorToData(this.colorModifiedByUser);return e(JSON.stringify(t))}catch(e){}}))}replaceColor(e){return new Promise(((t,r)=>{const n=window.app;try{const r=this.dataToSolidColor(e),i=n.showColorPicker(r);return this.colorModifiedByUser=i,t(!0),t(r!==i)}catch(e){r(!1)}}))}}},3765:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>Se});var n=r(99386),i=r(93028),o=r(76485),a=r(26964),s=r(34038),c=r(84824),l=r(57613),u=r(53849),p=r(46903);function d(e){let t;Object.prototype.hasOwnProperty.call(e,"libraryID")&&(t=e.libraryID);let r=!1;return Object.prototype.hasOwnProperty.call(e,"createNewLibrary")&&(r=JSON.parse(e.createNewLibrary)),function(e,t){let r;if(e&&(r=i.ZP.getLibraryById(e)),r||t||(r=i.ZP.currentLibrary),r||(r=i.ZP.recentLibraries[0]),!r){const e=(0,c.Iu)("DL_DEFAULT_LIBRARY_NAME");r=i.ZP.createLibrary(e)}return r&&(i.ZP.currentLibrary=r,r=i.ZP.currentLibrary),r}(t,r)}var h=r(15577);const f="illustrator",m="data";function g(e){return e.getValue(f,m)}function v(e,t){e.setValue(f,m,{global:t.global})}const y=e=>{const t=d(e);if(!t)return Promise.reject("Library Error");if(!(0,p.oY)(t,!1,!0))return Promise.reject("Library Error");let r;Object.prototype.hasOwnProperty.call(e,"isNew")&&(r=e.isNew?"swatchPanelNew":"swatchPanelExisting");return h.Z.getSelectedSwatchList().then((e=>{try{e=JSON.parse(e)}catch(e){return Promise.reject("err")}let i;e.forEach((e=>{e.data&&(i=(e=>{const i=e.name||e.data[0].spotColorName||"",o=t.createElement(i,n.Z.COLOR_ELEMENT_TYPE);return e.data.forEach(((e,t)=>{const r=0===t?"primary":"rendition",i=o.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,r);"global"in e&&(v(i,e),delete e.global),i.setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,e)})),o.endOperation(),r&&(0,p.vM)(o.representations[0],r),o})(e))})),i&&u.Z.revealElement(i)}))},b=e=>{const t=d(e);if(!t)return Promise.reject("Library Error");if(!(0,p.oY)(t))return Promise.reject("Library Error");return h.Z.getSelectedSwatchGroupList().then((e=>{if(!e)return Promise.reject("err");if((e=JSON.parse(e)).length>0){let r;e.forEach((e=>{r=(e=>{const r=e.mood||"";let i;e.swatches&&e.swatches.length<=5&&e.swatches.length>0&&(i=t.createElement(r,n.Z.COLOR_THEME_ELEMENT_TYPE),i.createRepresentation(n.Z.COLOR_THEME_REPRESENTATION_TYPE,"primary").setValue(n.Z.COLOR_THEME_NAMESPACE,n.Z.COLOR_THEME_DATA_KEY,e),i.endOperation());return i})(e)})),r&&u.Z.revealElement(r)}}))};function _(e){const t=JSON.parse(e),r=[];return t&&(t.uploadSwatch&&r.push(y(t)),t.uploadSwatchGroup&&r.push(b(t))),Promise.all(r)}var E=r(8733),w=r(31870),L=r(15909),x=r(74149),S=r(30131),O=r(36351),T=r(51461);function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function C(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}const A=(e,t)=>{if(e){const r=e.element,n=r.getLegacyReference();e.getContentPath().then((e=>{const i=o.Z.createEvent(q.elementUpdated,"APPLICATION");i.data=JSON.stringify({requestRef:t,elementRef:n,name:r.name,libraryName:r.library.name,modifiedTime:(0,p.RW)(r),creationTime:r.created,data:[e]}),o.Z.dispatchEvent(i)}))}},k=(e,t,r)=>{const n=t&&t.files||[];for(let t=0;t<n.length;t++){const i=n[t],o=s.pH(i.path,r.type),a=r.createRepresentation(o,i.relationship).setContentFromPath(i.path);e.push(a)}},D=e=>{const t=o.Z.createEvent(q.initialCommunicationError,"APPLICATION"),r=i.ZP.syncStatus;t.data={elementIdentifier:e,status:"error",error:r&&r.errorType||"kError"},o.Z.dispatchEvent(t)},N=(e,t,r,n)=>{let a=!1,s=!1;const c=t=>{const r=o.Z.createEvent(q.elementUploaded,"APPLICATION"),n=t||{errorType:"kNoErr",state:"ok"};O.Z.isOnline||(n.state="error",n.errorType="kNoInternet"),r.data={elementRef:e.getLegacyReference(),status:n.state,error:n.errorType||"kNoErr"},o.Z.dispatchEvent(r)},l=()=>{const o=i.ZP.syncStatus;s||"ok"!==o.state&&"error"!==o.state||(c(o),s=!0,t&&"ok"===o.state&&!a&&("kAIChart"===n?(0,S.w3)(e,"charts",r):"kAIArt"===n&&(0,S.w3)(e,"details",r),a=!0),i.ZP.removeListener("libraryStatus",l))};i.ZP.syncingEnabled()?i.ZP.addListener("libraryStatus",l):c(i.ZP.syncStatus)},R=e=>{for(let t=0;t<e.length;t++)s._I(e[t].path)},M=(e,t,r)=>{if(!e)throw"No current library";if(!t||!t.files||!r)throw"event data invalid"};function j(e){const t=e.data.fileData,r=i.ZP.currentLibrary,o=e.data.additionalQueryParameters,a=e.data.openBrowserAfterOperation,c=e.data.elementType;let l=null;if((0,p.oY)(r))try{if(M(r,t,c),null===t.layerIds||null===t.documentId)throw"layer Ids Or documentId cannot be null";if("kAIArt"!==c&&"kAIChart"!==c)throw"Element not supported yet";l=n.Z.IMAGE_ELEMENT_TYPE,t.layerName="kAIChart"===c?(0,p.In)(r,t.layerName,"DL_CHART_LABEL"):(0,p.In)(r,t.layerName);const e=r.createElement(t.layerName,l),i=[];return k(i,t,e),Promise.all(i).then((function(){const r=[];t.rendition&&r.push(e.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,t.rendition)),r.push(e.endOperation()),Promise.all(r).then((()=>{R(t.files),t.rendition&&s._I(t.rendition.path)})),u.Z.revealElement(e);const i={documentId:t.documentId,layerIds:t.layerIds};return L.Z.sendElementCreated(e,i).then((()=>(N(e,a,o,c),e)))}),(()=>Promise.reject("Could not add element")))}catch(e){return D(t.layerIds&&t.layerIds[0]||null),Promise.reject("Could not add element: "+e)}}function Z(e){return F.apply(this,arguments)}function F(){return(F=C(I().mark((function e(t){var r,o,a,c,l,d,h,f;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data.fileData,o=t.data.elementType,a=t.data.elementRef,c=t.data.additionalQueryParameters,l=t.data.openBrowserAfterOperation,e.prev=5,a){e.next=8;break}throw"elementRef missing";case 8:return e.next=10,i.ZP.resolveElementReference(a);case 10:if(d=e.sent){e.next=13;break}throw"Element not found";case 13:if(u.Z.revealElement(d),h=d.library,(0,p.oY)(h)){e.next=17;break}return e.abrupt("return");case 17:return M(h,r,o),d.isDeletedLocally?d=h.createElement(d.name,d.type):(d.beginOperation(),d.removeAllRepresentations()),k(f=[],r,d),e.abrupt("return",Promise.all(f).then((function(){const e=[];return r.rendition&&e.push(d.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,r.rendition)),e.push(d.endOperation()),Promise.all(e).then((()=>{R(r.files),r.rendition&&s._I(r.rendition.path)})),A(d.getPrimaryRepresentation(),t.data.requestRef),N(d,l,c,o),d}),(()=>Promise.reject("Could not update element"))));case 24:return e.prev=24,e.t0=e.catch(5),D(t.data.requestRef),e.abrupt("return",Promise.reject("Could not update element: "+e.t0));case 28:case"end":return e.stop()}}),e,null,[[5,24]])})))).apply(this,arguments)}const B=e=>{var t,r;if(e&&(void 0===e.canAddTextAsset||!1!==e.canAddTextAsset))return void 0!==e.canAddTextAsset?function(e,t){return o.Z.execApp("getTextInfo").then((r=>{const i=JSON.parse(r);if(!i||!i.textInfo)return Promise.reject("Could not create element.");const o=t.textAssetName||i.name,a=(0,p.In)(e,o,"DL_TEXT_LABEL"),c=(0,p.MN)(e,a,n.Z.TEXT_ELEMENT_TYPE,{opType:"canvasContextMenu"}),l=[];if(i.primaryRepresentation){const e=c.createRepresentation(i.primaryRepresentation.representationType,"primary");if(i.primaryRepresentation.isFile){const t=e.setContentFromPath(i.primaryRepresentation.filePath).then((()=>{l.push(t)}))}else e.setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.primaryRepresentation.data);c.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.textInfo)}else c.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"primary").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.textInfo);if(i.previewPath){const e=c.createRepresentation("image/png","rendition");e.isPreferredThumbnail=!0;const t=e.setContentFromPath(i.previewPath);l.push(t)}return Promise.all(l).then((function(){const e=[];return i.previewPath&&e.push(c.setThumbnailCache(n.Z.TEXT_THUMBNAIL_SIZE,i.previewPath)),e.push(c.endOperation()),Promise.all(e).then((()=>{i.previewPath&&s._I(i.previewPath),i.primaryRepresentation.isFile&&s._I(i.primaryRepresentation.filePath)})),(0,p.vM)(c.representations[0],"canvasContextMenu"),c}),(()=>(e.removeElement(c),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save text preview.")))}(i.ZP.currentLibrary,e):(t=i.ZP.currentLibrary,r=void 0,(0,p.g0)(r).then((e=>{const n={documentId:e.documentId,layerIds:e.layerIds,dragAssetId:r};return T.ZP.setExtraEventMetrics("createElement",{opType:"canvasContextMenu"}),(0,x.Bm)(e.layerName,e.files,e.rendition,t,n).then((e=>{(0,p.vM)(e.representations[0],"canvasContextMenu")})).catch((()=>{T.ZP.clearExtraEventMetrics("createElement")}))}),(()=>Promise.reject("Could not extract asset."))))};function G(){E.Z.updateLayerInfo().then(B)}var U=r(16993),z=r(47320);const V=(e,t)=>{const r=d(e);if(!r)return;if(!(0,p.oY)(r))return;let i,a,c,l,h;if(Object.prototype.hasOwnProperty.call(e,"isNew")){i=`${t?"characterStyle":"paragraphStyle"}${e.isNew?"New":"Existing"}`}t?(a="data",c="characterstyle",l=n.Z.CHARACTER_STYLE_ELEMENT_TYPE,h="application/vnd.adobe.characterstyle+json"):(a="data",c="paragraphstyle",l=n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,h="application/vnd.adobe.paragraphstyle+json");const f=e.styleNames,m=t?"addCharStyleById":"addParaStyleById";f.forEach((e=>{o.Z.execApp(m,[e]).then((e=>{const t=JSON.parse(e),o=r.createElement(t.styleName,l),d=[];if(o.createRepresentation(h,"primary").setValue(c,a,t.styleInfo),t.previewPath){const e=o.createRepresentation("image/png","rendition").setContentFromPath(t.previewPath);d.push(e)}Promise.all(d).then((function(){const e=[];t.previewPath&&e.push(o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,t.previewPath)),e.push(o.endOperation()),Promise.all(e).then((()=>{t.previewPath&&s._I(t.previewPath)})),i&&(0,p.vM)(o.representations[0],i),u.Z.revealElement(o)}))}))}))};function H(e){e=JSON.parse(e),V(e,!0)}function Y(e){e=JSON.parse(e),V(e,!1)}function W(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */W=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function $(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function K(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){$(o,n,i,a,s,"next",e)}function s(e){$(o,n,i,a,s,"throw",e)}a(void 0)}))}}const q={libraryListUpdated:"ILST.libraryListUpdated",elementUpdated:"com.adobe.DesignLibraries.events.ElementUpdated",initialCommunicationError:"ILST.InitialCommunicationError",elementUploaded:"ILST.elementUploaded",spotMishmatched:"ILST.SpotMismtached",fitCurrentDocumentViewToActiveArtboard:"com.adobe.illustrator.FitCurrentDocumentViewToActiveArtboard",textFileCreated:"ILST.textFileCreated",applyPattern:"ILST.patternApplied"};const X=new class{onLayerUpdateEvent(){E.Z.handleSelectionChange()}updateLibrariesInfo(){const e=i.ZP.libraries.filter((e=>!e.isDeletedFromServer)).map((e=>({name:e.name,id:e.id,writable:e.isWritable}))),t=i.ZP.currentLibrary,r=t?e.findIndex((e=>e.id===t.id)):-1,n=o.Z.createEvent(q.libraryListUpdated,"APPLICATION"),a={names:e,current:r};n.data=JSON.stringify(a),o.Z.dispatchEvent(n)}onFontListChanged(){n.Z.currentProduct.fontManager.invalidateFontList()}resetPanelView(){U.Z.isStockSearchMode()||U.Z.resetMode()}onDocumentDeactivateEvent(){this.resetPanelView()}onForceSyncLibrary(){i.ZP.sync(!1,!1)}onWorkspaceChanged(e){d(e=JSON.parse(e))}onStockOpenEvent(e){return K(W().mark((function t(){var r,a,c;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=JSON.parse(e))&&void 0!==e.elementRef){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,i.ZP.resolveElementReference(e.elementRef);case 5:return r=t.sent,a=w.wq(r),c=z.Z.findUsableRepresentation(r,s.ku(n.Z.IMAGE_ELEMENT_TYPE)),t.abrupt("return",(c?c.getContentPath():r.getThumbnailPath()).then((e=>o.Z.execApp("placeAsset",{filePath:e,libraryName:r.library.name,itemName:r.name,elementRef:r.getLegacyReference(),modifiedTime:(0,p.RW)(r),creationTime:r.created,adobeStockId:a,adobeStockLicense:a?w.kv(r):null,isLinked:!0,isOpenIn:!0}))));case 9:case"end":return t.stop()}}),t)})))()}onGetTextAsAiFile(e){return K(W().mark((function t(){var r,a,s,c;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=JSON.parse(e),r=(e,t,r)=>{const n=o.Z.createEvent("ILST.textFileCreated","APPLICATION"),i={};e&&(i.stripStyle=t,i.path=e,i.usingContextMenu=!1,i.placeInline=!1,i.contextData=r),n.data=JSON.stringify(i),o.Z.dispatchEvent(n)},e&&void 0!==e.elementRef){t.next=5;break}return r(),t.abrupt("return");case 5:return t.next=7,i.ZP.resolveElementReference(e.elementRef);case 7:a=t.sent,s=z.Z.findUsableRepresentation(a),a.type===n.Z.TEXT_ELEMENT_TYPE&&s&&(s.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE?((c=s.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY)).id=a.id+";"+a.modified,c.type="text",o.Z.execApp("getAiFileForText",[c]).then((t=>r(t,e.stripStyle,e.contextData)),r)):"application/illustrator-text"===s.type&&s.getContentPath().then((t=>r(t,e.stripStyle,e.contextData))));case 10:case"end":return t.stop()}}),t)})))()}listen(){o.Z.addEventListener("artSelectionOrPropertyChanged",this.onLayerUpdateEvent),o.Z.addEventListener("ILST.pushColorsToLibrary",_),o.Z.addEventListener("documentAfterDeactivate",this.onDocumentDeactivateEvent),o.Z.addEventListener("fontListChanged",this.onFontListChanged),o.Z.addEventListener("ILST.addElementToLibrary",j),o.Z.addEventListener("ILST.forceSyncLibrary",this.onForceSyncLibrary),o.Z.addEventListener("ILST.addSelectionToLibrary",G),o.Z.addEventListener("ILST.updateElement",Z),o.Z.addEventListener("ILST.workspaceChanged",this.onWorkspaceChanged),o.Z.addEventListener("ILST.openStock",this.onStockOpenEvent),o.Z.addEventListener("ILST.pushCharStyleToLibrary",H),o.Z.addEventListener("ILST.pushParaStyleToLibrary",Y),o.Z.addEventListener("ILST.getTextAsAiFile",this.onGetTextAsAiFile)}stop(){o.Z.removeEventListener("artSelectionOrPropertyChanged",this.onLayerUpdateEvent),o.Z.removeEventListener("ILST.pushColorsToLibrary",_),o.Z.removeEventListener("documentAfterDeactivate",this.onDocumentDeactivateEvent),o.Z.removeEventListener("fontListChanged",this.onFontListChanged),o.Z.removeEventListener("ILST.addElementToLibrary",j),o.Z.removeEventListener("ILST.forceSyncLibrary",this.onForceSyncLibrary),o.Z.removeEventListener("ILST.addSelectionToLibrary",G),o.Z.removeEventListener("ILST.updateElement",Z),o.Z.removeEventListener("ILST.workspaceChanged",this.onWorkspaceChanged),o.Z.removeEventListener("ILST.openStock",this.onStockOpenEvent),o.Z.removeEventListener("ILST.pushCharStyleToLibrary",H),o.Z.removeEventListener("ILST.pushParaStyleToLibrary",Y),o.Z.removeEventListener("ILST.getTextAsAiFile",this.onGetTextAsAiFile)}};var J=r(77560),Q=r(16771);function ee(){const e=o.Z.createEvent(q.spotMishmatched,"APPLICATION");o.Z.dispatchEvent(e)}class te extends Q.Z{_setColor(e,t,r,i){return r||(r=[],e.representations.forEach((t=>{const i=t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY),o=g(t);o&&(i.global=o.global);const a=e.name;i.name=a,"primary"===t.relationship?r.unshift(i):r.push(i)})),e.representations.length>0&&(0,p.vM)(e.representations[0],t)),i&&i(t),"addColor"===t?h.Z.addColor(r).then((e=>{e&&ee()})):"setColor"===t?h.Z.setColor(r).then((e=>{e&&ee()})):void 0}getApplyOperations(e){const t=E.Z.getLayerInfo();return t&&"{}"!==JSON.stringify(t)?t.selectionExists||t.textSelectionExists||t.insertionPointExists?[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setColor",t,r),displayInMenu:!0,onClick:!0},{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,r)=>this._setColor(e,"addColor",t,r),displayInMenu:!0}]:[{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,r)=>this._setColor(e,"addColor",t,r),displayInMenu:!0}]:[]}defaultEditOperation(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY),i=t&&g(t);return i&&(r.global=i.global),h.Z.replaceColor(r).then((t=>{if(JSON.parse(t))return h.Z.getLayerColor().then((t=>{const r=JSON.parse(t);e.beginOperation(),e.removeAllRepresentations(),r.forEach(((t,r)=>{const i=0===r?"primary":"rendition",o=e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i);"global"in t&&(v(o,t),delete t.global),o.setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation()}))}))}}var re=r(38122);class ne extends re.Z{_addThemeAsSwatchGroup(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue(n.Z.COLOR_THEME_NAMESPACE,n.Z.COLOR_THEME_DATA_KEY);return h.Z.addSwatchGroup(r,e.name).then((()=>{(0,p.vM)(t,"AddColorTheme")}))}getApplyOperations(e,t){const r=super.getApplyOperations(e,t),n=E.Z.getLayerInfo();return n&&"{}"!==JSON.stringify(n)&&r.push({name:"DL_ADD_COLORTHEME_TO_SWATCHES",icon:"download",displayInMenu:!0,allowMultiple:!0,apply:()=>this._addThemeAsSwatchGroup(e)}),r}}var ie=r(9494),oe=r(48124),ae=r(92098),se=r(80804);class ce extends oe.Z{_addImageToDocument(e,t){const r=w.wq(e),n=this._config.findUsableRepresentation(e);return n?(0,p.vM)(n,"placeAsset",t):(0,p.dN)(e,"placeAsset",t),(n?n.getContentPath():e.getThumbnailPath("full")).then((n=>o.Z.execApp("placeAsset",{filePath:n,libraryName:e.library.name,itemName:e.name,elementRef:e.getLegacyReference(),modifiedTime:(0,p.RW)(e),creationTime:e.created,adobeStockId:r,adobeStockLicense:r?w.kv(e):null,isLinked:t})))}getApplyOperations(e){const t=E.Z.getLayerInfo();return t&&"{}"!==JSON.stringify(t)?[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);ie.Z.obtainLock(r,(()=>{se.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&ae.Z.deleteTempFile(t.tempPath),L.Z.elementEditCompleted(e),ie.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,p.ii)(t.tempPath))return;t.isSaveInProgress=!0;let r=e.library;const a=r.name,l=!r||r.isDeletedLocally;let d=!1;if(l||!r.isWritable){if(r=i.ZP.getRecoveryLibrary(r.name),!r)return;d=!0}const h=this._getLockId(e);ie.Z.obtainLock(h,(()=>{const i=w.si(e);e.isDeletedLocally||d?e=r.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const f=[],m=s.pH(t.tempPath,e.type),g=e.createRepresentation(m,"primary");i&&w.i2(g,i),f.push(g.setContentFromPath(t.tempPath));const v=s.K3(t.tempPath)+".png";v&&s.xW(v)&&f.push((0,p.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,v));Promise.all(f).then((()=>{L.Z.sendElementUpdated(g);const n=e.endOperation();ie.Z.releaseLock(h),d&&(u.Z.revealElement(e),l?o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:r.name})):o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:r.name,originalLibraryName:a}))),n.then((()=>{t.isClosed?ae.Z.deleteTempFile(t.tempPath):ae.Z.updateTempFile(g,t.tempPath),t.isSaveInProgress=!1}))}))}))}defaultEditOperation(e){if(!this._config.isEditable(e))return Promise.resolve(!1);const t=e.getPrimaryRepresentation();return ae.Z.getTempFile(t).then((t=>{const r=s.K3(t)+".png";o.Z.execApp("openAssetForEdit",[t,r,"Image"]).then((r=>{const n=o.Z.createEvent(q.fitCurrentDocumentViewToActiveArtboard,"APPLICATION");o.Z.dispatchEvent(n);const i={tempPath:t,isClosed:!1,isSaveInProgress:!1};i.listenerId=se.Z.startListening(r,t,(t=>{"closed"===t?this._onDocumentClose(e,i):"saved"===t&&this._onDocumentSave(e,i)}))}))}))}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}getStockDragData(){return[""]}}var le=r(83841);class ue extends le.Z{_setStyleInfo(e,t,r){e.type="parastyle",e.name=t,e.id=r}_useParaStyle(e,t,r){const n=1===r.index,i=r.index===r.length,a=this._config.findUsableRepresentation(e);if((0,p.vM)(a,t),a){const r=e.name,s=e.id+";"+e.modified;if("application/vnd.adobe.paragraphstyle+json"===a.type){const e=a.getValue("paragraphstyle","data");return this._setStyleInfo(e,r,s),o.Z.execApp(t,[e,n,i])}}}_setParaStyle(e,t){return this._useParaStyle(e,"setFont",t)}_createTextLayer(e,t){return this._useParaStyle(e,"createTextLayer",t)}getApplyOperations(e,t,r){const n=E.Z.getLayerInfo();if(!n||"{}"===JSON.stringify(n))return[];const i=[];return n&&"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_PARA_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setParaStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_PARA_STYLE_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e,r),displayInMenu:!0,allowMultiple:!0}),i}}var pe=r(91696);class de extends pe.Z{_sendAiTextFileCreatedEvent(e,t,r){const n=o.Z.createEvent(q.textFileCreated,"APPLICATION"),i={};e&&(i.stripStyle=t,i.placeInline=r,i.path=e,i.usingContextMenu=!0),n.data=JSON.stringify(i),o.Z.dispatchEvent(n)}_useText(e,t,r,i){const a=this._config.findUsableRepresentation(e);if(!a)return;(0,p.vM)(a,t);const s=e.id+";"+e.modified;if(a.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE){const e=a.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);return e.id=s,e.type="text",o.Z.execApp(t,[e]).then((e=>this._sendAiTextFileCreatedEvent(e,r,i)))}return"application/illustrator-text"===a.type?a.getContentPath().then((e=>this._sendAiTextFileCreatedEvent(e,r,i))):void 0}_setText(e){return this._useText(e,"getAiFileForText",!1,!1)}_setPlainText(e){return this._useText(e,"getAiFileForText",!0,!1)}_setTextInline(e){return this._useText(e,"getAiFileForText",!1,!0)}getApplyOperations(e){const t=E.Z.getLayerInfo();return t&&"{}"!==JSON.stringify(t)?!0===t.textSelectionExists||!0===t.insertionPointExists?[{name:"DL_ADD_TEXT_INLINE_AI",icon:"text",onClick:!1,apply:()=>this._setTextInline(e),displayInMenu:!0}]:[{name:"DL_ADD_TEXT_UNLINKED_AI",icon:"text",onClick:!1,apply:()=>this._setText(e),displayInMenu:!0},{name:"DL_ADD_TEXT_UNLINKED_NOSTYLES",icon:"text",onClick:!1,apply:()=>this._setPlainText(e),displayInMenu:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);ie.Z.obtainLock(r,(()=>{se.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&ae.Z.deleteTempFile(t.tempPath),L.Z.elementEditCompleted(e),ie.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,p.ii)(t.tempPath))return;if(t.isSaveInProgress=!0,!s.xW(t.tempPath))return void(t.isSaveInProgress=!1);let r=e.library;const a=r.name,l=!r||r.isDeletedLocally;let d=!1;if(l||!r.isWritable){if(r=i.ZP.getRecoveryLibrary(r.name),!r)return;d=!0}const h=this._getLockId(e);ie.Z.obtainLock(h,(()=>{o.Z.execApp("getUpdatedTextInfo",[t.tempPath]).then((i=>{const f=[],m=JSON.parse(i);if(!0!==m.isValidSave)return;e.isDeletedLocally||d?e=r.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const g=m.textData,v=s.pH(t.tempPath,e.type),y=e.createRepresentation(v,"primary");f.push(y.setContentFromPath(t.tempPath));e.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,g.textInfo);const b=s.K3(t.tempPath)+".png";b&&s.xW(b)&&f.push((0,p.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,b));const _=()=>{L.Z.sendElementUpdated(y);const n=e.endOperation();ie.Z.releaseLock(h),d&&(u.Z.revealElement(e),l?o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:r.name})):o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:r.name,originalLibraryName:a}))),n.then((()=>{t.isClosed?ae.Z.deleteTempFile(t.tempPath):ae.Z.updateTempFile(y,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(f).then(_,_)}))}))}defaultEditOperation(e){if(!this._config.isEditable(e))return Promise.resolve(!1);const t=e.getPrimaryRepresentation();return ae.Z.getTempFile(t).then((t=>{const r=s.K3(t)+".png";o.Z.execApp("openAssetForEdit",[t,r,"text"]).then((r=>{const n={tempPath:t,isClosed:!1,isSaveInProgress:!1};n.listenerId=se.Z.startListening(r,t,(t=>{"closed"===t?this._onDocumentClose(e,n):"saved"===t&&this._onDocumentSave(e,n)}))}))}))}}var he=r(54142),fe=r(13293);const me="application/vnd.adobe.characterstyle+json",ge="characterstyle",ve="data";class ye extends he.Z{constructor(...e){super(...e),this._setTextStyle=function(e,t){return this._useTextStyle(e,"setFont",t)},this._createTextLayer=function(e,t){return this._useTextStyle(e,"createTextLayer",t)}}_setStyleInfo(e,t,r){e.type="charstyle",e.name=t,e.id=r}_useTextStyle(e,t,r){const n=1===r.index,i=r.index===r.length,a=this._config.findUsableRepresentation(e);if(!a)return;const s=fe.R(e);s&&s.id?(0,p.vM)(a,t,null,{event:{value:"typekit"}}):(0,p.vM)(a,t);const c=e.name,l=e.id+";"+e.modified;if(a.type===me){const e=a.getValue(ge,ve);return this._setStyleInfo(e,c,l),o.Z.execApp(t,[e,n,i])}}getApplyOperations(e,t,r){const n=E.Z.getLayerInfo();if(!n||"{}"===JSON.stringify(n))return[];const i=[];return"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_TEXT_STYLE_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e,r),displayInMenu:!0,allowMultiple:!0}),i}_addTextStyleElement(e,t,r){return e&&"LayerKind.TEXT"===e.kind?o.Z.execApp("getCharStyleInfo").then((e=>{const i=JSON.parse(e);i.styleName||(i.styleName=(0,c.Iu)("DL_TYPE_NEW_CHAR_STYLE"));const o=(0,p.MN)(t,i.styleName,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r});o.createRepresentation(me,"primary").setValue(ge,ve,i.styleInfo);const a=[];if(i.previewPath){const e=o.createRepresentation("image/png","rendition");a.push(e.setContentFromPath(i.previewPath))}return Promise.all(a).then((()=>(i.previewPath&&o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,i.previewPath,(()=>{s._I(i.previewPath)})),o.endOperation(),o))).catch((()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))})):Promise.reject("not a text layer")}getAddOperations(e){if(!e||"{}"===JSON.stringify(e)||!e.text||!1===e.isAppliedCharStyleSupported)return[];return[{name:"DL_ADD_TEXT_STYLE_NAME",order:2,icon:"AddCharacterStyle",apply:(t,r)=>new Promise((n=>{E.Z.updateLayerInfo().then((()=>n(this._addTextStyleElement(e,t,r))))}))}]}}var be=r(76572);class _e extends be.Z{constructor(...e){super(...e),this._addBrushToDocument=function(e,t){return(0,p.vM)(t,"useBrush"),t.getContentPath().then((t=>o.Z.execApp("loadAndSelectBrush",[t,e.name])))}}getApplyOperations(e){const t=s.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n})),n=E.Z.getLayerInfo();return n&&"{}"!==JSON.stringify(n)&&r?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:()=>this._addBrushToDocument(e,r),displayInMenu:!0}]:[]}}var Ee=r(95134);class we extends Ee.Z{constructor(...e){super(...e),this.dragType="image",this.allowDragWithoutUsableRepresentation=!0}_applyPattern(e,t){let r;return r=t&&n.Z.currentProduct.config.enableSVGPatterns?t:this._config.findUsableRepresentation(e),r?((0,p.vM)(r,"applyPattern"),r.getContentPath().then((t=>{const n=o.Z.createEvent(q.applyPattern,"APPLICATION"),i={};return i.path=t,i.type=r.type,i.name=e.name,n.data=JSON.stringify(i),o.Z.dispatchEvent(n)}))):e.getThumbnailPath().then((t=>{(0,p.dN)(e,"applyPattern");const r=o.Z.createEvent(q.applyPattern,"APPLICATION"),n={};return n.path=t,n.name=e.name,r.data=JSON.stringify(n),o.Z.dispatchEvent(r)}))}_addImageToDocument(e,t=!1){const r=w.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,p.vM)(n,"placeAsset",t),n.getContentPath().then((n=>o.Z.execApp("placeAsset",{filePath:n,libraryName:e.library.name,itemName:e.name,elementRef:e.getLegacyReference(),modifiedTime:(0,p.RW)(e),creationTime:e.created,adobeStockId:r,adobeStockLicense:r?w.kv(e):null,isLinked:t})))):e.getThumbnailPath().then((n=>((0,p.dN)(e,"placeAsset",t),o.Z.execApp("placeAsset",{filePath:n,libraryName:e.library.name,itemName:e.name,elementRef:e.getLegacyReference(),modifiedTime:(0,p.RW)(e),creationTime:e.created,adobeStockId:r,adobeStockLicense:r?w.kv(e):null,isLinked:t}))))}_addVectorPatternTileToDocument(e,t,r=!1){const n=w.wq(e);return(0,p.vM)(t,"placeAsset",r),t.getContentPath().then((t=>o.Z.execApp("placeAsset",{filePath:t,libraryName:e.library.name,itemName:e.name,elementRef:e.getLegacyReference(),modifiedTime:(0,p.RW)(e),creationTime:e.created,adobeStockId:n,adobeStockLicense:n?w.kv(e):null,isLinked:r})))}getApplyOperations(e){const t=E.Z.getLayerInfo();if(!t||"{}"===JSON.stringify(t))return[];const r=e.representations.find((t=>{const r="image/svg+xml"===t.type,n=this._config.isRepresentationCompatible(t,s.ku(e.type));return r&&n})),n=[{name:"DL_APPLY_PATTERN",icon:"paintbucket",apply:()=>this._applyPattern(e,r),displayInMenu:!0,onClick:!0},{name:"DL_ADD_PATTERN_TO_DOC_AS_IMAGE_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e),displayInMenu:!0}];return r&&n.push({name:"DL_ADD_VECTOR_PATTERN_TILE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addVectorPatternTileToDocument(e,r),displayInMenu:!0}),n}getDragData(e){const t=this._config.findUsableRepresentation(e);let r;if(t&&(r=t.getCachedContentPath()),r)return{data:[r],placeType:"unlinked",usedRepresentationForAnalytics:t}}}var Le=r(54712);class xe extends Le.Z{_openDocumentFromTemplate(e,t,r){return r?o.Z.showError((0,c.Iu)(w.hr(e))):((0,p.vM)(t,"useTemplate"),t.getContentPath().then((t=>o.Z.execApp("openDocumentFromTemplate",[t,e.name]))))}getApplyOperations(e){const t=s.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n})),n=!r&&this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0);return r||n?[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:()=>this._openDocumentFromTemplate(e,r,n),displayInMenu:!0}]:[]}}function Se(){return this.config={},this.config.code="ILST_UXP",this.config.fullName="Illustrator",this.config.translationSuffix="AI",this.config.dragDropSource="com.adobe.illustrator",this.config.offsetSelectMenu=!0,this.config.usesEscapedFilePathsInEvents=!0,this.config.hideDefaultSearchCancelIcon=!0,this.config.panelWidthAdjustment=-13,this.config.cancelButtonQuiet=!0,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.elementTypes=[te,ne,de,ye,J.Z.FontElementConfig,ue,ce,_e,xe,we,J.Z.ComponentElementConfig,J.Z.GradientElementConfig,J.Z.VideoElementConfig,J.Z.LookElementConfig,J.Z.CapsuleElementConfig,J.Z.ThreeDElementConfig,J.Z.LayerStyleElementConfig,J.Z.AnimationElementConfig,J.Z.LightElementConfig,J.Z.MaterialElementConfig,J.Z.AudioElementConfig,J.Z.ChannelElementConfig,J.Z.ImageGuidelineElementConfig,J.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.GRADIENT_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.includeGuidInTempFileName=!0,this.startEventListener=function(){X.listen()},this.stopEventListener=function(){X.stop()},this.fontManager=new l.Z,this.init=function(){s.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/svg+xml","image/bmp","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/illustrator","application/pdf"]),s.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),s.Zh(n.Z.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip"]),s.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),s.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json"]),s.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["application/illustrator.template","application/vnd.adobe.illustrator.template"]),s.Zh(n.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png","image/svg+xml"]),s.Zh(n.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.text+json","application/illustrator-text"]),s.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),s.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),s.Dk(n.Z.IMAGE_ELEMENT_TYPE,["image/svg+xml","application/illustrator"]),s.Dk(n.Z.TEXT_ELEMENT_TYPE,["application/illustrator-text"]),this.startEventListener(),i.ZP.waitForInitialLoad().then((function(){const e=o.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");o.Z.dispatchEvent(e)})),i.ZP.addListener("libraryList",(function(){X.updateLibrariesInfo()})),i.ZP.addListener("currentLibrary",(function(){X.updateLibrariesInfo()}))},this.getUserData=function(){},this.config.useMouseEventToDetectDrop=!0,this.dropHandler=function(e,t){a.Z.log("Illustrator drop handler",e);return(o.Z.isWindowsOS()?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type&&(e.assetList[0].type="image"),Promise.reject()},this.customDropMessage=function(e,t){const r=o.Z.isWindowsOS();if(!(r?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type){const e="DL_CUSTOM_DROP_MESSAGE_ID_TEXT_"+(r?"WIN":"MAC");return(0,c.Iu)(e)}},this.allowCmdDrag=!0,this}},48408:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>d});var n=r(50265),i=r(99386),o=r(74379),a=r(76485),s=r(47320),c=r(53849),l=r(57613),u=r(34038),p=r(77560);function d(){this.config={},this.config.code="KBRG",this.config.fullName="Bridge",this.config.translationSuffix="BR",this.config.dragDropSource="com.adobe.bridge",this.config.enableUnusableElements=!0,this.config.themes={535353:"dark_mondo",b8b8b8:"light_mondo",f0f0f0:"lighter_mondo","1d1d1d":"darker",323232:"dark",f8f8f8:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.elementTypes=[p.Z.ImageElementConfig,p.Z.VideoElementConfig,p.Z.CapsuleElementConfig,p.Z.TextStyleElementConfig,p.Z.FontElementConfig,p.Z.ColorElementConfig,p.Z.ColorThemeElementConfig,p.Z.BrushElementConfig,p.Z.LayerStyleElementConfig,p.Z.AnimationElementConfig,p.Z.ParagraphStyleElementConfig,p.Z.PatternElementConfig,p.Z.LightElementConfig,p.Z.LookElementConfig,p.Z.MaterialElementConfig,p.Z.ThreeDElementConfig,p.Z.TemplateElementConfig,p.Z.TextElementConfig,p.Z.GradientElementConfig,p.Z.ComponentElementConfig,p.Z.AudioElementConfig,p.Z.ChannelElementConfig,p.Z.ImageGuidelineElementConfig,p.Z.UnsupportedElementConfig],this.config.hideAddControls=!0;let e=[];function t(e){if(e.type===i.Z.COLOR_ELEMENT_TYPE){const t=o.tX(e);a.Z.execApp("setColorValues",[e.getLegacyReference(),[t]])}else if(e.type===i.Z.COLOR_THEME_ELEMENT_TYPE){const t=e.representations[0]&&e.representations[0].getValue("colortheme","data"),r=t&&t.swatches.map((e=>o.CV(e)));a.Z.execApp("setColorValues",[e.getLegacyReference(),r])}else s.Z.getLocalThumbnailURL(e).then((t=>{a.Z.execApp("setRenditionPath",[e.getLegacyReference(),256,t])})).catch((()=>{})),e.getThumbnailPath(1024).then((t=>{a.Z.execApp("setRenditionPath",[e.getLegacyReference(),1024,t])})).catch((()=>{}))}function r(){const e=c.Z.selection,r=[];if(e&&0!==e.length){for(let t=0;t<e.length&&t<9;t++){const n={id:e[t].getLegacyReference(),name:e[t].name,type:e[t].type};r.push(n)}a.Z.execApp("setSelectionData",[e.length,r]);for(let r=0;r<e.length&&r<9;r++){t(e[r])}}else a.Z.execApp("setSelectionData",[e.length,r])}this.init=function(){u.Zh(i.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/tiff","image/bmp","image/svg+xml","image/vnd.adobe.shape+svg","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/vnd.adobe.indesign-idms","application/illustrator","application/pdf","application/vnd.adobe.muse-collection","application/vnd.adobe.charts+zip"]),u.Zh(i.Z.VIDEO_ELEMENT_TYPE,["video/mp4","video/quicktime","image/png"]),u.Zh(i.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json","application/vnd.adobe.indesign-idms","image/png"]),u.Zh(i.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),u.Zh(i.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),u.Zh(i.Z.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip","application/vnd.adobe.scatter.brush+zip","application/vnd.adobe.ribbon.brush+zip","image/x-adobe-photoshop-brush","image/svg+xml","image/png"]),u.Zh(i.Z.LAYER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.layerstyle","image/png"]),u.Zh(i.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json","application/vnd.adobe.paragraphstyle+snippet","application/vnd.adobe.indesign-idms","image/png"]),u.Zh(i.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.candy+jpg","application/vnd.adobe.look+xml","application/vnd.adobe.cube+txt","image/jpg"]),u.Zh(i.Z.CAPSULE_ELEMENT_TYPE,["application/vnd.adobe.ppro.graphic+zip","application/vnd.adobe.ae.graphic+zip","image/png","application/vnd.adobe.graphic+json","image/gif","video/mp4"]),u.Zh(i.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png","image/jpeg"]),u.Zh(i.Z.TEMPLATE_ELEMENT_TYPE,["application/illustrator.template","image/vnd.adobe.photoshop.template","application/vnd.adobe.indesign.template","image/png"]),u.Zh(i.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.text+json","application/vnd.adobe.indesign-idms-text","image/png"]),u.Dk(i.Z.ANIMATION_ELEMENT_TYPE,["application/vnd.adobe.animate-xfl+zip","application/vnd.adobe.animate-sym+zip","image/png","image/jpeg","image/gif"]),u.Zh(i.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop","application/vnd.adobe.obj.3d+zip","image/jpeg"]),u.Zh(i.Z.LIGHT_ELEMENT_TYPE,["application/vnd.adobe.ibl.light+zip","image/jpeg"]),u.Zh(i.Z.MATERIAL_ELEMENT_TYPE,["application/vnd.adobe.mdl.material+zip","image/jpeg"]),u.Zh(i.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),u.Zh(i.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient+json"]),a.Z.execApp("getTooltipState").then((function(e){i.Z.showTooltips=e})),this.startEventListener(),c.Z.addSelectionChangedListener((function(){const i=c.Z.selection;e.forEach((e=>e())),e=[],i.length>0&&a.Z.execApp("clearSelectionInContentPanel"),r();for(let r=0;r<i.length&&r<9;r++)e.push((0,n.reaction)((()=>i[r]),(e=>{a.Z.execApp("updateSelectionData",[e.getLegacyReference(),e.name]),t(e)})))}))},this.reportEvent=function(){},this.fontManager=new l.Z;const d=()=>this.fontManager.invalidateFontList(),h=()=>c.Z.clearSelection(),f=()=>r();return this.startEventListener=function(){a.Z.addEventListener("fontListChanged",d),a.Z.addEventListener("clearSelection",h),a.Z.addEventListener("getCurrentSelection",f)},this.stopEventListener=function(){a.Z.removeEventListener("fontListChanged",d),a.Z.removeEventListener("clearSelection",h),a.Z.removeEventListener("getCurrentSelection",f)},this}},33471:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>be});var n=r(99386),i=r(93028),o=r(84074),a=r(53849),s=r(76485),c=r(8733),l=r(51461),u=r(34038),p=r(26964),d=r(16993),h=r(74149),f=r(57613),m=r(50265),g=r(46903);function v(e){const t={type:"process",profileName:e.profileName||n.Z.DEFAULT_SRGB_PROFILE},r=e._obj;switch(r){case"CMYKColorClass":t.mode="CMYK",t.value={c:e.cyan,m:e.magenta,y:e.yellowColor,k:e.black};break;case"RGBColor":t.mode="RGB",t.value={r:e.red,g:e.grain,b:e.blue};break;case"HSBColorClass":t.mode="HSB",t.value={h:e.hue._value,s:e.saturation,b:e.brightness};break;case"labColor":t.mode="Lab",t.value={l:e.luminance,a:e.a,b:e.b};break;case"grayscale":t.mode="Gray",t.value=e.gray;break;default:t.mode=r,t.value=e}return t}const y="application/vnd.adobe.color+json";function b(e,t,r,o,s){if(e=e||"",!(s=s||i.ZP.getDefaultLibrary()))return Promise.reject("Could not add color: No library");if(!(0,g.oY)(s))return Promise.reject("Could not add color: Library not writable");const c=(0,g.MN)(s,e,n.Z.COLOR_ELEMENT_TYPE,{opType:o});return t&&c.createRepresentation(y,"primary").setValue("color","data",v(t)),r&&c.createRepresentation(y,"rendition").setValue("color","data",v(r)),c.endOperation(),i.ZP.currentLibrary===s&&a.Z.revealElement(c),Promise.resolve(c)}function _(e="",t,r,o){if(!t)return Promise.reject("Could not add gradient: No gradient information provided");if(o=o||i.ZP.getDefaultLibrary(),!(0,g.oY)(o))return Promise.reject("Could not add gradient: Library not writable");void 0===t.angle&&(t.angle=90);const s=(0,g.MN)(o,e,n.Z.GRADIENT_ELEMENT_TYPE,{opType:r});return s.createRepresentation(n.Z.GRADIENT_REPRESENTATION_TYPE,"primary").setValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY,t),s.endOperation(),i.ZP.currentLibrary===o&&a.Z.revealElement(s),Promise.resolve(s)}const E=[{type:"brush",callback:e=>{const t=e.brushOptions||{},r=Object.keys(t).map((e=>({namespace:"photoshop",key:e,value:"color"===e?v(t[e]):t[e]}))),n={path:e.abrPath,data:r};(0,h.D5)(e.name,n,e.pngPath,i.ZP.getDefaultLibrary(),e.opType).then((e=>a.Z.revealElement(e)))}},{type:"characterStyle",callback:e=>{return(t=e.name,r=e.descriptorID,o=e.previewPath,c=e.opType,t=t||"",s.Z.execApp("makeTextItemObjectJSONFromPushDescID",[r]).then((e=>{const r=JSON.parse(e||"");let a,s;try{if(!r)throw"makeTextItemObjectJSONFromPushDescID returned false";if(a=i.ZP.getDefaultLibrary(),!a)throw"No library";if(!(0,g.oY)(a))return;const e="application/vnd.adobe.characterstyle+json",l="characterstyle",p="data";s=(0,g.MN)(a,t,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:c}),r&&s.createRepresentation(e,"primary").setValue(l,p,r);const d=[];if(o){const e=s.createRepresentation("image/png","rendition").setContentFromPath(o);d.push(e)}return Promise.all(d).then((function(){const e=[];return o&&e.push(s.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,o)),e.push(s.endOperation()),Promise.all(e).then((()=>{o&&u._I(o)})),s}),(function(){return a.removeElement(s,!0),Promise.reject("Could not create element.")}))}catch(e){return a&&s&&a.removeElement(s,!0),Promise.reject("Could not add character style: "+e)}}),(e=>Promise.reject("Could not makeTextItemObjectJSONFromPushDescID: "+e)))).then((e=>a.Z.revealElement(e)));var t,r,o,c}},{type:"color",callback:e=>b(e.name,e.primary,e.secondary,e.opType)},{type:"layerStyle",callback:e=>{const t={};return t.path=e.aslPath,(0,h.nA)(e.name,t,e.pngPath,i.ZP.getDefaultLibrary(),e.opType).then((function(e){a.Z.revealElement(e)}))}},{type:"graphic",callback:(e,t)=>{const r=e.assetPath;if(!(0,g.ii)(r,!e.moveFile))return Promise.reject("Could not create element: one or more files exceed 1GB limit");const n={path:r,relationship:"primary",dimensions:{width:e.exportInfo.pixelWidth,height:e.exportInfo.pixelHeight}},o={};return o.layerIds=e.exportInfo.layerIDs,o.documentId=e.exportInfo.documentID,o.pushEventMetadata=t,n.dimensions.width=Number(n.dimensions.width),n.dimensions.height=Number(n.dimensions.height),o.documentId=Number(o.documentId),"string"==typeof o.layerIds&&(o.layerIds=JSON.parse(o.layerIds)),(0,h.Bm)(e.name,[n],e.previewPath,i.ZP.getDefaultLibrary(),e.opType,o).then((e=>a.Z.revealElement(e)))}},{type:"gradient",callback:e=>_(e.name,e.primary,e.opType)}];function w(e){const t=e.event_metadata,r=function(e){const r=s.Z.createEvent("pushAssetToLibraryResponse","APPLICATION"),n={appMetadata:{pushEventMetadata:t},response:e};r.data=JSON.stringify(n),s.Z.dispatchEvent(r)},i=e=>{var t,i;r({status:"ok"}),t="pushAssetToLibrary",i=(e=>{if(!e)return{};const t=e.type&&e.type.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/),r=t&&2===t.length?t[1]:e.type,n={elementID:e.id,elementType:r},i=e.library;return i&&(n.libraryID=i.id,n.libraryElementCount=i.elements.length,i.collaboration&&(n.libraryShared=i.collaboration)),n})(e),n.Z.currentProduct.reportEvent?n.Z.currentProduct.reportEvent(t,i,!0):console.error("Highbeam analytics not available.")},o=e=>r({status:"error",details:e});if(!e||!t)return Promise.reject("pushAssetToLibrary failed: parameter error");const a=e.assetType;if(!a)return Promise.reject("pushAssetToLibrary failed: asset type not defined");const c=E.filter((e=>a===e.type));return 0===c.length?Promise.reject("pushAssetToLibrary failed: No asset handler found for "+a):Promise.all(c.map((r=>r.callback(e,t).then(i,o))))}let L;const x=()=>{s.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e}))},S=[{id:"1684816969",name:"dlDocInfoChanged",callback:e=>(c.Z.handleSelectionChange(),e.documentID!==L&&(n.Z.currentProduct.handleActiveDocChanged(e.documentID),L=e.documentID),!1),dynamic:!1},{id:null,name:"foregroundColorChanged",callback:()=>(c.Z.handleSelectionChange(),!1),dynamic:!0},{id:null,name:"fontListChanged",callback:()=>(s.Z.execApp("refreshFonts").then((function(){n.Z.currentProduct.fontManager.invalidateFontList()})),!1),dynamic:!0},{id:null,name:"convertMode",callback:()=>(c.Z.handleSelectionChange(),!1),dynamic:!0},{id:null,name:"preferencesChanged",callback:x,dynamic:!0}];let O="";const T=e=>{e&&e.data&&w(e.data)},I=e=>{if(!e)return;let t={};const r=e.data.indexOf("{");if(-1!==r){const n=e.data.substr(r);t=JSON.parse(n)}const n=String(t.eventID),i=S.filter((function(e){return n===e.id}));1===i.length?i[0].callback(t.eventData):p.Z.log("Expected exactly one handler per event id: "+n)};var P=r(77560),C=r(76572);class A extends C.Z{_addBrushToDocument(e,t){return(0,g.vM)(t,"useBrush"),t.getContentPath().then((function(r){const n="photoshop",i={tool:t.getValue(n,"tool"),flow:t.getValue(n,"flow"),opacity:t.getValue(n,"opacity"),blendMode:t.getValue(n,"blendMode"),color:t.getValue(n,"color")};return s.Z.execApp("loadAndSelectBrush",[r,e.name,i])}))}getApplyOperations(e){const t=u.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}));return r?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:()=>this._addBrushToDocument(e,r),displayInMenu:!0}]:[]}}var k=r(84824),D=r(16771);class N extends D.Z{_setColor(e,t,r,i,o){return i||(i=[],e.representations.forEach((e=>{const t=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?i.unshift(t):i.push(t)})),e.representations.length>0&&(0,g.vM)(e.representations[0],t)),o&&o(t),s.Z.execApp(t,[i,r])}getApplyOperations(e){const t=c.Z.getLayerInfo(),r={name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setColor",(0,k.Iu)("DL_SET_COLOR_TOOLTIP"),t,r),displayInMenu:!0},n=[];return t&&t.selectionExists?(t.enableShapeLayerApplyOperations?(n.push({name:"DL_SET_FILL_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setFillColor",(0,k.Iu)("DL_SET_FILL_COLOR_TOOLTIP"),t,r),displayInMenu:!0}),n.push({name:"DL_SET_STROKE_COLOR_TOOLTIP",icon:"brush",apply:(t,r)=>this._setColor(e,"setStrokeColor",(0,k.Iu)("DL_SET_STROKE_COLOR_TOOLTIP"),t,r),displayInMenu:!0})):n.push(r),n.push({name:"DL_SET_COLOR_OVERLAY_TOOLTIP",icon:"brush",apply:(t,r)=>this._setColor(e,"setColorOverlay",(0,k.Iu)("DL_SET_COLOR_OVERLAY_TOOLTIP"),t,r),displayInMenu:!0,disableClick:!0})):n.push(r),!0!==n[0].disableClick&&(n[0].onClick=!0),n}defaultEditOperation(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);let i;return s.Z.execApp("replaceColor",[r]).then((e=>(i=JSON.parse(e),s.Z.execApp("getLayerColor",[])))).then((function(t){if(i){const r=JSON.parse(t);e.beginOperation(),e.removeAllRepresentations(),r.forEach((function(t,r){const i=0===r?"primary":"rendition";e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation()}}))}}var R=r(86423);class M extends R.Z{_fixGradientData(e){const t=e.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);e.getValue(n.Z.GRADIENT_NAMESPACE,"trackingdata")&&t&&1===t.smoothness&&delete t.smoothness}_defineCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,g.vM)(t,"defineCustomGradient"),s.Z.execApp("defineCustomGradient",[r])}}_applyCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,g.vM)(t,"applyCustomGradient"),s.Z.execApp("applyCustomGradient",[r])}}getApplyOperations(e){return n.Z.currentProduct.config.enableGradientContextMenu&&e&&!this.isDisabled(e)?[{name:"DL_ADD_GRADIENT_TO_PRESETS",onClick:!1,apply:()=>this._defineCustomGradient(e),displayInMenu:!0},{name:"DL_SET_FILL_GRADIENT_TOOLTIP",onClick:!0,apply:()=>this._applyCustomGradient(e),displayInMenu:!0}]:[]}isDisabled(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");return r&&!["radial","linear","noise"].includes(r.type)}}var j=r(31870),Z=r(48124),F=r(47320),B=r(15909),G=r(9494),U=r(92098),z=r(80804);function V(e){const t=e.getPrimaryRepresentation();return!(!t||"image/vnd.adobe.photoshop.template"!==t.type&&"application/x-adobe-libraries-psdt"!==t.type)}function H(e){if(V(e))return!1;if(!F.Z.isEditable(e))return!1;const t=e.getPrimaryRepresentation();let r,n,o=!1,c=!1;const l="documentLock_"+e.id,p=e.library&&e.library.name;U.Z.getTempFile(t).then((function(t){return r=t,n=u.K3(r)+"p.png",s.Z.execApp("openAssetForEdit",[t,n,e.getLegacyReference()])})).then((t=>{s.Z.exec("CORE","isDocumentOpen",[r]).then((d=>{let h=!1;if(void 0!==d&&"undefined"!==d&&(h=JSON.parse(d)),!h)return U.Z.deleteTempFile(r),void B.Z.elementEditCompleted(e);const f=z.Z.startListening(t,r,(t=>{if("closed"===t)G.Z.obtainLock(l,(function(){z.Z.stopListening(f),o=!0,!1===c&&U.Z.deleteTempFile(r),B.Z.elementEditCompleted(e),G.Z.releaseLock(l)}));else if("saved"===t){if(!(0,g.ii)(r))return;c=!0;let t,d=e.library;const h=!d||d.isDeletedLocally;if(h||!d.isWritable){if(d=i.ZP.getRecoveryLibrary(p),!d)return;t=!0}G.Z.obtainLock(l,(()=>{const i=j.si(e);e.isDeletedLocally||t?e=d.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const f=u.pH(r,e.type),m=e.createRepresentation(f,"primary");i&&j.i2(m,i);const v=[];v.push(m.setContentFromPath(r)),n&&u.xW(n)&&v.push((0,g.bf)(e,F.Z.getThumbnailSize(e),n));const y=()=>{const n=e.endOperation();G.Z.releaseLock(l),t&&(a.Z.revealElement(e),h?s.Z.showError((0,k.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:d.name})):s.Z.showError((0,k.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:d.name,originalLibraryName:p}))),n.then((()=>{o?U.Z.deleteTempFile(r):U.Z.updateTempFile(m,r),c=!1,B.Z.sendElementUpdated(m)}))};Promise.all(v).then(y,y)}))}}))}))}))}class Y extends Z.Z{_addImageToDocument(e,t){const r=j.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,g.vM)(n,"placeAsset",t),n.getContentPath().then((n=>s.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,g.RW)(e),e.created,r,r?j.kv(e):null,t])))):e.getThumbnailPath().then((function(n){return(0,g.dN)(e,"placeAsset",t),s.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,g.RW)(e),e.created,r,r?j.kv(e):null,t])}))}getApplyOperations(e){if(!c.Z.hasDocumentOpen())return[];let t=!1;const r=this._config.findUsableRepresentation(e);if(r){-1!==["application/postscript","application/pdf","application/illustrator"].indexOf(r.type)&&(t=!0)}const n=[];return V(e)||n.push({name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0}),n.push({name:t?"DL_ADD_IMAGE_TO_DOC_AS_COPY":"DL_ADD_IMAGE_TO_DOC_AS_LAYERS",icon:"download",apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}),n}defaultEditOperation(e){return H(e)}getAddOperations(e){const t=super.getAddOperations(e);return e&&e.libraryLinked?t.filter((e=>"DL_ADD_IMAGE_NAME"!==e.name&&"DL_CAPTURE"!==e.name)):t}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var W=r(92106);class $ extends W.Z{_applyLayerStyle(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,g.vM)(t,"applyLayerStyle"),t.getContentPath().then((e=>s.Z.execApp("applyLayerStyle",[e])))}getApplyOperations(e){const t=c.Z.getLayerInfo();return!t||t&&!t.enableApplyStyle?[]:[{name:"DL_APPLY_LAYER_STYLE",icon:"layerstyle",onClick:!0,apply:()=>this._applyLayerStyle(e),displayInMenu:!0}]}_addLayerStyle(e,t,r){const i=JSON.parse(e)||{},o=i.layerName||"",a=(0,g.MN)(t,o,n.Z.LAYER_STYLE_ELEMENT_TYPE,{opType:r}),s=[],c=i.files||[];if(c.forEach(((e,t)=>{const r=u.pH(e,n.Z.LAYER_STYLE_ELEMENT_TYPE);if(r){const n=0===t?"primary":"alternate",i=a.createRepresentation(r,n).setContentFromPath(e);s.push(i)}else p.Z.log("Could not create representation: path cannot end with '.': "+e)})),i.rendition){const e=a.createRepresentation("image/png","rendition").setContentFromPath(i.rendition);s.push(e)}return Promise.all(s).then((()=>{const e=[];return i.rendition&&e.push(a.setThumbnailCache(n.Z.LAYER_STYLE_THUMBNAIL_SIZE,i.rendition)),e.push(a.endOperation()),Promise.all(e).then((()=>{i.rendition&&u._I(i.rendition),c.forEach((e=>u._I(e)))})),a}),(()=>(t.removeElement(a,!0),Promise.reject("Could not create element."))))}getAddOperations(e){if(!e||!e.hasLayerStyles)return[];return[{name:"DL_ADD_LAYER_STYLE",icon:"AddLayerStyle",order:3,dropSupport:!1,apply:(e,t)=>s.Z.execApp("saveLayerStyle").then((r=>this._addLayerStyle(r,e,t))).catch((()=>Promise.reject("Could not save layer style.")))}]}}var K=r(65944);class q extends K.Z{_applyLook(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,g.vM)(t,"makeColorLookupLayerFromFile"),t.getContentPath().then((t=>s.Z.execApp("makeColorLookupLayerFromFile",[t,e.name])))}_applyLookIfRGBDoc(e,t){s.Z.execApp("frontDocIsRGB").then((r=>{"true"===r?this._applyLook(e):t&&alert((0,k.Iu)("DL_APPLY_LOOK_REQUIRES_RGB"))}))}getApplyOperations(e){const t=c.Z.getLayerInfo();return!t||(t&&t.enableApplyLook,0)?[]:[{name:"DL_APPLY_LOOK",onClick:!0,isDraggable:!1,apply:()=>this._applyLookIfRGBDoc(e,!1),displayInMenu:!1},{name:"DL_APPLY_LOOK",onClick:!1,isDraggable:!1,apply:()=>this._applyLookIfRGBDoc(e,!0),displayInMenu:!0}]}}var X=r(95134);class J extends X.Z{constructor(...e){super(...e),this._applyPatternToDocument=function(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,g.vM)(t,"applyPattern"),t.getContentPath().then((t=>s.Z.execApp("makePatternLayerFromFile",[t,e.name,(0,k.Iu)("DL_PHXS_HISTORY_ENTRY_APPLY_PATTERN")])))}}_definePatternFile(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,g.vM)(t,"definePatternPreset"),t.getContentPath().then((t=>s.Z.execApp("definePatternFile",[t,e.name])))}getApplyOperations(e){const t=c.Z.getLayerInfo();return!t||t&&!t.selectionExists?[]:[{name:"DL_APPLY_PATTERN",onClick:!0,apply:()=>this._applyPatternToDocument(e),displayInMenu:!0},{name:"DL_ADD_PATTERN_TO_PRESETS",icon:"brush",onClick:!1,apply:()=>this._definePatternFile(e),displayInMenu:!0}]}}var Q=r(54712);class ee extends Q.Z{_openDocumentFromTemplate(e,t){return(0,g.vM)(t,"useTemplate"),t.getContentPath().then((t=>s.Z.execApp("openDocumentFromTemplate",[t,e.name,e.getLegacyReference()])))}getApplyOperations(e){const t=u.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}));let n=()=>this._openDocumentFromTemplate(e,r);if(!r){if(!this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0))return[];const r=j.hr(e);n=()=>s.Z.showError((0,k.Iu)(r))}return[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:n,displayInMenu:!0}]}}var te=r(54142),re=r(13293);const ne="characterstyle",ie="data";class oe extends te.Z{constructor(...e){super(...e),this._setTextStyle=function(e){const t=this._config.findUsableRepresentation(e);if(t){const r=re.R(e);r&&r.id?(0,g.vM)(t,"setFont",null,{event:{value:"typekit"}}):(0,g.vM)(t,"setFont");const n=t.getValue(ne,ie);return s.Z.execApp("setFont",[n,(0,k.Iu)("DL_PHXS_HISTORY_ENTRY_SET_TEXT_STYLE")])}}}_createTextLayer(e){const t=this._config.findUsableRepresentation(e);if(t){(0,g.vM)(t,"createTextLayer");const e=t.getValue(ne,ie);return s.Z.execApp("createFontLayer",[e,(0,k.Iu)("DL_PHXS_HISTORY_ENTRY_CREATE_TEXT_LAYER")])}}getApplyOperations(e){const t=c.Z.getLayerInfo();if(!t||t&&!t.selectionExists)return[];const r=[];return t&&t.enableApplyText&&r.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e),displayInMenu:!0}),r.push({name:"DL_CREATE_TEXT_LAYER_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e),displayInMenu:!0}),r}}var ae=r(82359);class se extends ae.Z{_add3dObjectToDocument(e){const t=this._config.findUsableRepresentation(e);return t?((0,g.vM)(t,"placeAsset",!1),t.getContentPath().then((t=>s.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,g.RW)(e),e.created,null,null,!1])))):e.getThumbnailPath().then((function(t){return(0,g.dN)(e,"placeAsset",!1),s.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,g.RW)(e),e.created,null,null,!1])}))}getApplyOperations(e){return c.Z.hasDocumentOpen()?[{name:"DL_ADD_IMAGE_TO_DOC",icon:"download",apply:()=>this._add3dObjectToDocument(e),displayInMenu:!0}]:[]}defaultEditOperation(e){return H(e)}}var ce,le,ue=r(12894);class pe extends ue.Z{_setFont(e){const t=this._config.findUsableRepresentation(e);if(t){const r=re.R(e);r&&r.id?(0,g.vM)(t,"setFont",null,{event:{value:"typekit"}}):(0,g.vM)(t,"setFont");const n=this._getStyleData(e,!0);return s.Z.execApp("setFont",[n,(0,k.Iu)("DL_PHXS_HISTORY_ENTRY_SET_FONT")])}}getApplyOperations(e){const t=c.Z.getLayerInfo();if(!t||t&&!t.selectionExists)return[];const r=[];return t&&t.enableApplyText&&r.push({name:"DL_SET_FONT_TOOLTIP",onClick:!0,apply:()=>this._setFont(e),displayInMenu:!0}),r}}let de=(ce=class{constructor(){var e,t,r,n;e=this,t="isAddDocContentEnabled",n=this,(r=le)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}},he=ce.prototype,fe="isAddDocContentEnabled",me=[m.observable],ge={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},ye={},Object.keys(ge).forEach((function(e){ye[e]=ge[e]})),ye.enumerable=!!ye.enumerable,ye.configurable=!!ye.configurable,("value"in ye||ye.initializer)&&(ye.writable=!0),ye=me.slice().reverse().reduce((function(e,t){return t(he,fe,e)||e}),ye),ve&&void 0!==ye.initializer&&(ye.value=ye.initializer?ye.initializer.call(ve):void 0,ye.initializer=void 0),void 0===ye.initializer&&(Object.defineProperty(he,fe,ye),ye=null),le=ye,ce);var he,fe,me,ge,ve,ye;function be(){const e=new de;function t(t){return e.isAddDocContentEnabled=i.ZP.areLibrariesLoaded&&t,i.ZP.areLibrariesLoaded&&t}return this.config={},this.config.code="PHXS",this.config.translationSuffix="PS",this.config.fullName="Photoshop",this.config.dragDropSource="com.adobe.photoshop",this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.deleteIcon="Delete-PS",this.config.elementTypes=[N,P.Z.ColorThemeElementConfig,M,oe,pe,$,A,Y,se,J,ee,P.Z.ComponentElementConfig,q,P.Z.VideoElementConfig,P.Z.CapsuleElementConfig,P.Z.ParagraphStyleElementConfig,P.Z.TextElementConfig,P.Z.AnimationElementConfig,P.Z.LightElementConfig,P.Z.MaterialElementConfig,P.Z.AudioElementConfig,P.Z.ChannelElementConfig,P.Z.ImageGuidelineElementConfig,P.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.VIDEO_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.isCaptureEnabled=!0,this.config.captureModules=["Patterns","Shapes","Colors","Gradients","Type"],this.config.enablePatternDragging=!1,this.config.useMouseEventToDetectDrop=!0,this.config.hasLibraryManager=!1,this.getFlyoutMenuItems=function(){return[{label:"DL_FLYOUT_ADD_DOC_CONTENT",enableMenu:t(c.Z.hasDocumentOpen()&&!d.Z.isImportExportInProgress),onClick(){n.Z.currentProduct.addDocContent()}}]},this.addDocContent=function(){o.ZP.closeDialog(),d.Z.resetMode();const e=s.Z.createEvent("com.adobe.DesignLibraries.events.AddDocContent","APPLICATION");s.Z.dispatchEvent(e)},this.getAddDocContentOperation=function(){if(!t(c.Z.hasDocumentOpen()))return;return{buttonName:d.Z.isNewUserState()?"DL_NEW_USER_ADD_DOC_CONTENT_BUTTON":"DL_ADD_DOC_CONTENT_BUTTON",buttonToolTip:"DL_ADD_DOC_CONTENT_BUTTON_TOOLTIP",iconToolTip:"DL_ADD_DOC_CONTENT_ICON_TOOLTIP",icon:"UploadDocAssets",apply(){n.Z.currentProduct.addDocContent()},enabled:t(c.Z.hasDocumentOpen())}},this.handleActiveDocChanged=function(e){t(0!==e)},this.dropHandlers={color:function(e){let t,r;const n=[];for(t=0;t<e.assetList.length;++t)r=e.assetList[t].data[0],n.push(b(e.assetList[t].name,r.primary,r.secondary,"dragToPanel",e.library));return Promise.all(n)},gradient:function(e){const t=[];return e.assetList.forEach((r=>{const n=r.data[0],o=e.library||i.ZP.getDefaultLibrary();"number"==typeof n?t.push(s.Z.execApp("saveGradientByIndex",[n,o.id])):t.push(_(r.name,n,"dragToPanel",o))})),Promise.all(t)},style:function(e){const t=(t,r)=>s.Z.execApp("saveLayerStyleByIndex",[t]).then((t=>{const n=e.library||i.ZP.getDefaultLibrary(),o=JSON.parse(t)||{},s={};return s.path=o.aslPath,(0,h.nA)(r,s,o.previewPath,n,"dragToPanel").then((e=>(i.ZP.currentLibrary===n&&a.Z.revealElement(e),e)))}));let r,n;const o=[];for(r=0;r<e.assetList.length;++r)n=e.assetList[r].data[0],o.push(t(n,e.assetList[r].name));return Promise.all(o)},brush:function(e){const t=(t,r)=>s.Z.execApp("saveBrushByIndex",[t]).then((t=>{const n=e.library||i.ZP.getDefaultLibrary(),o=JSON.parse(t)||{},s={};return s.path=o.abrPath,(0,h.D5)(r,s,o.previewPath,n,"dragToPanel").then((e=>(i.ZP.currentLibrary===n&&a.Z.revealElement(e),e)))}));let r,n;const o=[];for(r=0;r<e.assetList.length;++r)n=e.assetList[r].data[0],o.push(t(n,e.assetList[r].name));return Promise.all(o)}},this.dropHandler=function(e){const t=e;if(t&&t.assetList&&t.assetList.length>0){const e=this.dropHandlers[t.assetList[0].type];return e?e(t):Promise.reject()}return Promise.reject()},this.fontManager=new f.Z,this.init=function(){s.Z.execApp("getConfigInfoFromPS").then((function(e){const t=JSON.parse(e)||{};n.Z.currentProduct.config.enablePatternDragging=t.enablePatternDragging,n.Z.currentProduct.config.enableGradientContextMenu=t.enableGradientContextMenu})),u.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),u.Zh(n.Z.BRUSH_ELEMENT_TYPE,["image/x-adobe-photoshop-brush"]),u.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),u.Zh(n.Z.FONT_ELEMENT_TYPE,["application/vnd.adobe.font+json"]),u.Zh(n.Z.LAYER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.layerstyle"]),u.Zh(n.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]),u.Zh(n.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png"]),u.Zh(n.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt"]),u.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["image/vnd.adobe.photoshop.template","application/vnd.adobe.photoshop.template"]),u.Zh(n.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient.noise+json","application/vnd.adobe.gradient+json"]),u.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),u.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),u.Dk(n.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]);const e=s.Z.execApp("getReadableFileExtensions").then((function(e){const t=JSON.parse(e)||[],r=t.indexOf("PSDT");-1!==r&&t.splice(r,1),u.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/vnd.adobe.photoshop.template","application/x-adobe-libraries-psdt"]);const i=["AI","SVG","SVGZ","PDF"];t.length>0?(i.forEach((function(e){const r=t.indexOf(e);-1!==r&&t.splice(r,1)})),u.rx(n.Z.IMAGE_ELEMENT_TYPE,i),u.KU(n.Z.IMAGE_ELEMENT_TYPE,t)):(p.Z.log("Failed to get readable file extensions from PHXS, using short default list."),u.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/illustrator","image/svg+xml","application/pdf"]),u.Dk(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","image/vnd.adobe.photoshop","application/photoshop.large"]))})),t=s.Z.createEvent("com.adobe.PhotoshopPersistent","APPLICATION");return s.Z.dispatchEvent(t),this.startEventListener(),e},this.startEventListener=function(){s.Z.addManagerInitListener(),s.Z.addOpenDialogEventListener(),function(){const e=S.reduce((function(e,t){return t.dynamic&&e.push(t.name),e}),[]);s.Z.exec("PHXS","getStringID",[e]).then((function(e){const t=e.split(",");let r=0;S.forEach((function(e){e.dynamic&&(e.id=t[r],r++)})),O=S.map((e=>e.id)).join(",");const o=s.Z.createEvent("com.adobe.PhotoshopRegisterEvent","APPLICATION");o.data=O,s.Z.dispatchEvent(o),s.Z.addEventListener("com.adobe.PhotoshopJSONCallback"+n.Z.EXTENSION_ID,I),i.ZP.waitForInitialLoad().then((()=>{const e=s.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");s.Z.dispatchEvent(e)}))})),s.Z.addEventListener("pushAssetToLibrary",T),x()}()},this.stopEventListener=function(){s.Z.removeManagerInitListener(),s.Z.removeOpenDialogEventListener(),function(){const e=s.Z.createEvent("com.adobe.PhotoshopUnRegisterEvent","APPLICATION");e.data=O,s.Z.dispatchEvent(e),s.Z.removeEventListener("PhotoshopCallback",I),s.Z.removeEventListener("pushAssetToLibrary",T),O=""}()},this.reportEvent=function(e,t,r){if("createElement"===e&&!t.opType){const r=l.ZP.getExtraEventMetrics(e);r&&(t.opType=r.opType)}s.Z.execApp("reportEvent",[e,t,r]).then((function(t){JSON.parse(t)&&p.Z.log(e+" metric reported to PS")}))},this.getUserData=function(e){s.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))},this}},42334:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(87876),i=r(53337),o=r(19429);function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.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,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(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 h(){}function f(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,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,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function s(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){s(o,n,i,a,c,"next",e)}function c(e){s(o,n,i,a,c,"throw",e)}a(void 0)}))}}const l=new class{constructor(){this.EXECUTE_OPERATION_IN_MODAL={modalBehavior:"execute",executeWhileModal:!0}}executeBatchPlayCommand(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=window.nodeRequire("photoshop").action,t||(t=r.EXECUTE_OPERATION_IN_MODAL),n.next=4,i.batchPlay([e],t);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()}executeMultipleBatchPlayCommand(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=window.nodeRequire("photoshop").action,t||(t=r.EXECUTE_OPERATION_IN_MODAL),n.next=4,i.batchPlay(e,t);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()}getAppProperty(e,t,r,n){var i=this;return c(a().mark((function o(){var s,c,l;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s={_obj:"get",_target:[{_property:t,_ref:"property"}].concat(r)},n&&n.forEach(((e,t)=>s[t]=e)),o.next=5,i.executeBatchPlayCommand(s);case 5:if(c=o.sent,!(!e&&c&&c instanceof Array)){o.next=16;break}if("string"!=typeof(l=c[0][t])){o.next=15;break}return o.prev=9,o.abrupt("return",JSON.parse(l));case 13:o.prev=13,o.t0=o.catch(9);case 15:return o.abrupt("return",l);case 16:return o.abrupt("return",c);case 17:case"end":return o.stop()}}),o,null,[[9,13]])})))()}getCurrentTool(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"tool",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getCurrentToolOptions(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"currentToolOptions",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}currentToolSupportsBrushes(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"toolSupportsBrushes",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}setLayerName(e,t,r){var n=this;return c(a().mark((function i(){var o;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={_obj:"set",_target:[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}],to:{_obj:"layer",name:r}},i.next=3,n.executeBatchPlayCommand(o);case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),i)})))()}setCurrentTool(e){var t=this;return c(a().mark((function r(){var n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"select",_target:[{_ref:e}]},r.next=3,t.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}setToolOptions(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={_obj:"set",_target:{_ref:e},to:t,_options:{dialogOptions:"dontDisplay"}},n.next=3,r.executeBatchPlayCommand(i);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()}setForegroundColor(e){var t=this;return c(a().mark((function r(){var n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"set",_target:[{_property:"foregroundColor",_ref:"color"}],to:e},r.next=3,t.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}getForegroundColor(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"foregroundColorRGB",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getShowTooltips(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"showToolTips",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getSelectedLayerIndices(e,t){var r=this;return c(a().mark((function i(){var o,s,c,l,u;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=1,e){i.next=14;break}if(!t){i.next=6;break}i.t0=t,i.next=9;break;case 6:return i.next=8,n.Z.getActiveDocumentId();case 8:i.t0=i.sent;case 9:return s=i.t0,i.next=12,n.Z.hasBackgroundLayer(s);case 12:i.sent&&(o=0);case 14:return c=e?"targetLayersIDs":"targetLayers",i.next=17,r.getAppProperty(!1,c,[{_enum:"ordinal",_ref:"document",_value:"targetEnum"}]);case 17:return l=i.sent,u=[],l.forEach((t=>{e?u.push(t._id):u.push(t._index+o)})),i.abrupt("return",u);case 21:case"end":return i.stop()}}),i)})))()}selectLayerByIndex(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={_obj:"select",_target:[{_index:e,_ref:"layer"}]},t&&(i.selectionModifier={_enum:"selectionModifierType",_value:"addToSelection"}),n.abrupt("return",r.executeBatchPlayCommand(i));case 3:case"end":return n.stop()}}),n)})))()}forEachSelectedLayer(e){var t=this;return c(a().mark((function r(){var n,i;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("function"==typeof e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t.getSelectedLayerIndices();case 4:n=r.sent,r.t0=a().keys(n);case 6:if((r.t1=r.t0()).done){r.next=19;break}return i=r.t1.value,r.next=10,t.selectLayerByIndex(n[i]);case 10:return r.prev=10,r.next=13,e();case 13:r.next=17;break;case 15:r.prev=15,r.t2=r.catch(10);case 17:r.next=6;break;case 19:n.length>0&&n.pop(),r.t3=a().keys(n);case 21:if((r.t4=r.t3()).done){r.next=27;break}return i=r.t4.value,r.next=25,t.selectLayerByIndex(n[i],!0);case 25:r.next=21;break;case 27:case"end":return r.stop()}}),r,null,[[10,15]])})))()}setPattern(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={_obj:"set",_target:[{_enum:"ordinal",_ref:"contentLayer",_value:"targetEnum"}],to:{_obj:"patternLayer",pattern:{ID:e,_obj:"pattern"},scale:{_unit:"percentUnit",_value:t}},_options:{dialogOptions:"display"}},n.next=3,r.executeBatchPlayCommand(i);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()}getFileFormats(){var e=this;return c(a().mark((function t(){var r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"FileFormats",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}tempFolderPath(){return c(a().mark((function e(){var t,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.nodeRequire("photoshop").cclibrariespanel,e.next=3,t.getTempFolder();case 3:return r=e.sent,e.abrupt("return",r.tempPath);case 5:case"end":return e.stop()}}),e)})))()}generateRepresentationAndPreview(e,t,r,n=i.Z.previewMaxWidth,s=i.Z.previewMaxHeight){var l=this;return c(a().mark((function i(){var c,u,p,d,h;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return c={_obj:"export",externalPreviewParams:{_obj:"externalPreviewParams",in:{_kind:"local",_path:r},pixelHeight:s,pixelWidth:n},null:[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}],representation:{_obj:"representation",in:{_kind:"local",_path:e},name:t},using:{_class:"saveForCCLibrariesElement"}},i.next=3,l.executeBatchPlayCommand(c);case 3:return u=i.sent,p=u[0].in._path,d={width:0,height:0},Object.prototype.hasOwnProperty.call(u[0],o.y8)&&(d.width=u[0][o.y8]),Object.prototype.hasOwnProperty.call(u[0],o.k)&&(d.width=u[0][o.k]),(h={}).dimensions=d,h.repPath=p,i.abrupt("return",h);case 12:case"end":return i.stop()}}),i)})))()}saveAssets(e){var t=this;return c(a().mark((function r(){var i,o,s,c,l,u,p,d,h;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.Z.getNumberOfDocuments();case 2:if(0!==r.sent){r.next=5;break}return r.abrupt("return");case 5:return r.next=7,t.tempFolderPath();case 7:return i=r.sent,o=i+"/"+e.name+"p.png",r.next=11,t.generateRepresentationAndPreview(i,e.name,o,e.maxWidth,e.maxHeight);case 11:return s=r.sent,r.next=14,n.Z.getActiveDocumentId();case 14:return c=r.sent,r.next=17,n.Z.getActiveLayerId(c);case 17:return l=r.sent,u=s.repPath,r.next=21,n.Z.getLayerName(c,l);case 21:return p=r.sent,d={layerName:p,files:[{path:u,relationship:"primary",dimensions:s.dimensions}],rendition:o,documentId:c},r.next=25,t.getSelectedLayerIndices(!0,c);case 25:return(h=r.sent)&&(d.layerIds=h),r.abrupt("return",d);case 28:case"end":return r.stop()}}),r)})))()}}},41498:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(93028),i=r(99386),o=r(53849),a=r(46903),s=r(87876),c=r(61738),l=r(42334),u=r(19429);function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))}}const f=new class{constructor(){this.psRGBMode="RGBColor",this.psHSBMode="HSBColorClass",this.psCMYKMode="CMYKColorClass",this.psGrayscaleMode="grayscale",this.psLABMode="labColor",this.textApplyOverrideOperation=3,this.psBlackColor={_obj:"RGBColor",red:0,grain:0,blue:0}}isModeSupported(e){return e&&!!["RGB","CMYK","Gray","Lab","HSB"].find((t=>t===e.mode))}findRepWithMode(e,t){return e.find((e=>e.mode===t))}getBestColorRepresentation(e){const t=e[0];return this.isModeSupported(t)?t:this.findRepWithMode(e,"RGB")}psSolidColorToLibraryColorWithRGB(e,t){var r=this;return h(p().mark((function n(){var i,o;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((i=[]).push(r.psSolidColorToLibraryColor(e,t)),e._obj===r.psRGBMode){n.next=7;break}return n.next=5,r.convertColorToRGB(e);case 5:o=n.sent,i.push(r.psSolidColorToLibraryColor(o[0].color,t));case 7:return n.abrupt("return",i);case 8:case"end":return n.stop()}}),n)})))()}psSolidColorToLibraryColor(e,t){let r;switch(e._obj){case this.psCMYKMode:r={mode:"CMYK",value:{c:e.cyan,m:e.magenta,y:e.yellowColor,k:e.black},type:"process"};break;case this.psRGBMode:r={mode:"RGB",value:{r:e.red,g:e.grain,b:e.blue},type:"process"};break;case this.psLABMode:r={mode:"Lab",value:{l:e.luminance,a:e.a,b:e.b},type:"process"};break;case this.psGrayscaleMode:r={mode:"Gray",value:e.gray,type:"process"};break;case this.psHSBMode:r={mode:"HSB",value:{h:e.hue._value,s:e.saturation,b:e.brightness},type:"process"}}return r.profileName=t||(e.profileName||i.Z.DEFAULT_SRGB_PROFILE),r}libraryColorToPSSolidColor(e){let t;if(Array.isArray(e)&&(e=this.getBestColorRepresentation(e)),e)switch(t=new Object,e.mode){case"RGB":t._obj=this.psRGBMode,t.red=e.value.r,t.green=e.value.g,t.blue=e.value.b;break;case"CMYK":t._obj=this.psCMYKMode,t.cyan=e.value.c,t.magenta=e.value.m,t.yellowColor=e.value.y,t.black=e.value.k;break;case"Lab":t._obj=this.psLABMode,t.luminance=e.value.l,t.a=e.value.a,t.b=e.value.b;break;case"Gray":t._obj=this.psGrayscaleMode,t.gray=e.value;break;case"HSB":t._obj=this.psHSBMode,t.hue=e.value.h,t.saturation=e.value.s,t.brightness=e.value.b}return t}addUnitToHSBModeSolidColor(e){let t;return e._obj===this.psHSBMode?(t=new Object,t._obj=e._obj,t.saturation=e.saturation,t.brightness=e.brightness,t.hue={_unit:"angleUnit",_value:e.hue}):t=e,t}showColorPicker(){return h(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={_obj:"showColorPicker",to:!0},e.next=3,l.Z.executeBatchPlayCommand(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()}setStrokeColorForShapeLayer(e){var t=this;return h(p().mark((function r(){var n,i;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.addUnitToHSBModeSolidColor(e),i={_obj:"set",_target:[{_enum:"ordinal",_ref:"contentLayer",_value:"targetEnum"}],to:{_obj:"shapeStyle",strokeStyle:{_obj:"strokeStyle",strokeEnabled:!0,strokeStyleContent:{_obj:"solidColorLayer",color:n},strokeStyleVersion:2}}},r.next=4,l.Z.executeBatchPlayCommand(i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}setStrokeColor(e){var t=this;return h(p().mark((function r(){var n;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.Z.getNumberOfDocuments();case 2:if(0!==r.sent){r.next=5;break}return r.abrupt("return");case 5:return n=t.libraryColorToPSSolidColor(e),r.next=8,l.Z.setForegroundColor(n);case 8:return r.next=10,t.setStrokeColorForShapeLayer(n);case 10:return r.abrupt("return",r.sent);case 11:case"end":return r.stop()}}),r)})))()}setColorOverlayForSinglySelectedLayer(e){var t=this;return h(p().mark((function r(){var n,i;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.addUnitToHSBModeSolidColor(e),i={_obj:"set",_target:[{_property:"layerEffects",_ref:"property"},{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}],merge:!0,to:{_obj:"layerEffects",scale:{_unit:"percentUnit",_value:100},solidFill:{_obj:"solidFill",color:n,enabled:!0,mode:{_enum:u.OC,_value:u.Ii},opacity:{_unit:"percentUnit",_value:100}}}},r.next=4,l.Z.executeBatchPlayCommand(i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}setColorOverlay(e,t){var r=this;return h(p().mark((function n(){var i,o,a,c;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.Z.getNumberOfDocuments();case 2:if(0!==n.sent){n.next=5;break}return n.abrupt("return");case 5:return i=r.libraryColorToPSSolidColor(e),n.next=8,l.Z.setForegroundColor(i);case 8:return o=function(){var e=h(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setColorOverlayForSinglySelectedLayer(i);case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=h(p().mark((function e(r){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.suspendHistory({historyStateInfo:{name:t,target:[{_ref:"document",_enum:"ordinal",_value:"targetEnum"},{_ref:"application",_enum:"ordinal",_value:"targetEnum"}]}});case 2:return n=e.sent,e.next=5,l.Z.forEachSelectedLayer(o.bind(this));case 5:return e.next=7,r.resumeHistory(n);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),c=window.nodeRequire("photoshop").core,n.next=13,c.executeAsModal(a.bind(r),{commandName:t});case 13:return n.abrupt("return",n.sent);case 14:case"end":return n.stop()}}),n)})))()}setTextColor(e){var t=this;return h(p().mark((function r(){var n,i;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.addUnitToHSBModeSolidColor(e),i={_obj:"set",_target:[{_property:"textStyle",_ref:"property"},{_enum:"ordinal",_ref:"textLayer",_value:"targetEnum"}],to:{_obj:"textStyle",color:n,textOverrideFeatureName:808466226,typeStyleOperationType:t.textApplyOverrideOperation}},r.next=4,l.Z.executeBatchPlayCommand(i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}setCurrentSolidFillOrShapeLayerColor(e){var t=this;return h(p().mark((function r(){var n,i;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.addUnitToHSBModeSolidColor(e),i={_obj:"set",_target:[{_enum:"ordinal",_ref:"contentLayer",_value:"targetEnum"}],to:{_obj:"solidColorLayer",color:n}},r.next=4,l.Z.executeBatchPlayCommand(i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}setColorForSinglySelectedLayer(e){var t=this;return h(p().mark((function r(){var n,i,o;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.Z.getActiveDocumentId();case 2:return n=r.sent,r.next=5,s.Z.getActiveLayerId(n);case 5:return i=r.sent,r.next=8,s.Z.getLayerKind(n,i);case 8:if((o=r.sent)!==s.Z.layerKindMap["LayerKind.SOLIDFILL"]&&o!==s.Z.layerKindMap["LayerKind.VECTOR"]){r.next=14;break}return r.next=12,t.setCurrentSolidFillOrShapeLayerColor(e);case 12:r.next=17;break;case 14:if(o!==s.Z.layerKindMap["LayerKind.TEXT"]){r.next=17;break}return r.next=17,t.setTextColor(e);case 17:case"end":return r.stop()}}),r)})))()}setColor(e,t){var r=this;return h(p().mark((function n(){var i,o,a,c;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r.libraryColorToPSSolidColor(e),n.next=3,l.Z.setForegroundColor(i);case 3:return n.next=5,s.Z.getNumberOfDocuments();case 5:if(0!==n.sent){n.next=8;break}return n.abrupt("return");case 8:return o=function(){var e=h(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setColorForSinglySelectedLayer(i);case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=h(p().mark((function e(r){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.suspendHistory({historyStateInfo:{name:t,target:[{_ref:"document",_enum:"ordinal",_value:"targetEnum"},{_ref:"application",_enum:"ordinal",_value:"targetEnum"}]}});case 2:return n=e.sent,e.next=5,l.Z.forEachSelectedLayer(o.bind(this));case 5:return e.next=7,r.resumeHistory(n);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),c=window.nodeRequire("photoshop").core,n.next=13,c.executeAsModal(a.bind(r),{commandName:t});case 13:case"end":return n.stop()}}),n)})))()}convertColorToRGB(e){return h(p().mark((function t(){var r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={_obj:"convertColorToSpace",_target:{_ref:"application"},color:e},c.Z.putEnumerationValueInDescriptor(r,"colorSpace","colorSpace","RGB"),t.next=4,l.Z.executeBatchPlayCommand(r);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}getSolidFillColor(e,t,r){var n=this;return h(p().mark((function i(){var o,a;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=[],i.next=3,l.Z.getAppProperty(!1,u.kY,[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 3:if(a=i.sent,!(Array.isArray(a)&&a.length>0&&a[0].color)){i.next=8;break}return i.next=7,n.psSolidColorToLibraryColorWithRGB(a[0].color,r);case 7:o=i.sent;case 8:return i.abrupt("return",o);case 9:case"end":return i.stop()}}),i)})))()}getSolidStrokeColor(e,t,r){var n=this;return h(p().mark((function i(){var o,a;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=[],i.next=3,l.Z.getAppProperty(!1,u.Ng,[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 3:if(!((a=i.sent)&&a.strokeStyleContent&&a.strokeStyleContent.color)){i.next=8;break}return i.next=7,n.psSolidColorToLibraryColorWithRGB(a.strokeStyleContent.color,r);case 7:o=i.sent;case 8:return i.abrupt("return",o);case 9:case"end":return i.stop()}}),i)})))()}getLayerEffectColor(e,t,r){var n=this;return h(p().mark((function i(){var o;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=[],!(e&&Object.prototype.hasOwnProperty.call(e,r)&&e[r].color)){i.next=5;break}return i.next=4,n.psSolidColorToLibraryColorWithRGB(e[r].color,t);case 4:o=i.sent;case 5:return i.abrupt("return",o);case 6:case"end":return i.stop()}}),i)})))()}replaceColor(e){var t=this;return h(p().mark((function r(){var n,i,o,a,c;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.libraryColorToPSSolidColor(e),r.next=3,l.Z.setForegroundColor(n);case 3:return i=[],r.next=6,t.showColorPicker();case 6:if(o=r.sent,!Array.isArray(o)||!o[0].value){r.next=17;break}return r.next=10,s.Z.getActiveDocumentId();case 10:if(!(c=r.sent)){r.next=15;break}return r.next=14,l.Z.getAppProperty(!1,"profile",[{_id:c,_ref:"document"}]);case 14:a=r.sent;case 15:i.push(t.psSolidColorToLibraryColor(o[0].color,a)),i.push(t.psSolidColorToLibraryColor(o[0].RGBFloatColor,a));case 17:return r.abrupt("return",i);case 18:case"end":return r.stop()}}),r)})))()}addPSColor(e,t,r,s,c){var l=this;return h(p().mark((function u(){var d;return p().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e=e||"",c=c||n.ZP.getDefaultLibrary()){u.next=4;break}return u.abrupt("return",Promise.reject("Could not add color: No library"));case 4:if((0,a.oY)(c)){u.next=6;break}return u.abrupt("return",Promise.reject("Could not add color: Library not writable"));case 6:if(d=(0,a.MN)(c,e,i.Z.COLOR_ELEMENT_TYPE,{opType:s}),t&&d.createRepresentation(i.Z.COLOR_REPRESENTATION_TYPE,"primary").setValue("color","data",l.psSolidColorToLibraryColor(t)),r&&d.createRepresentation(i.Z.COLOR_REPRESENTATION_TYPE,"rendition").setValue("color","data",l.psSolidColorToLibraryColor(r)),d.endOperation(),n.ZP.currentLibrary!==c){u.next=13;break}return u.next=13,o.Z.revealElement(d);case 13:return u.abrupt("return",d);case 14:case"end":return u.stop()}}),u)})))()}}},19429:(e,t,r)=>{"use strict";r.d(t,{$6:()=>ye,$V:()=>o,$h:()=>re,Bn:()=>R,Ds:()=>Ee,ES:()=>ie,Fh:()=>F,G$:()=>w,GS:()=>i,HJ:()=>f,HX:()=>d,Hj:()=>y,Ii:()=>le,Ip:()=>pe,J3:()=>se,JF:()=>l,LS:()=>V,M_:()=>de,Ng:()=>W,OC:()=>ce,OD:()=>D,OF:()=>he,OQ:()=>_,PT:()=>x,Pw:()=>Q,Ri:()=>oe,Rs:()=>C,S5:()=>ve,So:()=>z,St:()=>A,T7:()=>b,Tk:()=>s,US:()=>a,Um:()=>ue,WI:()=>E,XV:()=>O,YQ:()=>ee,Zd:()=>k,Zy:()=>T,_z:()=>H,aK:()=>L,ab:()=>ae,af:()=>me,ah:()=>j,c4:()=>v,df:()=>c,dy:()=>G,fO:()=>P,g4:()=>_e,gd:()=>$,hK:()=>q,hf:()=>ne,jl:()=>N,ju:()=>S,k:()=>J,kY:()=>Y,l7:()=>n,lY:()=>M,lq:()=>K,oE:()=>h,oy:()=>g,s$:()=>U,se:()=>I,si:()=>be,tv:()=>ge,ur:()=>p,wh:()=>m,wm:()=>fe,ww:()=>te,xX:()=>u,xd:()=>Z,y8:()=>X,yG:()=>B});const n="textStyleRange",i="textStyle",o="textLayer",a="textKey",s="color",c="fontCaps",l="altligature",u="fractions",p="leading",d="ligature",h="impliedLeading",f="noBreak",m="oldStyle",g="ordinals",v="ornaments",y="titling",b="tracking",_="horizontalScale",E="verticalScale",w="size",L="impliedFontSize",x="subScript",S="superScript",O="normal",T="stylisticAlternates",I="contextualLigatures",P="swash",C="syntheticBold",A="syntheticItalic",k="textClickPoint",D="textShape",N="underline",R="autoKern",M="transform",j="warp",Z="autoLeading",F="strikethrough",B="fontPostScriptName",G="baseline",U="impliedBaselineShift",z="$CCLc",V="smartObject",H="ccLibrariesElement",Y="adjustment",W="AGMStrokeStyleInfo",$="orientation",K="antiAlias",q="antiAliasType",X="pixelWidth",J="pixelHeight",Q="underlineOff",ee="underlineOnLeftInVertical",te="strikethroughOff",re="xHeightStrikethroughOn",ne="allCaps",ie="normal",oe="smallCaps",ae="RGBColor",se="colorLookup",ce="blendMode",le="normal",ue=248,pe=32,de="Aa",he="eventRecord",fe="eventName",me="libraryID",ge="libraryElemCount",ve="elementID",ye="elementType",be="representationType",_e="opType",Ee="details"},61738:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{putEnumerationValueInDescriptor(e,t,r,n){e[t]={_enum:r,_value:n}}putUnitValueInDescriptor(e,t,r,n){e[t]={_unit:r,_value:n}}getEnumerationValueFromDescriptor(e,t){return e[t]?e[t]._value:void 0}}},87876:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(25585),i=r(28059),o=r(42334),a=r(70593),s=r(19429),c=r(41498);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))}}const d=new class{constructor(){this.layerKindMap={"LayerKind.PIXEL":1,"LayerKind.ADJUSTMENT":2,"LayerKind.TEXT":3,"LayerKind.VECTOR":4,"LayerKind.SMARTOBJECT":5,"LayerKind.VIDEO":6,"LayerKind.LAYERGROUP":7,"LayerKind.3DSHEET":8,"LayerKind.GRADIENT":9,"LayerKind.PATTERN":10,"LayerKind.SOLIDFILL":11,"LayerKind.BACKGROUND":12}}getLayerKindString(e){const t=a.Z.getKeyFromMap(this.layerKindMap,e);return t||""}getNumberOfDocuments(){return p(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getAppProperty(!1,"numberOfDocuments",[{_ref:"application"}]);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()}frontDocIsRGB(){var e=this;return p(l().mark((function t(){var r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=!1,t.next=3,e.getActiveDocumentId();case 3:return n=t.sent,t.next=6,e.getDocumentMode(n);case 6:return t.sent._value===s.ab&&(r=!0),t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)})))()}getDocumentMode(e){return p(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getAppProperty(!1,"mode",[{_id:e,_ref:"document"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getSpecificLayerAdjustment(e,t){return p(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"adjustment",[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getActiveDocumentId(){return p(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getAppProperty(!1,"documentID",[{_enum:"ordinal",_ref:"document",_value:"targetEnum"}]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()}getActiveLayerId(e){return p(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getAppProperty(!1,"layerID",[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"},{_id:e,_ref:"document"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getLayerKind(e,t){return p(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"layerKind",[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getLayerName(e,t){return p(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"name",[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getNumberOfLayers(e){var t=this;return p(l().mark((function r(){var n;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"numberOfLayers",[{_id:e,_ref:"document"}]);case 2:return n=r.sent,r.next=5,t.hasBackgroundLayer(e);case 5:return!0===r.sent&&(n+=1),r.abrupt("return",n);case 8:case"end":return r.stop()}}),r)})))()}moveLayer(e,t){return p(l().mark((function r(){var n;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"move",_target:[{_id:e,_ref:"layer"}],to:{_index:t,_ref:"layer"},adjustment:!1},r.next=3,o.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}getActiveLayerName(){var e=this;return p(l().mark((function t(){var r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="",t.next=3,e.getActiveDocumentId();case 3:return n=t.sent,t.next=6,o.Z.getSelectedLayerIndices(!0,n);case 6:if(1!==(i=t.sent).length){t.next=11;break}return t.next=10,e.getLayerName(n,i[0]);case 10:r=t.sent;case 11:return t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))()}getLayerProperty(e,t,r){return p(l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o.Z.getAppProperty(!1,e,[{_id:r,_ref:"layer"},{_id:t,_ref:"document"}]);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}getLayerInfo(){var e=this;return p(l().mark((function t(){var r,a,u,p,d,h,f,m,g,v,y,b,_,E,w,L,x,S,O,T,I,P;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new Object).enableApplyStyle=!1,r.enableApplyLook=!1,r.enableApplyText=!1,r.enableShapeLayerApplyOperations=!1,r.isAppliedParaStyleSupported=!1,r.libraryLinked=!1,r.selectionExists=!1,r.hasLayerStyles=!1,r.colors=[],r.kind="",a=[],u=function(e,t){let r;if(e&&t)for(r in e[0].value)if(Object.prototype.hasOwnProperty.call(e[0].value,r)&&(!Object.prototype.hasOwnProperty.call(t[0].value,r)||Math.round(e[0].value[r])!==Math.round(t[0].value[r])))return!1;return!0},p=function(e,t){if(void 0===e)return;let r;for(r=0;r<a.length;r++)if(u(a[r].data,e))return;a.push({colorType:t,data:e})},t.next=16,e.getNumberOfDocuments();case 16:if(0!==t.sent){t.next=19;break}return t.abrupt("return",r);case 19:return t.next=21,e.getActiveDocumentId();case 21:return d=t.sent,t.next=24,o.Z.getSelectedLayerIndices(!0,d);case 24:if(!((h=t.sent).length>0)){t.next=37;break}if(1!==h.length){t.next=30;break}t.t0=h[0],t.next=33;break;case 30:return t.next=32,e.getActiveLayerId(d);case 32:t.t0=t.sent;case 33:return f=t.t0,t.next=36,e.getLayerKind(d,f);case 36:m=t.sent;case 37:return t.next=39,o.Z.getAppProperty(!1,"profile",[{_id:d,_ref:"document"}]);case 39:if(g=t.sent,1!==h.length){t.next=92;break}if(r.kind=e.getLayerKindString(m),m!==e.layerKindMap["LayerKind.TEXT"]){t.next=59;break}return t.next=45,i.Z.getTextKeyById(f);case 45:if(v=t.sent,!((y=v.textKey)&&y.length>0)){t.next=57;break}return r.enableApplyText=!0,10,r.text=(0,n.aS)(y,10,!1),b=i.Z.getOrientationInLibrariesFormat(v),_=i.Z.getAntiAliasInLibrariesFormat(v),t.next=55,i.Z.getLibrariesTextItemObject(v.textStyleRange[0].textStyle,b,_,g);case 55:r.fontInfo=t.sent,p(r.fontInfo.color,"PS_TEXT");case 57:t.next=64;break;case 59:if(m!==e.layerKindMap["LayerKind.SMARTOBJECT"]){t.next=64;break}return t.next=62,e.getLayerProperty(s.LS,d,f);case 62:(E=t.sent)&&E.link&&E.link._obj===s._z&&(r.libraryLinked=!0);case 64:return m!==e.layerKindMap["LayerKind.BACKGROUND"]&&(r.enableApplyStyle=!0),t.next=67,c.Z.getSolidFillColor(d,f,g);case 67:return(w=t.sent).length>0&&p(w,"FILL"),t.next=71,c.Z.getSolidStrokeColor(d,f,g);case 71:return(L=t.sent).length>0&&p(L,"STROKE"),t.next=75,e.getLayerProperty("layerEffects",d,f);case 75:return x=t.sent,t.next=78,c.Z.getLayerEffectColor(x,g,"solidFill");case 78:return(S=t.sent).length>0&&p(S,"PS_EFFECT_FILL"),t.next=82,c.Z.getLayerEffectColor(x,g,"frameFX");case 82:return(O=t.sent).length>0&&p(O,"PS_EFFECT_STROKE"),t.next=86,e.getLayerName(d,f);case 86:T=t.sent,r.name=(0,n.aS)(T,s.Um,!1),r.fullName=T,r.hasLayerStyles=void 0!==x,t.next=93;break;case 92:h.length>1&&(r.enableApplyStyle=!0,m===e.layerKindMap["LayerKind.TEXT"]&&(r.enableApplyText=!0));case 93:return t.next=95,o.Z.getForegroundColor();case 95:return(I=t.sent)&&(P=c.Z.psSolidColorToLibraryColor(I,g),p([P],"PS_FOREGROUND")),r.colors=a,h.length>0&&(r.selectionExists=!0,m===e.layerKindMap["LayerKind.VECTOR"]&&(r.enableShapeLayerApplyOperations=!0)),t.next=101,e.getDocumentMode(d);case 101:return t.sent._value===s.ab&&(r.enableApplyLook=!0),t.abrupt("return",r);case 104:case"end":return t.stop()}}),t)})))()}hasBackgroundLayer(e){return p(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getAppProperty(!1,"hasBackgroundLayer",[{_id:e,_ref:"document"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}isBackgroundLayer(e,t){return p(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"background",[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getFontList(){return p(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getAppProperty(!1,"fontList",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()}getLayerAdjustment(){return p(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getAppProperty(!1,"adjustment",[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()}getDocumentTitle(e){return p(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getAppProperty(!1,"title",[{_id:e,_ref:"document"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}isMatchingDocOpen(e){return p(l().mark((function t(){var r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new Map).set("file",{_kind:"local",_path:e}),t.next=4,o.Z.getAppProperty(!1,"hasMatchingOpenDoc",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}],r);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})))()}}},70593:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{constructor(){this.psUnitMap={pointsUnit:"pt",millimetersUnit:"mm",angleUnit:"ang",percentUnit:"%",pixelsUnit:"px"}}unitToString(e){return Object.prototype.hasOwnProperty.call(this.psUnitMap,e)?this.psUnitMap[e]:"pt"}stringToUnit(e){const t=this.getKeyFromMap(this.psUnitMap,e);return t||"pixelsUnit"}getKeyFromMap(e,t){let r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]===t)return r}}},53337:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(47320),i=r(99386),o=r(93028),a=r(53849),s=r(76485),c=r(15909),l=r(31870),u=r(34038),p=r(9494),d=r(46903),h=r(84824),f=r(92098),m=r(80804),g=r(42334),v=r(87876);function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))}}const E=new class{constructor(){this.previewMaxWidth=248,this.previewMaxHeight=188}placeAsset(e,t,r,n,i,o,a,s){return _(y().mark((function c(){var l;return y().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return l={_obj:"placeEvent",ccLibrariesElement:{_obj:"ccLibrariesElement",adobeStockId:o,adobeStockLicenseState:{_enum:"adobeStockLicenseState",_value:a?"licensed":"unlicensed"},dateModified:i,elementReference:n,libraryName:t,name:r},layerName:r,null:{_kind:"local",_path:e},_options:{dialogOptions:"dontDisplay"}},s?l.linked=!0:l.unwrapLayers=!0,c.next=4,g.Z.executeBatchPlayCommand(l);case 4:return c.abrupt("return",c.sent);case 5:case"end":return c.stop()}}),c)})))()}openAssetForEdit(e,t,r){var n=this;return _(y().mark((function i(){var o;return y().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={_obj:"open",ccLibrariesElement:{_obj:"ccLibrariesElement",elementReference:r},externalPreviewParams:{_obj:"externalPreviewParams",in:{_kind:"local",_path:t},pixelHeight:n.previewMaxHeight,pixelWidth:n.previewMaxWidth},fileOpenContext:{_enum:"ordinal",_value:"fileOpenContextCCLibrariesAsset"},null:{_kind:"local",_path:e},overrideOpen:!0,_options:{dialogOptions:"display"}},i.next=3,g.Z.executeBatchPlayCommand(o);case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),i)})))()}primaryRepIsTemplateFormat(e){const t=e.getPrimaryRepresentation(),r=u.ku(i.Z.TEMPLATE_ELEMENT_TYPE);return!(!t||!r.includes(t.type)&&"application/x-adobe-libraries-psdt"!==t.type)}openImageForEditInPS(e){var t=this;return _(y().mark((function r(){var i,g,b,_,E,w,L,x,S,O;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=e.getPrimaryRepresentation(),g=!1,b=!1,_="documentLock_"+e.id,E=e.library&&e.library.name,r.next=7,f.Z.getTempFile(i);case 7:return w=r.sent,L=u.K3(w)+"p.png",r.next=11,t.openAssetForEdit(w,L,e.getLegacyReference());case 11:return r.next=13,v.Z.getActiveDocumentId();case 13:return x=r.sent,r.next=16,v.Z.isMatchingDocOpen(w);case 16:if(r.sent){r.next=21;break}return f.Z.deleteTempFile(w),c.Z.elementEditCompleted(e),r.abrupt("return");case 21:return r.next=23,v.Z.getDocumentTitle(x);case 23:S=r.sent,O=m.Z.startListening(S,w,(t=>{if("closed"===t)p.Z.obtainLock(_,(function(){m.Z.stopListening(O),g=!0,!1===b&&f.Z.deleteTempFile(w),c.Z.elementEditCompleted(e),p.Z.releaseLock(_)}));else if("saved"===t){if(!(0,d.ii)(w))return;b=!0;let t=e.library;const r=!t||t.isDeletedLocally;let i;if(r||!t.isWritable){if(t=o.ZP.getRecoveryLibrary(E),!t)return;i=!0}p.Z.obtainLock(_,(()=>{const o=l.si(e);e.isDeletedLocally||i?e=t.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const m=u.pH(w,e.type),v=e.createRepresentation(m,"primary");o&&l.i2(v,o);const y=[];y.push(v.setContentFromPath(w)),L&&u.xW(L)&&y.push((0,d.bf)(e,n.Z.getThumbnailSize(e),L));const x=()=>{const n=e.endOperation();p.Z.releaseLock(_),i&&(a.Z.revealElement(e),r?s.Z.showError((0,h.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:t.name})):s.Z.showError((0,h.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:t.name,originalLibraryName:E}))),n.then((()=>{g?f.Z.deleteTempFile(w):f.Z.updateTempFile(v,w),b=!1,c.Z.sendElementUpdated(v)}))};Promise.all(y).then(x,x)}))}}));case 25:case"end":return r.stop()}}),r)})))()}editImageOr3DElement(e){return!this.primaryRepIsTemplateFormat(e)&&(!!n.Z.isEditable(e)&&this.openImageForEditInPS(e))}}},71971:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>Ne});var n=r(99386),i=r(93028),o=r(84074),a=r(8733),s=r(51461),c=r(34038),l=r(26964),u=r(16993),p=r(57613),d=r(50265),h=r(42334),f=r(41498);function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(f=v);var y=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(y,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function g(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))}}const y=new class{addBrushToDocument(e,t,r){var n=this;return v(m().mark((function t(){var i,o,a;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.tool){t.next=3;break}return t.next=3,h.Z.setCurrentTool(r.tool);case 3:return t.next=5,h.Z.currentToolSupportsBrushes();case 5:if(t.sent){t.next=9;break}return t.next=9,h.Z.setCurrentTool("paintbrushTool");case 9:return t.next=11,n.applyBrushFile(e);case 11:if(!r){t.next=26;break}if(!(r.blendMode||r.opacity||r.flow)){t.next=22;break}return t.next=15,h.Z.getAppProperty(!0,"tool",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 15:return i=t.sent,o=i[0].currentToolOptions,r.blendMode&&(o.mode={_enum:"blendMode",_value:r.blendMode}),r.opacity&&(o.opacity={_unit:"percentUnit",_value:100*r.opacity}),r.flow&&(o.flow={_unit:"percentUnit",_value:100*r.flow}),t.next=22,h.Z.setToolOptions(i[0].tool._enum,o);case 22:if(!r.color){t.next=26;break}return a=f.Z.libraryColorToPSSolidColor(r.color),t.next=26,h.Z.setForegroundColor(a);case 26:case"end":return t.stop()}}),t)})))()}applyBrushFile(e){return v(m().mark((function t(){var r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={_obj:"applyBrushFile",from:{_kind:"local",_path:e}},t.next=3,h.Z.executeBatchPlayCommand(r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}saveBrushByIndex(e){return v(m().mark((function t(){var r,n,i,o,a;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.Z.tempFolderPath();case 2:return r=t.sent,n=c.Rl(),a={_obj:"save",_target:[{_ref:"brush",_index:e}],to:{_kind:"local",_path:i=r+"/Brush"+n+".abr"},thumbnail:{_kind:"local",_path:o=r+"/Brush"+n+".png"}},t.next=9,h.Z.executeBatchPlayCommand(a);case 9:return t.abrupt("return",{abrPath:i,previewPath:o});case 10:case"end":return t.stop()}}),t)})))()}};var b=r(53849),_=r(46903);function E(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */E=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function w(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function L(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){w(o,n,i,a,s,"next",e)}function s(e){w(o,n,i,a,s,"throw",e)}a(void 0)}))}}const x=new class{addPSGradient(e="",t,r,o,a){return L(E().mark((function s(){var l;return E().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t){s.next=2;break}return s.abrupt("return",Promise.reject("Could not add gradient: No gradient information provided"));case 2:if(a=a||i.ZP.getDefaultLibrary(),(0,_.oY)(a)){s.next=5;break}return s.abrupt("return",Promise.reject("Could not add gradient: Library not writable"));case 5:return void 0===t.angle&&(t.angle=90),(l=(0,_.MN)(a,e,n.Z.GRADIENT_ELEMENT_TYPE,{opType:o})).createRepresentation(n.Z.GRADIENT_REPRESENTATION_TYPE,"primary").setValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY,t),r&&c.xW(r)&&l.createRepresentation("image/png","rendition").setContentFromPath(r),l.endOperation(),i.ZP.currentLibrary===a&&b.Z.revealElement(l),s.abrupt("return",l);case 12:case"end":return s.stop()}}),s)})))()}applyGradientOperation(e,t){return L(E().mark((function r(){var n;return E().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:e,textKey:JSON.stringify(t),_options:{dialogOptions:"dontDisplay"}},r.next=3,h.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}saveGradientByIndex(e){return L(E().mark((function t(){var r,n,i,o;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,h.Z.tempFolderPath();case 4:return r=t.sent,n=c.Rl(),o={_obj:"save",_target:[{_ref:"gradientClassEvent",_index:e}],thumbnail:{_kind:"local",_path:i=r+"/Gradient"+n+".png"}},t.next=10,h.Z.executeBatchPlayCommand(o);case 10:return t.abrupt("return",i);case 11:case"end":return t.stop()}}),t)})))()}};var S=r(87876);function O(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */O=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function T(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){T(o,n,i,a,s,"next",e)}function s(e){T(o,n,i,a,s,"throw",e)}a(void 0)}))}}const P=new class{applyStyleFile(e){return I(O().mark((function t(){var r;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={_obj:"applyStyleFile",_target:[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}],from:{_kind:"local",_path:e}},t.next=3,h.Z.executeBatchPlayCommand(r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}applyLayerStyle(e){var t=this;return I(O().mark((function r(){return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,S.Z.getNumberOfDocuments();case 2:if(0!==r.sent){r.next=5;break}return r.abrupt("return");case 5:return r.next=7,t.applyStyleFile(e);case 7:case"end":return r.stop()}}),r)})))()}saveStyleFile(){var e=this;return I(O().mark((function t(){var r,n,i,o,a,s,l,u;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S.Z.getNumberOfDocuments();case 2:if(0!==t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,S.Z.getActiveDocumentId();case 7:return r=t.sent,t.next=10,S.Z.getActiveLayerId(r);case 10:return n=t.sent,t.next=13,S.Z.getLayerName(r,n);case 13:return i=t.sent,o={layerName:i,files:[]},t.next=17,h.Z.tempFolderPath();case 17:return a=t.sent,s=c.Rl(),l=a+"/LayerStyle"+s+".asl",u=a+"/LayerStyle"+s+".png",t.next=23,e.saveStyleAndThumbnailToFile(l,u);case 23:return o.files.push(l),o.rendition=u,t.abrupt("return",o);case 26:case"end":return t.stop()}}),t)})))()}saveStyleAndThumbnailToFile(e,t){return I(O().mark((function r(){var n,i;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"saveStyleFile",_target:[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}],to:{_kind:"local",_path:e}},i={_obj:"thumbnailStyleFile",from:{_kind:"local",_path:e},thumbnail:{_kind:"local",_path:t}},r.next=4,h.Z.executeMultipleBatchPlayCommand([n,i]);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}saveLayerStyleByIndex(e){return I(O().mark((function t(){var r,n,i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.Z.tempFolderPath();case 2:return r=t.sent,n=c.Rl(),a={_obj:"save",_target:[{_ref:"style",_index:e}],to:{_kind:"local",_path:i=r+"/LayerStyle"+n+".asl"},thumbnail:{_kind:"local",_path:o=r+"/LayerStyle"+n+".png"}},t.next=9,h.Z.executeBatchPlayCommand(a);case 9:return t.abrupt("return",{aslPath:i,previewPath:o});case 10:case"end":return t.stop()}}),t)})))()}};var C=r(74149),A=r(48919),k=r(76485),D=r(28059);const N=[{type:"characterStyle",callback:e=>D.Z.addPSCharacterStyleWithDesc(e.name,e.characterStyle,e.profile,e.previewPath,e.opType).then((e=>b.Z.revealElement(e)))},{type:"color",callback:e=>f.Z.addPSColor(e.name,e.primary,e.secondary,e.opType)},{type:"layerStyle",callback:e=>{const t={};return t.path=e.aslPath,(0,C.nA)(e.name,t,e.pngPath,i.ZP.getDefaultLibrary(),e.opType).then((function(e){return b.Z.revealElement(e)}))}},{type:"graphic",callback:(e,t)=>{const r=e.assetPath;if(!(0,_.ii)(r,!e.moveFile))return Promise.reject("Could not create element: one or more files exceed 1GB limit");const n={path:r,relationship:"primary",dimensions:{width:e.exportInfo.pixelWidth,height:e.exportInfo.pixelHeight}},o={};return o.layerIds=e.exportInfo.layerIDs,o.documentId=e.exportInfo.documentID,o.pushEventMetadata=t,(0,C.Bm)(e.name,[n],e.previewPath,i.ZP.getDefaultLibrary(),e.opType,o).then((e=>b.Z.revealElement(e)))}},{type:"gradient",callback:e=>x.addPSGradient(e.name,e.primary,e.previewPath,e.opType)}];function R(e){const t=e.event_metadata,r=function(e){const r={appMetadata:{pushEventMetadata:t},response:e};window.nodeRequire("photoshop").cclibrariespanel.pushAssetToLibraryResponse(r)},i=e=>{var t,i;r({status:"ok"}),t="pushAssetToLibrary",i=(e=>{if(!e)return{};const t=e.type&&e.type.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/),r=t&&2===t.length?t[1]:e.type,n={elementID:e.id,elementType:r},i=e.library;return i&&(n.libraryID=i.id,n.libraryElementCount=i.elements.length,i.collaboration&&(n.libraryShared=i.collaboration)),n})(e),n.Z.currentProduct.reportEvent?n.Z.currentProduct.reportEvent(t,i,!0):console.error("Highbeam analytics not available.")},o=e=>r({status:"error",details:e});if(!e||!t)return Promise.reject("pushAssetToLibrary failed: parameter error");const a=e.assetType;if(!a)return Promise.reject("pushAssetToLibrary failed: asset type not defined");const s=N.filter((e=>a===e.type));return 0===s.length?Promise.reject("pushAssetToLibrary failed: No asset handler found for "+a):Promise.all(s.map((r=>r.callback(e,t).then(i,o))))}const M=new class{constructor(){this.lastDocID=void 0,this.onDocInfoChangedEvent=(e,t)=>(a.Z.handleSelectionChange(),t.documentID!==this.lastDocID&&(n.Z.currentProduct.handleActiveDocChanged(t.documentID),this.lastDocID=t.documentID),!1),this.onForegroundColorChangedEvent=()=>(a.Z.handleSelectionChange(),!1),this.onConvertModeEvent=()=>(a.Z.handleSelectionChange(),!1),this.onFontListChanged=()=>{n.Z.currentProduct.fontManager.invalidateFontList()},this.onPreferenceChanged=()=>{h.Z.getShowTooltips().then((e=>n.Z.showTooltips=e))},this.PS_EVENTS=[{name:"dlDocInfoChanged",callback:this.onDocInfoChangedEvent},{name:"foregroundColorChanged",callback:this.onForegroundColorChangedEvent},{name:"fontListChanged",callback:this.onFontListChanged},{name:"convertMode",callback:this.onConvertModeEvent},{name:"preferencesChanged",callback:this.onPreferenceChanged}],this.PUSH_ASSET_TO_LIBRARY_EVENT="pushAssetToLibrary",this.handlePushAssetToLibrary=(e,t)=>{if(t)return R(t)}}listen(){this.PS_EVENTS.forEach((e=>{k.Z.addEventListener(e.name,e.callback)})),A.Z.panel.libraryManager.waitForInitialLoad().then((()=>{window.nodeRequire("photoshop").cclibrariespanel.librariesExtensionReady()})),k.Z.addEventListener(this.PUSH_ASSET_TO_LIBRARY_EVENT,this.handlePushAssetToLibrary),this.onPreferenceChanged()}stop(){this.PS_EVENTS.forEach((e=>{k.Z.removeEventListener(e.name,e.callback)})),k.Z.removeEventListener(this.PUSH_ASSET_TO_LIBRARY_EVENT,this.handlePushAssetToLibrary)}};var j=r(19429);function Z(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Z=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function F(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const B=new class{logHighbeam(e,t,r){return(n=Z().mark((function n(){var i,o;return Z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("createElement"!==e&&"useElement"!==e&&"createLink"!==e&&!r){n.next=16;break}return(i=function(e,t,r){e[t]=r||"N/A"})(o={_obj:"headlightsInfo"},j.OF,"Design Library"),i(o,j.wm,e),i(o,j.af,t.libraryID),i(o,j.tv,t.libraryElementCount),i(o,j.S5,t.elementID),i(o,j.$6,t.elementType),"useElement"===e&&(i(o,j.si,t.representationType),i(o,j.g4,t.opType),i(o,j.Ds,t.details)),"createElement"===e&&i(o,j.g4,t.opType),"createLink"===e&&i(o,j.g4,t.opType),n.next=15,h.Z.executeBatchPlayCommand(o);case 15:return n.abrupt("return",n.sent);case 16:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){F(o,r,i,a,s,"next",e)}function s(e){F(o,r,i,a,s,"throw",e)}a(void 0)}))})();var n}};var G=r(86423);class U extends G.Z{_fixGradientData(e){const t=e.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);e.getValue(n.Z.GRADIENT_NAMESPACE,"trackingdata")&&t&&1===t.smoothness&&delete t.smoothness}_defineCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,_.vM)(t,"defineCustomGradient"),x.applyGradientOperation("defineCustomGradient",r)}}_applyCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,_.vM)(t,"applyCustomGradient"),x.applyGradientOperation("applyCustomGradient",r)}}getApplyOperations(e){return n.Z.currentProduct.config.enableGradientContextMenu&&e&&!this.isDisabled(e)?[{name:"DL_ADD_GRADIENT_TO_PRESETS",onClick:!1,apply:()=>this._defineCustomGradient(e),displayInMenu:!0},{name:"DL_SET_FILL_GRADIENT_TOOLTIP",onClick:!0,apply:()=>this._applyCustomGradient(e),displayInMenu:!0}]:[]}isDisabled(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");return!!r&&!["radial","linear","noise"].includes(r.type)}}var z=r(84824),V=r(16771);class H extends V.Z{_setColor(e,t,r,i,o){return i||(i=[],e.representations.forEach((e=>{const t=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?i.unshift(t):i.push(t)})),e.representations.length>0&&(0,_.vM)(e.representations[0],t)),o&&o(t),"setStrokeColor"===t?f.Z.setStrokeColor(i,r):"setColor"===t||"setFillColor"===t?f.Z.setColor(i,r):"setColorOverlay"===t?f.Z.setColorOverlay(i,r):new Error("Unsupported color operation : "+t)}getApplyOperations(e){const t=a.Z.getLayerInfo(),r={name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setColor",(0,z.Iu)("DL_SET_COLOR_TOOLTIP"),t,r),displayInMenu:!0},n=[];return t&&t.selectionExists?(t.enableShapeLayerApplyOperations?(n.push({name:"DL_SET_FILL_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setFillColor",(0,z.Iu)("DL_SET_FILL_COLOR_TOOLTIP"),t,r),displayInMenu:!0}),n.push({name:"DL_SET_STROKE_COLOR_TOOLTIP",icon:"brush",apply:(t,r)=>this._setColor(e,"setStrokeColor",(0,z.Iu)("DL_SET_STROKE_COLOR_TOOLTIP"),t,r),displayInMenu:!0})):n.push(r),n.push({name:"DL_SET_COLOR_OVERLAY_TOOLTIP",icon:"brush",apply:(t,r)=>this._setColor(e,"setColorOverlay",(0,z.Iu)("DL_SET_COLOR_OVERLAY_TOOLTIP"),t,r),displayInMenu:!0,disableClick:!0})):n.push(r),!0!==n[0].disableClick&&(n[0].onClick=!0),n}defaultEditOperation(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);return new Promise((t=>{f.Z.replaceColor(r).then((function(r){Array.isArray(r)&&r.length>0&&(e.beginOperation(),e.removeAllRepresentations(),r.forEach((function(t,r){const i=0===r?"primary":"rendition";e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation(),t())}))}))}}var Y=r(31870),W=r(54712);function $(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function K(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const q=new class{openDocumentFromTemplate(e,t,r){return(n=$().mark((function t(){var n;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={_obj:"open",null:{_path:e,_kind:"local"},fileOpenContext:{_enum:"ordinal",_value:"fileOpenContextCCLibrariesAsset"},overrideOpen:!0,template:!0,_options:{dialogOptions:"display"}},r&&(n.ccLibrariesElement={_obj:"ccLibrariesElement",elementReference:r}),t.next=4,h.Z.executeBatchPlayCommand(n);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){K(o,r,i,a,s,"next",e)}function s(e){K(o,r,i,a,s,"throw",e)}a(void 0)}))})();var n}};class X extends W.Z{_openDocumentFromTemplate(e,t){return(0,_.vM)(t,"useTemplate"),t.getContentPath().then((t=>q.openDocumentFromTemplate(t,e.name,e.getLegacyReference())))}getCompatibleRepresentation(e){const t=c.ku(e.type);return e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}))}getApplyOperations(e){const t=this.getCompatibleRepresentation(e);let r=()=>this._openDocumentFromTemplate(e,t);if(!t){const t=c.ku(e.type);if(!this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0))return[];const n=Y.hr(e);r=()=>k.Z.showError((0,z.Iu)(n))}return[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:r,displayInMenu:!0}]}}var J=r(76572);class Q extends J.Z{_addBrushToDocument(e,t){return(0,_.vM)(t,"useBrush"),t.getContentPath().then((function(r){const n="photoshop",i={tool:t.getValue(n,"tool"),flow:t.getValue(n,"flow"),opacity:t.getValue(n,"opacity"),blendMode:t.getValue(n,"blendMode"),color:t.getValue(n,"color")};return y.addBrushToDocument(r,e.name,i)}))}getCompatibleRepresentation(e){const t=c.ku(e.type);return e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}))}getApplyOperations(e){const t=this.getCompatibleRepresentation(e);return t?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:()=>this._addBrushToDocument(e,t),displayInMenu:!0}]:[]}}var ee=r(54142),te=r(13293);class re extends ee.Z{constructor(...e){super(...e),this.STYLE_NAMESPACE="characterstyle",this.STYLE_DATA_KEY="data",this._setTextStyle=function(e){const t=this._config.findUsableRepresentation(e);if(t){const r=te.R(e);r&&r.id?(0,_.vM)(t,"setFont",null,{event:{value:"typekit"}}):(0,_.vM)(t,"setFont");const n=t.getValue(this.STYLE_NAMESPACE,this.STYLE_DATA_KEY);return D.Z.setFont(n,(0,z.Iu)("DL_PHXS_HISTORY_ENTRY_SET_TEXT_STYLE"))}}}_createTextLayer(e){const t=this._config.findUsableRepresentation(e);if(t){(0,_.vM)(t,"createTextLayer");const e=t.getValue(this.STYLE_NAMESPACE,this.STYLE_DATA_KEY);return D.Z.createTextLayerAndApplyFontStyle(e,(0,z.Iu)("DL_PHXS_HISTORY_ENTRY_CREATE_TEXT_LAYER"))}}getApplyOperations(e){const t=a.Z.getLayerInfo();if(!t||t&&!t.selectionExists)return[];const r=[];return t&&t.enableApplyText&&r.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e),displayInMenu:!0}),r.push({name:"DL_CREATE_TEXT_LAYER_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e),displayInMenu:!0}),r}}var ne=r(95134);function ie(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ie=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function oe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ae(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){oe(o,n,i,a,s,"next",e)}function s(e){oe(o,n,i,a,s,"throw",e)}a(void 0)}))}}const se=new class{defineAndMakePattern(e,t,r){return ae(ie().mark((function n(){var i,o;return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={_obj:"definePatternFile",from:{_kind:"local",_path:e},name:t,addPatternToPresets:!1,_options:{dialogOptions:"dontDisplay"}},o={_obj:"make",_target:{_ref:"contentLayer"},using:{_obj:"contentLayer",type:{_obj:"patternLayer",pattern:{_obj:"pattern",name:t},scale:{_unit:"percentUnit",_value:r}}},_options:{dialogOptions:"dontDisplay"}},n.next=4,h.Z.executeMultipleBatchPlayCommand([i,o]);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()}createPatternPreset(e,t){return ae(ie().mark((function r(){var n;return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"definePatternFile",from:{_kind:"local",_path:e},name:t},r.next=3,h.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}makePatternLayerFromFile(e,t,r){var n=this;return ae(ie().mark((function i(){var o,a;return ie().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.defineAndMakePattern(e,t,r);case 2:return i.next=4,S.Z.getLayerAdjustment();case 4:return o=i.sent,a=o[0].pattern.ID,i.next=8,h.Z.setPattern(a,r);case 8:return i.abrupt("return",i.sent);case 9:case"end":return i.stop()}}),i)})))()}};class ce extends ne.Z{constructor(...e){super(...e),this.scalePercent=25,this._applyPatternToDocument=function(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,_.vM)(t,"applyPattern"),t.getContentPath().then((t=>se.makePatternLayerFromFile(t,e.name,this.scalePercent)))}}_definePatternFile(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,_.vM)(t,"definePatternPreset"),t.getContentPath().then((t=>se.createPatternPreset(t,e.name)))}getApplyOperations(e){const t=[],r=a.Z.getLayerInfo();return r&&r.selectionExists&&t.push({name:"DL_APPLY_PATTERN",onClick:!0,apply:()=>this._applyPatternToDocument(e),displayInMenu:!0}),t.push({name:"DL_ADD_PATTERN_TO_PRESETS",icon:"brush",onClick:!1,apply:()=>this._definePatternFile(e),displayInMenu:!0}),t}}var le=r(65944);function ue(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ue=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function pe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function de(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){pe(o,n,i,a,s,"next",e)}function s(e){pe(o,n,i,a,s,"throw",e)}a(void 0)}))}}const he=new class{isActiveLayerColorLookUp(){return de(ue().mark((function e(){var t,r,n,i,o;return ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!1,e.next=3,S.Z.getActiveDocumentId();case 3:return r=e.sent,e.next=6,S.Z.getActiveLayerId(r);case 6:return n=e.sent,e.next=9,S.Z.getSpecificLayerAdjustment(r,n);case 9:if(i=e.sent,!Array.isArray(i)){e.next=19;break}o=0;case 12:if(!(o<i.length)){e.next=19;break}if(i[o]._obj!==j.J3){e.next=16;break}return t=!0,e.abrupt("break",19);case 16:o++,e.next=12;break;case 19:return e.abrupt("return",t);case 20:case"end":return e.stop()}}),e)})))()}applylook(e,t){var r=this;return de(ue().mark((function n(){var i,o,a;return ue().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,S.Z.getNumberOfDocuments();case 2:if(0!==n.sent){n.next=5;break}return n.abrupt("return");case 5:return i=!1,n.next=8,h.Z.getSelectedLayerIndices();case 8:if(o=n.sent,a=!1,1!==o.length){n.next=15;break}return i=!0,n.next=14,r.isActiveLayerColorLookUp();case 14:a=n.sent;case 15:if(!i||!a){n.next=21;break}return n.next=18,r.setColorLookupLayer(e,t);case 18:return n.abrupt("return",n.sent);case 21:return n.next=23,r.makeColorLookupLayerFromFile(e,t);case 23:return n.abrupt("return",n.sent);case 24:case"end":return n.stop()}}),n)})))()}makeColorLookupLayerFromFile(e,t){return de(ue().mark((function r(){var n;return ue().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"makerColorLookupLayerFromFile",from:{_kind:"local",_path:e},name:t,_options:{dialogOptions:"dontDisplay"}},r.next=3,h.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}setColorLookupLayer(e,t){return de(ue().mark((function r(){var n;return ue().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"set",_target:[{_enum:"ordinal",_ref:"adjustmentLayer",_value:"targetEnum"}],to:{_obj:"colorLookup",from:{_kind:"local",_path:e},name:t}},r.next=3,h.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}};class fe extends le.Z{_applyLook(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,_.vM)(t,"makeColorLookupLayerFromFile"),t.getContentPath().then((t=>he.applylook(t,e.name)))}_applyLookIfRGBDoc(e,t){return S.Z.frontDocIsRGB().then((r=>{if(!0===r)return this._applyLook(e);t&&k.Z.showError((0,z.Iu)("DL_APPLY_LOOK_REQUIRES_RGB"))}))}getApplyOperations(e){const t=a.Z.getLayerInfo();return!t||(t&&t.enableApplyLook,0)?[]:[{name:"DL_APPLY_LOOK",onClick:!0,isDraggable:!1,apply:()=>this._applyLookIfRGBDoc(e,!1),displayInMenu:!1},{name:"DL_APPLY_LOOK",onClick:!1,isDraggable:!1,apply:()=>this._applyLookIfRGBDoc(e,!0),displayInMenu:!0}]}}var me=r(48124),ge=r(53337);class ve extends me.Z{_addImageToDocument(e,t){const r=Y.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,_.vM)(n,"placeAsset",t),n.getContentPath().then((n=>ge.Z.placeAsset(n,e.library.name,e.name,e.getLegacyReference(),(0,_.RW)(e),r,!!r&&Y.kv(e),t)))):e.getThumbnailPath().then((function(n){return(0,_.dN)(e,"placeAsset",t),ge.Z.placeAsset(n,e.library.name,e.name,e.getLegacyReference(),(0,_.RW)(e),r,!!r&&Y.kv(e),t)}))}isRepresentationVectorType(e){let t=!1;if(e){-1!==["application/postscript","application/pdf","application/illustrator"].indexOf(e.type)&&(t=!0)}return t}getApplyOperations(e){if(!a.Z.hasDocumentOpen())return[];const t=this._config.findUsableRepresentation(e),r=this.isRepresentationVectorType(t),n=[];return ge.Z.primaryRepIsTemplateFormat(e)||n.push({name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0}),n.push({name:r?"DL_ADD_IMAGE_TO_DOC_AS_COPY":"DL_ADD_IMAGE_TO_DOC_AS_LAYERS",icon:"download",apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}),n}defaultEditOperation(e){return ge.Z.editImageOr3DElement(e)}getAddOperations(e){const t=super.getAddOperations(e);return e&&e.libraryLinked?t.filter((e=>"DL_ADD_IMAGE_NAME"!==e.name&&"DL_CAPTURE"!==e.name)):t}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}getStockDragData(){return[]}}var ye=r(82359);class be extends ye.Z{_add3dObjectToDocument(e){const t=this._config.findUsableRepresentation(e);return t?((0,_.vM)(t,"placeAsset",!1),t.getContentPath().then((t=>ge.Z.placeAsset(t,e.library.name,e.name,e.getLegacyReference(),(0,_.RW)(e),null,null,!1)))):e.getThumbnailPath().then((function(t){return(0,_.dN)(e,"placeAsset",!1),ge.Z.placeAsset(t,e.library.name,e.name,e.getLegacyReference(),(0,_.RW)(e),null,null,!1)}))}getApplyOperations(e){return a.Z.hasDocumentOpen()?[{name:"DL_ADD_IMAGE_TO_DOC",icon:"download",apply:()=>this._add3dObjectToDocument(e),displayInMenu:!0}]:[]}defaultEditOperation(e){return ge.Z.editImageOr3DElement(e)}}var _e=r(92106);class Ee extends _e.Z{_applyLayerStyle(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,_.vM)(t,"applyLayerStyle"),t.getContentPath().then((e=>P.applyLayerStyle(e)))}getApplyOperations(e){const t=a.Z.getLayerInfo();return!t||t&&!t.enableApplyStyle?[]:[{name:"DL_APPLY_LAYER_STYLE",icon:"layerstyle",onClick:!0,apply:()=>this._applyLayerStyle(e),displayInMenu:!0}]}_addLayerStyle(e,t,r){const i=e.layerName||"",o=(0,_.MN)(t,i,n.Z.LAYER_STYLE_ELEMENT_TYPE,{opType:r}),a=[],s=e.files||[];if(s.forEach(((e,t)=>{const r=c.pH(e,n.Z.LAYER_STYLE_ELEMENT_TYPE);if(r){const n=0===t?"primary":"alternate",i=o.createRepresentation(r,n).setContentFromPath(e).then((()=>{a.push(i)}))}else l.Z.log("Could not create representation: path cannot end with '.': "+e)})),e.rendition){const t=o.createRepresentation("image/png","rendition").setContentFromPath(e.rendition);a.push(t)}return Promise.all(a).then((()=>{const t=[];return e.rendition&&t.push(o.setThumbnailCache(n.Z.LAYER_STYLE_THUMBNAIL_SIZE,e.rendition)),t.push(o.endOperation()),Promise.all(t).then((()=>{e.rendition&&c._I(e.rendition),s.forEach((e=>c._I(e)))})),o}),(()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))}getAddOperations(e){if(!e||!e.hasLayerStyles)return[];return[{name:"DL_ADD_LAYER_STYLE",icon:"AddLayerStyle",order:3,dropSupport:!1,apply:(e,t)=>P.saveStyleFile().then((r=>this._addLayerStyle(r,e,t))).catch((()=>Promise.reject("Could not save layer style.")))}]}}var we=r(12894);class Le extends we.Z{_setFont(e){const t=this._config.findUsableRepresentation(e);if(t){const r=te.R(e);r&&r.id?(0,_.vM)(t,"setFont",null,{event:{value:"typekit"}}):(0,_.vM)(t,"setFont");const n=this._getStyleData(e,!0);return D.Z.setFont(n,(0,z.Iu)("DL_PHXS_HISTORY_ENTRY_SET_FONT"))}}getApplyOperations(e){const t=a.Z.getLayerInfo();if(!t||t&&!t.selectionExists)return[];const r=[];return t&&t.enableApplyText&&r.push({name:"DL_SET_FONT_TOOLTIP",onClick:!0,apply:()=>this._setFont(e),displayInMenu:!0}),r}}var xe,Se,Oe=r(77560);let Te=(xe=class{constructor(){var e,t,r,n;e=this,t="isAddDocContentEnabled",n=this,(r=Se)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}},Ie=xe.prototype,Pe="isAddDocContentEnabled",Ce=[d.observable],Ae={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},De={},Object.keys(Ae).forEach((function(e){De[e]=Ae[e]})),De.enumerable=!!De.enumerable,De.configurable=!!De.configurable,("value"in De||De.initializer)&&(De.writable=!0),De=Ce.slice().reverse().reduce((function(e,t){return t(Ie,Pe,e)||e}),De),ke&&void 0!==De.initializer&&(De.value=De.initializer?De.initializer.call(ke):void 0,De.initializer=void 0),void 0===De.initializer&&(Object.defineProperty(Ie,Pe,De),De=null),Se=De,xe);var Ie,Pe,Ce,Ae,ke,De;function Ne(){const e=new Te;function t(t){return e.isAddDocContentEnabled=i.ZP.areLibrariesLoaded&&t,i.ZP.areLibrariesLoaded&&t}return this.config={},this.config.code="PHXS_UXP",this.config.translationSuffix="PS",this.config.fullName="Photoshop",this.config.dragDropSource="com.adobe.photoshop",this.config.hideDefaultSearchCancelIcon=!0,this.config.customClearSearchIconHeight=12,this.config.applyElementOnNameClick=!0,this.config.getScrollTopPadding=()=>7,this.config.panelWidthAdjustment=-13,this.config.cancelButtonQuiet=!0,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.deleteIcon="Delete-PS",this.config.elementTypes=[H,Oe.Z.ColorThemeElementConfig,U,re,Le,Ee,Q,ve,be,ce,X,Oe.Z.ComponentElementConfig,fe,Oe.Z.VideoElementConfig,Oe.Z.CapsuleElementConfig,Oe.Z.ParagraphStyleElementConfig,Oe.Z.TextElementConfig,Oe.Z.AnimationElementConfig,Oe.Z.LightElementConfig,Oe.Z.MaterialElementConfig,Oe.Z.AudioElementConfig,Oe.Z.ChannelElementConfig,Oe.Z.ImageGuidelineElementConfig,Oe.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.VIDEO_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.isCaptureEnabled=!0,this.config.captureModules=["Patterns","Shapes","Colors","Gradients","Type"],this.config.enablePatternDragging=!1,this.config.useMouseEventToDetectDrop=!0,this.config.hasLibraryManager=!1,this.getFlyoutMenuItems=function(){return[{label:"DL_FLYOUT_ADD_DOC_CONTENT",enableMenu:t(a.Z.hasDocumentOpen()&&!u.Z.isImportExportInProgress),onClick(){n.Z.currentProduct.addDocContent()}}]},this.addDocContent=function(){o.ZP.closeDialog(),u.Z.resetMode();window.nodeRequire("photoshop").cclibrariespanel.addDocContent()},this.getAddDocContentOperation=function(){if(!t(a.Z.hasDocumentOpen()))return;return{buttonName:u.Z.isNewUserState()?"DL_NEW_USER_ADD_DOC_CONTENT_BUTTON":"DL_ADD_DOC_CONTENT_BUTTON",buttonToolTip:"DL_ADD_DOC_CONTENT_BUTTON_TOOLTIP",iconToolTip:"DL_ADD_DOC_CONTENT_ICON_TOOLTIP",icon:"UploadDocAssets",apply(){n.Z.currentProduct.addDocContent()},enabled:t(a.Z.hasDocumentOpen())}},this.handleActiveDocChanged=function(e){t(0!==e)},this.dropHandlers={color:function(e){const t=[],r=e.library||i.ZP.getDefaultLibrary();return e.assetList.forEach((e=>{const n=e.data[0];t.push(f.Z.addPSColor(e.name,n.primary,n.secondary,"dragToPanel",r))})),Promise.all(t)},gradient:function(e){const t=[];return e.assetList.forEach((r=>{const n=r.data[0];t.push(((t,r)=>x.saveGradientByIndex(t.index).then((n=>{const o=e.library||i.ZP.getDefaultLibrary();return x.addPSGradient(r,t.data,n,"dragToPanel",o)})))(n,r.name))})),Promise.all(t)},style:function(e){const t=(t,r)=>P.saveLayerStyleByIndex(t).then((t=>((t,r,n)=>{const o=e.library||i.ZP.getDefaultLibrary(),a={};return a.path=r,(0,C.nA)(t,a,n,o,"dragToPanel").then((e=>(i.ZP.currentLibrary===o&&b.Z.revealElement(e),e)))})(r,t.aslPath,t.previewPath))),r=[];return e.assetList.forEach((e=>{const n=e.data[0];r.push(t(n,e.name))})),Promise.all(r)},brush:function(e){const t=(t,r)=>y.saveBrushByIndex(t).then((t=>((t,r,n)=>{const o={};o.path=r;const a=e.library||i.ZP.getDefaultLibrary();return(0,C.D5)(t,o,n,a,"dragToPanel").then((e=>(i.ZP.currentLibrary===a&&b.Z.revealElement(e),e)))})(r,t.abrPath,t.previewPath))),r=[];return e.assetList.forEach((e=>{const n=e.data[0];r.push(t(n,e.name))})),Promise.all(r)}},this.dropHandler=function(e){const t=e;if(t&&t.assetList&&t.assetList.length>0){const e=this.dropHandlers[t.assetList[0].type];return e?e(t):Promise.reject()}return Promise.reject()},this.fontManager=new p.Z,this.init=function(){h.Z.getAppProperty(!1,j.So,[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]).then((function(e){const t=e||{};n.Z.currentProduct.config.enablePatternDragging=t.enablePatternDragging,n.Z.currentProduct.config.enableGradientContextMenu=t.enableGradientContextMenu})),c.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),c.Zh(n.Z.BRUSH_ELEMENT_TYPE,["image/x-adobe-photoshop-brush"]),c.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),c.Zh(n.Z.FONT_ELEMENT_TYPE,["application/vnd.adobe.font+json"]),c.Zh(n.Z.LAYER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.layerstyle"]),c.Zh(n.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]),c.Zh(n.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png"]),c.Zh(n.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt"]),c.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["image/vnd.adobe.photoshop.template","application/vnd.adobe.photoshop.template"]),c.Zh(n.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient.noise+json","application/vnd.adobe.gradient+json"]),c.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),c.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),c.Dk(n.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]);const e=h.Z.getFileFormats().then((e=>{let t=[];e&&Array.isArray(e.readableFileExtensions)&&(t=e.readableFileExtensions);const r=t.indexOf("PSDT");-1!==r&&t.splice(r,1),c.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/vnd.adobe.photoshop.template","application/x-adobe-libraries-psdt"]);const i=["AI","SVG","SVGZ","PDF"];t.length>0?(i.forEach((function(e){const r=t.indexOf(e);-1!==r&&t.splice(r,1)})),c.rx(n.Z.IMAGE_ELEMENT_TYPE,i),c.KU(n.Z.IMAGE_ELEMENT_TYPE,t)):(l.Z.log("Failed to get readable file extensions from PHXS, using short default list."),c.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/illustrator","image/svg+xml","application/pdf"]),c.Dk(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","image/vnd.adobe.photoshop","application/photoshop.large"]))}));return this.startEventListener(),e},this.startEventListener=function(){M.listen()},this.stopEventListener=function(){M.stop()},this.reportEvent=function(e,t,r){if("createElement"===e&&!t.opType){const r=s.ZP.getExtraEventMetrics(e);r&&(t.opType=r.opType)}B.logHighbeam(e,t,r).then((function(t){JSON.parse(t)&&l.Z.log(e+" metric reported to PS")}))},this.getUserData=function(e){e({accountStatus:"paid",secondsLeftInTrial:0})},this}},28059:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(99386),i=r(93028),o=r(34038),a=r(46903),s=r(42334),c=r(87876),l=r(61738),u=r(41498),p=r(70593),d=r(19429);function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=f,s(y,"constructor",f),s(f,"constructor",d),d.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function f(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){f(o,n,i,a,s,"next",e)}function s(e){f(o,n,i,a,s,"throw",e)}a(void 0)}))}}const g=new class{constructor(){this.antiAliasMap={"AntiAlias.NONE":"antiAliasNone","AntiAlias.CRISP":"antiAliasCrisp","AntiAlias.SHARP":"antiAliasSharp","AntiAlias.SMOOTH":"antiAliasSmooth","AntiAlias.STRONG":"antiAliasStrong","AntiAlias.PLATFORMGRAY":"antiAliasPlatformGray","AntiAlias.PLATFORM_LCD":"antiAliasPlatformLCD"},this.orientationMap={"Direction.HORIZONTAL":"horizontal","Direction.VERTICAL":"vertical"},this.underlineMap={"UnderlineType.UNDERLINEOFF":"underlineOff","UnderlineType.UNDERLINERIGHT":"underlineOnRightInVertical","UnderlineType.UNDERLINELEFT":"underlineOnLeftInVertical"},this.strikeThroughMap={"StrikeThruType.STRIKEOFF":"strikethroughOff","StrikeThruType.STRIKEHEIGHT":"xHeightStrikethroughOn","StrikeThruType.STRIKEBOX":"eMBoxStrikethroughOn"},this.textCaseMap={"TextCase.NORMAL":"normal","TextCase.ALLCAPS":"allCaps","TextCase.SMALLCAPS":"smallCaps"},this.autoKernMap={"AutoKernType.MANUAL":"manual","AutoKernType.METRICS":"metricsKern","AutoKernType.OPTICAL":"opticalKern"}}getTextPropertyInPSFormat(e,t){let r=e[Object.keys(e)[0]];return Object.prototype.hasOwnProperty.call(e,t)&&(r=e[t]),r}getTextPropertyInLibrariesFormat(e,t){let r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]===t)return r}getAntiAliasInPSFormat(e){return this.getTextPropertyInPSFormat(this.antiAliasMap,e.adbePhxsAntiAliasMethod)}setFont(e,t,r){var n=this;return m(h().mark((function i(){var o,a,l;return h().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=function(){var t=m(h().mark((function t(){var r,n,i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.Z.getFontList();case 2:return(r=t.sent)&&(n=this.getStylePostScriptName(r,e)),t.next=6,s.Z.getSelectedLayerIndices();case 6:i=t.sent,t.t0=h().keys(i);case 8:if((t.t1=t.t0()).done){t.next=14;break}return o=t.t1.value,t.next=12,this.applyStyleToText(i[o],e,n);case 12:t.next=8;break;case 14:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),!r){i.next=7;break}return i.next=4,o.bind(n)();case 4:case 11:return i.abrupt("return",i.sent);case 7:return a=function(){var e=m(h().mark((function e(r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.suspendHistory({historyStateInfo:{name:t,target:[{_ref:"document",_enum:"ordinal",_value:"targetEnum"},{_ref:"application",_enum:"ordinal",_value:"targetEnum"}]}});case 2:return n=e.sent,e.next=5,o.bind(this)();case 5:return e.next=7,r.resumeHistory(n);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),l=window.nodeRequire("photoshop").core,i.next=11,l.executeAsModal(a.bind(n),{commandName:t});case 12:case"end":return i.stop()}}),i)})))()}createTextLayerAndApplyFontStyle(e,t){var r=this;return m(h().mark((function n(){var i,o;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.Z.getNumberOfDocuments();case 2:if(0!==n.sent){n.next=5;break}return n.abrupt("return");case 5:return i=function(){var r=m(h().mark((function r(n){var i,o,a,l,u,p,d;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.suspendHistory({historyStateInfo:{name:t,target:[{_ref:"document",_enum:"ordinal",_value:"targetEnum"},{_ref:"application",_enum:"ordinal",_value:"targetEnum"}]}});case 2:return i=r.sent,r.next=5,this.createNormalLayer();case 5:return r.next=7,c.Z.getActiveDocumentId();case 7:return o=r.sent,r.next=10,c.Z.getActiveLayerId(o);case 10:return a=r.sent,r.next=13,c.Z.getNumberOfLayers(o);case 13:return l=r.sent,r.next=16,c.Z.moveLayer(a,l);case 16:return r.next=18,s.Z.getSelectedLayerIndices();case 18:return u=r.sent,p=u[0],r.next=22,s.Z.setLayerName(o,a,e.adbeFont.family);case 22:return r.next=24,this.createTextLayer(e);case 24:return r.next=26,this.getTextKey(p);case 26:return(d=r.sent).textKey=e.adbeFont.family,r.next=30,this.updateTextKey(d,p);case 30:return r.next=32,this.setFont(e,t,!0);case 32:return r.next=34,n.resumeHistory(i);case 34:case"end":return r.stop()}}),r,this)})));return function(e){return r.apply(this,arguments)}}(),o=window.nodeRequire("photoshop").core,n.next=9,o.executeAsModal(i.bind(r),{commandName:t});case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}}),n)})))()}updateTextKey(e,t){return m(h().mark((function r(){var n;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"set",_target:[{_index:t,_ref:"layer"}],to:e},r.next=3,s.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}createNormalLayer(){return m(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={_obj:"make",_target:[{_ref:"layer"}],below:!1},e.next=3,s.Z.executeBatchPlayCommand(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()}createTextLayer(){return m(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={_obj:"make",_target:[{_ref:d.$V}],using:{_obj:d.$V,antiAlias:{_enum:d.hK,_value:"antiAliasCrisp"},orientation:{_enum:d.gd,_value:"horizontal"},paragraphStyleRange:[],textClickPoint:{_obj:"paint",horizontal:{_unit:"percentUnit",_value:10},vertical:{_unit:"percentUnit",_value:10}},textGridding:{_enum:"textGridding",_value:"none"},textKey:" ",textShape:[{_obj:d.OD,char:{_enum:"char",_value:"paint"}}],textStyleRange:[{_obj:d.l7,from:0,textStyle:{_obj:d.GS,color:u.Z.psBlackColor,fill:!0,stroke:!1},to:1}]}},e.next=3,s.Z.executeBatchPlayCommand(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()}isFontAvailable(e){var t=this;return m(h().mark((function r(){var n,i;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,c.Z.getFontList();case 2:return n=r.sent,i=!!n&&t.getStylePostScriptName(n,e),r.abrupt("return",!!i);case 5:case"end":return r.stop()}}),r)})))()}getStylePostScriptName(e,t){if(t.adbeFont){if(e.fontPostScriptName.includes(t.adbeFont.postScriptName))return t.adbeFont.postScriptName}else if(t.fontFamily){const r=e.fontFamilyName.findIndex((e=>e===t.fontFamily));if(-1!==r)return e.fontPostScriptName[r]}}getTextKey(e){return m(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.getAppProperty(!1,"textKey",[{_index:e,_ref:"layer"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getTextKeyById(e){return m(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.getAppProperty(!1,"textKey",[{_id:e,_ref:"layer"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getOrientationInPSFormat(e){return this.getTextPropertyInPSFormat(this.orientationMap,e.adbePhxsDirection)}getAutoKernInPSFormat(e){return this.getTextPropertyInPSFormat(this.autoKernMap,e.adbePhxsAutoKerning)}getUnderlineInPSFormat(e){return this.getTextPropertyInPSFormat(this.underlineMap,e.adbePhxsUnderline)}getStrikeThruInPSFormat(e){return this.getTextPropertyInPSFormat(this.strikeThroughMap,e.adbePhxsStrikethru)}applyStyleToText(e,t,r){var n=this;return m(h().mark((function i(){var o,a,s,c,f,m,g,v,y,b,_,E,w,L,x,S,O,T,I;return h().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.getTextKey(e);case 2:if(o=i.sent,Object.prototype.hasOwnProperty.call(o,d.US)){i.next=5;break}return i.abrupt("return");case 5:if((a=new Object)._obj=d.$V,a.merge=!0,Object.prototype.hasOwnProperty.call(o,d.lY)&&(1,c=0,f=0,m=o.transform,g=function(e){return e*e},v=Math.atan2(m.yx,m.yy),y=Math.atan2(-m.xy,m.xx),(b=Math.abs(v-y)<1e-4)?(c=Math.sqrt(g(m.xx)+g(m.xy)),f=Math.sqrt(g(m.yx)+g(m.yy))):(c=m.xx,f=m.yy),1!==(s=f)))for(L in c/=s,f=1,b?(m.xx=c*Math.cos(v),m.xy=-c*Math.sin(v),m.yx=f*Math.sin(v),m.yy=f*Math.cos(v)):(_=m.yx/f,E=m.xy/c,m.xx=c,m.xy=c*E,m.yx=f*_,m.yy=f),a.transform=m,Object.prototype.hasOwnProperty.call(o,d.Zd)&&(a.textClickPoint=o.textClickPoint),w=o.textShape,Array.isArray(w)&&w.length>0&&(a.textShape=[]),w)(x=w[L]).char&&"box"===x.char._value&&(x.bounds.bottom=x.bounds.bottom*s,x.bounds.right=x.bounds.right*s),a.textShape.push(x);for(L in Object.prototype.hasOwnProperty.call(o,d.ah)&&(a.warp=o.warp),l.Z.putEnumerationValueInDescriptor(a,d.gd,d.gd,n.getOrientationInPSFormat(t)),t.adbePhxsAntiAliasMethod&&l.Z.putEnumerationValueInDescriptor(a,d.lq,d.hK,n.getAntiAliasInPSFormat(t)),S=o.textStyleRange,a.textStyleRange=[],O=void 0!==t.fontFeatureSettings&&t.fontFeatureSettings.length>0,S)(T=new Object)._obj=d.GS,r&&(T.fontPostScriptName=r),void 0!==t.fontSize&&l.Z.putUnitValueInDescriptor(T,d.G$,p.Z.stringToUnit(t.fontSize.type),t.fontSize.value),void 0!==t.adbeHorizontalScale&&(T.horizontalScale=t.adbeHorizontalScale),void 0!==t.adbeVerticalScale&&(T.verticalScale=t.adbeVerticalScale),void 0!==t.adbePhxsFauxBold&&(T.syntheticBold=!!t.adbePhxsFauxBold),void 0!==t.adbePhxsFauxItalic&&(T.syntheticItalic=!!t.adbePhxsFauxItalic),void 0!==t.adbeAutoLeading&&(T.autoLeading=!!t.adbeAutoLeading),void 0!==t.lineHeight&&(T.autoLeading=!1,l.Z.putUnitValueInDescriptor(T,d.ur,p.Z.stringToUnit(t.lineHeight.type),t.lineHeight.value)),void 0!==t.adbeTracking?T.tracking=t.adbeTracking:t.letterSpacing&&(T.tracking=1e3*t.letterSpacing.value),void 0!==t.baselineShift&&l.Z.putUnitValueInDescriptor(T,d.ur,p.Z.stringToUnit(t.baselineShift.type),t.baselineShift.value),t.adbePhxsAutoKerning&&l.Z.putEnumerationValueInDescriptor(T,d.Bn,d.Bn,n.getAutoKernInPSFormat(t)),t.whiteSpace&&"nowrap"===t.whiteSpace&&(T.noBreak=!1),t.adbePhxsUnderline?l.Z.putEnumerationValueInDescriptor(T,d.jl,d.jl,n.getUnderlineInPSFormat(t)):t.textDecoration&&-1!==t.textDecoration.indexOf("underline")?l.Z.putEnumerationValueInDescriptor(T,d.jl,d.jl,d.YQ):l.Z.putEnumerationValueInDescriptor(T,d.jl,d.jl,d.Pw),t.adbePhxsStrikethru?l.Z.putEnumerationValueInDescriptor(T,d.Fh,d.Fh,n.getStrikeThruInPSFormat(t)):t.textDecoration&&-1!==t.textDecoration.indexOf("line-through")?l.Z.putEnumerationValueInDescriptor(T,d.Fh,d.Fh,d.$h):l.Z.putEnumerationValueInDescriptor(T,d.Fh,d.Fh,d.ww),O&&-1!==t.fontFeatureSettings.indexOf("smcp")?l.Z.putEnumerationValueInDescriptor(T,d.df,d.df,d.Ri):"capitalize"===t.textTransform?l.Z.putEnumerationValueInDescriptor(T,d.df,d.df,d.hf):l.Z.putEnumerationValueInDescriptor(T,d.df,d.df,d.ES),T.oldStyle=O&&-1!==t.fontFeatureSettings.indexOf("onum"),T.altligature=O&&-1!==t.fontFeatureSettings.indexOf("dlig"),T.ligature=O&&-1!==t.fontFeatureSettings.indexOf("liga"),T.stylisticAlternates=O&&-1!==t.fontFeatureSettings.indexOf("salt"),T.swash=O&&-1!==t.fontFeatureSettings.indexOf("swsh"),T.fractions=O&&-1!==t.fontFeatureSettings.indexOf("frac"),T.titling=O&&-1!==t.fontFeatureSettings.indexOf("titl"),T.ordinals=O&&-1!==t.fontFeatureSettings.indexOf("ordn"),T.ornaments=O&&-1!==t.fontFeatureSettings.indexOf("ornm"),T.contextualLigatures=O&&-1!==t.fontFeatureSettings.indexOf("clig"),O&&-1!==t.fontFeatureSettings.indexOf("subs")?l.Z.putEnumerationValueInDescriptor(T,d.dy,d.dy,d.PT):O&&-1!==t.fontFeatureSettings.indexOf("sups")?l.Z.putEnumerationValueInDescriptor(T,d.dy,d.dy,d.ju):l.Z.putEnumerationValueInDescriptor(T,d.dy,d.dy,d.XV),t.color&&(T.color=u.Z.libraryColorToPSSolidColor(t.color)),(I=S[L]).textStyle=T,a.textStyleRange.push(I);return i.abrupt("return",n.updateTextKey(a,e));case 17:case"end":return i.stop()}}),i)})))()}getOrientationInLibrariesFormat(e){const t=l.Z.getEnumerationValueFromDescriptor(e,d.gd);return t?this.getTextPropertyInLibrariesFormat(this.orientationMap,t):void 0}getAntiAliasInLibrariesFormat(e){const t=l.Z.getEnumerationValueFromDescriptor(e,d.lq);return t?this.getTextPropertyInLibrariesFormat(this.antiAliasMap,t):void 0}getFontObject(e,t){const r={},n=t.fontPostScriptName.findIndex((t=>t===e));return-1!==n&&(r.family=t.fontFamilyName[n],r.name=t.fontName[n],r.postScriptName=t.fontPostScriptName[n],r.style=t.fontStyleName[n]),r}getLibrariesTextItemObject(e,t,r,n){var i=this;return m(h().mark((function o(){var a,s,f,m,g,v,y,b,_,E,w,L,x,S,O,T,I;return h().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a={},s=Object.prototype.hasOwnProperty.call(e,d.yG)?e[d.yG]:"MyriadPro-Regular",o.next=4,c.Z.getFontList();case 4:return f=o.sent,m=i.getFontObject(s,f),a.adbeFont={family:m.family,name:m.name,postScriptName:m.postScriptName,style:m.style},a.fontFamily=m.family,-1!==(g=m.style.toLowerCase()).indexOf("italic")?a.fontStyle="italic":-1!==g.indexOf("oblique")&&(a.fontStyle="oblique"),-1!==g.indexOf("bold")?a.fontWeight="bold":-1===g.indexOf("light")&&-1===g.indexOf("thin")||(a.fontWeight="lighter"),Object.prototype.hasOwnProperty.call(e,d.aK)?(v=e[d.aK]._value,y=p.Z.unitToString(e[d.aK]._unit),a.fontSize={type:y,value:v}):a.fontSize={type:"pt",value:12},Object.prototype.hasOwnProperty.call(e,d.xd)&&e[d.xd]&&(a.adbeAutoLeading=!0),Object.prototype.hasOwnProperty.call(e,d.oE)&&(b=e[d.oE]._value,_=p.Z.unitToString(e[d.oE]._unit),a.lineHeight={type:_,value:b}),Object.prototype.hasOwnProperty.call(e,d.s$)&&(E=e[d.s$]._value,w=p.Z.unitToString(e[d.s$]._unit),a.baselineShift={type:w,value:E}),L=u.Z.psBlackColor,Object.prototype.hasOwnProperty.call(e,d.Tk)&&(L=e[d.Tk]),o.next=19,u.Z.psSolidColorToLibraryColorWithRGB(L,n);case 19:return a.color=o.sent,Object.prototype.hasOwnProperty.call(e,d.T7)&&(a.adbeTracking=e[d.T7],a.letterSpacing={type:"em",value:(a.adbeTracking/1e3).toFixed(2)}),Object.prototype.hasOwnProperty.call(e,d.HJ)&&e[d.HJ]&&(a.whiteSpace="nowrap"),Object.prototype.hasOwnProperty.call(e,d.OQ)&&(a.adbeHorizontalScale=e[d.OQ]),Object.prototype.hasOwnProperty.call(e,d.WI)&&(a.adbeVerticalScale=e[d.WI]),Object.prototype.hasOwnProperty.call(e,d.Rs)&&e[d.Rs]?a.adbePhxsFauxBold=!0:a.adbePhxsFauxBold=!1,Object.prototype.hasOwnProperty.call(e,d.St)&&e[d.St]?a.adbePhxsFauxItalic=!0:a.adbePhxsFauxItalic=!1,t&&(a.adbePhxsDirection=t),Object.prototype.hasOwnProperty.call(e,d.jl)&&(x=l.Z.getEnumerationValueFromDescriptor(e,d.jl))!==i.underlineMap["UnderlineType.UNDERLINEOFF"]&&(a.textDecoration?a.textDecoration.push("underline"):a.textDecoration=["underline"],a.adbePhxsUnderline=i.getTextPropertyInLibrariesFormat(i.underlineMap,x)),Object.prototype.hasOwnProperty.call(e,d.Fh)&&(S=l.Z.getEnumerationValueFromDescriptor(e,d.Fh))!==i.strikeThroughMap["StrikeThruType.STRIKEOFF"]&&(a.textDecoration?a.textDecoration.push("line-through"):a.textDecoration=["line-through"],a.adbePhxsStrikethru=i.getTextPropertyInLibrariesFormat(i.strikeThroughMap,S)),a.fontFeatureSettings=[],Object.prototype.hasOwnProperty.call(e,d.wh)&&e[d.wh]&&a.fontFeatureSettings.push("onum"),Object.prototype.hasOwnProperty.call(e,d.JF)&&e[d.JF]&&a.fontFeatureSettings.push("dlig"),Object.prototype.hasOwnProperty.call(e,d.HX)&&e[d.HX]&&a.fontFeatureSettings.push("liga"),Object.prototype.hasOwnProperty.call(e,d.Zy)&&e[d.Zy]&&a.fontFeatureSettings.push("salt"),Object.prototype.hasOwnProperty.call(e,d.fO)&&e[d.fO]&&a.fontFeatureSettings.push("swsh"),Object.prototype.hasOwnProperty.call(e,d.xX)&&e[d.xX]&&a.fontFeatureSettings.push("frac"),Object.prototype.hasOwnProperty.call(e,d.Hj)&&e[d.Hj]&&a.fontFeatureSettings.push("titl"),Object.prototype.hasOwnProperty.call(e,d.se)&&e[d.se]&&a.fontFeatureSettings.push("clig"),Object.prototype.hasOwnProperty.call(e,d.oy)&&e[d.oy]&&a.fontFeatureSettings.push("ordn"),Object.prototype.hasOwnProperty.call(e,d.c4)&&e[d.c4]&&a.fontFeatureSettings.push("ornm"),Object.prototype.hasOwnProperty.call(e,d.df)&&((O=l.Z.getEnumerationValueFromDescriptor(e,d.df))===d.Ri?a.fontFeatureSettings.push("smcp"):O===d.hf&&(a.textTransform="capitalize")),Object.prototype.hasOwnProperty.call(e,d.dy)&&((T=l.Z.getEnumerationValueFromDescriptor(e,d.dy))===d.ju?a.fontFeatureSettings.push("sups"):T===d.PT&&a.fontFeatureSettings.push("subs")),0===a.fontFeatureSettings.length&&delete a.fontFeatureSettings,Object.prototype.hasOwnProperty.call(e,d.Bn)&&(I=l.Z.getEnumerationValueFromDescriptor(e,d.Bn),a.adbePhxsAutoKerning=i.getTextPropertyInLibrariesFormat(i.autoKernMap,I)),r&&(a.adbePhxsAntiAliasMethod=r),o.abrupt("return",a);case 46:case"end":return o.stop()}}),o)})))()}saveTextStylePreview(e){return m(h().mark((function t(){var r,n,i,a,l,p;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.Z.getNumberOfDocuments();case 2:if(0!==t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,c.Z.getActiveDocumentId();case 7:return r=t.sent,t.next=10,c.Z.getActiveLayerId(r);case 10:if(!(n=t.sent)){t.next=26;break}return t.next=14,c.Z.getLayerKind(r,n);case 14:if(t.sent!==c.Z.layerKindMap["LayerKind.TEXT"]){t.next=26;break}return t.next=18,s.Z.tempFolderPath();case 18:return i=t.sent,a=i+"/TextPreview"+o.Rl()+".png",l="MyriadPro-Regular",e&&e.adbeFont&&e.adbeFont.postScriptName&&(l=e.adbeFont.postScriptName),p={_obj:"textThumbnail",color:u.Z.psBlackColor,fontPostScriptName:l,fontSize:d.Ip,text:d.M_,to:{_kind:"local",_path:a}},t.next=25,s.Z.executeBatchPlayCommand(p);case 25:return t.abrupt("return",a);case 26:case"end":return t.stop()}}),t)})))()}addPSCharacterStyleWithDesc(e,t,r,s,c){var l=this;return m(h().mark((function u(){var p,d,f,m,g,v,y,b,_;return h().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return p=t.textStyle,d=l.getOrientationInLibrariesFormat(t),f=l.getAntiAliasInLibrariesFormat(t),e=e||"",u.next=6,l.getLibrariesTextItemObject(p,d,f,r);case 6:if(m=u.sent,u.prev=7,m){u.next=10;break}throw"getLibrariesTextItemObject returned false";case 10:if(g=i.ZP.getDefaultLibrary()){u.next=13;break}throw"No library";case 13:if((0,a.oY)(g)){u.next=15;break}return u.abrupt("return");case 15:return"application/vnd.adobe.characterstyle+json","characterstyle","data",v=(0,a.MN)(g,e,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:c}),m&&v.createRepresentation("application/vnd.adobe.characterstyle+json","primary").setValue("characterstyle","data",m),y=[],s&&(b=v.createRepresentation("image/png","rendition"),_=b.setContentFromPath(s),y.push(_)),u.abrupt("return",Promise.all(y).then((function(){const e=[];return s&&e.push(v.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,s)),e.push(v.endOperation()),Promise.all(e).then((()=>{s&&o._I(s)})),v}),(function(){return g.removeElement(v,!0),Promise.reject("Could not create element.")})));case 25:return u.prev=25,u.t0=u.catch(7),g&&v&&g.removeElement(v,!0),u.abrupt("return",Promise.reject("Could not add character style: "+u.t0));case 29:case"end":return u.stop()}}),u,null,[[7,25]])})))()}}},10888:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>C});var n=r(99386),i=r(93028),o=r(53849),a=r(47320),s=r(76485),c=r(76325),l=r(31870),u=r(74379),p=r(8733),d=r(34038),h=r(46903),f=r(85834),m=r(77560),g=r(48124),v=r(89368),y=r.n(v);class b extends g.Z{_addImageToDocument(e){const t=l.wq(e),r=this._config.findUsableRepresentation(e);return r?((0,h.vM)(r,"placeAsset"),r.getContentPath().then((i=>{const o=d.i_(n.Z.IMAGE_ELEMENT_TYPE,r.type),a=o&&"Photoshop"===o.name;return s.Z.execApp("placeAsset",[y().normalize(i),a,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,t,t?l.kv(e):null,!1])}))):e.getThumbnailPath().then((r=>((0,h.dN)(e,"placeAsset"),s.Z.execApp("placeAsset",[y().normalize(r),!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,t,t?l.kv(e):null,!1]))))}getApplyOperations(e){return p.Z.getLayerInfo()?[{name:"DL_ADD_IMAGE_TO_PROJECT",icon:"download",apply:()=>this._addImageToDocument(e),displayInMenu:!0}]:[]}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var _=r(65944);class E extends _.Z{getApplyOperations(e){return[{name:"DL_APPLY_LOOK",onClick:!0,isDraggable:!0,apply:()=>{const t=this._config.findUsableRepresentation(e);if(t)return t.getContentPath().then((function(){}))},displayInMenu:!1}]}_addLookFromData(e,t,r){const i=JSON.parse(e),o=(0,h.MN)(t,i.name,n.Z.LOOK_ELEMENT_TYPE,{opType:r}),a=[];if(i.lookPath){const e=o.createRepresentation("application/vnd.adobe.look+xml","primary").setContentFromPath(i.lookPath);a.push(e)}if(i.cubePath){const e=i.lookPath?"alternate":"primary",t=o.createRepresentation("application/vnd.adobe.cube+txt",e).setContentFromPath(i.cubePath);a.push(t)}if(i.previewPath){const e=o.createRepresentation("image/jpg","rendition"),t=e.setContentFromPath(i.previewPath).then((function(){e.width=n.Z.LOOK_THUMBNAIL_SIZE,e.height=n.Z.LOOK_THUMBNAIL_SIZE}));a.push(t)}return Promise.all(a).then((()=>(o.endOperation().then((()=>{i.lookPath&&d._I(i.lookPath),i.cubePath&&d._I(i.cubePath),i.previewPath&&d._I(i.previewPath)})),o)),(()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))}getAddOperations(e){if(!e||!e.look)return[];return[{name:"DL_ADD_LOOK_NAME",order:0,icon:"AddLook",apply:(e,t)=>s.Z.execApp("getSelectedLookData").then((r=>this._addLookFromData(r,e,t))).catch((()=>Promise.reject("Could not create element.")))}]}}var w=r(4328);class L extends w.Z{_addVideoToDocument(e){const t=l.wq(e),r=this._config.findUsableRepresentation(e);if(r){if((0,h.vM)(r,"placeAsset"),l.Jw(e)){const r=d.ku(e.type),n=e.representations.filter((e=>this._config.isRepresentationCompatible(e,r))).map((e=>({contentType:e.type,url:e.getContentURL()})));return s.Z.execApp("placeAsset",[n,!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,t,t?l.kv(e):null,!1])}r.getContentPath().then((t=>s.Z.execApp("placeAsset",[y().normalize(t),!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,null,null,!1])))}}getApplyOperations(e){return p.Z.getLayerInfo()?[{name:"DL_ADD_TO_PROJECT",icon:"download",apply:()=>this._addVideoToDocument(e),displayInMenu:!0}]:[]}isStockAssetDraggable(){return!0}}var x=r(70232);class S extends x.Z{_addAudioToDocument(e){const t=l.wq(e),r=this._config.findUsableRepresentation(e);r&&((0,h.vM)(r,"placeAsset"),r.getContentPath().then((r=>s.Z.execApp("placeAsset",[y().normalize(r),!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,t,t?l.kv(e):null,!1]))))}getApplyOperations(e){return p.Z.getLayerInfo()?[{name:"DL_ADD_TO_PROJECT",icon:"download",apply:()=>this._addAudioToDocument(e),displayInMenu:!0}]:[]}}var O=r(54142);class T extends O.Z{getDragData(e){return this._getStyleData(e)||{}}}function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function C(){function e(e){return u.vq(e,e,e).slice(1).toLowerCase()}this.getScaleColor=function(t){const r=.4*t+35;return e(r)},this.cssThemeBGScale=function(){const t={},r={darker:"darker",dark_v7:"dark-v7",dark:"dark",light:"light"},n=e=>{switch(e){case 0:return r.darker;case 100:return r.dark;default:return"generated/"+e}};for(let e=0;e<=100;e++){const r=this.getScaleColor(e);(!Object.prototype.hasOwnProperty.call(t,r)||Object.prototype.hasOwnProperty.call(t,r)&&n(e)!=="generated/"+e)&&(t[r]=n(e))}return[[29,r.darker],[50,r.dark_v7],[248,r.light]].forEach((r=>{const n=e(r[0]);t[n]=r[1]})),t},this.config={},this.config.code="PPRO",this.config.fullName="Premiere Pro",this.config.translationSuffix="PR",this.config.dragDropSource="com.adobe.premiere",this.config.stockDragFormat="jpeg",this.config.defaultStockSearchOptions=[n.Z.STOCK_SEARCH_OPTION_VIDEO.id],this.config.themes=this.cssThemeBGScale(),this.config.defaultTheme="darker",this.config.addSupportForTextStyle=!0,this.config.elementTypes=[b,L,E,S,T,m.Z.CapsuleElementConfig,m.Z.ColorElementConfig,m.Z.ColorThemeElementConfig,m.Z.ComponentElementConfig,m.Z.BrushElementConfig,m.Z.LayerStyleElementConfig,m.Z.ParagraphStyleElementConfig,m.Z.FontElementConfig,m.Z.ThreeDElementConfig,m.Z.PatternElementConfig,m.Z.TemplateElementConfig,m.Z.TextElementConfig,m.Z.AnimationElementConfig,m.Z.LightElementConfig,m.Z.MaterialElementConfig,m.Z.GradientElementConfig,m.Z.ChannelElementConfig,m.Z.ImageGuidelineElementConfig,m.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.BRUSH_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.init=function(){d.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/illustrator","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","image/png","image/jpeg","image/jpg","image/heic"]),d.Zh(n.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt","application/vnd.adobe.look+xml"]),d.Zh(n.Z.VIDEO_ELEMENT_TYPE,["video/mp4","video/quicktime","video/x-quicktime","video/x-ms-wmv","video/x-ms-asf","video/x-msvideo","video/mpeg"]),d.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),d.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),d.Zh(n.Z.AUDIO_ELEMENT_TYPE,["audio/aac","audio/x-aac","audio/aacp","audio/mpeg","audio/mpeg3","audio/m4a","audio/mp3","audio/3gpp","audio/3gpp2","audio/x-aiff","audio/aif","audio/wav","audio/x-wav"]),d.Zh(n.Z.CAPSULE_ELEMENT_TYPE,["application/vnd.adobe.ppro.graphic+zip","application/vnd.adobe.ae.graphic+zip"]),d.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/png"]),f.Z.get("enableTextStyle")&&d.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),s.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),this.startEventListener(),i.ZP.waitForInitialLoad().then((function(){const e=s.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");s.Z.dispatchEvent(e)}))},this.reportEvent=function(){},this.getUserData=function(e){s.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))};const t=()=>p.Z.handleSelectionChange(),r=()=>{var e;const t=null!==(e=i.ZP.userId)&&void 0!==e?e:"",r={clientId:c.Z.getEnvironment().clientId,imsToken:""},n="com.adobe.DesignLibraries.events.UserAccessToken";return c.Z.getAccessToken(t).then((function(e){r.imsToken=e;const t=s.Z.createEvent(n,"APPLICATION");t.data=JSON.stringify(r),s.Z.dispatchEvent(t)}),(function(){const e=s.Z.createEvent(n,"APPLICATION");e.data=JSON.stringify(r),s.Z.dispatchEvent(e)}))},g=function(){var e,t=(e=I().mark((function e(t){var r,o,c,u,p,h,f;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,e.next=3,i.ZP.resolveElementReference(r);case 3:o=e.sent,c={elementRef:r},o?(c.name=o.name,c.id=o.id,c.libraryName=o.library.name,c.reference=o.getLegacyReference(),c.modified=o.modified,c.created=o.created,c.adobeStockId=l.wq(o),c.licensed=c.adobeStockId?l.kv(o):null,(u=a.Z.findUsableRepresentation(o,d.ku(n.Z.VIDEO_ELEMENT_TYPE)))&&(c.width=u.width,c.height=u.height,c.contentLength=u.contentLength,c.url=u.getContentURL(),c.trackingdata=u.getValue("adobestock","trackingdata"),c.contentType=u.type,p=d.vn(u.type),c.extension=p[p.length-1],(h=u.getValue("video","data")||!1)&&(c.framerate=Number(h.framerate),c.duration=h.duration)),(f=s.Z.createEvent("com.adobe.DesignLibraries.events.VideoUpdate","APPLICATION")).data=JSON.stringify(c),s.Z.dispatchEvent(f)):c.name="";case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),v=e=>{const t=0,r=1,n=2,o=s.Z.createEvent("com.adobe.DesignLibraries.events.LibraryReadWriteStatusResponse","APPLICATION"),a={code:0,result:[]},c=e.data.libraryIdList;c.length>0&&c.forEach((function(e){const o={id:e,status:t},s=i.ZP.getLibraryById(e);s?s.isWritable||(o.status=n):o.status=r,a.result.push(o)})),o.data=JSON.stringify(a),s.Z.dispatchEvent(o)},y=e=>{const t=0,r=1,a=2,c=3,l=4,u=5,p=6,f=s.Z.createEvent("com.adobe.DesignLibraries.events.UploadCapsuleResponse","APPLICATION"),m={code:t},g=e.data,v=i.ZP.getLibraryById(g.libraryId);let y=t;if(d.xW(g.primaryPath)||(y=a),y!==t||d.xW(g.secondaryPath)||(y=c),y!==t||d.xW(g.thumbnailPath)||(y=l),y!==t||v||(y=u),y!==t||v.isWritable||(y=p),y===t){const e=(e,t)=>{const r=s.Z.createEvent("com.adobe.DesignLibraries.events.UploadCapsuleProgress","APPLICATION");r.data=JSON.stringify({current:e,total:t}),s.Z.dispatchEvent(r)},t=[];let i=3,a=0;g.videoPreviewPath&&d.xW(g.videoPreviewPath)&&(i+=1),e(a,i);const c=(0,h.MN)(v,g.capsuleName,n.Z.CAPSULE_ELEMENT_TYPE,{});if(g.primaryPath){const r="aegraphic"===d.MZ(g.primaryPath)?"application/vnd.adobe.ae.graphic+zip":"application/vnd.adobe.ppro.graphic+zip",o=c.createRepresentation(r,"primary");if(g.metadata){const e=JSON.parse(g.metadata);o.setValue(n.Z.CAPSULE_NAMESPACE,n.Z.CAPSULE_DATA_KEY,e)}const s=o.setContentFromPath(g.primaryPath).then((function(){a+=1,e(a,i)}));t.push(s)}if(g.secondaryPath){const r=c.createRepresentation("application/vnd.adobe.graphic+json","alternate").setContentFromPath(g.secondaryPath).then((function(){a+=1,e(a,i)}));t.push(r)}if(g.thumbnailPath){const r=c.createRepresentation("image/png","rendition").setContentFromPath(g.thumbnailPath).then((function(){a+=1,e(a,i)}));t.push(r)}if(g.videoPreviewPath&&d.xW(g.videoPreviewPath)){const r=c.createRepresentation("video/mp4","rendition").setContentFromPath(g.videoPreviewPath).then((function(){a+=1,e(a,i)}));t.push(r)}const l=()=>{const e=[];e.push(c.setThumbnailCache(n.Z.CAPSULE_THUMBNAIL_SIZE,g.thumbnailPath)),e.push(c.endOperation()),Promise.all(e).then((()=>{g.primaryPath&&d._I(g.primaryPath),g.secondaryPath&&d._I(g.secondaryPath),g.thumbnailPath&&d._I(g.thumbnailPath)})),o.Z.revealElement(c),f.data=JSON.stringify(m),s.Z.dispatchEvent(f)},u=()=>{v.removeElement(c,!0),m.code=r,f.data=JSON.stringify(m),s.Z.dispatchEvent(f)};Promise.all(t).then(l,u)}else m.code=y,f.data=JSON.stringify(m),s.Z.dispatchEvent(f)},_=e=>{const t=0,r=1,n=2,o=3,a=s.Z.createEvent("com.adobe.DesignLibraries.events.DeleteCapsuleResponse","APPLICATION"),c={code:0,result:[]},l=e.data.items;l.length>0&&l.forEach((function(e){const a={elementId:e.elementId,libraryId:e.libraryId,status:t},s=i.ZP.getLibraryById(e.libraryId);if(s?s.isWritable||(a.status=o):a.status=n,a.status===t){const t=s.getElementById(e.elementId);if(t)try{s.removeElement(t)}catch(e){a.status=r}else a.status=r}c.result.push(a)})),a.data=JSON.stringify(c),s.Z.dispatchEvent(a)},w=e=>{const t=0,r=1,n=2,a=3,c=4,l=5,u=6,p=s.Z.createEvent("com.adobe.DesignLibraries.events.UpdateCapsuleResponse","APPLICATION"),h={code:t},f=e.data;let m=t;d.xW(f.jsonPath)||(m=n);const g=i.ZP.getLibraryById(f.libraryId);m!==t||g||(m=l),m!==t||g.isWritable||(m=u);const v=g.getElementById(f.elementId);m!==t||v||(m=c);const y=v.representations.find((e=>"alternate"===e.relationship));if(m!==t||y||(m=a),m===t){const e=[];let t;if(v.beginOperation(),f.jsonPath){t=v.createRepresentation("application/vnd.adobe.graphic+json","alternate");const r=t.setContentFromPath(f.jsonPath);e.push(r)}const n=()=>{v.removeRepresentation(y),v.endOperation().then((()=>{f.jsonPath&&d._I(f.jsonPath)})),o.Z.revealElement(v),p.data=JSON.stringify(h),s.Z.dispatchEvent(p)},i=()=>{v.removeRepresentation(t),v.endOperation(),h.code=r,p.data=JSON.stringify(h),s.Z.dispatchEvent(p)};Promise.all(e).then(n,i)}else h.code=m,p.data=JSON.stringify(h),s.Z.dispatchEvent(p)};return this.startEventListener=function(){s.Z.addEventListener("lookSelectionChanged",t),s.Z.addEventListener("getIMSAccessToken",r),s.Z.addEventListener("getVideoDownloadData",g),s.Z.addEventListener("getLibraryReadWriteStatus",v),s.Z.addEventListener("uploadCapsuleEvent",y),s.Z.addEventListener("deleteCapsuleEvent",_),s.Z.addEventListener("updateCapsuleJSON",w)},this.stopEventListener=function(){s.Z.removeEventListener("lookSelectionChanged",t),s.Z.removeEventListener("getIMSAccessToken",r),s.Z.removeEventListener("getVideoDownloadData",g),s.Z.removeEventListener("getLibraryReadWriteStatus",v),s.Z.removeEventListener("uploadCapsuleEvent",y),s.Z.removeEventListener("deleteCapsuleEvent",_),s.Z.removeEventListener("updateCapsuleJSON",w)},this}},22063:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e,t){this.type=e,this._xdGradient=t}serializeForLibrary(){const e=[],t=this._xdGradient.getColorStops().map((t=>{const r=t.stop,n=t.color.serializeAGC(),i=void 0===n.alpha?1:n.alpha;return delete n.alpha,e.push({offset:r,opacity:i}),{offset:r,color:[n]}})),r=this.type,n=(360-this.nativeAngle)%360,i=this.aspectRatio,o=this.centerPoint,a=this.scale;return{type:r,stops:t,opacities:e,angle:n,aspectRatio:i,scale:a,centerPoint:o}}}},23664:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(76485),i=r(22063);class o extends i.Z{constructor(e){super("linear",e||new n.Z.LinearGradient)}setColorStops(e){this._xdGradient.setColorStops(e)}setEndPoints({selection:e,angle:t,aspectRatio:r,xdEndPoints:i}){if(i){const e=i.startX,t=i.startY,r=i.endX,n=i.endY;return void this._xdGradient.setEndPoints(e,t,r,n)}r=e.localBounds.width/e.localBounds.height;const o=(0,n.Z.psdUtils.PlAgcGradientParams.getLinearGradientParams)(t,100,r),a=o.x1,s=o.y1,c=o.x2,l=o.y2;this._xdGradient.setEndPoints(a,s,c,l)}apply(e,t){n.Z.applyColorToSelection(t,this._xdGradient,e)}get nativeAngle(){let e=Math.atan2(this._xdGradient.endY-this._xdGradient.startY,this._xdGradient.endX-this._xdGradient.startX);return e*=180/Math.PI,e<0&&(e+=360),e}serializeForLibrary(){const e=super.serializeForLibrary();return e.xdEndPoints={startX:this._xdGradient.startX,startY:this._xdGradient.startY,endX:this._xdGradient.endX,endY:this._xdGradient.endY},e}}},61344:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(76485),i=r(22063);class o extends i.Z{constructor(e,t){super("radial",e||new n.Z.RadialGradient),this._bounds=t||{height:1,width:1}}setColorStops(e){this._xdGradient.setColorStops(e)}setEndPoints({angle:e,aspectRatio:t,scale:r,centerX:n,centerY:i}){const o=.5*r;this._xdGradient.setEndPoints(n,i,n+o,i),this._xdGradient.gradientTransform=this._xdGradient.boundingBoxTransform({scaleX:1,scaleY:t,degreeRotation:(360-e)%360})}apply(e,t){n.Z.applyColorToSelection(t,this._xdGradient,e)}get nativeAngle(){return this._xdGradient.scaleFactorsAndRotation().degreeRotation}get aspectRatio(){const e=this._xdGradient.scaleFactorsAndRotation().scaleY;return Math.abs(e/this._transformAspectRatio)}get _transformAspectRatio(){return this._bounds.height/this._bounds.width}get scale(){return this._xdGradient.endR*this._transformAspectRatio*2}get centerPoint(){return{x:this._xdGradient.startX,y:this._xdGradient.startY}}}},31707:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>it});var n=r(50265),i=r(99386),o=r(34038),a=r(76485),s=r(8733),c=r(84824),l=r(93028),u=r(30131),p=r(77560),d=r(20120),h=r(48124),f=r(82490),m=r(46903);class g extends h.Z{_addImageToDocument(e,t=!0){const r="DL_ADD_IMAGE_TO_DOC_AS_"+(t?"LINKED":"COPY");return a.Z.recordHistory(r,(()=>((0,m.NR)(e)?f.qh:f.jP)(e,t)))}_getImageNodesFromSelection(e){if(!e||0===e.length)return[];if(1===e.length){const t=e[0],r=d.pE(t),n=t.linked;return r||n?[]:[t]}return a.Z.findContainingArtboardsForSelection(e).size>1?[]:e}getAddOperations(e){const t=this._getImageNodesFromSelection(e);return 0===t.length?[]:[{name:"DL_TYPE_IMAGE_SINGULAR",icon:"AddImage",apply:(e,r)=>{const n={guids:t.map((e=>e.guid)),name:t[0].name};return this._createImageElement(n,e,r).then((e=>e.element))}}]}getApplyOperations(e){const t=e.getPrimaryRepresentation();if(!t)return[];const r=[];return t.type!==i.Z.AGC_REPRESENTATION_TYPE&&r.push({name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",isDraggable:!0,apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0}),r.push({name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",isDraggable:!0,apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}),r}_createImageElement(e,t,r){return(0,f.dC)(i.Z.IMAGE_ELEMENT_TYPE,e,t,r)}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}getDragData(e){const t=super.getDragData(e),r=e.getPrimaryRepresentation();if(r&&"application/illustrator"===r.type){const n=e.getCachedThumbnailPath(i.Z.IMAGE_THUMBNAIL_SIZE);n&&(t.vectorWidth=r.width,t.vectorHeight=r.height,t.thumbnailPath=a.Z.normalizePath(n))}return t.data=[a.Z.normalizePath(t.data[0])],t}getStockDragData(){return[""]}}var v=r(16771),y=r(74379);class b extends v.Z{constructor(...e){super(...e),this.publishToLibraryLabel="DL_PUBLISH_LIBRARY_IN_SOURCE"}_getColorApplyModes(){const e=[],t=a.Z.getSelection();if(t.length>0){const r=t[0];r instanceof a.Z.Line||e.push("fill"),a.Z.isCanvasTextEditInProgress()||r instanceof a.Z.Artboard||e.push("stroke")}return e}_applyAndLinkColor(e,t,r){const n=(0,d.Ol)(e,t);a.Z.applyColorToSelection(r,n,t);const i=t&&t.getPrimaryRepresentation&&t.getPrimaryRepresentation();i&&(0,m.vM)(i)}getApplyOperations(e,t){const r=this._getColorApplyModes(),n=a.Z.isAltKeyDown,i=r.map((t=>({name:`DL_SET_${"stroke"===t?"BORDER":t.toUpperCase()}_COLOR_TOOLTIP`,apply:r=>this._applyAndLinkColor(r,e,t),onClick:"fill"===t&&!n||"stroke"===t&&n,displayInMenu:!0}))),o=(0,y.m3)(t||(0,y.lP)(e));return i.push({name:(0,c.Iu)("DL_COPY_COLOR_TO_CLIPBOARD",{hex:o}),apply:()=>{a.Z.canvas.writePlainTextClipboard(o)},displayInMenu:!0}),i}_createOrUpdateColorElement(e,t,r,n,o){o?(o.beginOperation(),o.removeAllRepresentations(),n&&(o.name=n)):o=(0,m.MN)(t,n||"",i.Z.COLOR_ELEMENT_TYPE,{opType:r});return o.createRepresentation(i.Z.COLOR_REPRESENTATION_TYPE,"primary").setValue(i.Z.COLOR_NAMESPACE,i.Z.COLOR_DATA_KEY,e),o.endOperation(),Promise.resolve(o)}getAddOperations(e){const t=this._getElementDataFromSelection(e);return t?t.map((e=>({name:"DL_ADD_COLOR_NAME_"+e.type,style:{backgroundColor:(0,y.m3)(e.data),border:"1px solid",width:"14px",height:"14px",margin:"1px 8px 1px 0px"},apply:(t,r)=>this._createOrUpdateColorElement(e.data,t,r)}))):[]}_getElementDataFromSelection(e){if(a.Z.isCanvasTextEditInProgress()&&a.Z.textEditModel.selection){const e=a.Z.TextPropertyUtils.getTextEditorPropertyValues();if(e.length>0){const t=e[0].fill;if(e.every((e=>{const r=e.fill;return!!r&&(r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a)})))return[{data:(0,d.b6)(t),type:"FILL"}]}return[]}if(!e||1!==e.length)return;const t=[];return(0,d.ex)((e=>{if(e.fillEnabled&&e.fill&&e.fill instanceof a.Z.Color){const r=(0,d.b6)(e.fill);t.push({data:r,type:"FILL"})}if(e.strokeEnabled&&e.stroke){const r=(0,d.b6)(e.stroke);t.push({data:r,type:"STROKE"})}}),{visitNonEditable:!0,skipChildren:!0},e),t}createOrUpdateElementFromAsset(e,t,r,n){const i=e.getPrimaryRepresentation().getValue("color","data");return this._createOrUpdateColorElement(i,t,r,e.name,n).then((e=>({element:e})))}defaultEditOperation(e){if(e.library.isDocumentAssets)return a.Z.editColor(e)}}var _,E,w,L,x,S=r(54142),O=r(26964),T=r(89526),I=r(62631),P=r(64403),C=r.n(P),A=r(47320),k=r(16203),D=r(2652),N=r.n(D),R=r(24937),M=r(20290),j=r(33275),Z=r(80091);function F(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 B(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let G=(0,I.Pi)(((x=class extends T.Component{constructor(...e){super(...e),this.updateImageProviderWithColorSpace=e=>{this.imageProvider.colorSpace=e,Promise.resolve().then((()=>{this.imageProvider.updateRendition()}))},F(this,"debouncedWidth",w,this),this.debounceWidthUpdate=(0,M.Ds)(i.Z.THUMBNAIL_RENDERER_DEBOUNCE,(()=>(this.clearImageProvider(),this.debouncedWidth=this.props.width,Promise.resolve()))),this.updateImageProviderWithTargetColorSpace=e=>{this.shouldHandleScreenColorProfileChange&&this.imageProvider&&(this.imageProvider.targetColorSpace=new Uint8Array(e),Promise.resolve().then((()=>{this.imageProvider.updateRendition()})))},F(this,"imgStyle",L,this),this._setImageRef=e=>{this.clearReaction(),e&&(this._reaction=(0,n.reaction)((()=>this.imageProvider),(t=>{e.src=t,this.scaleToFit&&(e.onload=()=>{e.naturalWidth>e.naturalHeight?this.imgStyle={width:"100%",height:"auto"}:this.imgStyle={width:"auto",height:"100%"}})}),{fireImmediately:!0}))}}componentDidMount(){this.disposer=(0,n.reaction)((()=>a.Z.colorProfile),(e=>{this.updateImageProviderWithColorSpace(e)})),this.screenColorProfileDisposer=(0,n.reaction)((()=>a.Z.screenColorProfile),(e=>{this.updateImageProviderWithTargetColorSpace(e)}))}componentWillUnmount(){var e,t;this.clearImageProvider(),this.clearReaction(),null===(e=this.disposer)||void 0===e||e.call(this),null===(t=this.screenColorProfileDisposer)||void 0===t||t.call(this)}clearImageProvider(){this._imageProvider&&(this._imageProvider.cancel(),delete this._imageProvider,delete this._imageProviderType)}componentDidUpdate(){this.debouncedWidth!==this.props.width&&this.debounceWidthUpdate()}clearReaction(){this._reaction&&this._reaction()}get width(){return this.shouldDebounceWidthUpdate?this.debouncedWidth:this.props.width}get scaleToFit(){return!1}get shouldDebounceWidthUpdate(){return!1}get shouldHandleScreenColorProfileChange(){return!1}get containerClassName(){return C()("xd-renderer-container",`xd-renderer-container-${this.context.viewState.viewState}-view`)}get imageProvider(){throw new Error("get imageProvider() must be implemented by subclass")}get overlay(){}render(){return T.createElement("div",{className:this.containerClassName,"data-test-id":"xd-renderer-container"},T.createElement("img",{"data-test-id":"xd-renderer",ref:this._setImageRef,style:this.imgStyle}),this.overlays)}}).contextType=R.r,x.defaultProps={viewMode:"grid"},x.propTypes={element:N().oneOfType([N().instanceOf(j.W_),N().instanceOf(Z.Z)]).isRequired,viewMode:N().oneOf(i.Z.ELEMENT_VIEW_MODES),height:N().number,width:N().number,gridSizeType:N().oneOf(i.Z.GRID_SIZE_TYPES)},w=B((E=x).prototype,"debouncedWidth",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.width}}),L=B(E.prototype,"imgStyle",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_=E))||_;var U,z;function V(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const H={grid:"Grid",list:"List",thumbnail:"List","thumbnail-large":"Grid"};let Y=(0,I.Pi)((V((z=class extends G{get style(){const e=A.Z.getShortType(this.props.element.type),t=A.Z.findUsableRepresentation(this.props.element,`application/vnd.adobe.${e}+json`);return t&&t.getValue(e,"data")}get imageProvider(){const e=H[this.props.viewMode];if(this._imageProviderType!==e&&this.clearImageProvider(),!this._imageProvider){this._imageProviderType=e;const t=`createCharacterStyle${this._imageProviderType}RenditionProvider`;this._imageProvider=a.Z.renditionService[t](28,28,a.Z.colorProfile,new Uint8Array(a.Z.screenColorProfile))}const t=k.GD(this.style)||"",r=a.Z.fontUtils.getFontFamily(t,k.BN(this.style)),n=a.Z.fontUtils.getFontStyle(t,k.pJ(this.style)),o=this.props.element.name,s=y.bA(this.style&&this.style.color)||4278190080,c=k.O7(this.style),l=k.hR(this.style),u=k.Id(this.style),p=k.nP(this.style,"titlecase")||"none",d=k.cu(this.style)||"none",h="subscript"===d?30:24,f=k.Ac(this.style)||0;if("Grid"===e){const e={width:(this.width||100)-12,height:i.Z.GRID_TYPE_WIDE_SET_HEIGHT};this._imageProvider.setCharacterStyleGridInfo(e.width,e.height,r,o,h,n,t,f,s,p,d,l,c,u)}else{const e=i.Z.LIST_VIEW_ELEMENT_THUMBNAIL_HEIGHT-2;this._imageProvider.setCharacterStyleListInfo(e,e,r,n,t,i.Z.SHORT_FONT_PREVIEW_TEXT,s,p,d,l,u)}return this._imageProvider}get overlays(){if(this.props.gridSizeType===i.Z.GRID_TYPE_WIDE){const e=k.Mr(this.style),t=C()("panel-textstyle-rendition-details","xd-textstyle-renderer-details");return T.createElement("div",{className:t,"data-test-id":"textstyle-font-details"},e)}}get containerClassName(){return C()(super.containerClassName,{contrast:k.DO(this.style)})}get shouldHandleScreenColorProfileChange(){return!0}}).prototype,"style",[n.computed],Object.getOwnPropertyDescriptor(z.prototype,"style"),z.prototype),V(z.prototype,"imageProvider",[n.computed],Object.getOwnPropertyDescriptor(z.prototype,"imageProvider"),z.prototype),U=z))||U;const W="characterstyle",$="data";class K extends S.Z{constructor(...e){super(...e),this.publishToLibraryLabel="DL_PUBLISH_LIBRARY_IN_SOURCE"}_applyAndLinkTextStyle(e){const t=this._config.findUsableRepresentation(e),r=(0,f.fK)(e);r&&(a.Z.applyCharacterStyleToSelection(r,e),(0,m.vM)(t))}_getApplyMode(){if(a.Z.hasTextEditSelection())return{mode:"textEdit"};const e=[];return(0,d.ex)((t=>{t instanceof a.Z.Text&&e.push(t)})),e.length>0?{mode:"selection"}:{}}getApplyOperations(e){let t=[];return this._getApplyMode().mode&&(t=[{name:"DL_SET_TEXT_STYLE_TOOLTIP",apply:()=>{try{this._applyAndLinkTextStyle(e)}catch(e){O.Z.log(e)}},onClick:!0,displayInMenu:!e.library.isDocumentAssets}]),t}getAddOperations(e){const t=this._getTextStyleFromSelection(e);return t?[{name:"DL_ADD_TEXT_STYLE_NAME",icon:"AddCharacterStyle",apply:(e,r)=>this._createOrUpdateTextStyleElement(t,e,r)}]:[]}_getTextStyleFromSelection(e){if(a.Z.isCanvasTextEditInProgress()&&a.Z.textEditModel.selection){const e=a.Z.TextPropertyUtils.getTextEditorPropertyValues();if(1===e.length){const t=e[0];return(0,d.Qw)(t)}return}if(!e||0===e.length)return;const t=[];return(0,d.ex)((e=>{e instanceof a.Z.Text&&t.push(e)}),{visitNonEditable:!0,skipChildren:!0},e),1===t.length?(0,d.Qw)(t[0]):void 0}_createThumbnail(e){const t={text:"Aa",fill:{r:0,g:0,b:0}};t.fontFamily=e.fontFamily,t.strikethrough=e.strikethrough,t.charSpacing=e.charSpacing,t.underline=e.underline,t.textTransform=e.textTransform,t.textScript=e.textScript,t.fontStyle=e.fontStyle,t.postscriptName=e.postscriptName,t.fontSize=23;const r=`${o.Rl()}.png`;return a.Z.characterStyleToPNG(t,r)}_createOrUpdateTextStyleElement(e,t,r,n="",o){let a;if(o)o.beginOperation(),n&&(o.name=n),a=o;else{const e=(0,m.In)(t,n,"DL_ADD_TEXT_STYLE_NAME");a=(0,m.MN)(t,e,i.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r})}const s=e.nodeOrStyleRange;return delete e.nodeOrStyleRange,this._createThumbnail(s).then((t=>{o&&o.removeAllRepresentations();a.createRepresentation(i.Z.CHARACTER_STYLE_REPRESENTATION,"primary").setValue(W,$,e);const r=a.createRepresentation("image/png","rendition");return r.setContentFromPath(t,!0).catch((()=>r.setContentFromPath(t)))})).then((()=>a)).catch((e=>(O.Z.log(e),a&&!o&&(t.removeElement(a,!0),a=null),Promise.reject(e)))).finally((()=>{a&&a.endOperation()}))}createOrUpdateElementFromAsset(e,t,r,n){const i=e.getPrimaryRepresentation().getValue(W,$);return this._createOrUpdateTextStyleElement(i,t,r,e.name,n).then((e=>({element:e})))}getCustomRenderer(){if(a.Z.renditionService)return Y}defaultEditOperation(e){if(e.library.isDocumentAssets)return a.Z.editCharacterStyle(e)}searchAdditionalElementData(){return!1}}var q,X,J=r(86423);function Q(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ee=(0,I.Pi)((Q((X=class extends G{get gradientData(){const e=A.Z.findUsableRepresentation(this.props.element,i.Z.GRADIENT_REPRESENTATION_TYPE);return e&&e.getValue(i.Z.GRADIENT_NAMESPACE,i.Z.GRADIENT_DATA_KEY)}get imageProvider(){if(!this.gradientData)return this._imageProvider;const e=this.props.viewMode,t=this.gradientData,r=t.stops,n=t.opacities,i={width:this.width,height:this.props.height};this._imageProviderType!==e&&this.clearImageProvider(),this._imageProvider||(this._imageProviderType=e,this._imageProvider=a.Z.renditionService.createRadialGradientRenditionProvider(i.width,i.height,a.Z.colorProfile));const o=r.map((e=>e.offset)).join(", "),s=r.map(((e,t)=>{const r=n[t]?n[t].opacity:1;return y.At(e.color,r)})).join(", ");return this._imageProvider.setGradientInfo(s,o),this._imageProvider}get shouldDebounceWidthUpdate(){return"list"!==this.props.viewMode}get containerClassName(){return"xd-renderer-container-transparent"}}).prototype,"gradientData",[n.computed],Object.getOwnPropertyDescriptor(X.prototype,"gradientData"),X.prototype),Q(X.prototype,"imageProvider",[n.computed],Object.getOwnPropertyDescriptor(X.prototype,"imageProvider"),X.prototype),q=X))||q;class te extends J.Z{_canReceiveGradient(e,t){return!("fill"!==t||e instanceof a.Z.Line||e instanceof a.Z.Text)}_getGradientApplyModes(){const e=a.Z.getSelection(),t=[];return e.length>0&&e.some((e=>this._canReceiveGradient(e,"fill")))&&t.push("fill"),t}_setGradient(e,t,r){if(this.isDisabled(e))return;const n=(0,f.D3)(e);a.Z.applyColorToSelection(r,n,e);const i=this._config.findUsableRepresentation(e);(0,m.vM)(i)}_getGradientsFromSelection(e){const t=[];return e&&1===e.length?((0,d.ex)((e=>{if(this._canReceiveGradient(e,"fill")){const r=e.fillEnabled&&e.fill;(r instanceof a.Z.LinearGradient||r instanceof a.Z.RadialGradient)&&t.push((0,d.Ed)(r,e.localBounds))}}),{visitNonEditable:!0,skipChildren:!0},e),t):[]}getApplyOperations(e){return this._getGradientApplyModes().map((t=>({name:`DL_SET_${t.toUpperCase()}_GRADIENT_TOOLTIP`,apply:t=>this._setGradient(e,t,"fill"),onClick:"fill"===t,displayInMenu:!0})))}getAddOperations(e){return this._getGradientsFromSelection(e).map((e=>({name:"DL_TYPE_GRADIENT_SINGULAR",style:Object.assign((0,y.mr)(e,!1,!1),{border:"1px solid",width:"14px",height:"14px",margin:"1px 8px 1px 0px"}),apply:(t,r)=>this._createOrUpdateGradientElement(e,t,r)})))}_createOrUpdateGradientElement(e,t,r,n="",o){o&&(o.beginOperation(),o.removeAllRepresentations(),o.name=n||o.name);const a=n||(0,m.In)(t,n,this.typeNameSingular),s=o||(0,m.MN)(t,a,i.Z.GRADIENT_ELEMENT_TYPE,{opType:r});return s.createRepresentation(i.Z.GRADIENT_REPRESENTATION_TYPE,"primary").setValue(i.Z.GRADIENT_NAMESPACE,i.Z.GRADIENT_DATA_KEY,e),s.endOperation(),Promise.resolve(s)}isDisabled(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(i.Z.GRADIENT_NAMESPACE,i.Z.GRADIENT_DATA_KEY);return!t||!r}createOrUpdateElementFromAsset(e,t,r,n){const i=e.getPrimaryRepresentation().getValue("gradient","data");return this._createOrUpdateGradientElement(i,t,r,e.name,n).then((e=>({element:e})))}getCustomRenderer(e){if(e.library.isDocumentAssets&&a.Z.renditionService){const t=A.Z.findUsableRepresentation(e,i.Z.GRADIENT_REPRESENTATION_TYPE),r=t&&t.getValue(i.Z.GRADIENT_NAMESPACE,i.Z.GRADIENT_DATA_KEY);if(r&&"radial"===r.type)return ee}}defaultEditOperation(e){if(e.library.isDocumentAssets)return a.Z.editColor(e)}}var re,ne,ie=r(53784),oe=r(73306);const ae="backgroundColorChanged",se=[16777215,4294967295];let ce=(0,I.Pi)((le=(ne=class extends G{constructor(...e){super(...e),this._backgroundAtom=new n.Atom("backgroundAtom"),this.onBackgroundColorChange=()=>this._backgroundAtom.reportChanged()}componentDidMount(){super.componentDidMount(),this.screenColorProfileDisposer=(0,n.reaction)((()=>a.Z.screenColorProfile),(e=>{this.updateImageProviderWithTargetColorSpace(e)}))}componentWillUnmount(){var e;null===(e=this.screenColorProfileDisposer)||void 0===e||e.call(this),super.componentWillUnmount()}componentDidUpdate(e){super.componentDidUpdate(),e.element!==this.props.element&&this.clearImageProvider()}get contrastBackground(){this._backgroundAtom.reportObserved();const e=this._imageProvider&&this._imageProvider.backgroundColor;return void 0!==e&&!se.includes(e)}clearImageProvider(){var e,t;null===(e=this._imageProvider)||void 0===e||null===(t=e.events)||void 0===t||t.off(ae,this.onBackgroundColorChange),super.clearImageProvider()}get imageProvider(){const e=this.props.viewMode;let t={width:this.width,height:this.props.height};if("list"===e){const e=i.Z.LIST_VIEW_ELEMENT_THUMBNAIL_HEIGHT;t={width:e,height:e}}t.width-=2*this.padding,t.height-=2*this.padding;const r=this.props.element&&this.props.element.id;return!this._imageProvider||this._imageProvider.id===r&&this._imageProviderType===e||this.clearImageProvider(),this._imageProvider||(this._imageProviderType=e,this._imageProvider=this.props.element.getRenditionProvider(t.width,t.height),this._imageProvider.events.on(ae,this.onBackgroundColorChange),this.onBackgroundColorChange()),this._imageProvider}get scaleToFit(){return"list"!==this.props.viewMode}get shouldDebounceWidthUpdate(){return"list"!==this.props.viewMode}get shouldHandleScreenColorProfileChange(){return!0}get padding(){return"list"===this.props.viewMode?1:6}get containerClassName(){return C()(super.containerClassName,{contrast:this.contrastBackground})}}).prototype,ue="imageProvider",pe=[n.computed],de=Object.getOwnPropertyDescriptor(ne.prototype,"imageProvider"),he=ne.prototype,fe={},Object.keys(de).forEach((function(e){fe[e]=de[e]})),fe.enumerable=!!fe.enumerable,fe.configurable=!!fe.configurable,("value"in fe||fe.initializer)&&(fe.writable=!0),fe=pe.slice().reverse().reduce((function(e,t){return t(le,ue,e)||e}),fe),he&&void 0!==fe.initializer&&(fe.value=fe.initializer?fe.initializer.call(he):void 0,fe.initializer=void 0),void 0===fe.initializer&&(Object.defineProperty(le,ue,fe),fe=null),re=ne))||re;var le,ue,pe,de,he,fe;class me extends ie.Z{constructor(...e){super(...e),this.editItemLabel="DL_EDIT_COMPONENT",this.editInSourceLabel="DL_EDIT_COMPONENT_IN_SOURCE",this.publishToLibraryLabel="DL_PUBLISH_LIBRARY_IN_SOURCE"}_getDragAndComponentData(e){const t=e.getPrimaryRepresentation();let r=oe.Z.prototype.getDragData.call(this,e);r?r.data=[a.Z.normalizePath(r.data[0])]:t.type!==a.Z.documentLibraryConstants.XD_COMPONENT_CONTAINER_TYPE&&t.type!==a.Z.documentLibraryConstants.NXD_COMPONENT_CONTAINER_TYPE||(r={},r.imageUIDToPathMap=[],t.children.forEach((e=>{const t=e.getCachedContentPath();if(t){const n=a.Z.normalizePath(t);if(e.type===i.Z.AGC_REPRESENTATION_TYPE||e.type===i.Z.NXD_REPRESENTATION_TYPE)r.data=[n];else{const t={uid:e.getValue("xd","uid"),imagePath:n};r.imageUIDToPathMap.push(t)}}}))),r=Object.assign(r||{},{elementRef:e.getReference(),elementId:e.id,libraryId:e.library.id});const n=t&&(t.getValue("symbol","data")||t.getValue("xd","data"));return n&&n.symbolId&&(r=Object.assign(r,{symbolId:n.symbolId})),r}getApplyOperations(e){return e.getPrimaryRepresentation()?[{name:"DL_ADD_COMPONENT_TO_DOC_AS_COPY",icon:"download",isDraggable:!0,apply:()=>{const t=this._getDragAndComponentData(e);return a.Z.addComponentToCanvas(e,t)},displayInMenu:!1}]:[]}_getComponentsFromSelection(e){const t=[];return e&&1===e.length?(d.ex((e=>{d.pE(e)&&t.push(e)}),{visitNonEditable:!0,skipChildren:!0},e),t):[]}getAddOperations(e){return this._getComponentsFromSelection(e).map((e=>({name:"DL_TYPE_COMPONENT_SINGULAR",icon:"AddComponent",apply:(t,r)=>{try{return(0,f.dC)(i.Z.COMPONENT_ELEMENT_TYPE,e,t,r,null,!0)}catch(e){return console.error("Error cloning XD node",e),Promise.reject(e)}}})))}getDragData(e){return this._getDragAndComponentData(e)}isDisabled(e){return!this._config.findUsableRepresentation(e)}createOrUpdateElementFromAsset(e,t,r,n){if(!e||!t)return Promise.reject("Missing DocumentElement or LibraryModel");const o=e.getPrimaryRepresentation();if(!o)return Promise.reject("Element has no AGC representation");const a=o.getValue("symbol","data");return a?(0,f.dC)(i.Z.COMPONENT_ELEMENT_TYPE,a,t,r,n,!0):Promise.reject("Element has no symbol data")}getCustomRenderer(e){if(e.library.isDocumentAssets&&a.Z.renditionService)return ce}defaultEditOperation(e){if(e.library.isDocumentAssets)return a.Z.editMasterComponent(e)}getAdditionalTooltipData(e){if(this.isDisabled(e))return{createdIn:void 0,representationType:void 0,description:(0,c.Iu)("DL_XD_COMPONENT_NOT_SUPPORTED")};if(!e.library.isDocumentAssets)return{};const t=a.Z.getAssetInstanceCount(e),r=t>1?"DL_ASSET_INSTANCES_PLURAL":"DL_ASSET_INSTANCES_SINGULAR";return{createdIn:void 0,representationType:void 0,instances:(0,c.Iu)(t?r:"DL_ASSET_NO_INSTANCES",{instances:t})}}}var ge=r(70232),ve=r(74149);class ye extends ge.Z{_addAudioToDocument(e){const t=e.getPrimaryRepresentation();t.getContentPath().then((r=>{const n={guid:t.getValue("audio","data").guid,displayName:e.name,path:r};a.Z.addAudioToDocument(n,e)})),(0,m.vM)(t)}getApplyOperations(e){return!e.getPrimaryRepresentation()||this.isDisabled(e)?[]:[!e.library.isDocumentAssets&&{name:"DL_PLACE",icon:"download",apply:()=>this._addAudioToDocument(e),displayInMenu:!0}]}createOrUpdateElementFromAsset(e,t,r,n){if(n)return Promise.resolve({element:n});const i=e.getPrimaryRepresentation(),o=i.getValue("audio","data"),a=i._representation.getCachedContentPath(o.guid),s=i._representation.getDisplayName(o.guid),c=[{path:a,relationship:"primary",data:[{namespace:"audio",key:"data",value:{guid:o.guid}}]}];return(0,ve.GT)(s,c,t,r).then((e=>({element:e})))}}var be=r(4328),_e=r(62061);const Ee=26214400;class we extends be.Z{isDisabled(e){const t=e.getPrimaryRepresentation(),r=this._config.findUsableRepresentation(e)||t;return!r||"video/mp4"!==r.type||r.contentLength>Ee}getAdditionalTooltipData(e){const t={};t.type=super.getExtension(e),"mp4"!==t.type&&(t.description=(0,c.Iu)("DL_XD_ADD_VIDEO_FILE_FORMAT_NOT_SUPPORTED_TOOLTIP"));const r=e.getPrimaryRepresentation(),n=this._config.findUsableRepresentation(e)||r;if(n){if(n.contentLength&&(t.filesize=_e.d3(n.contentLength),n.contentLength>Ee)){const e="25",r=(0,c.Iu)("DL_FILESIZE_MB",{size:e});t.description?t.description+="\n"+(0,c.Iu)("DL_XD_ADD_VIDEO_FILE_TOO_BIG_TOOLTIP",{filesize:r}):t.description=(0,c.Iu)("DL_XD_ADD_VIDEO_FILE_TOO_BIG_TOOLTIP",{filesize:r})}const e=n.getValue("video","data")||{};e.duration&&(t.duration=_e.zW(e.duration))}return t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.type,i=e.duration,o=e.filesize,a=e.description;return[t,r,n&&(0,c.Iu)("DL_XD_VIDEO_TYPE_TOOLTIP",{type:n}),i&&(0,c.Iu)("DL_XD_VIDEO_DURATION_TOOLTIP",{duration:i}),o&&(0,c.Iu)("DL_XD_VIDEO_SIZE_TOOLTIP",{filesize:o}),a&&{divider:!0},a]}createOrUpdateElementFromAsset(e,t,r,n){if(n)return n.name=e.name,Promise.resolve({element:n});const i=e.getPrimaryRepresentation(),o=i.getValue("video","data"),a=i._representation.getCachedContentPath(o.guid),s=i._representation.getDisplayName(o.guid),c=[{path:a,relationship:"primary",data:[{namespace:"video",key:"data",value:{guid:o.guid,displayName:s}}]}];return(0,ve.$J)(e.name,c,void 0,t,r).then((e=>({element:e})))}getDragData(e){if(this.isDisabled(e))return;const t=e.getPrimaryRepresentation(),r=t.getValue("video","data");let n=super.getDragData(e);if(n)n.data=[a.Z.normalizePath(n.data[0])],n.isLinked=!0;else{const e=t._representation.getCachedContentPath(r.guid);n=Object.assign({},{data:[a.Z.normalizePath(e)],isLinked:!1})}return n=Object.assign(n||{},{elementRef:e.getReference(),elementId:e.id,libraryId:e.library.id,modifiedTime:(0,m.RW)(e),hasLinkReference:Boolean(e.linkReference),guid:r?r.guid:"",displayName:r?r.displayName:null}),n}}var Le=r(27611),xe=r(99767);class Se extends T.Component{constructor(...e){super(...e),this._toggleCollapsed=()=>{a.Z.toggleMissingFontsCollapsed()}}get title(){return T.createElement("div",{"data-test-id":"xd-missing-fonts-title",className:"xd-missing-fonts-title"},(0,c.Iu)("ASSETS_PANEL_MISSING_FONT_TITLE",{count:this.props.missingFontsCount}))}get warnIcon(){return T.createElement(xe.Z,{placement:"top-start",content:(0,c.Iu)("DL_FONTS_MISSING_TOOLTIP")},T.createElement("div",{"data-test-id":"xd-missing-fonts-warn-icon",className:"xd-missing-fonts-warn-icon element-badge-warning-missing"},T.createElement(Le.Z,{id:"MissingFontWarning",height:18,width:18})))}get collapseChevron(){return T.createElement("div",{"data-test-id":"xd-missing-fonts-collapse-chevron",className:"xd-missing-fonts-collapse-chevron",onClick:this._toggleCollapsed},T.createElement(Le.Z,{id:this.props.collapsed?"ChevronRightSmall":"ChevronDownSmall",height:8}))}render(){return T.createElement("div",{"data-test-id":"xd-missing-fonts-header",className:"xd-missing-fonts-header"},this.collapseChevron,this.title,this.warnIcon)}}Se.propTypes={collapsed:N().bool.isRequired,missingFontsCount:N().number.isRequired};var Oe,Te,Ie,Pe,Ce=r(99409),Ae=r(93443);function ke(){return ke=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},ke.apply(this,arguments)}function De(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ne=(0,I.Pi)((Pe=class extends T.Component{constructor(...e){super(...e),function(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})}(this,"isSelected",Ie,this),this._handleContextMenu=e=>{if(a.Z.setContextMenu){e.stopPropagation();const t=[{id:"replaceFont",label:(0,c.Iu)("DL_REPLACE_FONT"),onClick:()=>this.props.missingFont.replace(),enableMenu:this.props.missingFont.replaceFontAllowed},{id:"highlight",label:(0,c.Iu)("DL_HIGHLIGHT_ON_CANVAS"),onClick:()=>this.props.missingFont.highlight(),enableMenu:!0}];Ce.Z.openContextMenu(t,e)}},this._onBlur=()=>{this.isSelected=!1},this._onClick=()=>{this.isSelected=!0}}get contents(){const e=this.props.missingFont.fontFamily||(0,c.Iu)("DL_INFO_UNAVAILABLE_FONT"),t=this.props.missingFont.fontStyle||"",r=this.props.missingFont.numInstances,n=r?r>1?"DL_ASSET_INSTANCES_PLURAL":"DL_ASSET_INSTANCES_SINGULAR":"DL_ASSET_NO_INSTANCES",i=`${e} ${t} — ${(0,c.Iu)(n,{instances:r})}`;return T.createElement("div",{"data-test-id":"xd-missing-font-view-contents",className:"panel-grid-item-multiline-container"},T.createElement("div",{className:"xd-missing-font-view-contents"},i))}get icon(){if("list"===this.context.viewState.viewState)return T.createElement("div",{className:"panel-list-item-thumb"},T.createElement("div",{"data-test-id":"thumbnail-failed-icon",className:"panel-no-rendition-holder-list"},T.createElement("span",{className:"panel-no-rendition-icon panel-list-icon-missing-rendition"},T.createElement(Le.Z,{id:"CreativeCloud",height:20}))))}render(){return T.createElement("div",ke({ref:e=>this.props.missingFont.register(e),"data-test-id":"xd-missing-font-view",className:C()(`xd-missing-font-${this.context.viewState.viewState}-view`,"interactive",{selected:this.isSelected}),onBlur:this._onBlur,tabIndex:"0",onClick:this._onClick},a.Z.contextMenuEventListeners(this._handleContextMenu)),this.icon,this.contents)}},Pe.contextType=R.r,Pe.propTypes={missingFont:N().instanceOf(Ae.Z).isRequired},Ie=De((Te=Pe).prototype,"isSelected",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),De(Te.prototype,"contents",[n.computed],Object.getOwnPropertyDescriptor(Te.prototype,"contents"),Te.prototype),Oe=Te))||Oe;var Re,Me;let je=(0,I.Pi)(((Me=class extends T.Component{render(){return T.createElement("div",{"data-test-id":"xd-missing-fonts-container",className:`xd-missing-fonts-${this.context.viewState}-container`},this.props.missingFonts.map((e=>T.createElement(Ne,{key:e.id,missingFont:e}))))}}).propTypes={missingFonts:N().array.isRequired},Re=Me))||Re;var Ze,Fe,Be,Ge,Ue=r(6535);function ze(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ve=(0,I.Pi)((Ge=class extends T.Component{constructor(...e){super(...e),function(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})}(this,"isOverflow",Be,this),this.setIsScrollable=()=>{this._missingFontsContainerRef&&(this.isOverflow=this._missingFontsContainerRef._lastChild.scrollHeight>this._missingFontsContainerRef._lastChild.clientHeight)},this.setMissingFontsContainerRef=e=>{this._missingFontsContainerRef=e}}get missingFonts(){return this.props.library&&this.props.library.isDocumentAssets&&a.Z.getMissingFonts?a.Z.getMissingFonts():[]}get collapsed(){return a.Z.getMissingFontsCollapsed()}componentDidMount(){window.addEventListener("resize",this.setIsScrollable)}componentWillUnmount(){window.removeEventListener("resize",this.setIsScrollable)}render(){if(0===this.missingFonts.length)return null;const e=C()("xd-missing-fonts-footer",{"xd-missing-fonts-scroll-line":this.isOverflow});return T.createElement(T.Fragment,null,T.createElement("div",{ref:this.setMissingFontsContainerRef,"data-test-id":"xd-missing-fonts",className:"xd-missing-fonts"},T.createElement(Se,{collapsed:this.collapsed,missingFontsCount:this.missingFonts.length}),!this.collapsed&&T.createElement(je,{missingFonts:this.missingFonts})),!this.collapsed&&T.createElement("div",{"data-test-id":e,className:e}))}},Ge.propTypes={library:N().oneOfType([N().instanceOf(j.Zu),N().instanceOf(Ue.Z)]).isRequired},Be=ze((Fe=Ge).prototype,"isOverflow",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ze(Fe.prototype,"missingFonts",[n.computed],Object.getOwnPropertyDescriptor(Fe.prototype,"missingFonts"),Fe.prototype),Ze=Fe))||Ze;var He=r(51461),Ye=r(69233),We=r(48919),$e=r(69377),Ke=r(11437),qe=r(75623),Xe=r(27299);class Je{constructor(e){this._representation=e,this._changeAtom=this.element._changeAtom}get id(){return this._representation.id}get element(){return(0,$e.gh)(this._representation.element)}get type(){return this._changeAtom.reportObserved(),a.Z.representationTypeMap[this._representation.type]||this._representation.type}get relationship(){return this._changeAtom.reportObserved(),this._representation.relationship}get width(){return this._changeAtom.reportObserved(),this._representation.width}get height(){return this._changeAtom.reportObserved(),this._representation.height}getValues(){return this._representation.getValues?this._representation.getValues():[]}getValue(e,t){this._changeAtom.reportObserved();const r=this._representation.getValue("gradient"===e?"color":e,t);if(r){if("color"===e&&"data"===t)return(0,d.b6)(r);if("gradient"===e&&"data"===t)return(0,d.Ed)(r);if("characterstyle"===e&&"data"===t)return(0,d.Qw)(r)}return r}isCompatibleType(e){return this._changeAtom.reportObserved(),this.type===e}getExternalLinkDownloadProgress(){return 100}getCachedContentPath(){}}var Qe=r(53849),et=r(10440);function tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function rt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function nt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rt(o,n,i,a,s,"next",e)}function s(e){rt(o,n,i,a,s,"throw",e)}a(void 0)}))}}function it(){return this.config={},this.config.APP_NAMESPACE="xd",this.config.code="SPRK",this.config.translationSuffix="XD",this.config.fullName="XD",this.config.dragDropSource="com.adobe.xd",this.config.themes={f5f5f5:"lighter"},this.config.cancelButtonQuiet=!0,this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="lighter",this.config.hideCustomSearchIcon=!0,this.config.hideDefaultSearchCancelIcon=!0,this.config.customClearSearchIconHeight=12,this.config.noFlyoutMenu=!0,this.config.hideHeaderCreateLibraryButton=!0,this.config.hasLibraryManager=!0,this.config.disableRecentLibrariesView=!0,this.config.disableEditOnDoubleClickAsset=!0,this.config.customTextStyleTrackingString="DL_TEXT_ATTRIBUTE_TRACKING_XD",this.config.customTextStyleLeadingString="DL_TEXT_ATTRIBUTE_LEADING_XD",this.config.defaultToDocumentAssets=!0,this.config.defaultViewState="list",this.config.defaultViewByState="group",this.config.hideFooterInRootView=!0,this.config.hideNamesInGridView=!1,this.config.hideListViewMetadata=!0,this.config.applyElementOnNameClick=!0,this.config.enableSAM=!0,this.config.disableOnboarding=!0,this.config.showTeamsOnboarding=!0,this.config.listViewElementHeight=32,this.config.smallColorGridElement=!0,this.config.getScrollTopPadding=()=>7,this.config.getScrollBarPadding=()=>1,this.config.gridRightPadding=4,this.config.AdditionalLibraryHeaderView=Ve,this.config.elementTypes=[b,p.Z.ColorThemeElementConfig,te,K,p.Z.FontElementConfig,me,g,we,ye,p.Z.LayerStyleElementConfig,p.Z.BrushElementConfig,p.Z.ThreeDElementConfig,p.Z.PatternElementConfig,p.Z.TemplateElementConfig,p.Z.LookElementConfig,p.Z.CapsuleElementConfig,p.Z.ParagraphStyleElementConfig,p.Z.TextElementConfig,p.Z.AnimationElementConfig,p.Z.LightElementConfig,p.Z.MaterialElementConfig,p.Z.ChannelElementConfig,p.Z.ImageGuidelineElementConfig,p.Z.UnsupportedElementConfig],this.config.hideSearchSelectorOnSearch=!0,this.config.collapsedTypes=[i.Z.BRUSH_ELEMENT_TYPE,i.Z.CHANNEL_ELEMENT_TYPE,i.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,i.Z.LAYER_STYLE_ELEMENT_TYPE,i.Z.LOOK_ELEMENT_TYPE,i.Z.CAPSULE_ELEMENT_TYPE,i.Z.THREE_D_ELEMENT_TYPE,i.Z.LIGHT_ELEMENT_TYPE,i.Z.MATERIAL_ELEMENT_TYPE,i.Z.PATTERN_ELEMENT_TYPE,i.Z.TEMPLATE_ELEMENT_TYPE,i.Z.TEXT_ELEMENT_TYPE,i.Z.ANIMATION_ELEMENT_TYPE,i.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,i.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.STOCK_SEARCH_UI_OPTIONS=[i.Z.STOCK_SEARCH_OPTION_PHOTO,i.Z.STOCK_SEARCH_OPTION_ILLUSTRATION,i.Z.STOCK_SEARCH_OPTION_VECTOR,i.Z.STOCK_SEARCH_OPTION_PREMIUM],this.config.translationOverrides={EMPTY_ROOT_VIEW_MESSAGE:"EMPTY_ROOT_VIEW_MESSAGE_XD",EMPTY_ROOT_VIEW_CTA:"EMPTY_ROOT_VIEW_CTA_XD"},this.config.reportSDMEvent=function(e){a.Z.reportSDMEvent(e)},this.config.requestPublish=nt(tt().mark((function e(){var t,r,n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=6,r=1;case 2:if(!(r<=t)){e.next=22;break}return e.prev=3,e.next=6,a.Z.requestPublishStart();case 6:if(!(n=e.sent)){e.next=9;break}return e.abrupt("return",n);case 9:e.next=18;break;case 11:if(e.prev=11,e.t0=e.catch(3),r!==t){e.next=15;break}throw e.t0;case 15:return e.next=17,(0,M.gw)(Math.pow(14,r));case 17:return e.abrupt("continue",19);case 18:throw new Error("Request to publish failed due to a coeditor requesting to publish first");case 19:r++,e.next=2;break;case 22:case"end":return e.stop()}}),e,null,[[3,11]])}))),this.config.notifyPublishEnd=()=>a.Z.notifyPublishEnd(),this.config.isElementEditable=function(e){return e.library.isDocumentAssets&&[i.Z.COLOR_ELEMENT_TYPE,i.Z.GRADIENT_ELEMENT_TYPE,i.Z.COMPONENT_ELEMENT_TYPE,i.Z.CHARACTER_STYLE_ELEMENT_TYPE].includes(e.type)},this.config.disableDelete=function(e){const t=e.filter((e=>e.library.isDocumentAssets));return t.length&&!a.Z.canDeleteAssets(t)},this.config.handleDiscoverLibraries=()=>{const e=(0,u.LP)();He.ZP.reportOutgoingUrlEvent("Navigation","Root view","click","get-ui-kits",e)},this.config.shouldShowExtensionInSearch=e=>!!e.library.isDocumentAssets,this.config.customCollapseGroupWithModifierKey=(e,t)=>{if(!(a.Z.isWindowsOS()?e.ctrlKey:e.metaKey))return!1;const r=We.Z.panel.viewState,n=r.isGroupCollapsed(t.id);return Ye.GN(t.library).forEach((e=>{Ye.ez(e,{shouldCollapse:!n,expandNonMeaningfulChildren:!1}),r.setGroupCollapsed(e.id,!n)})),!0},this.config.disabledLibraryContextMenuActions=["export"],this.config.customGroupLearnMoreLink=i.Z.XD_GROUP_LEARN_MORE,this.init=function(){(0,$e.T9)({DocumentAssetsContainer:Ke.Z,DocumentGroup:qe.Z,DocumentElement:Xe.Z,DocumentRepresentation:Je}),o.Zh(i.Z.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.element.agc+json","image/png","image/jpeg","image/jpg","image/svg+xml","application/illustrator"]),o.Zh(i.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),o.Zh(i.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),o.Zh(i.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),o.Zh(i.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient+json"]),a.Z.isXDFeatureFlagEnabled("newFileFormat")?o.Zh(i.Z.COMPONENT_ELEMENT_TYPE,["application/vnd.adobe.element.agc+json","application/vnd.adobe.xdcomponent+dcx","application/vnd.adobe.nxdcomponent+dcx"]):o.Zh(i.Z.COMPONENT_ELEMENT_TYPE,["application/vnd.adobe.element.agc+json","application/vnd.adobe.xdcomponent+dcx"]),o.Zh(i.Z.AUDIO_ELEMENT_TYPE,["audio/mpeg","audio/mpeg3","audio/mp3","audio/wav"]),o.Zh(i.Z.VIDEO_ELEMENT_TYPE,["video/mp4"]),this.startEventListener()},this.getDocumentAssetsContainer=()=>(0,$e.GT)(a.Z.getDocumentAssetsContainer()),this.onSelectionChange=()=>{try{s.Z.handleSelectionChange()}catch(e){}},this.onElementDrop=e=>{try{e.items.forEach(function(){var e=nt(tt().mark((function e(t){var r,n,i,o;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._parsedCCLibraryData,e.next=3,l.ZP.resolveElementReference(r.elementRef);case 3:(n=e.sent)||(i=l.ZP.getLibraryById(r.libraryId),n=i&&i.getElementById(r.elementId)),(o=n&&n.getPrimaryRepresentation())&&(0,m.vM)(o,"dragDrop");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.Z._notifyEventListeners("dlElementDropped",{data:e})}catch(e){}},this.publishStateListenerDisposers=[],this.addPublishStateEventListener=function(e,t){this.publishStateListenerDisposers.push((0,n.reaction)((()=>l.ZP.publishStatus),(r=>r===e&&t())))},this.removeAllPublishStateEventListeners=function(){this.publishStateListenerDisposers.forEach((e=>e()))},this.isPublishingHandler=()=>{a.Z.dismissToastMessage((0,c.Iu)("PENDING_UPDATE_TOAST_MESSAGE"),(0,c.Iu)("PENDING_UPDATE_TOAST_ACTION_LABEL"))},this._upgradeOrUpdateToastAction=e=>{e?a.Z.handleUpgradeButtonClicked():(He.ZP.reportEvent("Publish","Toast","click","publish-now",{event:{count:l.ZP.publishedDocumentLibrary.getGroups().length}}),l.ZP.publish(l.ZP.documentAssetsContainer).catch((()=>{})))},this.onPendingUpdate=()=>{if(a.Z.isPreviewing()||!l.ZP.publishState.canPublish)return;const e=l.ZP.publishedDocumentLibrary;if(e&&e.isWritable&&!e.syncError){const e=l.ZP.isStarterPlanUser;a.Z.openApplicationToast(e?(0,c.Iu)("DL_UPGRADE_TOAST_MESSAGE"):(0,c.Iu)("PENDING_UPDATE_TOAST_MESSAGE"),{variant:"info",actionLabel:e?(0,c.Iu)("DL_UPGRADE_TOAST_LABEL"):(0,c.Iu)("PENDING_UPDATE_TOAST_ACTION_LABEL"),onAction:this._upgradeOrUpdateToastAction.bind(this,e)})}},this.addSubscriptionChangeListener=e=>{this.subscriptionListenerDisposer=(0,n.when)((()=>e&&!l.ZP.isStarterPlanUser),(()=>this.onPendingUpdate))},this.removeSubscriptionChangeListener=()=>{this.subscriptionListenerDisposer&&this.subscriptionListenerDisposer()},this.onInviteSent=(e,t)=>{if("inviteSent"===t){const t={event:{pagename:void 0,value:l.ZP.publishedDocumentLibrary&&l.ZP.publishedDocumentLibrary.assetId.includes(e)?"document-library":"library"}};He.ZP.reportEvent("Manager","Sharesheet","click","share",t)}},this._onSelectionStateChange=function(){const e=Qe.Z.selection,t=et.Z.groupSelection;a.Z.notifySelectionChange(e,t)},this._selectionStateListenerDisposers=[],this.addSelectionStateEventListener=function(e){this._selectionStateListenerDisposers.push((0,n.reaction)((()=>Qe.Z.selection),e))},this.removeAllSelectionStateEventListeners=function(){this._selectionStateListenerDisposers.forEach((e=>e()))},this.startEventListener=function(){a.Z.addSelectionListener(this.onSelectionChange),a.Z.addTextEditListener(this.onSelectionChange),a.Z.addDropEventListener(this.onElementDrop),this.addPublishStateEventListener(i.Z.DOCUMENT_LIBRARY_STATES.UNPUBLISHED_CHANGES,this.onPendingUpdate),this.addPublishStateEventListener(i.Z.DOCUMENT_LIBRARY_STATES.PUBLISHING,this.isPublishingHandler),a.Z.addInviteEventListener(this.onInviteSent),a.Z.addIsPaidUserListener(this.addSubscriptionChangeListener),this.addSelectionStateEventListener(this._onSelectionStateChange)},this.stopEventListener=function(){a.Z.removeSelectionListener(this.onSelectionChange),a.Z.removeTextEditListener(this.onSelectionChange),a.Z.removeDropEventListener(this.onElementDrop),this.removeAllPublishStateEventListeners(),a.Z.removeInviteEventListener(this.onInviteSent),a.Z.removeIsPaidUserListener(this.removeSubscriptionChangeListener),this.removeAllSelectionStateEventListeners()},this.getUserData=e=>e(),this.getAdditionalMenuItems=e=>{if(e.library.isDocumentAssets&&e.type!==i.Z.AUDIO_ELEMENT_TYPE)return[{label:"DL_HIGHLIGHT_ON_CANVAS",onClick:()=>{He.ZP.reportElementEvent("Element Operations","Element","click","highlight-on-canvas",e,{event:{value:"single",count:1},content:{category:"Right Click"}}),a.Z.highlightOnCanvas(e)}}]},this}},93443:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n,i=r(76485),o=r(50265);function a(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let s=(a((n=class{constructor(e){this._element=e;const t=this._element.getPrimaryRepresentation();this._data=t?t.getValue("missingfont","data"):void 0}get id(){return this._element.id}get fontFamily(){return this._data&&this._data.fontFamily?this._data.fontFamily:void 0}get fontStyle(){return this._data&&this._data.fontStyle?this._data.fontStyle:void 0}get replaceFontAllowed(){return i.Z.getAssetInstanceCount&&i.Z.getAssetInstanceCount(this._element,!0)>0}get numInstances(){return i.Z.getAssetInstanceCount&&i.Z.getAssetInstanceCount(this._element)}register(e){i.Z.registerElementNode&&i.Z.registerElementNode(this,e)}highlight(){i.Z.highlightOnCanvas&&i.Z.highlightOnCanvas(this._element)}replace(){i.Z.replaceFont&&i.Z.replaceFont(this._element)}}).prototype,"replaceFontAllowed",[o.computed],Object.getOwnPropertyDescriptor(n.prototype,"replaceFontAllowed"),n.prototype),a(n.prototype,"numInstances",[o.computed],Object.getOwnPropertyDescriptor(n.prototype,"numInstances"),n.prototype),n)},11437:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,i,o,a=r(50265),s=r(69377),c=r(84824),l=r(6535),u=r(76485),p=r(48919);function d(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let h=(n=a.action.bound,i=a.action.bound,d((o=class extends l.Z{constructor(e){super({}),this.isWritable=!0,this._batchableOperations=["delete","reorder"],this._pendingOperations={},this._operationCount=0,this._xdOperationsInProgress=new Set,this._pendingChangeCallbacks=new Set,this._changeCount=0,this._library=e,this._changeAtom=new a.Atom("documentLibraryChange",(()=>this._isObserved=!0),(()=>this._isObserved=!1)),this._library._ccLibrariesEventListener&&this._library.removeChangeListener(this._library._ccLibrariesEventListener),this._library._ccLibrariesEventListener=this._onChange,this._library.addChangeListener(this._onChange);const t=u.Z.documentLibraryConstants;this._beginOperationEvents={[t.BEGIN_BULK_OPERATION]:"bulk",[t.RESTART_BULK_OPERATION_TO_RENDER]:"bulk",[t.LINKED_ELEMENTS_IMPORT_START]:"import"},this._endOperationEvents={[t.END_BULK_OPERATION]:"bulk",[t.EDIT_BATCH_FINISHED]:"bulk",[t.PAUSE_BULK_OPERATION_TO_RENDER]:"bulk",[t.LINKED_ELEMENTS_IMPORT_END]:"import"},this._ignoreEvents=[t.ASSETS_PANEL_DISMISS_EDITOR,t.ASSETS_PANEL_DISMISS_MISSING_FONTS_EDITOR],this._bulkOperationLabels={GROUP_TOGETHER:(0,c.Iu)("DL_NEW_GROUP"),REORDER:(0,c.Iu)("DL_REORDER"),UNGROUP:(0,c.Iu)("DL_UNGROUP_NESTED_GROUPS")}}on(e,t){this._library.on(e,t)}off(e,t){this._library.off(e,t)}get changeCount(){return this._changeAtom.reportObserved(),this._changeCount}get linkedLibraryId(){if(this._changeAtom.reportObserved(),u.Z.getLinkedLibraryIdFromDocument)return u.Z.getLinkedLibraryIdFromDocument()}_reportChanged(){this._changeCount++,this._changeAtom.reportChanged(),(0,s.zA)(this._library),(0,s.Ir)(this._library)}_scheduleChangeCallback(e){this._xdOperationsInProgress.size>0?this._pendingChangeCallbacks.add(e):e()}_onChange(e,t){if(this._beginOperationEvents[e])this._xdOperationsInProgress.add(this._beginOperationEvents[e]);else if(this._endOperationEvents[e])this._xdOperationsInProgress.delete(this._endOperationEvents[e]);else if(!this._ignoreEvents.includes(e)){if(t){const i=this._getChangedItemById(t,e);i&&i._onChange(e);const o=u.Z.documentLibraryConstants;if([o.GROUP_REMOVED_EVENT,o.ELEMENT_REMOVED_EVENT].includes(e)){var r,n;const e=p.Z.panel.viewManager;(null===(r=e.renamingItem)||void 0===r?void 0:r.id)===t&&e.stopRename(),(null===(n=e.editPathGroup)||void 0===n?void 0:n.id)===t&&e.stopEditPath()}}this._isObserved&&this._scheduleChangeCallback(this._reportChanged)}if(0===this._xdOperationsInProgress.size&&this._pendingChangeCallbacks.size>0){const e=[...this._pendingChangeCallbacks];this._pendingChangeCallbacks.clear(),e.forEach((e=>e()))}}getFilteredElements(e){return this._changeAtom.reportObserved(),this.elements.filter(e)}get id(){return this._library.documentId}get elements(){this._changeAtom.reportObserved();return this._library.elements.map((e=>(0,s.gh)(e)))}get elementCount(){return this._changeAtom.reportObserved(),this._library.elements.length}get pathViewMaxDepth(){return 1}_getChangedItemById(e,t){const r=u.Z.documentLibraryConstants,n={[r.ELEMENT_CHANGED_EVENT]:this.getElementById,[r.GROUP_CHANGED_EVENT]:this.getGroupById};return n[t]?n[t].call(this,e):this.getElementById(e)}getElementById(e){return this._changeAtom.reportObserved(),(0,s.gh)(this._library.getElementById(e))}removeGroup(e,t=!1){this._pendingOperations.reorder?(this._pendingOperations.reorder.push({type:"removeGroup",data:{group:e,includeContents:t}}),this._currentBulkOperationLabel=this._bulkOperationLabels.UNGROUP):(u.Z.deleteGroup(e._group,t),(0,s.pQ)(e))}getGroups(){return this._changeAtom.reportObserved(),this._library.getGroups().map((e=>(0,s.M5)(e)))}getGroupById(e){this._changeAtom.reportObserved();const t=this._library.getGroups().find((t=>t.id===e));if(t)return(0,s.M5)(t)}getGroupCount(){return this._library.getGroups().length}updateLinkedAssets(){u.Z.updateAndAddAllLinkedAssets(this.elements.filter((e=>e.isPendingUpdate||e.newLinkedElementRef)))}get newLinkedAssetsExist(){return this._changeAtom.reportObserved(),this._library.hasPendingLinkedElementsToAdd()}get missingLinks(){return this.elements.filter((e=>e.isMissingLink||e.isDeprecatedLegacyDocumentLink))}get resolvableMissingLinks(){return this.missingLinks.filter((e=>e.isPendingInvite||e.isPendingFollow||e.isDeprecatedLegacyDocumentLink))}removeElement(e){this._pendingOperations.delete?this._pendingOperations.delete.push(e):(u.Z.deleteAssets([e]),(0,s._x)(e))}_getOrderInGroup(e,t){return u.Z.getOrderInGroup(e,t)}_setGroupParent(e,t){this._pendingOperations.reorder?this._pendingOperations.reorder.push({type:"groupParent",data:{group:e,parent:t}}):u.Z.reparentGroup(e,t)}_setGroupOrder(e,t){this._pendingOperations.reorder?this._pendingOperations.reorder.push({type:"groupOrder",data:{group:e,order:t}}):u.Z.reorderGroup(e,t)}_setElementOrder(e,t,r){this._pendingOperations.reorder?this._pendingOperations.reorder.push({type:"elementOrder",data:{asset:e,group:t,order:r}}):u.Z.setOrderInGroup(e,t,r)}_createGroupChild(e,t,r){return this._pendingOperations.reorder&&!this._reorderOpInProgress&&(u.Z.beginOperation(this._bulkOperationLabels.GROUP_TOGETHER),this._pendingOperations.reorder.push({type:"createGroup",data:{}}),this._reorderOpInProgress=!0),u.Z.createGroup(e,t,r)}beginOperation(){this._operationCount++,this._batchableOperations.forEach((e=>{this._pendingOperations[e]=this._pendingOperations[e]||[]}))}endOperation(){if(--this._operationCount>0)return;const e=this._currentBulkOperationLabel||this._bulkOperationLabels.REORDER;this._batchableOperations.forEach((t=>{const r=this._pendingOperations[t];if(r&&r.length)switch(t){case"delete":u.Z.deleteAssets(r),r.forEach(s._x);break;case"reorder":this._reorderOpInProgress||u.Z.beginOperation(e),r.forEach((({type:e,data:t})=>{switch(e){case"elementOrder":u.Z.setOrderInGroup(t.asset,t.group,t.order);break;case"groupOrder":u.Z.reorderGroup(t.group,t.order);break;case"groupParent":u.Z.reparentGroup(t.group,t.parent);break;case"removeGroup":u.Z.deleteGroup(t.group._group,t.includeContents),(0,s.pQ)(t.group)}})),u.Z.endOperation(),this._reorderOpInProgress=!1,this._currentBulkOperationLabel=null}})),this._pendingOperations={}}get publishableGroupCount(){return this._library.getGroups().reduce(((e,t)=>{const r=!!t.options,n=!t.children.length&&this._library.elements.every((e=>e.getGroups()[0]!==t));return r&&n&&!t.parent?e:e+1}),0)}}).prototype,"_reportChanged",[n],Object.getOwnPropertyDescriptor(o.prototype,"_reportChanged"),o.prototype),d(o.prototype,"_onChange",[i],Object.getOwnPropertyDescriptor(o.prototype,"_onChange"),o.prototype),d(o.prototype,"missingLinks",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"missingLinks"),o.prototype),d(o.prototype,"resolvableMissingLinks",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"resolvableMissingLinks"),o.prototype),o)},27299:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n,i,o,a=r(50265),s=r(69377),c=r(99386),l=r(80091),u=r(76485),p=r(87694),d=r(44914),h=r(48919);function f(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(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 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 g(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let v=(n=a.action.bound,i=a.action.bound,g((o=class extends l.Z{constructor(e){super({},(0,s.GT)(e.library)),this._element=e,this._changeAtom=new a.Atom("documentElementChange",(()=>this._isObserved=!0),(()=>this._isObserved=!1)),this._renditionProviders={}}get id(){return this._element.id}get modified(){return this._changeAtom.reportObserved(),this._element.modified}get created(){return this._changeAtom.reportObserved(),this._element.created}_reportChanged(){this._changeAtom.reportChanged(),(0,s.kN)(this._element)}_onChange(e){if(e===u.Z.documentLibraryConstants.REPRESENTATION_CHANGED_EVENT)for(const e in this._renditionProviders){const t=this._renditionProviders[e];t.isActive?t.updateRendition():t.needsUpdate=!0}this._isObserved&&this.library._scheduleChangeCallback(this._reportChanged)}get library(){return(0,s.GT)(this._element.library)}get name(){return this._changeAtom.reportObserved(),this._element.name||this._element.defaultName}set name(e){u.Z.renameAsset(this,e&&e.normalize())}get isAutoNamed(){return this._changeAtom.reportObserved(),!this.name}get type(){return this._changeAtom.reportObserved(),this._element.type}get dependencies(){return this._changeAtom.reportObserved(),[]}getGroups(){return this._changeAtom.reportObserved(),this._element.getGroups().map((e=>(0,s.M5)(e)))}getOrderInGroup(e){return this._changeAtom.reportObserved(),this.library._getOrderInGroup(this,e)}setOrderInGroup(e,t){this.library._setElementOrder(this,e,t)}get disableRename(){return this._changeAtom.reportObserved(),!this._element.canRename}get canRelinkToDocument(){return this._changeAtom.reportObserved(),!!this.isMissingLegacyDocumentLink&&(this.hasPermissionToRelink&&!u.Z.isLegacyDocumentLinkDeprecated())}get canRelinkToLibrary(){this._changeAtom.reportObserved();return!(!this.isMissingElement&&!this.isMissingLibrary)&&(!!this.cachedLinkedElementSourceRefString||!!(0,p.lJ)(this))}get hasPermissionToRelink(){return this.isLegacyCloudDocumentLink?u.Z.canSaveDocToCloud:this.isLegacyDocumentLink}get linkReference(){return this._changeAtom.reportObserved(),this._element.linkedElementRefObj||this._element.linkedElementRef}get isLinked(){return!!this.linkReference}get isLegacyCCLibrariesLink(){return this.isLinked&&(0,d.t5)(this.linkReference)===c.Z.XD_ASSET_LINK_REFERENCE_TYPES.LEGACY_CCLIBRARIES_ELEMENT}get isLegacyDocumentLink(){if(!this.isLinked)return!1;const e=(0,d.t5)(this.linkReference);return e===c.Z.XD_ASSET_LINK_REFERENCE_TYPES.LEGACY_DOCUMENT_ASSET||e===c.Z.XD_ASSET_LINK_REFERENCE_TYPES.LEGACY_CLOUD_DOCUMENT_ASSET}get isLegacyCloudDocumentLink(){return this.isLinked&&(0,d.t5)(this.linkReference)===c.Z.XD_ASSET_LINK_REFERENCE_TYPES.LEGACY_CLOUD_DOCUMENT_ASSET}get isDeprecatedLegacyDocumentLink(){return this.isLegacyDocumentLink&&u.Z.isLegacyDocumentLinkDeprecated()}get linkedDocumentName(){return this._changeAtom.reportObserved(),this._element.linkedElementFileName}get cachedLinkedLibraryName(){var e,t;if(this._changeAtom.reportObserved(),!this.isLegacyCloudDocumentLink)return null!==(e=null===(t=this.linkReference)||void 0===t?void 0:t["repo:name"])&&void 0!==e?e:this._element.linkedElementFileName}get cachedLinkedElementInstanceId(){var e;return null===(e=this.linkReference)||void 0===e?void 0:e["stRef:fromPartInstanceID"]}get cachedLinkedElementName(){var e;return null===(e=this.linkReference)||void 0===e?void 0:e["stRef:fromPartName"]}get cachedLinkedLibraryAssetId(){var e;return null===(e=this.linkReference)||void 0===e?void 0:e["repo:assetId"]}get cachedLinkedLibraryId(){var e;return null===(e=this.linkReference)||void 0===e?void 0:e["stRef:documentID"]}get cachedLinkedElementSourceRef(){return this._changeAtom.reportObserved(),(0,d.ds)(this)}get cachedLinkedElementSourceRefString(){const e=this.cachedLinkedElementSourceRef;if(e)return JSON.stringify(e,Object.keys(e).sort())}get linkState(){return this._changeAtom.reportObserved(),this.isLegacyDocumentLink?this._documentLinkState:this._elementLinkState}get linkType(){return this.isLinked?c.Z.LIBRARY_TYPE:void 0}get _documentLinkState(){if(this._changeAtom.reportObserved(),this.isLinked&&this.isLegacyDocumentLink)return this._element.isLinkMissingFile?c.Z.ASSET_LINK_STATES.FILE_MISSING:this._element.isLinkBroken?c.Z.ASSET_LINK_STATES.BROKEN:this._element.doesLinkNeedUpdate?c.Z.ASSET_LINK_STATES.PENDING_UPDATE:c.Z.ASSET_LINK_STATES.NORMAL}get _elementLinkState(){if(this._changeAtom.reportObserved(),!this.isLinked||this.isLegacyDocumentLink)return;if(!h.Z.libraryManager.loaded||this._isLinkStatusLoading)return c.Z.ASSET_LINK_STATES.SYNCING;if(!this.linkedLibrary){if(this.cachedLinkedLibraryAssetId){if(h.Z.libraryManager.invitationsData.has(this.cachedLinkedLibraryAssetId))return c.Z.ASSET_LINK_STATES.PENDING_INVITE;if(h.Z.libraryManager.teamLibrariesData.get(this.cachedLinkedLibraryAssetId))return c.Z.ASSET_LINK_STATES.NEED_TO_FOLLOW}return c.Z.ASSET_LINK_STATES.MISSING_LIBRARY}if(!this.linkedElement)return this.newLinkedElementRef?c.Z.ASSET_LINK_STATES.PENDING_UPDATE:c.Z.ASSET_LINK_STATES.MISSING_ELEMENT;let e,t;return this.isLegacyCCLibrariesLink?(e=this.linkedElement.modified!==this._element.linkedElementLastModified,t=this.linkedElement.name!==this._element.name):(e=this.linkedElement.instanceId!==this.cachedLinkedElementInstanceId,t=this.linkedElement.name!==this.cachedLinkedElementName),e||t?"downloading"===this.linkedLibrary.syncState?c.Z.ASSET_LINK_STATES.SYNCING:c.Z.ASSET_LINK_STATES.PENDING_UPDATE:c.Z.ASSET_LINK_STATES.NORMAL}get isNormalLinkState(){return this.linkState===c.Z.ASSET_LINK_STATES.NORMAL}get isPendingUpdate(){return this.linkState===c.Z.ASSET_LINK_STATES.PENDING_UPDATE}get isSyncing(){return this.linkState===c.Z.ASSET_LINK_STATES.SYNCING}get isMissingLink(){return this.isLegacyDocumentLink?this.isBrokenLegacyDocumentLink||this.isMissingLegacyDocumentLink:this.isMissingElement||this.isMissingLibraryLink}get isMissingLibraryLink(){return this.isMissingLibrary||this.isPendingFollow||this.isPendingInvite}get isMissingLibrary(){return this.linkState===c.Z.ASSET_LINK_STATES.MISSING_LIBRARY}get isMissingElement(){return this.linkState===c.Z.ASSET_LINK_STATES.MISSING_ELEMENT}get isPendingFollow(){return this.linkState===c.Z.ASSET_LINK_STATES.NEED_TO_FOLLOW}get isPendingInvite(){return this.linkState===c.Z.ASSET_LINK_STATES.PENDING_INVITE}get isMissingLegacyDocumentLink(){return this.linkState===c.Z.ASSET_LINK_STATES.FILE_MISSING}get isBrokenLegacyDocumentLink(){return this.linkState===c.Z.ASSET_LINK_STATES.BROKEN}get _isLinkStatusLoading(){return[this.linkedElement,this.linkedLibrary].includes(void 0)}get linkedLibrary(){if(this.isLinked&&!this.isLegacyDocumentLink)return h.Z.libraryManager.resolveCachedElementReferenceToLibrary(this.linkReference)}get linkedElement(){if(this.isLinked&&!this.isLegacyDocumentLink)return h.Z.libraryManager.resolveCachedElementReference(this.linkReference)}get linkedAsset(){if(this.linkedElement)return{name:this.linkedElement.name,modified:new Date(this.linkedElement.modified)}}get newLinkedElementRef(){if(this._changeAtom.reportObserved(),this._newLinkedElementRef)return this._newLinkedElementRef;if(this.linkedLibrary&&!this.linkedElement&&this.cachedLinkedElementSourceRefString){const e=f(this.linkedLibrary.getFilteredElements((e=>(0,d.LR)(e)===(0,d.UI)(this))),1)[0];return e&&e.getReference()}}set newLinkedElementRef(e){this._changeAtom.reportChanged(),this._newLinkedElementRef=e}relinkToDocument(){u.Z.relinkAssetsToDocument(this)}getRenditionProvider(e,t){const r=`${e}-${t}`;let n=this._renditionProviders[r];if(!n){n=u.Z.renditionService.createSymbolRenditionProvider(this.id,e,t,u.Z.colorProfile,new Uint8Array(u.Z.screenColorProfile));const i=n.cancel.bind(n);n.cancel=()=>{n.isActive=!1,i()},this._renditionProviders[r]=n}return(n.needsUpdate||n.isCanceled)&&(n.updateRendition(),n.needsUpdate=!1),n.isActive=!0,n}get representations(){return this._changeAtom.reportObserved(),this._element.representations.map((e=>(0,s.Ar)(e)))}getPrimaryRepresentation(){return this._changeAtom.reportObserved(),(0,s.Ar)(this._element.getPrimaryRepresentation())}get instanceId(){return this.modified}getReference(){const e={"dc:format":u.Z.documentType,"repo:name":this.library.name,"repo:assetId":u.Z.cloudAssetId,"stRef:documentID":this.library.id,"stRef:fromPart":`id=${this.id}`,"stRef:fromPartName":this.name,"stRef:manager":"Adobe Cloud"};return this.instanceId&&(e["stRef:fromPartInstanceID"]=this.instanceId),this.linkedElement&&(e["stRef:fromPartDerivedFrom"]=this.linkedElement.getReference()),e}getReferenceString(){const e=this.getReference();return JSON.stringify(e,Object.keys(e).sort())}getLegacyReference(){return`${u.Z.cloudAssetId}#id=${this.id}`}getCachedThumbnailPath(){}getThumbnailPath(){return this._element.getThumbnailPath?(this._changeAtom.reportObserved(),this._element.getThumbnailPath()):Promise.reject()}getThumbnailContent(){return Promise.reject()}getActions(e){return this.isLinked?"editInSource"===e&&this.isLegacyDocumentLink?[{id:"editInSource",installedVersions:["0.0"],isCompatibleVersionInstalled:!0,invoke:()=>{u.Z.editInSource(this)}}]:this.linkedElement?this.linkedElement.getActions(e):void 0:[]}}).prototype,"_reportChanged",[n],Object.getOwnPropertyDescriptor(o.prototype,"_reportChanged"),o.prototype),g(o.prototype,"_onChange",[i],Object.getOwnPropertyDescriptor(o.prototype,"_onChange"),o.prototype),g(o.prototype,"canRelinkToLibrary",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"canRelinkToLibrary"),o.prototype),g(o.prototype,"cachedLinkedElementSourceRefString",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"cachedLinkedElementSourceRefString"),o.prototype),g(o.prototype,"linkedLibrary",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"linkedLibrary"),o.prototype),g(o.prototype,"linkedElement",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"linkedElement"),o.prototype),g(o.prototype,"linkedAsset",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"linkedAsset"),o.prototype),g(o.prototype,"newLinkedElementRef",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"newLinkedElementRef"),o.prototype),o)},75623:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(50265),i=r(69377),o=r(68169),a=r(76485);class s extends o.Z{constructor(e){super(e),this._changeAtom=new n.Atom("groupChange",(()=>!this._group.isDeletedLocally&&this._group.addChangeListener(this._onChange)),(()=>this._group.removeChangeListener(this._onChange)))}get library(){return(0,i.GT)(this._group.library)}get isAppControlled(){return this._changeAtom.reportObserved(),!!this._group.options}get disableDraggingFromOutside(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.disableDraggingFromOutside}get disableEditing(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.disableEditing}get hideDefaultTextInEmptyGroup(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.hideDefaultTextInEmptyGroup}get excludeFromChildPaths(){return this._changeAtom.reportObserved(),!!this._group.options&&this._group.options.excludeFromChildPaths||!0}get hideWhenEmpty(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.hideWhenEmpty}get nameLocalizationKey(){return this._changeAtom.reportObserved(),!!this._group.options&&this._group.options.nameLocalizationKey}get displayAddButton(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.displayAddButton}get isAddButtonActive(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.isAddButtonActive}get addButtonTooltip(){return this._changeAtom.reportObserved(),this._group.options?this._group.options.addButtonTooltip:void 0}addButtonAction(){this._group.options&&this._group.options.addButtonAction&&this._group.options.addButtonAction()}addChangeListener(e){this._group.addChangeListener(e)}removeChangeListener(e){this._group.removeChangeListener(e)}getReference(){return{"dc:format":a.Z.documentType,"repo:name":this.library.name,"repo:assetId":a.Z.cloudAssetId,"stRef:documentID":this.library.id,"stRef:fromPart":`id=${this.id}`,"stRef:fromPartName":this.name,"stRef:manager":"Adobe Cloud"}}get name(){return this._changeAtom.reportObserved(),this._group.name}set name(e){a.Z.renameGroup(this._group,e)}get parent(){return this._changeAtom.reportObserved(),(0,i.M5)(this._group.parent)}set parent(e){e&&this.library._setGroupParent(this._group,e._group)}get children(){return this._changeAtom.reportObserved(),this._group.children.map((e=>(0,i.M5)(e)))}set order(e){this.library._setGroupOrder(this._group,e)}get order(){return this._changeAtom.reportObserved(),String(this._group.order)}createChild(e,t){return(0,i.M5)(this.library._createGroupChild(e,t,this._group))}getFilteredChildren(e){this._changeAtom.reportObserved();if(!this._group.children)return[];const t=[];return this._group.children.forEach((r=>{e(r)&&t.push((0,i.M5)(r))})),t}}},20120:(e,t,r)=>{"use strict";r.d(t,{Ed:()=>p,Ol:()=>u,Qw:()=>d,b6:()=>l,ex:()=>s,pE:()=>h});var n=r(76485),i=r(74379),o=r(23664),a=r(61344);function s(e,t,r){(r=r||n.Z.getSelection()).forEach((r=>{c(r,e,t)}))}function c(e,t,r={}){!(n.Z.editContextModel.context===n.Z.getContextForNode(e))&&n.Z.isInsideRepeatGridOrSymbolGroup(e)&&n.Z.editContextModel.enterContextForNode(e);if(t(e))return;(e=>!r.skipChildren&&e.children&&e.children.length>0&&(!!r.visitNonEditable||n.Z.containerTypeAllowsEditingContents(e)))(e)&&e.children.forEach((e=>{c(e,t)}))}function l(e){const t={mode:"RGB",type:"process",value:{r:e.r,g:e.g,b:e.b}};return void 0!==e.a&&(t.alpha=e.a/255),t}function u(e,t){const r=(0,i._b)(e||(0,i.lP)(t)),o={r:r.red,g:r.green,b:r.blue};return void 0!==r.alpha&&(o.a=Math.round(255*r.alpha)),new n.Z.Color(o)}function p(e,t){return(e instanceof n.Z.LinearGradient?new o.Z(e):new a.Z(e,t)).serializeForLibrary()}function d(e){const t={nodeOrStyleRange:e};if(e.fill&&(t.color=[l(e.fill)]),e.fontColor&&(t.color=[l(e.fontColor)]),e.lineSpacing&&(t.lineHeight={value:e.lineSpacing,type:"pt"}),e.paragraphSpacing&&(t.paragraphSpacing={value:e.paragraphSpacing,type:"pt"}),void 0!==e.charSpacing&&null!==e.charSpacing&&(t.adbeTracking=e.charSpacing),e.fontSize&&(t.fontSize={type:"pt",value:e.fontSize}),e.fontFamily&&(t.fontFamily=e.fontFamily),e.postscriptName){const r=e.postscriptName,n=e.fontFamily,i=e.fontStyle,o=n&&n+(i?` ${i}`:"");t.adbeFont={postScriptName:r,family:n,style:i,name:o}}return e.fontStyle&&("Bold"===e.fontStyle&&(t.fontWeight="bold"),t.fontStyle=e.fontStyle),"superscript"===e.textScript&&(t.fontFeatureSettings=t.fontFeatureSettings||[],t.fontFeatureSettings.push("sups")),"subscript"===e.textScript&&(t.fontFeatureSettings=t.fontFeatureSettings||[],t.fontFeatureSettings.push("subs")),"uppercase"===e.textTransform?t.fontFeatureSettingsObject={adbeCapitalization:"FontCapsOption.ALLCAPS"}:"titlecase"===e.textTransform?t.textTransform="titlecase":"lowercase"===e.textTransform&&(t.textTransform="lowercase"),e.underline&&(t.textDecoration=t.textDecoration||[],t.textDecoration.push("underline")),e.strikethrough&&(t.textDecoration=t.textDecoration||[],t.textDecoration.push("line-through")),t}function h(){return!1}},82490:(e,t,r)=>{"use strict";r.d(t,{D3:()=>j,dC:()=>M,fK:()=>Z,is:()=>R,jP:()=>D,qh:()=>S});var n=r(76485),i=r(26964),o=r(34038),a=r(31870),s=r(62061),c=r(74379),l=r(20120),u=r(81046),p=r(84824),d=r(47320),h=r(99386),f=r(23664),m=r(61344),g=r(46903),v=r(16203);const y=e=>e&&"application/illustrator"===e.type,b=e=>e&&e.type===h.Z.AGC_REPRESENTATION_TYPE;function _(){const e=(0,p.Iu)("DL_OFFICE_IMAGE_APPLY_GENERIC_ERROR");u.Z.openToast("message",{message:e})}function E(e,t){const r=new n.Z.Group;return r.linkVectorGraphic(t.getReference(),void 0,void 0,e,t.name),r}function w(e,t){return e.fill=e.fill.cloneWithOverrides({linkedElementRef:t.getReference()}),e}function L(e,t){return function(e,t){const r=e.getCachedThumbnailPath("vector");return(r?Promise.resolve(r):e.getThumbnailPath("vector")).then((r=>n.Z.SVGToNode(r).then((r=>(r.name=e.name,t?E(r,e):r)))))}(e,t).then((r=>((0,g.vM)(d.Z.findUsableRepresentation(e),"placeAsset",t),n.Z.addToCanvas(r),r)))}function x(e,t){const r=e.getPrimaryRepresentation();if(y(r))return O(r,t);if(b(r))return T(r,t,h.Z.IMAGE_ELEMENT_TYPE);const i=e.representations.find((e=>o.kJ(e.type)));return i?i.getContentPath().then((r=>n.Z.SVGToNode(r).then((r=>((r=t?E(r,e):r).name=e.name,r))))):Promise.reject("no vector representation found")}function S(e,t,r=!0){const i=e.getPrimaryRepresentation();return y(i)?function(e,t,r=!0){if(r){const r=n.Z.getSizeforFile(e.getCachedContentPath()||"",n.Z.BitmapFill.create());return P(e.element,t,O(e,t),r).then((r=>((0,g.vM)(e,"placeAsset",t),r)))}return O(e,t).then((r=>((0,g.vM)(e,"placeAsset",t),n.Z.addToCanvas(r),r))).catch((()=>k(e.element,t)))}(i,t,r):b(i)?I(i,t,h.Z.IMAGE_ELEMENT_TYPE):x(e,t).then((r=>{const i=e.representations.find((e=>o.kJ(e.type)));return(0,g.vM)(i,"placeAsset",t),n.Z.addToCanvas(r),r}),(()=>k(e,t)))}function O(e,t){return e.getContentPath().then((r=>n.Z.AIToNode(r).then((r=>((r=t?E(r,e.element):r).name=e.element.name,r)))))}function T(e,t,r){return e?e.getContent().then((e=>e.text())).then((i=>n.Z.parseAGCForImport(i,r===h.Z.COMPONENT_ELEMENT_TYPE).then((r=>{const i=r.node.fill&&r.node.fill instanceof n.Z.BitmapFill,o=t?(i?w:E)(r.node,e.element):r.node;return o.name=e.element.name,{node:o,metadata:r.metadata}})))):Promise.reject("Element has no AGC representation")}function I(e,t,r){return T(e,t,r).then((r=>((0,g.vM)(e,"placeAsset",t),n.Z.addToCanvas(r.node,!1,void 0,r.metadata),r.node))).catch((r=>(i.Z.log(`Failed to create AGC Node from representation: ${r}`),L(e.element,t).catch((()=>k(e.element,t))))))}function P(e,t,r,i,o){const a=function(e,t,r){const i=new n.Z.Group,o=w(C(e.getCachedThumbnailPath(d.Z.getThumbnailSize(e))||"",r),e);return o.locked=!0,i.linkVectorGraphic(e.getReference(),void 0,void 0,o,e.name),i.linkedContentReadyState=n.Z.Group.LINKED_CONTENT_LOADING,i.linkedElementWillUnlinkOnLoad=!t,n.Z.assignBlurToNode(o),i}(e,t,i);return n.Z.addToCanvas(a,!0,o),r.then((t=>(t.name=e.name,n.Z.swapNodes(a,t),n.Z.setSelection(t),t))).catch((()=>(a.remove(),k(e,t))))}function C(e,t){const r=n.Z.BitmapFill.create();r.loadFromURL(e);const i=t||n.Z.getSizeforFile(e,r),o=i.width,a=i.height,s=new n.Z.Rectangle;return s.width=o||h.Z.IMAGE_THUMBNAIL_SIZE,s.height=a||h.Z.IMAGE_THUMBNAIL_SIZE,s.fill=r,s}function A(e,t,r){let n=C(e);return n=r?w(n,t):n,n.name=t.name,Promise.resolve(n)}function k(e,t){return a.Jw(e)&&!a.kv(e)?(_(),Promise.reject("Cannot place Full Size Thumbnail for Unlicensed Stock Images")):e.getThumbnailPath().then((r=>A(r,e,t).then((r=>((0,g.dN)(e,"placeAsset",t),n.Z.addToCanvas(r),r))))).catch((()=>{_()}))}function D(e,t){const r=d.Z.findUsableRepresentation(e);return r?r.getContentPath().then((i=>A(i,e,t).then((e=>((0,g.vM)(r,"placeAsset",t),n.Z.addToCanvas(e),e))))):k(e,t)}function N(e,t){const r=e.getPrimaryRepresentation();return r?r.getContentPath().then((r=>A(r,e,t))):Promise.reject("cannot create stock preview - no primary representation")}function R(e,t,r,n){const i=!0,o=(0,g.NR)(e)?x:N,a=t.then((t=>o(t,i).then((t=>((0,g.vM)(e.getPrimaryRepresentation(),"placeAsset",i),t)))));return P(e,i,a,r,n)}function M(e,t,r,a,s,c){let l,u,p,f,m,v;const y=[],b=n.Z.isXDFeatureFlagEnabled("newFileFormat"),_=b?".nxd":".agc",E=c?n.Z.serializeCanonicalComponent(t.symbolId,`${o.Rl()}`+_):n.Z.nodeGuidsToAGC(t.guids,`${o.Rl()}`+_),w=c?n.Z.canonicalComponentToSVG(t.symbolId,`${o.Rl()}.svg`).catch((()=>{})):n.Z.nodeGuidsToSVG(t.guids,`${o.Rl()}.svg`),L=c?n.Z.canonicalComponentToPNG(t.symbolId,`${o.Rl()}.png`):n.Z.nodeGuidsToPNG(t.guids,`${o.Rl()}.png`);return s?(s.beginOperation(),s.name=t.name,l=s):l=(0,g.MN)(r,t.name,e,{opType:a}),Promise.all([E,w,L]).then((e=>{const r=[];u=e[0].dependentAssetIds,f=e[0].filePath,p=e[0].imageData,m=e[1],v=e[2],s&&s.removeAllRepresentations();const i=(e,t)=>e.setContentFromPath(t),o=(e,t)=>e.setContentFromPath(t,!0).catch((()=>i(e,t))),a=c&&(b||n.Z.isXDFeatureFlagEnabled("ccLibrariesGraphicsInComponent")),g=l.createRepresentation((e=>e?e&&b?n.Z.documentLibraryConstants.NXD_COMPONENT_CONTAINER_TYPE:n.Z.documentLibraryConstants.XD_COMPONENT_CONTAINER_TYPE:h.Z.AGC_REPRESENTATION_TYPE)(a),"primary");c&&t.symbolId&&g.setValue("xd","data",{symbolId:t.symbolId});let _=g;if(a){_=b?g.createChild(h.Z.NXD_REPRESENTATION_TYPE):g.createChild(h.Z.AGC_REPRESENTATION_TYPE);const e=e=>{if(!e.imagePath)return Promise.resolve();const t=g.createChild(e.mimeType);t.setValue("xd","uid",e.uid);const r=e.moveFile?o:i;return e.moveFile&&y.push(e.imagePath),r(t,e.imagePath)};r.push(...p.map(e))}const E=o(_,f);if(r.push(E),m){const e=l.createRepresentation("image/svg+xml","rendition"),t=o(e,m);r.push(t)}const w=l.createRepresentation("image/png","rendition");w.isPreferredThumbnail=!0;const L=w.setContentFromPath(v);r.push(L);const x=d.Z.getThumbnailSize(l);return r.push(l.setThumbnailCache(x,v).catch((()=>{}))),Promise.all(r)})).then((()=>({element:l,dependentAssetIds:u}))).catch((e=>(i.Z.log(e),l&&!s&&(r.removeElement(l,!0),l=null),Promise.reject(e)))).finally((()=>{l&&l.endOperation().then((()=>{v&&n.Z.deleteFile(v),f&&n.Z.deleteFile(f),m&&n.Z.deleteFile(m),y.forEach((e=>{n.Z.deleteFile(e)}))}))}))}function j(e){if(e.type===h.Z.COLOR_ELEMENT_TYPE)return(0,l.Ol)(void 0,e);if(e.type===h.Z.GRADIENT_ELEMENT_TYPE){const t=d.Z.findUsableRepresentation(e).getValue(h.Z.GRADIENT_NAMESPACE,h.Z.GRADIENT_DATA_KEY);let r=t.stops,i=t.opacities,o=t.type;r=(0,c.dF)(r,i);const a=[];r.forEach((e=>{const t=e.color.find((e=>"RGB"===e.mode)).value,r={r:t.r,g:t.g,b:t.b};a.push({stop:e.offset,color:new n.Z.Color(r,e.opacity)})}));const s="linear"===o?new f.Z:new m.Z;return s.setColorStops(a),s._xdGradient}}function Z(e){const t=e=>null!=e,r=d.Z.findUsableRepresentation(e),n=r&&r.getValue("characterstyle","data");if(!n)return;const i={},o=n.color?(0,l.Ol)(n.color):null;o&&(i.fontColor=o);const a=n.adbeFont&&n.adbeFont.style||n.fontStyle||n.fontWeight;i.fontStyle=!!a&&a.charAt(0).toUpperCase()+a.slice(1);const c=n.fontFamily||n.adbeFont&&n.adbeFont.family;let u,p;c&&(i.fontFamily=c);const h=n.textDecorationObject;h&&(u=h.adbeUnderline,p=h.adbeStrikethrough),u=u||n.adbePhxsUnderline||n.textDecoration&&Array.isArray(n.textDecoration)&&n.textDecoration.includes("underline"),i.underline=!!u,p=p||n.adbePhxsStrikethru||n.textDecoration&&Array.isArray(n.textDecoration)&&n.textDecoration.includes("line-through"),i.strikethrough=!!p;const f=n.adbeFont&&n.adbeFont.postScriptName;f&&(i.postscriptName=f);const m=(0,s.hI)(n.fontSize,"pt");m&&(i.fontSize=m);const g=(0,s.hI)(n.lineHeight,"pt");t(g)&&(i.lineSpacing=g);const y=(0,s.hI)(n.paragraphSpacing,"pt");t(y)&&(i.paragraphSpacing=y);const b=v.Ac(n);t(b)&&(i.charSpacing=b),i.textScript=v.cu(n)||"none";const _=v.nP(n,"titlecase");return i.textTransform=t(_)?_:"none",i}},64922:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>j});var n=r(99386),i=r(34038),o=r(76485),a=r(93028),s=r(31870),c=r(46903),l=r(8733),u=r(53849),p=r(15909),d=r(74149);function h(e){return null!==e&&"object"==typeof e}function f(e){if(!h(e))return!1;const t=["mode","type","value"].every((t=>Object.prototype.hasOwnProperty.call(e,t))),r=h(e.value)&&"RGB"===e.mode&&["r","g","b"].every((t=>"number"==typeof e.value[t]));return t&&r}function m(e,t,r){if(!f(r))return Promise.reject("Unexpected color data format.");const i=(0,c.MN)(e,"",n.Z.COLOR_ELEMENT_TYPE,{opType:t});return i.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,"primary").setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,r),i.endOperation(),Promise.resolve(i)}function g(e,t,r){return(0,c.g0)(r).then((n=>{const i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:r};return(0,d.Bm)(n.layerName,n.files,n.rendition,e,t,i)}),(()=>Promise.reject("Could not extract asset.")))}function v(e,t,r){return(0,c.g0)(r).then((n=>{const i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:r};return(0,d.e4)(n.layerName,n.files,n.rendition,e,t,i)}),(()=>Promise.reject("Could not extract asset.")))}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const _=()=>{l.Z.handleSelectionChange()},E=function(){var e,t=(e=y().mark((function e(t){var r,n,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.data||void 0===t.data.elementRef){e.next=8;break}return e.next=3,a.ZP.resolveElementReference(t.data.elementRef);case 3:if(r=e.sent,!(n=s.wq(r))){e.next=8;break}return i=r.getPrimaryRepresentation(),e.abrupt("return",i.getContentPath().then((e=>o.Z.execApp("updateAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,c.RW)(r),r.created,n,n?s.kv(r):null]))));case 8:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),w=e=>{const t=e.data&&e.data.elementRef;if(!t)return;const r=e.data&&e.data.requestRef||e.data.elementRef;p.Z.openElementForEdit({elementRef:t,requestRef:r})},L={process:(e,t)=>m(e,"Presets",t.data),image:e=>g(e,"Presets"),model:e=>v(e,"Presets")},x=e=>{const t=e.data&&L[e.data.type];if(void 0===t)return;t(a.ZP.currentLibrary,e).then((e=>u.Z.revealElement(e)))};var S=r(77560),O=r(74379),T=r(16771);class I extends T.Z{constructor(...e){super(...e),this.dragType="color"}_getRGBRepresentation(e){const t=[];return e.representations.forEach((e=>{const r=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?t.unshift(r):t.push(r)})),O.Nh(t)}_placeColorAsset(e,t,r){const n=t?O.Nh(t):this._getRGBRepresentation(e);if(n)return r&&r(),o.Z.execApp("placeAsset",{name:e.name,type:n.type,value:n.value})}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:(t,r)=>this._placeColorAsset(e,t,r),displayInMenu:!0,onClick:!0}]}getDragData(e){const t=this._getRGBRepresentation(e);if(t)return{name:e.name,type:t.type,value:t.value}}getAddOperations(e){return e&&e.colors&&0!==e.colors.length?e.colors.filter(f).map((e=>({name:"DL_ADD_COLOR_NAME",style:{backgroundColor:O.m3(e),border:"1px solid",width:"14px",height:"14px",margin:"1px 1px 1px 0px"},apply:(t,r)=>m(t,r,e)}))):[]}}var P=r(48124);class C extends P.Z{_placeImageAsset(e){const t=this._config.findUsableRepresentation(e),r=s.wq(e);return t?((0,c.vM)(t,"placeAsset"),t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null])))):e.getThumbnailPath().then((t=>((0,c.dN)(e,"placeAsset"),o.Z.execApp("placeAsset",[t,!1,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null]))))}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:()=>this._placeImageAsset(e),displayInMenu:!0,onClick:!0}]}getAddOperations(e){return e&&e.images&&0!==e.images.length?[{name:"DL_ADD_IMAGE_NAME",icon:"AddImage",dropSupport:!0,apply:g}]:[]}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var A=r(59846);class k extends A.Z{_placeLightAsset(e){const t=this._config.findUsableRepresentation(e);if(t){const r=s.wq(e);return t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null])))}}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:()=>this._placeLightAsset(e),displayInMenu:!0,onClick:!0}]}}var D=r(54888);class N extends D.Z{_placeMaterialAsset(e){const t=this._config.findUsableRepresentation(e);if(t){const r=s.wq(e);return t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null])))}}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:()=>this._placeMaterialAsset(e),displayInMenu:!0,onClick:!0}]}}var R=r(82359);class M extends R.Z{_placeModelAsset(e){const t=this._config.findUsableRepresentation(e);if(t){const r=s.wq(e);return t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null])))}}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:()=>this._placeModelAsset(e),displayInMenu:!0,onClick:!0}]}getAddOperations(e){return e&&e.models&&0!==e.models.length?[{name:"DL_ADD_MODEL_NAME",dropSupport:!0,icon:"AddModel",apply:v}]:[]}}function j(){return this.config={},this.config.code="STGR",this.config.fullName="Stager",this.config.translationSuffix="SG",this.config.dragDropSource="com.adobe.stager",this.config.themes={323232:"darker",f5f5f5:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="darker",this.config.elementTypes=[M,N,k,C,I,S.Z.ColorThemeElementConfig,S.Z.ComponentElementConfig,S.Z.TextStyleElementConfig,S.Z.FontElementConfig,S.Z.ParagraphStyleElementConfig,S.Z.LayerStyleElementConfig,S.Z.BrushElementConfig,S.Z.VideoElementConfig,S.Z.LookElementConfig,S.Z.CapsuleElementConfig,S.Z.PatternElementConfig,S.Z.TemplateElementConfig,S.Z.AnimationElementConfig,S.Z.TextElementConfig,S.Z.GradientElementConfig,S.Z.AudioElementConfig,S.Z.ChannelElementConfig,S.Z.ImageGuidelineElementConfig,S.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.CHARACTER_STYLE_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.BRUSH_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.missingDropEventsBug=!0,this.config.STOCK_SEARCH_UI_OPTIONS=[n.Z.STOCK_SEARCH_SUB_FILTER_MODEL,n.Z.STOCK_SEARCH_SUB_FILTER_LIGHT,n.Z.STOCK_SEARCH_SUB_FILTER_MATERIAL,n.Z.STOCK_SEARCH_OPTION_PHOTO],this.config.disabledLibraryContextMenuActions=["export"],this.init=function(){i.Zh(n.Z.THREE_D_ELEMENT_TYPE,["application/vnd.adobe.obj.3d+zip","3d/vnd.adobe.dn+dcxucf","model/vnd.adobe.dn+dcxucf","model/gltf-binary","model/vnd.usdz+zip","application/vnd.adobe.fbx.3d+zip"]),i.Zh(n.Z.LIGHT_ELEMENT_TYPE,["application/vnd.adobe.ibl.light+zip","application/vnd.adobe.sbsar+zip","application/vnd.adobe.exr.light+zip"]),i.Zh(n.Z.MATERIAL_ELEMENT_TYPE,["application/vnd.adobe.mdl.material+zip","application/vnd.adobe.sbsar+zip"]),i.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/svg+xml","image/vnd.adobe.photoshop","application/photoshop","application/illustrator"]),i.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),i.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),i.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),n.Z.showTooltips=!0,this.startEventListener()},this.reportEvent=function(){return!1},this.startEventListener=function(){o.Z.addEventListener("selectionChanged",_),o.Z.addEventListener("dlElementDropped",E),o.Z.addEventListener("addAsset",x),o.Z.addEventListener("dlElementOpenForEdit",w)},this.stopEventListener=function(){o.Z.removeEventListener("selectionChanged",_),o.Z.removeEventListener("dlElementDropped",E),o.Z.removeEventListener("addAsset",x),o.Z.removeEventListener("dlElementOpenForEdit",w)},this.getUserData=e=>e(),this}},18413:(e,t,r)=>{"use strict";r.d(t,{default:()=>T});r(90543);var n=r(89526),i=r(73961),o=r(48919),a=r(76485),s=r(57806),c=r(93028),l=r(98218),u=r(99386),p=r(47320);const d={};d.PHXS=r(33471),d.PHXS_UXP=r(71971),d.ILST=r(11511),d.ILST_UXP=r(3765),d.IDSN=r(13594),d.AEFT=r(54697),d.PPRO=r(10888),d.FLPR=r(91828),d.DRWV=r(39360),d.KBRG=r(48408),d.SPRK=r(31707),d.ACCC=r(60620),d.STGR=r(64922);const h=new class{init(){const e=a.Z.getAppName(),t=Object.keys(d).map((e=>d[e].getAppConfiguration()));u.Z.initApplication(e,t),p.Z.init(u.Z.currentProduct.config.elementTypes)}};var f=r(87544),m=r(84824),g=r(64705),v=r(72373),y=r(15909),b=r(8733),_=r(99409),E=r(51461),w=r(26964),L=r(17179),x=r(30460),S=r(3713);
/*! ************************************************************************
*
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2013 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/
const O={"com.adobe.cclibraries.manager":r(5425).default,"com.adobe.DesignLibraries.angular":S.Z,"com.adobe.DesignLibraries.touch":S.Z};a.Z.init().then((()=>{window.performance&&(window.performance.mark("ccac:libraries-panel:init:begin"),window.performance.measure("ccac:libraries-panel:eval","ccac:libraries-panel:eval:begin","ccac:libraries-panel:init:begin"));const e=new x.T("Load Panel");m.ZP.setStringMap(a.Z.resourceBundle),v.Z.init(),L.Z.init(),h.init(),_.Z.init(),o.Z.init(),s.ZP.init().then((()=>{if("CEP"===a.Z.type){const e=`${a.Z.getPluginPath()}/jsx`,t=`${e}/shims.jsx`,r=`${e}/core.jsx`,n=`${e}/json2.jsx`,i=`${a.Z.getPluginPath()}/applications/${u.Z.currentProduct.config.code}/jsx/main.jsx`;a.Z.exec(null,"evalFile",[t]),a.Z.exec(null,"evalFile",[r]),a.Z.exec(null,"evalFile",[n]),a.Z.exec(null,"evalFile",[i])}function t(){w.Z.init(),c.ZP.init(),g.Z.init(),u.Z.currentProduct.config.enableSAM&&f.Z.init(),window.alert=a.Z.showError.bind(a.Z),a.Z.isLibrariesPanel()||a.Z.isLibrariesManager()?(w.Z.log("Panel Initialized: v"+l.Z.getPluginVersion()),e.done(),a.Z.isLibrariesPanel()&&(b.Z.startListening(),y.Z.startListening()),a.Z.notifyProductInitialized()):E.ZP.reportError("Initialize","Init","initialize-error"),(()=>{if(!a.Z.shouldRenderPanel())return;const e=O[a.Z.getExtensionID()],t=document.getElementById("content");i.render(n.createElement(e,null),t)})(),window.performance&&(window.performance.mark("ccac:libraries-panel:init:end"),window.performance.measure("ccac:libraries-panel:init","ccac:libraries-panel:init:begin","ccac:libraries-panel:init:end"))}"ccweb"!==a.Z.type&&(a.Z.exec("CORE","getTempFolder",[]).then((e=>{u.Z.strTempFolder=e})).catch((e=>{w.Z.log(`Unable to call getTempFolder: ${e}`)})),a.Z.exec("CORE","getHostAppPathViaBridgeTalk",[]).then((e=>{u.Z.currentProduct.config.debugHostAppPath=e})).catch((e=>{w.Z.log(`Unable to call getHostAppPathViaBridgeTalk: ${e}`)})),a.Z.exec("CORE","getApplicationVersion",[]).then((e=>{u.Z.currentProduct.config.productVersion=e})).catch((e=>{w.Z.log(`Unable to call getApplicationVersion: ${e}`)}))),a.Z.setContextMenuPositionEventHandler&&a.Z.setContextMenuPositionEventHandler();(u.Z.currentProduct.init()||Promise.resolve()).then(t,t)})).catch((e=>w.Z.log(`Unable to initialize themeManager ${e}`)))}));const T=a.Z.exports},48919:(e,t,r)=>{"use strict";r.d(t,{Z:()=>uc});var n=r(93028),i=r(84074),o=r(50265),a=r(77227);class s{constructor(e){this._context=e,this._rootContext=e?e._rootContext:this}get context(){return this._context}}var c,l,u,p,d=r(99386),h=r(69233),f=r(46903);function m(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 g(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let v=(c=o.observable.ref,u=g((l=class extends s{constructor(...e){super(...e),m(this,"_item",u,this),m(this,"_value",p,this)}startEdit(e){this._item=e,e&&(this._value=e.name)}stopEdit(){this._item=null,this._value=""}setValue(e){this._value=e}get item(){return this._item}get value(){return this._value}get groupsTree(){if(this._item&&!this.item.isLibrary)return(0,h.GI)(this._item.library)}get status(){if(!this._item||!this._value)return d.Z.RENAME_STATES.VALID;const e=this._value.trim();if(this._item.isLibrary)return(0,f.SS)(e,this._item.team);if(this._item.isElement)return(0,f.NB)(e);if(this._item.isGroup){const t=this.groupsTree.branches;return(0,h.PR)(e,this._item,t[this._item.id].parent)}}}).prototype,"_item",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=g(l.prototype,"_value",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),g(l.prototype,"groupsTree",[o.computed],Object.getOwnPropertyDescriptor(l.prototype,"groupsTree"),l.prototype),g(l.prototype,"status",[o.computed],Object.getOwnPropertyDescriptor(l.prototype,"status"),l.prototype),l);var y,b,_,E,w,L=r(97536);function x(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 S(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let O=(y=o.observable.ref,_=S((b=class extends s{constructor(...e){super(...e),x(this,"_editDescriptionElement",_,this),x(this,"isTooltipActive",E,this),x(this,"unlinkingAssets",w,this),this.pathState=new a.Z(this),this.renameState=new v(this),this._resetTooltipActive=()=>{this.isTooltipActive=!1}}setUnlinkingAsset(e,t){e&&(t?this.unlinkingAssets.set(e.id,!0):this.unlinkingAssets.delete(e.id))}getIsUnlinkingAsset(e){return this.unlinkingAssets.get(e.id)}get renamingItem(){return this.renameState.item}get editDescriptionElement(){return this._editDescriptionElement}get editPathGroup(){return this.pathState.group}setRenameValue(e){this.renameState.setValue(e)}get renameValue(){return this.renameState.value}get renameStatus(){return this.renameState.status}startRename(e){this.renameState.startEdit(e)}stopRename(){this.renameState.stopEdit()}startEditDescription(e){this._editDescriptionElement=e}stopEditDescription(){this._editDescriptionElement=null}startEditPath(e,t=!1){(0,L.Zc)(this.pathState.viewByGroupMode),this.pathState.startEdit(e,t)}stopEditPath(){this.pathState.stopEdit()}setTooltipActive(){clearTimeout(this._resetTooltipTimeout),this.isTooltipActive=!0}resetTooltip(){clearTimeout(this._resetTooltipTimeout),this._resetTooltipTimeout=setTimeout(this._resetTooltipActive,1e3)}}).prototype,"_editDescriptionElement",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=S(b.prototype,"isTooltipActive",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=S(b.prototype,"unlinkingAssets",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),S(b.prototype,"setUnlinkingAsset",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"setUnlinkingAsset"),b.prototype),S(b.prototype,"startRename",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"startRename"),b.prototype),S(b.prototype,"stopRename",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"stopRename"),b.prototype),S(b.prototype,"startEditDescription",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"startEditDescription"),b.prototype),S(b.prototype,"stopEditDescription",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"stopEditDescription"),b.prototype),S(b.prototype,"startEditPath",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"startEditPath"),b.prototype),S(b.prototype,"stopEditPath",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"stopEditPath"),b.prototype),S(b.prototype,"setTooltipActive",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"setTooltipActive"),b.prototype),S(b.prototype,"resetTooltip",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"resetTooltip"),b.prototype),b);var T,I,P=r(81046),C=r(10441);function A(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let k=(T=class extends s{constructor(...e){var t,r,n,i;super(...e),t=this,r="_searchText",i=this,(n=I)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}setSearchText(e){this._searchText=e}get searchText(){return this._searchText}get filteredLibraries(){const e=this.context.libraryManager.publishedDocumentLibrary||{};let t=this.context.libraryManager.libraries;return this.searchText&&(t=(0,C.GZ)(this.searchText,this.context.libraryManager.libraries)),t.filter((t=>t.id!==e.id))}get isUpgradeView(){return this.context.libraryManager.publishState.canUpgrade}},I=A(T.prototype,"_searchText",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),A(T.prototype,"filteredLibraries",[o.computed],Object.getOwnPropertyDescriptor(T.prototype,"filteredLibraries"),T.prototype),A(T.prototype,"isUpgradeView",[o.computed],Object.getOwnPropertyDescriptor(T.prototype,"isUpgradeView"),T.prototype),T);var D=r(84824),N=r(68895),R=r(30131),M=r(39293),j=r(51461),Z=r(76485),F=r(47320),B=r(85834);function G(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */G=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function U(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function z(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){U(o,n,i,a,s,"next",e)}function s(e){U(o,n,i,a,s,"throw",e)}a(void 0)}))}}class V extends s{create(e,t){d.Z.currentProduct.config.showCCDTeamsOnboarding&&(0,L.tf)()?(0,L.zW)(e,t):this.context.dialogManager.openDialog("createLibrary",{onCreate:e},t)}delete(e,t=!1){f.$_(e)?this.context.dialogManager.openDialog("deleteTeamLibrary",{leave:t,library:e}):this.context.dialogManager.openDialog("deleteLibrary",{library:e})}export(e){this.context.dialogManager.openDialog("importExportLibrary",{library:e,mode:"export"})}_openShareSheetWithCollaborators(e,t){const r=[];t.forEach((e=>{"owner"!==e.role&&r.push(e.email)})),r.length&&Z.Z.showShareSheet(e,"invite",r)}_isCrossRepoMove(e,t){return e.team?e.team.owner.id!==t.owner.id:e.owner!==t.owner.id}_isActionAllowed(e){return!(d.Z.currentProduct.config.disabledLibraryContextMenuActions||[]).includes(e)}promote(e){const t=B.Z.get("enableProjects");return new Promise(((r,n)=>{if(!t&&f.$_(e))return r(e);this.context.dialogManager.openDialog("promoteLibrary",{library:e,promote:(t,i)=>{if(B.Z.get("enableProjects")&&this._isCrossRepoMove(e,t))return this.context.dialogManager.openDialog("copyTeamLibrary",{library:e,copy:r=>{this.context.toastManager.openToast("message",{variant:"info",message:(0,D.Iu)("DL_TEAM_LIBRARY_COPYING_TOAST_PROJECTS",{libraryName:r||e.name,projectName:t.name})});const n=this.context.libraryManager.copyLibrary(e,t,{permissionInheritance:i,newName:r});(0,o.when)((()=>!n.id.includes("PLACEHOLDER")),(()=>{this.context.toastManager.openToast("action",{variant:"success",message:(0,D.Iu)("DL_TEAM_LIBRARY_COPIED_TOAST_PROJECTS",{libraryName:n.name,projectName:t.name}),action:{label:(0,D.Iu)("DL_OPEN_LIBRARY"),onClick:()=>Z.Z.navigateToLibrary(n)}})}))}});j.ZP.reportEvent("Operations","Promote Team Library","click","start"),this.context.toastManager.openToast("message",{variant:"info",message:(0,D.Iu)("DL_TEAM_LIBRARY_MOVING_TOAST",{libraryName:e.name,projectName:t.name})}),this.context.libraryManager.fetchLibraryCollaborations(e).catch((()=>Promise.resolve())).then((()=>{try{this.context.libraryManager.moveLibrary(e,t,{permissionInheritance:this.permission}),j.ZP.reportEvent("Operations","Promote Team Library","click","finish");const n=n=>{if(!this.context.libraryManager.currentLibrary||this.context.libraryManager.currentLibrary.id===e.id){const r=()=>{Z.Z.navigateToLibrary(n)};this.context.toastManager.openToast("action",{variant:"success",message:(0,D.Iu)("DL_TEAM_LIBRARY_SAVED_TOAST",{libraryName:e.name,projectName:t.name}),action:{label:(0,D.Iu)("DL_OPEN_LIBRARY"),onClick:r}}),Z.Z.navigateToLibrary(n)}if(d.Z.currentProduct.config.showShareSheetAfterPromote){const t=(0,o.when)((()=>n.isPushedToServer),(()=>{this._openShareSheetWithCollaborators(n,e.collaborators)}));setTimeout(t,d.Z.OPEN_SHARESHEET_TIMEOUT)}return r(n)},i=(0,o.when)((()=>this.context.libraryManager.libraries.find((t=>t.id===e.id))),(()=>{const t=this.context.libraryManager.libraries.find((t=>t.id===e.id));n(t)}));setTimeout(i,5e3)}catch(e){return this.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_TEAM_LIBRARY_MOVE_FAILED")}),j.ZP.reportError("Operations","Promote Team Library",e&&e.description,"flyout-menu","promote-library-error",void 0,this.context.libraryManager.currentLibrary),n(e)}}))}})}))}invite(e,t=!1){if(j.ZP.reportEvent("Library Operations","Collaboration","click","invite",{content:{category:t?"Header":"List"}},e),Z.Z.showShareSheet)Z.Z.showShareSheet(e,f.$_(e)?"share":"invite",this.context.dialogManager);else if(f.u4()){const t=f.$_(e)?"share":"invite";this.context.libraryManager.openInCCD(`/assets/libraries/sharesheet/${t}/${e.id}`)}else R.nd(e)}getLink(e,t=!1){if(Z.Z.showShareSheet)return j.ZP.reportEvent("Library Operations","Collaboration","click","share-link",{content:{category:t?"Header":"List"}},e),void Z.Z.showShareSheet(e,"getLink");f.u4()?this.context.libraryManager.openInCCD(`/assets/libraries/sharesheet/getLink/${e.id}`):R.Oh(e)}makeTeamPersonalCopy(e){var t=this;return z(G().mark((function r(){var n;return G().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&f.$_(e)){n=t.context.libraryManager.copyLibrary(e);try{t.context.libraryManager.currentLibrary=n,t.context.toastManager.openToast("action",{variant:"success",message:(0,D.Iu)("DL_LIBRARY_PERSONAL_COPY_TOAST"),action:{label:(0,D.Iu)("DL_OPEN_LIBRARY_COPY"),id:"personalCopy",onClick:()=>Z.Z.navigateToLibrary(n)}}),j.ZP.reportEvent("Operations","Personal Copy Team Library","click","finish")}catch(e){j.ZP.reportError("Operations","Personal Copy Team Library",e&&e.description,"flyout-menu","personal-copy-library-error",void 0,t.context.libraryManager.currentLibrary),t.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_TEAM_LIBRARY_COPY_FAILED")}),t.context.libraryManager.deleteLibrary(n)}}case 1:case"end":return r.stop()}}),r)})))()}duplicateLibrary(e){var t=this;return z(G().mark((function r(){return G().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:try{t.context.libraryManager.copyLibrary(e)}catch(e){}case 3:case"end":return r.stop()}}),r)})))()}getLibraryActions(e,t=!1,r=!1,n=!1){const i=e.collaboration||(f.D3(e)?"bookmarked":"private"),o=M.Ol(e),a=o?"brands":"libraries",s=e.isPushedToServer&&e.isWritable&&!e.toolkitId&&this.context.libraryManager.isSharingEnabled&&this._isActionAllowed("invite"),c=e.isPushedToServer&&e.isWritable&&!e.toolkitId&&this.context.libraryManager.isSharingEnabled&&!f.$_(e)&&this._isActionAllowed("getLink"),l=Z.Z.supportsFilePicker&&e.elements.length>0&&!e.isDeletedFromServer&&this._isActionAllowed("export"),u=e.isPushedToServer&&f.iM(e),p=e.isWritable&&d.Z.currentProduct.config.showLibraryActionDuplicate,h=[u&&{id:"styleguide",label:f.kg(e),onClick:()=>R.q4(e),enableMenu:!0,hideIcon:!0},s&&{id:"invite",label:(0,D.Iu)("DL_FLYOUT_COLLABORATE"),onClick:()=>this.invite(e,t),enableMenu:!0,icon:"Invite",hideIcon:!0},c&&{id:"getLink",label:(0,D.Iu)("DL_FLYOUT_SHARE_LINK"),onClick:()=>this.getLink(e,t),enableMenu:!0,hideIcon:!0},(s||c)&&{id:"shareDivider",divider:!0},l&&{id:"export",label:(0,D.Iu)("DL_EXPORT"),enableMenu:!0,onClick:()=>this.export(e),hideIcon:!0},(0,N.EZ)(e)&&{id:"editInSource",label:(0,D.Iu)("DL_EDIT_IN_SOURCE"),enableMenu:!0,onClick:()=>(0,N.Fb)(e)},!e.isDocumentAssets&&f.W(e)&&{id:"rename",label:(0,D.Iu)("DL_RENAME"),enableMenu:!0,onClick:()=>{if(j.ZP.reportEvent("Operations",a,"click","rename",{},e),t)Z.Z.setHeader(!0,!0);else if(r){const t=new Proxy(e,{get:(e,t)=>"id"===t?`${e.id}${d.Z.RECENT_LIBRARY_ID_FLAG}`:e[t]});this.context.viewManager.startRename(t)}else n?this.context.dialogManager.openDialog("renameLibrary",{library:e}):this.context.viewManager.startRename(e)},icon:"Rename",hideIcon:!d.Z.currentProduct.config.showLibraryActionMenuIcons},p&&{id:"duplicate",label:(0,D.Iu)("DL_DUPLICATE_ITEM"),enableMenu:!0,onClick:()=>this.duplicateLibrary(e),icon:"Duplicate",hideIcon:!d.Z.currentProduct.config.showLibraryActionMenuIcons}].filter((e=>e));f.zW(e)||f.$_(e)||!f.pN(e)||e.toolkitId||h.push({id:"leave",label:"bookmarked"===i?(0,D.Iu)(M.Ol(e)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES"):(0,D.Iu)("DL_LEAVE"),enableMenu:!0,onClick:()=>this.delete(e,!1),destructive:!0,icon:"Leave",hideIcon:!0}),e.isDocumentAssets||f.$_(e)||!f.GL(e)||h.push({id:"delete",label:(0,D.Iu)("DL_DELETE"),enableMenu:!0,onClick:()=>this.delete(e,!1),destructive:!0,icon:"Delete",hideIcon:!d.Z.currentProduct.config.showLibraryActionMenuIcons}),f.$_(e)&&!d.Z.currentProduct.config.hideTeamLibraryAction&&h.push({id:"personalCopy",label:(0,D.Iu)("DL_LIBRARY_SAVE_PERSONAL_COPY"),enableMenu:!0,onClick:()=>this.makeTeamPersonalCopy(e),hideIcon:!0},e.isPushedToServer&&!e.isDeletedFromServer&&{id:"leaveTeamLibrary",label:(0,D.Iu)(M.Ol(e)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES"),enableMenu:!0,onClick:()=>this.delete(e,!0),hideIcon:!0},f.GL(e)&&{id:"delete",label:(0,D.Iu)("DL_DELETE"),enableMenu:!0,onClick:()=>this.delete(e,!1),hideIcon:!0});const m=!d.Z.currentProduct.config.hideLibraryActionPromote&&f.IA()&&this.context.libraryManager.platformFolders.length>0&&!f.$_(e)&&e.isPushedToServer&&e.isWritable&&!e.toolkitId&&f.Wv(e)&&this.context.libraryManager.isOnline,g=this.context.libraryManager.platformFolders.filter((t=>{var r;return t.id!==(null===(r=e.project)||void 0===r?void 0:r.id)})),v=!d.Z.currentProduct.config.hideLibraryActionMoveCopy&&f.IA()&&g.length>0&&e.isPushedToServer&&e.isWritable&&!e.toolkitId&&this.context.libraryManager.isOnline;if((B.Z.get("enableProjects")?v:m)&&h.push({id:"promoteTeamLib",label:(0,D.Iu)("DL_PROMOTE"),enableMenu:!this.context.viewState.isImportExportInProgress,onClick:()=>{this.promote(e)},hideIcon:!0}),B.Z.get("brandFeatureEnabled")&&this.context.viewState.isLibraryWritable(e,!1,!0)){const t=(0,D.Iu)(o?"DL_UNBRAND":"DL_BRAND"),r=o?"unbrand":"brand";h.push({id:"brandDivider",divider:!0},{id:r,label:t,enableMenu:!0,onClick:()=>{j.ZP.reportEvent("Operations",a,"click",r,{},e),o?uc.panel.brandActions.unbrandLibrary(e):uc.panel.brandActions.brandLibrary(e)}})}return h.filter((e=>e))}validateLibraryName(e,t,r=!1){const n=f.QZ(e),i=!t||!f.J3(e,t);return r&&!n?this.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_LIBRARY_NAME_INVALID")}):r&&!i&&this.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_LIBRARY_NAME_DUPLICATE")}),n&&i}autogenerateEmptyLibraryGroups(e){const t={},r=F.Z.groupElementsByType(e.elements,"name").reduce(((e,t)=>e.concat(t.children)),[]);r.forEach((e=>{const r=F.Z.getAutoGroupName(e);t[r]||(t[r]=[]),t[r].push(e)}));const n=Object.keys(t),i=e=>d.Z.AUTO_GROUPS_ORDER.indexOf(e);n.sort(((e,t)=>i(t)-i(e))),j.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Auto Group"}}),e.beginOperation(),n.forEach((r=>{j.ZP.setExtraEventMetrics("createGroup",{content:{category:"Auto Group"},event:{value:"single"}});const n=f.sS(e,(0,D.Iu)(r));f.c_(t[r],n,void 0,!1)})),e.endOperation(),j.ZP.reportEvent("Create Group","Group","click","create",{event:{value:"agg",count:n.length},content:{category:"Auto Group"}}),j.ZP.reportEvent("Element Operations","Element","click","add-to-group",{event:{value:"agg",count:r.length},content:{category:"Auto Group"}})}createBrandLibrary(){this.context.dialogManager.openDialog("createLibrary",{createTitle:"DL_CREATE_NEW_BRAND_LIBRARY",createPlaceholder:"DL_CREATE_NEW_BRAND_PLACEHOLDER",isCreatingBrand:!0})}}class H extends s{constructor(...e){super(...e),this._openShareSheet=e=>{const t=(0,o.when)((()=>e.isPushedToServer),(()=>Z.Z.showShareSheet(e)));setTimeout(t,d.Z.OPEN_SHARESHEET_TIMEOUT)}}publish(e){if(!Z.Z.isSavedCloudDocument)return new Promise((t=>this.context.dialogManager.openDialog("saveCloudDoc",{onSave:()=>t(this.publish(e))})));if(this.context.libraryManager.publishState.isPublishedLibraryNotFound)return this.relinkDocument(e);if(this.context.libraryManager.publishState.isPublished)return this.context.libraryManager.publish(e);const t=t=>Z.Z.waitForCloudAssetId().then((()=>this.context.libraryManager.publish(e,t).then(this._openShareSheet))),r=e.elements.some((e=>e.isLinked))?"local-and-linked":"local";if(!(0,f.IA)()){const n={event:{value:"Private",count:e.getGroups().length},content:{type:r}};return j.ZP.reportEvent("Manager","Manage","click","publish",n),t()}const n=this.context.libraryManager.platformFolders&&this.context.libraryManager.platformFolders.filter((e=>e.isWritable)),i=n.length&&n[0]||void 0;return new Promise((t=>{this.context.dialogManager.openDialog("publishLibrary",{assetsContainer:e,defaultTeam:i,onPublish:e=>t(e.then(this._openShareSheet))})}))}upgradeSubscription(){Z.Z.handleUpgradeButtonClicked()}relinkDocument(e){return new Promise((t=>{this.context.dialogManager.openDialog("relinkDocumentLibrary",{onRelinkChoice:r=>{Promise.resolve().then((()=>"createNew"===r?(Z.Z.linkDocumentToLibrary(),j.ZP.reportEvent("Manager","Manage","click","linkToNewDocLibrary"),t(this.publish(e))):Z.Z.waitForCloudAssetId().then((()=>(j.ZP.reportEvent("Manager","Manage","click","relinkDocLibraryToDocument"),t(this.context.libraryManager.publish(e)))))))}})}))}relinkAssetToLibrary(e){return e.canRelinkToLibrary?new Promise((t=>{Z.Z.openApplicationDialog("relinkDocumentAsset",{element:e,onRelink:e=>{const r=[],n=this.context.libraryManager.documentAssetsContainer.missingLinks.length;return e.forEach((({asset:e,element:t})=>{e.newLinkedElementRef=t.getReference(),r.push(e)})),Z.Z.updateLinkedAssets(r).finally((()=>{r.forEach((e=>{e.newLinkedElementRef=null})),j.ZP.reportEvent("RelinkDocumentAssetDialog","Element","click","relinkAssetToLibrary"),t(this._getLinksResolutionStatus(r)),this._showLinksResolutionStatus({elements:r,totalMissingLinksBefore:n})}))},onCancel:()=>t({resolvedLinks:[],unresolvedLinks:[e]})})})):Promise.reject("Asset is not relinkable to a library.")}relinkDocumentToOrphanedLibrary(e){this.context.dialogManager.openDialog("relinkOrphanedDocumentLibrary",{relinkToOrphanLibrary:(0,o.action)((t=>{Z.Z.linkDocumentToLibrary(t.id),j.ZP.reportEvent("Manager","Manage","click","relinkToOrphanLibrary"),(Z.Z.documentName!==t.name||this.context.libraryManager.publishState.isPendingUpdate)&&this.publish(e)}))})}resolveLinks(e){const t=[],r=new Set,n=new Set;return e.forEach((e=>{const t=e.cachedLinkedLibraryId,i=e.cachedLinkedLibraryAssetId,o=Object.freeze({assetId:i,libraryId:t});e.isPendingInvite&&n.add(o),e.isPendingFollow&&r.add(o)})),r.size||n.size?(n.size&&(j.ZP.reportEvent("ResolveBrokenLinksDialog","resolveLinks","click","acceptLibraryInvites"),t.push(this.context.libraryManager.acceptAllLibraryInvitations())),r.forEach((({assetId:e,libraryId:r})=>{j.ZP.reportEvent("ResolveBrokenLinksDialog","resolveLinks","click","followTeamLibrary"),t.push(this.context.libraryManager.followLibrary(e,r))})),this._showLinkResolutionProgress(Promise.all(t),e)):Promise.reject("No resolvable broken links found")}_showLinkResolutionProgress(e,t){if(!e||!t||!t.length)return;const r=this.context,n=r.libraryManager,i=r.toastManager,a=t[0].library.missingLinks.length;return new Promise((r=>(n.showSyncSpinner(),i.openToast("syncProgress"),e.finally((()=>{(0,o.when)((()=>!["working","syncing"].includes(n.syncStatus.state)),(()=>{r(this._getLinksResolutionStatus(t)),(0,o.when)((()=>!i.toast),(()=>this._showLinksResolutionStatus({elements:t,totalMissingLinksBefore:a})))}))})))))}_getLinksResolutionStatus(e){const t=[],r=[];return e.forEach((e=>{(e.isMissingLink||e.isDeprecatedLegacyDocumentLink?r:t).push(e)})),{resolvedLinks:t,unresolvedLinks:r}}_showLinksResolutionStatus({elements:e,totalMissingLinksBefore:t}){const r=e[0].library,n=this._getLinksResolutionStatus(e),i=n.resolvedLinks,o=n.unresolvedLinks;if(o.length)this._showUnresolvedLinksStatus({unresolvedLinks:o});else{const n=r.missingLinks.length;this._showResolvedLinksStatus({elements:e,resolvedLinks:i,totalMissingLinksBefore:t,totalMissingLinksAfter:n})}}_showResolvedLinksStatus({elements:e,resolvedLinks:t,totalMissingLinksBefore:r,totalMissingLinksAfter:n}){const i=this.context.toastManager;if(e.length>1){const e=r-n;i.openToast("message",{variant:"success",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_SUCCESS_NUM",{count:e})})}else{const e=r-(n+t.length);if(!e)return i.openToast("message",{variant:"success",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_SUCCESS")});const o=e>1?"DL_RESOLVE_BROKEN_LINK_TOAST_SUCCESS_ADDITIONAL_NUM":"DL_RESOLVE_BROKEN_LINK_TOAST_SUCCESS_ADDITIONAL_SINGULAR";i.openToast("message",{variant:"success",message:(0,D.Iu)(o,{count:e})})}}_showUnresolvedLinksStatus({unresolvedLinks:e}){const t=this.context.toastManager,r={label:(0,D.Iu)("DL_LEARN_MORE"),onClick:()=>(0,R.Az)()};if(e.length>1)t.openToast("action",{variant:"error",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_ERROR_NUM",{count:e.length}),action:r});else{var n;const i=e[0],o=null===(n=this.context.libraryManager.relinkableAssetsData.assets)||void 0===n?void 0:n.get(i.id);if(null!=o&&o.length)return t.openToast("action",{variant:"error",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_ERROR_MISSING_ELEMENT_MATCH"),action:r});if(i.isMissingElement)return t.openToast("message",{variant:"error",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_ERROR_MISSING_ELEMENT_NO_MATCH")});t.openToast("action",{variant:"error",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_ERROR"),action:r})}}}var Y=r(89526),W=r(2652),$=r.n(W),K=r(62631),q=r(51385),X=r(27611),J=r(64403),Q=r.n(J),ee=r(24937),te=r(43616);const re={sectionHeader:"ich",currentLabel:"PLe",labelText:"sDg",label:"C0y",dropdownIcon:"VqV",dropdown:"n1f"};var ne,ie,oe,ae,se,ce;function le(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 ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function de(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 he(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let fe=(ne=o.observable.ref,(0,K.Pi)((ce=class e extends Y.Component{constructor(...e){super(...e),de(this,"customLabelRef",ae,this),de(this,"selectedPermission",se,this),this.setCustomLabelRef=e=>{this.customLabelRef=e}}componentDidMount(){const t=e.dropdownOptions.find((e=>e.key===this.props.defaultPermission))||e.dropdownOptions[0];this.onDropdownSelectionHandler(t)}onDropdownSelectionHandler(e){this.selectedPermission=e,this.props.onPermissionChange(e.key)}getLabel(e,t=!1){if(e)return Y.createElement("div",{ref:this.setCustomLabelRef,tabIndex:t?"0":null,className:Q()(re.label,"label",{[re.currentLabel]:t})},e.icon,Y.createElement("div",{className:re.labelText},(0,D.Iu)(e.label)),t&&Y.createElement("div",{className:Q()(re.dropdownIcon,"dropdown-icon")},Y.createElement(X.Z,{id:"ChevronDownSmall",height:d.Z.currentProduct.config.dropdownChevronHeight||8})))}get dropdownData(){return e.dropdownOptions.map((e=>ue(ue({},e),{},{label:e&&this.getLabel(e),onClick:()=>this.onDropdownSelectionHandler(e),isSelected:this.selectedPermission&&this.selectedPermission.key===e.key})))}render(){return Y.createElement("div",{className:re.container},Y.createElement("div",{className:re.sectionHeader,"data-test-id":"team-permissions-dropdown-label"},(0,D.Iu)("DL_PERMISSION_TITLE")),Y.createElement("div",{className:re.dropdown},Y.createElement(te.Z,{data:this.dropdownData,type:"team-permissions",currentLabel:this.getLabel(this.selectedPermission,!0),className:"team-permissions-dropdown",wrapCustomLabel:!1,customLabelRef:this.customLabelRef,locationBasedOnLabel:!0})))}},ce.dropdownOptions=[{label:"DL_CAN_VIEW_AND_USE",id:"visibility",icon:Y.createElement(X.Z,{id:"Visibility",height:18}),key:"read"},{label:"DL_CAN_EDIT",id:"editPermission",icon:Y.createElement(X.Z,{id:"Edit",height:18}),key:"all"}],ce.propTypes={onPermissionChange:$().func.isRequired,defaultPermission:$().oneOf(["read","all"])},ce.defaultProps={defaultPermission:"read"},ae=he((oe=ce).prototype,"customLabelRef",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=he(oe.prototype,"selectedPermission",[ne],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=oe))||ie);var me=r(30222),ge=r(83377),ve=r(28086),ye=r(94859),be=r(82530);const _e=["renderLabel","label","className","checked","defaultChecked","disabled","children","quiet","onChange"];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 we(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){Le(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 Le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Se(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Se=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Oe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Te(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Oe(o,n,i,a,s,"next",e)}function s(e){Oe(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Ie=(0,ye.Z)(r(21504)).default;let Pe;be.env.EXCLUDE_SWC||(Pe=new ve.t(["sp-switch"],Te(Se().mark((function e(){var t,n;return Se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(3223)]).then(r.bind(r,5169));case 2:return t=e.sent,n=t.Switch,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Ce=(0,ge.Z)({displayName:"Switch",fallback:Ie,swcLoader:Pe,SWCWrapper:e=>{const t=(0,Y.useRef)(null),r=e.renderLabel,n=void 0===r||r,i=e.label,o=e.className,a=e.checked,s=e.defaultChecked,c=e.disabled,l=e.children,u=e.quiet,p=e.onChange,d=xe(e,_e);(0,Y.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;null==p||p(t.checked,e)};return e&&p&&e.addEventListener("change",r),()=>{e&&p&&e.removeEventListener("change",r)}}),[p]);const h=(0,me.Co)("sp-switch");return Y.createElement(h,we(we(we({},d),(0,me.cd)({checked:null!=a?a:s,disabled:c,emphasized:!u})),{},{class:o,ref:t}),n?i:"",l)},tagName:"sp-switch"});var Ae=r(99767);const ke={sectionHeader:"u9N",switch:"OiU",helpIconContainer:"upE",helpIconInnerContainer:"eZX",helpIcon:"gs_",disableDropdown:"Gx_"};var De,Ne,Re,Me,je,Ze;function Fe(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 Be(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ge=(De=o.observable.ref,(0,K.Pi)((Ze=class e extends Y.Component{constructor(...t){super(...t),Fe(this,"customLabelRef",Me,this),Fe(this,"selectedPermission",je,this),this.onSwitchChange=t=>{this.onSwitchSelectionHandler(e.switchOptions[t?0:1])}}componentDidMount(){const t=e.switchOptions.find((e=>e.key===this.props.defaultPermission))||e.switchOptions[0];this.onSwitchSelectionHandler(t)}onSwitchSelectionHandler(e){this.selectedPermission=e,this.props.onPermissionChange(e.key)}get showHelp(){return!Z.Z.isMobileView}render(){var e;return Y.createElement("div",{className:ke.container,"data-test-id":"team-permissions-switch-wrapper"},Y.createElement("div",{className:ke.sectionHeader,"data-test-id":"team-permissions-switch-label"},(0,D.Iu)("DL_PROJECT_PERMISSION_TITLE")),Y.createElement("div",{className:ke.switch},Y.createElement(Ce,{"data-test-id":"team-permissions-switch",onChange:this.onSwitchChange,checked:null===(e=this.selectedPermission)||void 0===e?void 0:e.switchOn,quiet:!0,label:(0,D.Iu)("DL_PROJECT_PERMISSION_SWITCH_LABEL")}),this.showHelp&&Y.createElement("div",{className:ke.helpIconContainer,"data-test-id":"switch-help-icon"},Y.createElement(Ae.Z,{content:(0,D.Iu)(this.props.isBrandLibrary?"DL_PROJECT_PERMISSION_SWITCH_INFO_BRAND":"DL_PROJECT_PERMISSION_SWITCH_INFO_LIBRARY")},Y.createElement("span",{tabIndex:"0",className:ke.helpIconInnerContainer},Y.createElement(X.Z,{id:"InfoOutline",className:ke.helpIcon,height:18}))))))}},Ze.switchOptions=[{switchOn:!0,key:"read"},{switchOn:!1,key:"all"}],Ze.propTypes={onPermissionChange:$().func.isRequired,defaultPermission:$().oneOf(["read","all"]),isBrandLibrary:$().boolean},Ze.defaultProps={defaultPermission:"read"},Me=Be((Re=Ze).prototype,"customLabelRef",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),je=Be(Re.prototype,"selectedPermission",[De],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ne=Re))||Ne);var Ue=r(98949),ze=r(33275);const Ve={teamSelector:"I6b",container:"AKl",sectionHeader:"K_-",label:"vdc",noSubtext:"l02",iconContainer:"Rot",labelTextContainer:"Bps",overflow:"ttK",labelSubText:"xOS",nonDropdownLabel:"q19",dropdownRow:"UK0",dropdown:"ykH",helpIconContainer:"rix",helpIconInnerContainer:"weW",helpIcon:"NI9",permissionSelector:"IH7",alignCenter:"W3d",labelIcon:"V93",smallIcon:"gBt",labelPersonal:"GXj"};var He,Ye,We,$e,Ke;function qe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Xe=(He=o.observable.ref,(0,K.Pi)((Ke=class extends Y.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="selectedFolder",i=this,(n=$e)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}componentDidMount(){if(this.context.libraryManager.refreshTeams(),this.props.defaultTeam)this.selectedFolder=this.props.defaultTeam;else if(!this.props.showPersonalFolder&&this.teams.length>0){const e=this.teams.find((e=>!this.props.disabledTeamIds.includes(e.id)));this.selectedFolder=e,this.props.onFolderChange(e)}this.updateSelectedFolderPermission()}get teams(){return this.context.libraryManager.platformFolders&&this.context.libraryManager.platformFolders.filter((e=>{var t,r;return e.isWritable&&e.id!==(null===(t=this.props.library)||void 0===t||null===(r=t.team)||void 0===r?void 0:r.id)}))}get currentLabel(){return this.getLabel(this.selectedFolder)}get projectsEnabled(){return B.Z.get("enableProjects")}get disableProjectsPermissionSwitch(){var e,t;return"user"===(null===(e=this.selectedFolder)||void 0===e||null===(t=e.owner)||void 0===t?void 0:t.type)}getPlainTextLabel(e){return e?e.name:this.projectsEnabled?this.props.personalFolderIsBrands?(0,D.Iu)("DL_BRANDS"):(0,D.Iu)("DL_LIBRARIES"):(0,D.Iu)("DL_PERSONAL_STORAGE")}getLabelIcon(e){if(this.projectsEnabled&&null!=e&&e.gradientData)return Y.createElement(Ue.Z,{project:e});let t="User";return this.projectsEnabled&&(t=this.props.personalFolderIsBrands?"CCXCreateLogo":"CCLibrary"),Y.createElement(X.Z,{className:Ve.labelIcon,id:e?"Building":t,height:"M"===this.props.iconSize?18:12})}getLabel(e){return Y.createElement("div",{className:Q()(Ve.label,{[Ve.noSubtext]:!(e&&e.ownerName),[Ve.alignCenter]:"M"===this.props.iconSize})},Y.createElement("div",{className:Q()(Ve.iconContainer,{[Ve.labelPersonal]:!e,[Ve.smallIcon]:"S"===this.props.iconSize})},this.getLabelIcon(e)),Y.createElement("div",{className:Ve.labelTextContainer},Y.createElement("div",{className:Q()(Ve.labelText,Ve.overflow)},this.getPlainTextLabel(e)),!this.projectsEnabled&&(null==e?void 0:e.ownerName)&&Y.createElement("div",{className:Q()(Ve.labelSubText,Ve.overflow)},e.ownerName)))}onClickDropdownItem(e){this.selectedFolder=e,this.updateSelectedFolderPermission(),this.props.onFolderChange(e)}updateSelectedFolderPermission(){this.disableProjectsPermissionSwitch&&this.props.onPermissionChange("all")}get folderMenuData(){const e=this.teams.map((e=>{const t={label:this.getLabel(e),sublabel:this.projectsEnabled?null:null==e?void 0:e.ownerName,onClick:()=>this.onClickDropdownItem(e),isSelected:this.selectedFolder&&this.selectedFolder.id===e.id,disabled:this.props.disabledTeamIds.includes(e.id),key:e.id,id:"teamPermission"};return this.projectsEnabled&&(t.iconContent=this.getLabelIcon(e)),t}));return this.props.showPersonalFolder&&e.unshift({label:this.getLabel(),onClick:()=>this.onClickDropdownItem(null),isSelected:!this.selectedFolder,key:"personal",id:"personalPermission",iconContent:this.projectsEnabled?null:this.getLabelIcon()}),e}get showHelp(){return!Z.Z.isMobileView&&this.props.showHelp}get infoTooltipContent(){return this.projectsEnabled?(0,D.Iu)(this.props.personalFolderIsBrands?"DL_PROJECT_BRAND_HELP":"DL_PROJECT_LIBRARY_HELP"):(0,D.Iu)("DL_TEAM_LIBRARY_HELP")}get permissionSelector(){let e=fe;if(this.projectsEnabled){if(this.disableProjectsPermissionSwitch)return null;e=Ge}return Y.createElement(e,{onPermissionChange:this.props.onPermissionChange,defaultPermission:this.props.defaultPermission,isBrandLibrary:this.props.personalFolderIsBrands})}get dropdown(){if(this.projectsEnabled&&(this.props.disableTeamSelection||0===this.teams.length))return Y.createElement("div",{"data-test-id":"team-selector-static-label",className:Ve.nonDropdownLabel},this.currentLabel);const e=Q()(Ve.teamSelector,this.props.className);return Y.createElement(Y.Fragment,null,Y.createElement("div",{className:Q()(Ve.dropdown)},Y.createElement(te.Z,{data:this.folderMenuData,type:this.props.type,className:Q()(e,"team-selector-dropdown"),currentLabel:this.currentLabel,maxHeight:this.props.maxHeight,disabled:this.props.isDisabled,noDropdown:this.props.disableTeamSelection,locationBasedOnLabel:!0,wrapCustomLabel:!0})),this.showHelp&&Y.createElement("div",{"data-test-id":"selector-help-icon",className:Ve.helpIconContainer},Y.createElement(Ae.Z,{content:this.infoTooltipContent,delay:0},Y.createElement("span",{tabIndex:"0",className:Ve.helpIconInnerContainer},Y.createElement(X.Z,{id:"InfoOutline",className:Ve.helpIcon,height:18})))))}render(){const e=0===this.teams.length;return!this.projectsEnabled&&e||this.projectsEnabled&&e&&!this.props.showPersonalFolder?null:Y.createElement("div",{className:Ve.container},Y.createElement("div",{className:Ve.sectionHeader},(0,D.Iu)("DL_TEAM_LIBRARY_SAVE_TO")),Y.createElement("div",{className:Ve.dropdownRow},this.dropdown),this.selectedFolder&&this.permissionSelector&&Y.createElement("div",{className:Ve.permissionSelector},this.permissionSelector))}},Ke.contextType=ee.r,Ke.propTypes={onFolderChange:$().func.isRequired,library:$().instanceOf(ze.Zu),onPermissionChange:$().func,className:$().string,showPersonalFolder:$().bool,personalFolderIsBrands:$().bool,type:$().oneOf(["team-libraries","publish-team-libraries"]),maxHeight:$().number,isDisabled:$().bool,defaultTeam:$().object,defaultPermission:$().oneOf(["read","all"]),disableTeamSelection:$().bool,disabledTeamIds:$().arrayOf($().string),showHelp:$().bool,iconSize:$().oneOf(["S","M"])},Ke.defaultProps={type:"team-libraries",showHelp:!1,disabledTeamIds:[],onPermissionChange:()=>{},iconSize:"M"},$e=qe((We=Ke).prototype,"selectedFolder",[He],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qe(We.prototype,"teams",[o.computed],Object.getOwnPropertyDescriptor(We.prototype,"teams"),We.prototype),Ye=We))||Ye);var Je,Qe,et,tt,rt,nt,it;function ot(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 at(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let st=(Je=o.observable.ref,(0,K.Pi)(((it=class extends Y.Component{constructor(...e){super(...e),ot(this,"name",tt,this),ot(this,"hasPressedKey",rt,this),ot(this,"selectedFolder",nt,this),this.teamLibraryPermission=void 0,this.setInputElement=e=>{this.inputElement=e},this.onClickOK=()=>{this.name=this.name.trim(),this.createLibrary("click")},this.onTextChange=e=>{e.stopPropagation(),this.name=e.target.value},this.onKeyDown=e=>(e.stopPropagation(),"Enter"===e.key&&this.isValidName&&!Z.Z.isComposingInputEvent(e)?(e.preventDefault(),this.createLibrary("keydown"),this.props.close&&this.props.close(),void(this.props.onClose&&this.props.onClose())):27===e.keyCode?(this.props.close&&this.props.close(),void(this.props.onClose&&this.props.onClose())):void(this.hasPressedKey||(this.hasPressedKey=!0,j.ZP.reportEvent("Create Library","New Library","keydown","input")))),this.handleFolderChange=e=>{this.selectedFolder=e},this.onPermissionChange=e=>{this.teamLibraryPermission=e}}componentDidMount(){this.selectedFolder=this.defaultTeam,j.ZP.reportEvent("Create Library","Library Selector","click","new-library",{"custom.library":{filter:this.isCreatingBrand?"brands":"libraries"}}),j.ZP.reportEvent("Create Library","New Library","render","view"),setTimeout((()=>{var e;null===(e=this.inputElement)||void 0===e||e.focus()}))}get defaultTeam(){if(this.props.defaultTeam)return this.props.defaultTeam;const e=j.ZP.currentUserId,t=e&&!e.includes("@AdobeID");if(!B.Z.get("enableProjects")||t){return this.context.libraryManager.platformFolders.filter((e=>e.isWritable))[0]}}get warningMessage(){const e=(0,f.SS)(this.name.trim(),this.selectedFolder);return e===d.Z.RENAME_STATES.VALID?this.remainingCharacters<=d.Z.MAX_REMAINING_CHARACTERS_LENGTH?{message:(0,D.Iu)("DL_LIBRARY_NAME_REMAINING_CHARACTERS",{charCount:this.remainingCharacters})}:void 0:{isError:!0,message:(0,D.Iu)(d.Z.RENAME_STATE_ERROR_MESSAGES[e],{charCount:this.remainingCharacters})}}get isDuplicateLibraryName(){return this.selectedFolder&&(0,f.J3)(this.name,this.selectedFolder)}get isOverMaxLength(){return this.name.trim().length>d.Z.MAX_INPUT_STRING_LENGTH}get remainingCharacters(){const e=this.name.trim().length;return d.Z.MAX_INPUT_STRING_LENGTH-e}get isValidName(){return!this.isErrorWarning}get showWarning(){return this.hasPressedKey&&this.name.trim().length>0&&this.warningMessage}get isErrorWarning(){var e;return null===(e=this.warningMessage)||void 0===e?void 0:e.isError}get isCreatingBrand(){return this.props.isCreatingBrand}createLibrary(e){let t;j.ZP.setExtraEventMetrics("createLibrary",{opType:"newLibrary"});const r=this.isCreatingBrand?{roles:[{type:d.Z.ROLE_TYPE_BRAND}]}:{};this.selectedFolder?(r.permissionInheritance=this.teamLibraryPermission,t=this.context.libraryManager.createTeamLibrary(this.selectedFolder.id,this.name,r)):t=this.context.libraryManager.createLibrary(this.name,r),j.ZP.reportEvent("Create Library","New Library",e,"create",void 0,t),j.ZP.clearExtraEventMetrics("createLibrary"),this.props.onCreate?this.props.onCreate(t,this.selectedFolder):Z.Z.navigateToLibrary(t)}render(){const e=Q()("panel-dialog-layout-75","panel-dialog-input-container",{"panel-dialog-warning":this.showWarning});let t=(0,D.Iu)(Z.Z.customCreateLibraryHeader||this.props.createTitle);return t=Z.Z.capitalizeCreateLibraryHeader?t.toLocaleUpperCase(Z.Z.getLocale()):t,Y.createElement(q.Z,{className:Q()("panel-dialog-create","panel-dialog-share"),title:t,okButtonText:(0,D.Iu)("DL_CREATE"),onClickOK:this.onClickOK,close:this.props.close,okButtonEnabled:this.isValidName},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:e},Y.createElement("input",{className:"panel-dialog-input",type:"text","data-test-id":"create-library-input",spellCheck:"false",placeholder:(0,D.Iu)(this.props.createPlaceholder),style:{width:"100%"},ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),this.showWarning&&this.isErrorWarning&&Y.createElement(X.Z,{id:"Alert",height:18}))),this.showWarning&&Y.createElement("div",{"data-test-id":"panel-dialog-name-warning",className:Q()("panel-dialog-input-message",{warning:this.isErrorWarning})},this.warningMessage.message),Y.createElement("div",{className:Q()("panel-dialog-share-select-area",{warning:this.isErrorWarning})},Y.createElement(Xe,{onFolderChange:this.handleFolderChange,onPermissionChange:this.onPermissionChange,personalFolderIsBrands:B.Z.get("enableProjects")&&this.isCreatingBrand,defaultTeam:this.defaultTeam,showPersonalFolder:!0,showHelp:!0})))}}).contextType=ee.r,it.dialogName="createLibrary",it.defaultProps={createTitle:"DL_CREATE_DESIGN_LIBRARY",createPlaceholder:"DL_NAME_DESC",isCreatingBrand:!1},it.propTypes={onCreate:$().func,onClose:$().func,close:$().func,defaultTeam:$().object,isCreatingBrand:$().bool,createTitle:$().string,createPlaceholder:$().string},tt=at((et=it).prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),rt=at(et.prototype,"hasPressedKey",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nt=at(et.prototype,"selectedFolder",[Je],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=et))||Qe);var ct,lt,ut,pt,dt,ht=r(25585),ft=r(31408),mt=r(9276),gt=r(33372),vt=r(51993),yt=r(90885),bt=r(39611),_t=r(16203);function Et(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 wt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Lt=(0,K.Pi)(((dt=class extends Y.Component{constructor(e){super(e),Et(this,"name",ut,this),Et(this,"hasPressedKey",pt,this),this.warningMessage="",this.setInputElement=e=>{this.inputElement=e},this.onClickOK=()=>{this.name=this.name.trim(),this.renameLibrary("click")},this.onTextChange=e=>{e.stopPropagation(),this.name=(0,ht.aS)(e.target.value,d.Z.MAX_INPUT_STRING_LENGTH,!1)},this.onKeyDown=e=>{e.stopPropagation(),"Enter"===e.key&&this.isValidName&&!Z.Z.isComposingInputEvent(e)&&(this.renameLibrary("keydown"),this.props.close&&this.props.close()),this.hasPressedKey||(this.hasPressedKey=!0)},this.name=this.props.library.name}get title(){return(0,D.Iu)("DL_RENAME_LIBRARY",{name:this.props.library.name})}componentDidMount(){setTimeout((()=>{this.inputElement.focus(),this.inputElement.select()}))}get isValidName(){const e=this.context.libraryManager.platformFolders.find((e=>this.props.library.parentDirectoryId===e.id));return e&&(0,f.J3)(this.name,e)?(this.warningMessage=(0,D.Iu)("DL_LIBRARY_RENAME_DUPLICATE"),!1):(this.warningMessage=(0,D.Iu)("DL_LIBRARY_NAME_INVALID"),this.props.library.isWritable&&(0,f.QZ)(this.name))}get showWarning(){return this.hasPressedKey&&this.name.trim().length>0&&!this.isValidName}renameLibrary(e){j.ZP.reportEvent("Library Operations","Library",e,"rename",null,this.props.library),this.props.library.name=this.name,d.Z.currentProduct.config.showElementActionToasts&&this.context.toastManager.openToast("message",{message:(0,D.Iu)("DL_RENAME_SUCCESS_TOAST"),variant:"success"})}getElementThumbnail(e){return e.type===d.Z.COLOR_ELEMENT_TYPE?Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(mt.Z,{element:e,viewMode:"thumbnail-large",disableInteraction:!0})):e.type===d.Z.COLOR_THEME_ELEMENT_TYPE?Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(gt.Z,{element:e,viewMode:"thumbnail-large",isMosaicView:!1,disableInteraction:!0})):e.type===d.Z.GRADIENT_ELEMENT_TYPE?Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(vt.Z,{element:e,viewMode:"thumbnail-medium",disableInteraction:!0})):(0,_t.Hb)(e)?Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(yt.Z,{element:e,viewMode:"thumbnail-medium",mosaicTileSize:"full",disableInteraction:!0})):Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(ft.Z,{element:e,viewMode:"thumbnail-medium",disableInteraction:!0}))}getThumbnail(){return this.props.isElement?Y.createElement("div",{className:"panel-dialog-layout-15"},this.getElementThumbnail(this.props.library)):Y.createElement("div",{className:"panel-dialog-layout-15"},Y.createElement(bt.Z,{className:"panel-rename-thumbnail",viewMode:"grid",library:this.props.library,renditionGrid:this.props.library.renditionGrid}))}render(){const e=Q()("panel-dialog-layout-85","panel-dialog-input-container",{"panel-dialog-warning":this.showWarning});return d.Z.currentProduct.config.newRenameDialogWithThumbnail?Y.createElement(q.Z,{title:this.title,className:"rename-dialog",okButtonText:(0,D.Iu)("DL_SAVE"),onClickOK:this.onClickOK,close:this.props.close,okButtonEnabled:this.isValidName,showMosaicLibrary:!this.props.isElement},Y.createElement("div",{className:"panel-dialog-layout-group"},this.getThumbnail(),Y.createElement("div",{className:e},Y.createElement("input",{className:"rename-library-input","data-test-id":"rename-library-input",type:"text",spellCheck:"false",placeholder:(0,D.Iu)("DL_NAME_DESC"),style:{width:"100%"},ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),this.showWarning&&Y.createElement(X.Z,{id:"Alert",height:16}))),this.showWarning&&Y.createElement("div",{"data-test-id":"panel-dialog-name-warning",className:"panel-dialog-input-message"},this.warningMessage)):Y.createElement(q.Z,{title:this.title,className:"rename-dialog",okButtonText:(0,D.Iu)("DL_RENAME"),onClickOK:this.onClickOK,close:this.props.close,okButtonEnabled:this.isValidName},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:e},Y.createElement("input",{className:"rename-library-input","data-test-id":"rename-library-input",type:"text",spellCheck:"false",placeholder:(0,D.Iu)("DL_NAME_DESC"),style:{width:"100%"},ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),this.showWarning&&Y.createElement(X.Z,{id:"Alert",height:16}))),this.showWarning&&Y.createElement("div",{"data-test-id":"panel-dialog-name-warning",className:"panel-dialog-input-message"},this.warningMessage))}}).contextType=ee.r,dt.dialogName="renameLibrary",dt.propTypes={library:$().oneOfType([$().instanceOf(ze.W_),$().instanceOf(ze.Zu)]).isRequired,close:$().func,isElement:$().bool},ut=wt((lt=dt).prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),pt=wt(lt.prototype,"hasPressedKey",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ct=lt))||ct;var xt,St,Ot=r(5837),Tt=r(18580);let It=(0,K.Pi)(((St=class extends Y.Component{constructor(...e){super(...e),this.onClickLearnMore=()=>{(0,R.jg)()},this.onClickOK=()=>{var e,t;this.context.viewState.isOneUpMode&&this.context.viewState.isOneUpMode()&&this.context.viewState.resetMode(),null!==(e=(t=d.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)&&Z.Z.navigateToMosaic((0,M.Ol)(this.library)?"brands":"libraries"),this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?(this.context.libraryManager.unpublish(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_UNPUBLISH_TOAST",{libraryName:this.library.name})})):(0,f.D3)(this.library)||(0,f.wP)(this.library)?(this.context.libraryManager.unfollowLibrary(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_UNFOLLOW_TOAST",{libraryName:this.library.name})})):this.library.publishedFrom?(this._defaultDeleteLibrary(this.context.libraryManager.getLibraryByAssetId(this.library.publishedFrom)),this._defaultDeleteLibrary(this.library,!1)):this._defaultDeleteLibrary(this.library)},this._defaultDeleteLibrary=(e,t=!0)=>{this.context.libraryManager.deleteLibrary(e);let r="discard"===e.removeType?"DL_DELETE_TOAST":"DL_LIBRARY_PERMANENTLY_DELETED";d.Z.currentProduct.config.customDeleteBrandMessage&&(r="BRAND_DELETED_SHORT"),t&&this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)(r,{libraryName:this.library.name})})},this.onClickCancel=()=>{j.ZP.reportEvent("Operations","Delete Library","click","cancel")}}get library(){return this.props.library}get deleteType(){return this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?"documentLibrary":(0,f.wP)(this.library)?"incoming":"outgoing"===this.library.collaboration?"outgoing":(0,f.D3)(this.library)?"bookmarked":(0,M.Hc)(this.library)||this.library.publishedTo?"publishedBrand":"private"}get title(){return(0,M.Ol)(this.library)&&d.Z.currentProduct.config.customDeleteBrandMessage?(0,D.Iu)({private:"DELETE_BRAND",outgoing:"DELETE_BRAND",incoming:"LEAVE_BRAND",bookmarked:"DL_REMOVE_FROM_YOUR_BRANDS",documentLibrary:"BRAND_UNPUBLISH_ACTION_LONG",publishedBrand:"DELETE_BRAND"}[this.deleteType]):(0,D.Iu)({private:"DL_DELETE_LIBRARY",outgoing:"DL_DELETE_LIBRARY",incoming:"DL_LEAVE_LIBRARY",bookmarked:(0,M.Ol)(this.library)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES",documentLibrary:"DL_UNPUBLISH_LIBRARY"}[this.deleteType],{name:this.library.name})}get message(){if(this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library)return Y.createElement("div",{className:Q()({"uxp-bullet-list":!Z.Z.supportsCSSListItem})},Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_UNPUBLISH_MESSAGE_SHARING")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_UNPUBLISH_MESSAGE_ELEMENTS")}`));if((0,M.Ol)(this.library)&&d.Z.currentProduct.config.customDeleteBrandMessage){const e=this.library.visibleCollaborators.length,t=Tt.Z.isBrandLifecycleEnabled()?"DELETE_BRAND_DRAFT":"DELETE_BRAND_YOURS",r=this.library.visibleCollaborators.length>1?"DELETE_BRAND_SHARED_NUMBER":"DELETE_BRAND_SHARED_SINGULAR",n=(0,D.Iu)({private:t,outgoing:r,incoming:r,bookmarked:"DL_REMOVE_FROM_YOUR_BRANDS",publishedBrand:"DELETE_BRAND_PUBLISHED"}[this.deleteType],{name:(0,ht.aS)(this.library.name,48),numUsers:e});return Y.createElement("div",null,Y.createElement("div",{className:"panel-dialog-delete-brand"},n),"incoming"!==this.deleteType&&Y.createElement(Ot.Z,{className:"panel-dialog-delete-brand-recover","data-test-id":"delete-brand-recover-message",onClick:this.onClickLearnMore,html:(0,D.Iu)("DELETE_BRAND_RECOVER_MESSAGE")}))}return(0,D.Iu)({private:"DL_DELETE_MESSAGE",outgoing:"DL_DELETE_MESSAGE_SHARED",incoming:"DL_LEAVE_MESSAGE",bookmarked:"DL_UNFOLLOW_MESSAGE"}[this.deleteType],{name:(0,ht.aS)(this.library.name,48)})}get okButtonText(){return(0,D.Iu)({private:"DL_DELETE",outgoing:"DL_DELETE",incoming:"DL_LEAVE",bookmarked:"DL_UNFOLLOW",documentLibrary:"DL_UNPUBLISH"}[this.deleteType])}render(){return Y.createElement(q.Z,{mode:"warning",title:this.title,className:Q()("wide","delete-dialog"),okButtonText:this.okButtonText,onClickOK:this.onClickOK,onClickCancel:this.onClickCancel,close:this.props.close},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{"data-test-id":"delete-library-message",className:"panel-dialog-layout-100"},this.message)))}}).contextType=ee.r,St.dialogName="deleteLibrary",St.propTypes={library:$().instanceOf(ze.Zu).isRequired,close:$().func},xt=St))||xt;var Pt,Ct,At,kt,Dt=r(44853);function Nt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Rt=(0,K.Pi)((kt=class extends Y.Component{constructor(e){var t,r,n,i;super(e),t=this,r="val",i=this,(n=At)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.componentDidMount=()=>{this.noteInput.focus(),this.noteInput.select()},this.onTextChange=e=>{(this.charactersLeft>0||(0,ht.NJ)(e.target.value)<this.count)&&(this.val=(0,ht.aS)(e.target.value,d.Z.NOTES_MAX_CHARACTER_COUNT,!1))},this.onClickOK=()=>{const e=this.val.trim();this.props.element.description!==e&&(this.props.element.description=e)},this.setInputRef=e=>{this.noteInput=e},this.val=this.props.element.description||"",this.title=this.val?(0,D.Iu)("DL_EDIT_NOTE"):(0,D.Iu)("DL_ADD_NOTE")}get count(){return(0,ht.NJ)(this.val)}get charactersLeft(){return d.Z.NOTES_MAX_CHARACTER_COUNT-this.count}get thumbnail(){const e=F.Z.getComponent(this.props.element.type),t=d.Z.LIST_VIEW_ELEMENT_THUMBNAIL_HEIGHT;return Y.createElement("div",{"data-test-id":"note-dialog-thumbnail-container",className:"note-dialog-thumbnail-container"},Y.createElement(e,{element:this.props.element,viewMode:"thumbnail",width:t}),Y.createElement("div",{className:"panel-dialog-note-element-name-container"},Y.createElement("div",{className:"panel-dialog-note-element-name","data-test-id":"thumbnail-viewmode-name"},this.props.element.name)))}get okButtonEnabled(){return this.count>0||""!==this.props.element.description}render(){return Y.createElement(q.Z,{title:this.title,onClickOK:this.onClickOK,close:this.props.close,okButtonEnabled:this.okButtonEnabled},this.thumbnail,Y.createElement("div",{"data-test-id":"note-dialog-character-count",className:"panel-note-dialog-character-count"},this.charactersLeft),Y.createElement("textarea",{"data-test-id":"note-dialog-textarea",className:"panel-dialog-note-textarea",value:this.val,onChange:this.onTextChange,ref:this.setInputRef,placeholder:(0,D.Iu)("DL_NOTE_DIALOG_PLACEHOLDER")}))}},kt.dialogName="addNote",kt.propTypes={element:$().instanceOf(Dt.Z).isRequired,close:$().func},At=Nt((Ct=kt).prototype,"val",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nt(Ct.prototype,"count",[o.computed],Object.getOwnPropertyDescriptor(Ct.prototype,"count"),Ct.prototype),Pt=Ct))||Pt;var Mt,jt,Zt,Ft,Bt=r(52422);let Gt=(0,K.Pi)((Ft=class extends Y.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="doNotShowAgain",i=this,(n=Zt)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.handleClickOK=()=>{this.doNotShowAgain&&(0,L.y6)(this.props.hasDismissCheckbox),this.props.onClickOK()}}render(){return Y.createElement(q.Z,{mode:"warning",title:this.props.title,okButtonText:this.props.okText,onClickOK:this.handleClickOK,close:this.props.close},Y.createElement("div",{"data-test-id":"confirm-message",className:"panel-dialog-layout-100"},this.props.message),this.props.hasDismissCheckbox&&Y.createElement("div",{"data-test-id":"confirm-message-checkbox",className:"confirm-checkbox-wrapper"},Y.createElement(Bt.Z,{onChange:()=>this.doNotShowAgain=!this.doNotShowAgain,checked:this.doNotShowAgain,label:(0,D.Iu)("DL_DISMISS_PERMANENTLY")})))}},Ft.dialogName="confirm",Ft.propTypes={title:$().string.isRequired,message:$().string.isRequired,okText:$().string.isRequired,onClickOK:$().func.isRequired,hasDismissCheckbox:$().string,close:$().func},Ut=(jt=Ft).prototype,zt="doNotShowAgain",Vt=[o.observable],Ht={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},Wt={},Object.keys(Ht).forEach((function(e){Wt[e]=Ht[e]})),Wt.enumerable=!!Wt.enumerable,Wt.configurable=!!Wt.configurable,("value"in Wt||Wt.initializer)&&(Wt.writable=!0),Wt=Vt.slice().reverse().reduce((function(e,t){return t(Ut,zt,e)||e}),Wt),Yt&&void 0!==Wt.initializer&&(Wt.value=Wt.initializer?Wt.initializer.call(Yt):void 0,Wt.initializer=void 0),void 0===Wt.initializer&&(Object.defineProperty(Ut,zt,Wt),Wt=null),Zt=Wt,Mt=jt))||Mt;var Ut,zt,Vt,Ht,Yt,Wt;const $t={3.11:["DL_WHATS_NEW_XD_IMPROVEMENTS"],3.12:["DL_WHATS_NEW_ONE_UP","DL_WHATS_NEW_RESPONSIVE_LAYOUT","DL_WHATS_NEW_CCD_DRAG_OUT"],3.13:["DL_WHATS_NEW_QUOTA","DL_WHATS_NEW_PUBLISH"],3.14:["DL_WHATS_NEW_NESTED_GROUPS","DL_WHATS_NEW_QUOTA_2"],3.18:["DL_WHATS_NEW_TRANSPARENCY","DL_WHATS_NEW_COLLAPSE_GROUPS"],3.19:["DL_WHATS_NEW_PATH_VIEW","DL_WHATS_NEW_RELINK"],3.22:["DL_WHATS_NEW_GENERAL"],4.4:["DL_WHATS_NEW_COLORS"],4.5:["DL_WHATS_NEW_FONTS","DL_WHATS_NEW_BACKGROUND_SYNC","DL_WHATS_NEW_GENERAL"],4.6:["DL_WHATS_NEW_GENERAL"],4.8:["DL_WHATS_NEW_FONTS","DL_WHATS_NEW_LIBRARY_DELETE","DL_WHATS_NEW_GENERAL"]},Kt=Object.keys($t);$t.latest=$t[Kt[Kt.length-1]];const qt=new class{get whatsNew(){return $t.latest}};var Xt,Jt;const Qt=r(4147);let er=(0,K.Pi)(((Jt=class extends Y.Component{constructor(...e){super(...e),this.closeClick=()=>{j.ZP.reportEvent("Navigation","Whats New","click","close"),this.props.close&&this.props.close()}}onLearnMoreClick(){(0,R.Pi)()}get featureList(){const e=qt.whatsNew;return e&&e.map((e=>Y.createElement("div",{className:"panel-dialog-whats-new-list-item",key:e},(0,D.Iu)(e))))}get panelVersion(){return Qt.version}render(){return Y.createElement(q.Z,{title:(0,D.Iu)("DL_WHATS_NEW_TITLE"),okButtonText:(0,D.Iu)("DL_OK"),cancelButtonText:null,close:this.closeClick},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:"panel-dialog-whats-new"},Y.createElement("div",{className:"date-version"},`${(0,D.Iu)("DL_WHATS_NEW_DATE")} - ${(0,D.Iu)("DL_WHATS_NEW_VERSION",{num:this.panelVersion})}`),Y.createElement("div",null,this.featureList),Y.createElement("div",{className:"panel-dialog-whats-new-learn-more"},Y.createElement("a",{"data-test-id":"whats-new-learn-more",onClick:this.onLearnMoreClick},(0,D.Iu)("DL_LEARN_MORE"))))))}}).dialogName="whatsNew",Jt.propTypes={close:$().func},Xt=Jt))||Xt;var tr,rr,nr,ir,or=r(17552);const ar=new RegExp('^[\\s\\\\<>:/"|?*]+$',"g");let sr=(0,K.Pi)((ir=class extends Y.Component{constructor(...e){super(...e),function(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})}(this,"_location",nr,this),this._getTranslatedString=e=>(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}${e?"_"+e.toUpperCase():""}`),this._chooseFile=()=>{if("export"===this.props.mode){const e=!this.props.library.name.match(ar);or.vs(this._location,e?this.props.library.name:(0,D.Iu)("DL_DEFAULT_LIBRARY_NAME")).then(this._parseLocation)}else or.Ue(this._location).then(this._parseLocation)},this._parseLocation=e=>{if("export"===this.props.mode){const t=Z.Z.isWindowsOS()?e:e.replace(":.cclibs",":");this._location=Z.Z.isWindowsOS()?t:t.replace(":","/")}else this._location=e},this._handleStart=()=>{this.props.onStart(this._location)},this._handleKeyDown=e=>{e.stopPropagation(),"Enter"===e.key&&this._chooseFile()}}get isOkEnabled(){return null!==this._location}get title(){return this._getTranslatedString("library")}get defaultBrowseText(){return this._getTranslatedString("browse_default")}render(){return Y.createElement(q.Z,{title:this.title,okButtonText:this._getTranslatedString(),onClickOK:this._handleStart,cancelButtonText:(0,D.Iu)("DL_CANCEL"),onClickCancel:this.props.close,okButtonEnabled:this.isOkEnabled},Y.createElement("div",{className:"panel-importExport"},Y.createElement("div",{"data-test-id":"description",className:"panel-importExportDescription"},this._getTranslatedString("description")),Y.createElement("div",{className:"panel-importExportLocation"},Y.createElement("div",{"data-test-id":"locationHeader",className:"panel-importExportLocationHeader"},(0,D.Iu)("DL_IMPORT_EXPORT_LOCATION")),Y.createElement("div",{tabIndex:"0","data-test-id":"locationBrowse",className:"panel-importExportBrowse",onClick:this._chooseFile,onKeyDown:this._handleKeyDown},Y.createElement("div",{className:"panel-importExportBrowseButton"},Y.createElement(X.Z,{id:"FolderOpen",height:16})),Y.createElement("div",{"data-test-id":"locationBrowseText",className:"panel-importExportBrowseLocation"},this._location?this._location:this.defaultBrowseText)))))}},ir.propTypes={library:$().instanceOf(ze.Zu),mode:$().oneOf(["import","export"]).isRequired,onStart:$().func.isRequired,close:$().func},nr=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((rr=ir).prototype,"_location",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tr=rr))||tr;var cr,lr,ur,pr,dr,hr,fr=r(82606),mr=r(26964);function gr(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 vr(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const yr={OUT_OF_SPACE:"OutOfSpace",INVALID_DATA:"InvalidData",ACCESS_ERROR:"Access"};let br=(0,K.Pi)(((hr=class extends Y.Component{constructor(...e){super(...e),gr(this,"_importExportOperation",ur,this),gr(this,"_locationCounter",pr,this),gr(this,"progress",dr,this),this.handleProgressUpdate=()=>{this.progress=this._importExportOperation.progress},this._getTranslatedString=(e,t)=>(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}${e?"_"+e.toUpperCase():""}`,t),this._startOperation=()=>{"export"===this.props.mode?(mr.Z.log("Start Export Library"),this._importExportOperation=or.iO(this.props.library,this.props.locations[0],this._handleOperation)):(mr.Z.log("Start Import Library"),this._importExportOperation=or.Lg(this.props.locations[this._locationCounter],this._handleOperation)),this._importExportOperation.addListener("change",this.handleProgressUpdate)},this._handleOperation=(e,t)=>{if(mr.Z.log("Finish Import/Export Library: "+(e?e.code:"export"===this.props.mode?"":t&&t.id)),e){j.ZP.clearExtraEventMetrics(`${this.props.mode}Library`),mr.Z.log("Import Export Error: "+JSON.stringify(e));let t=e&&e.code;"FS_ERROR"!==t||!e.underlyingError||"EACCES"!==e.underlyingError.code&&"ENOENT"!==e.underlyingError.code||(t="ACCESS_ERROR"),"OPERATION_CANCELLED"!==t&&this.props.onError(t);const r="Library Operations",n="export"===this.props.mode?"Export Library":"Import Library",i="export"===this.props.mode?this.props.library:null,o={event:{value:"export"===this.props.mode?this.props.library.elements.value:null}},a=e&&e._message,s=yr[t]||"Generic";j.ZP.reportError(r,n,a,t,s,o,i)}else{this._locationCounter++;const e=this._locationCounter>=this.props.locations.length,r="export"===this.props.mode?this.props.library:t;if(e?this.props.onSuccess(t):this._startOperation(),"import"===this.props.mode){const e={event:{value:"agg",count:r.elements&&r.elements.length},ui:{sequence:"import"},content:{category:"Library Import"}};j.ZP.reportEvent("Add Assets","Element","click","add",e,r),r.elements.length&&(e.event.value="single",r.elements.forEach((t=>{j.ZP.reportElementEvent("Add Assets","Element","click","add",t,e)})))}const n=j.ZP.getExtraEventMetrics(`${this.props.mode}Library`),i=n&&n.content&&n.content.category||"Flyout Menu";j.ZP.reportEvent("Library Operations","export"===this.props.mode?"Export Library":"Import Library","render","success",{event:{value:r.elements.length},content:{category:i}},r),e&&j.ZP.clearExtraEventMetrics(`${this.props.mode}Library`)}},this._handleCancel=()=>{const e=this._locationCounter>=this.props.locations.length;if(this.props.locations.length>1&&!e){const e=this.props.locations.slice(this._locationCounter);this.props.onCancel(e)}else this.props.close()}}get title(){return this._getTranslatedString("library")}componentWillUnmount(){this.context.viewState.setImportExportInProgress(!1),this._importExportOperation&&this._importExportOperation.cancel()}componentDidMount(){this._startOperation(),this.context.viewState.setImportExportInProgress(!0)}get progressTitle(){const e="export"===this.props.mode?"exporting":"importing",t=Math.min(this._locationCounter+1,this.props.locations.length),r=this.props.locations.length;return this.props.locations.length>1?this._getTranslatedString(`${e}_plural`,{completed:t,total:r}):this._getTranslatedString(e)}render(){return Y.createElement(q.Z,{title:this.title,okButtonText:this._getTranslatedString(),okButtonEnabled:!1,cancelButtonText:(0,D.Iu)("DL_CANCEL"),onClickCancel:this._handleCancel,closeOnOutsideClick:!1},Y.createElement("div",{className:"panel-importExport"},Y.createElement(fr.Z,{title:this.progressTitle,progress:this.progress})))}}).contextType=ee.r,hr.propTypes={library:$().instanceOf(ze.Zu),locations:$().arrayOf($().string).isRequired,mode:$().oneOf(["import","export"]).isRequired,onSuccess:$().func.isRequired,onError:$().func.isRequired,close:$().func.isRequired,onCancel:$().func.isRequired},ur=vr((lr=hr).prototype,"_importExportOperation",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),pr=vr(lr.prototype,"_locationCounter",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),dr=vr(lr.prototype,"progress",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),cr=lr))||cr;var _r,Er;let wr=(0,K.Pi)(((Er=class extends Y.Component{constructor(...e){super(...e),this._getTranslatedString=e=>(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}${e?"_"+e.toUpperCase():""}`)}get title(){return this._getTranslatedString("library_success_title")}render(){return Y.createElement(q.Z,{title:this.title,okButtonText:(0,D.Iu)("DL_OK"),onClickOK:this.props.close,cancelButtonText:null},Y.createElement("div",{className:"panel-importExport"},Y.createElement("div",{"data-test-id":"complete",className:"panel-importExportDescription"},this._getTranslatedString("library_success"))))}}).propTypes={mode:$().oneOf(["import","export"]).isRequired,close:$().func},_r=Er))||_r;var Lr,xr;let Sr=(0,K.Pi)(((xr=class extends Y.Component{constructor(...e){super(...e),this._handleOk=()=>{"OUT_OF_SPACE"===this.props.errorCode||"ACCESS_ERROR"===this.props.errorCode||"ENOENT"===this.props.errorCode?this.props.close():R.kX()}}get errorMessage(){const e={OUT_OF_SPACE:`DL_${this.props.mode.toUpperCase()}_ERROR_DISK_SPACE_BODY`,INVALID_DATA:`DL_${this.props.mode.toUpperCase()}_ERROR_INVALID_DATA_BODY`,ACCESS_ERROR:`DL_${this.props.mode.toUpperCase()}_ERROR_ACCESS_BODY`,ENOENT:`DL_${this.props.mode.toUpperCase()}_ERROR_DESTINATION_PATH`};return(0,D.Iu)(e[this.props.errorCode]||"DL_IMPORT_EXPORT_ERROR_CATCH_ALL_BODY")}get okText(){return"OUT_OF_SPACE"===this.props.errorCode||"ACCESS_ERROR"===this.props.errorCode||"ENOENT"===this.props.errorCode?(0,D.Iu)("DL_OK"):(0,D.Iu)("DL_IMPORT_EXPORT_CONTACT_SUPPORT")}get cancelText(){return"OUT_OF_SPACE"===this.props.errorCode||"ACCESS_ERROR"===this.props.errorCode||"ENOENT"===this.props.errorCode?null:(0,D.Iu)("DL_CANCEL")}get title(){return"OUT_OF_SPACE"===this.props.errorCode?(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_ERROR_DISK_SPACE_HEADER`):"ACCESS_ERROR"===this.props.errorCode?(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_ERROR_ACCESS_HEADER`):"INVALID_DATA"===this.props.errorCode?(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_ERROR_INVALID_DATA_HEADER`):"ENOENT"===this.props.errorCode?(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_ERROR_DESTINATION_PATH_HEADER`):(0,D.Iu)("DL_IMPORT_EXPORT_ERROR_CATCH_ALL_HEADER")}render(){return Y.createElement(q.Z,{title:this.title,mode:"error",okButtonText:this.okText,onClickOK:this._handleOk,cancelButtonText:this.cancelText,onClickCancel:this.props.close},Y.createElement("div",{className:"panel-importExport"},Y.createElement("div",{"data-test-id":"error",className:"panel-importExportDescription"},this.errorMessage)))}}).propTypes={errorCode:$().string,mode:$().oneOf(["import","export"]).isRequired,close:$().func},Lr=xr))||Lr;var Or,Tr,Ir=r(34038);let Pr=(0,K.Pi)(((Tr=class extends Y.Component{constructor(...e){super(...e),this._handleOk=()=>{this.props.close()}}get body(){return Y.createElement("div",{className:"panel-importExport"},Y.createElement("div",{"data-test-id":"cancel",className:"panel-importExportDescription"},Y.createElement("div",{className:"panel-importExport-list-title"},(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_CANCEL_BODY`)),this.cancelledList))}get cancelledList(){return this.props.cancelledPaths.map((e=>{const t=Ir.K3(Ir.Bc(e));return Y.createElement("div",{className:"panel-importExport-list-item",key:t},t)}))}get title(){return(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_CANCEL_HEADER`)}render(){return Y.createElement(q.Z,{title:(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_CANCEL_HEADER`),onClickOK:this._handleOk,cancelButtonText:null},this.body)}}).propTypes={cancelledPaths:$().arrayOf($().string).isRequired,mode:$().oneOf(["import"]).isRequired,close:$().func},Or=Tr))||Or;var Cr,Ar,kr,Dr,Nr,Rr,Mr;function jr(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 Zr(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Fr=(Cr=o.observable.ref,(0,K.Pi)(((Mr=class extends Y.Component{constructor(e){super(e),jr(this,"_errorCode",Dr,this),jr(this,"_locations",Nr,this),jr(this,"_uiState",Rr,this),this._handleStart=e=>{"string"==typeof e&&(e=[e]),this._locations=e,this._uiState="progress"},this._handleSuccess=e=>{this._library=e,this._uiState="complete"},this._handleError=e=>{this._uiState="error",this._errorCode=e},this._handleCancel=e=>{this._locations=e,this._uiState="cancelled"},this._handleCloseAfterCompleteState=()=>{this.props.close(),this._library&&"import"===this.props.mode&&(Z.Z.navigateToLibrary(this._library),this._library=null)},this.props.paths&&"import"===this.props.mode&&this._handleStart(this.props.paths)}get initialState(){return Y.createElement(sr,{mode:this.props.mode,library:this.props.library,onStart:this._handleStart,close:this.props.close})}get progressState(){return Y.createElement(br,{mode:this.props.mode,library:this.props.library,locations:this._locations,onSuccess:this._handleSuccess,onError:this._handleError,onCancel:this._handleCancel,close:this.props.close})}get cancelledState(){return Y.createElement(Pr,{mode:this.props.mode,cancelledPaths:this._locations,close:this.props.close})}get completeState(){return Y.createElement(wr,{mode:this.props.mode,close:this._handleCloseAfterCompleteState})}get errorState(){return Y.createElement(Sr,{mode:this.props.mode,errorCode:this._errorCode,close:this.props.close})}render(){return Y.createElement("div",{className:`panel-${this.props.mode}-container`},this[`${this._uiState}State`])}}).dialogName="importExportLibrary",Mr.propTypes={library:$().instanceOf(ze.Zu),mode:$().oneOf(["import","export"]).isRequired,close:$().func,paths:$().arrayOf($().string)},Dr=Zr((kr=Mr).prototype,"_errorCode",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Nr=Zr(kr.prototype,"_locations",[Cr],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Rr=Zr(kr.prototype,"_uiState",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"initial"}}),Ar=kr))||Ar);var Br,Gr,Ur,zr=r(74149);let Vr=(0,K.Pi)(((Ur=class extends Y.Component{constructor(...e){super(...e),this.onContinue=()=>{(0,zr.uP)(this.props.files,this.props.library)}}get canContinue(){return this.props.files.length>0}get contents(){const e=this.props.messages;if(1===e.length)return Y.createElement("div",{"data-test-id":"drop-files-message",className:"panel-dialog-layout-100"},e[0]);const t=e.map(((e,t)=>Y.createElement("li",{key:t},e)));return Y.createElement("ul",{"data-test-id":"drop-files-bullets",className:"panel-drop-files-dialog-bullet"},t)}render(){return Y.createElement(q.Z,{title:this.props.title,mode:this.canContinue?"info":"error",okButtonText:this.canContinue?(0,D.Iu)("DL_CONTINUE"):null,onClickOK:this.onContinue,close:this.props.close,okButtonEnabled:this.canContinue},this.contents)}}).dialogName="dropFiles",Ur.propTypes={title:$().string.isRequired,messages:$().arrayOf($().string).isRequired,files:$().arrayOf($().object).isRequired,library:$().instanceOf(ze.Zu).isRequired,close:$().func},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Gr=Ur).prototype,"contents",[o.computed],Object.getOwnPropertyDescriptor(Gr.prototype,"contents"),Gr.prototype),Br=Gr))||Br;var Hr,Yr,Wr,$r=r(72373);let Kr=(0,K.Pi)(((Wr=class extends Y.Component{constructor(...e){super(...e),this.toggleRecording=()=>{$r.Z.setDebugValue("recordMetrics",!this.isRecording)},this.clearRecording=()=>{j.ZP.clearRecordedEvents()}}getDetailsButton(e){return Y.createElement("div",{"data-test-id":"details",className:"panel-analytics-details-button",onClick:()=>alert(`Analytics Event\n${e.details}`)},Y.createElement(X.Z,{id:"Info",height:10}))}get messages(){return j.ZP.recordedEvents.map(((e,t)=>Y.createElement("div",{className:"panel-analytics-log",key:t,"data-test-id":`analytics-log-message-${t}`},Y.createElement("div",{className:"panel-analytics-message","data-test-id":"message"},e.message),this.getDetailsButton(e))))}get isRecording(){return $r.Z.getDebugValue("recordMetrics")}get recordButton(){const e=Q()("panel-analytics-record-button",{on:this.isRecording});return Y.createElement("div",{className:"panel-analytics-record-button-container"},Y.createElement("div",{"data-test-id":"analytics-record-button",className:e,onClick:this.toggleRecording}),Y.createElement("div",{"data-test-id":"analytics-record-text",className:"panel-analytics-record-text"},this.isRecording?"Recording":"Not Recording"))}get clearButton(){return Y.createElement("button",{"data-test-id":"analytics-clear-button",onClick:this.clearRecording},"Clear Events")}get overrideButton(){if(j.ZP.isEnabled(!0))return;const e=j.ZP.isEnabled()?"Stop using the Force":"Use the Force";return Y.createElement("div",{"data-test-id":"analytics-force-button",className:"panel-analytics-force-button",onClick:()=>j.ZP.setForceEnableAnalytics(!j.ZP.isEnabled())},e)}get enabledState(){return j.ZP.isEnabled(!0)?"enabled":j.ZP.isEnabled()?"forcibly enabled":"disabled"}render(){return Y.createElement(q.Z,{title:"Panel Analytics Events",cancelButtonText:"",close:this.props.close},Y.createElement("div",{className:"panel-analytics-description"},"Record metrics as they are reported (doesn't wait for upload to Ingest)"),Y.createElement("div",{className:"panel-analytics-buttons"},this.recordButton,this.clearButton),Y.createElement("div",{className:"panel-analytics-logs"},this.messages),Y.createElement("div",{"data-test-id":"analytics-state",className:"panel-analytics-state"},"Analytics are ",Y.createElement("b",null,this.enabledState)," for this account"),this.overrideButton)}}).dialogName="analytics",Wr.propTypes={close:$().func},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Yr=Wr).prototype,"messages",[o.computed],Object.getOwnPropertyDescriptor(Yr.prototype,"messages"),Yr.prototype),Hr=Yr))||Hr;var qr,Xr,Jr,Qr,en,tn,rn,nn,on,an,sn=r(74379);function cn(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 ln(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let un=(0,K.Pi)(((an=class extends Y.Component{constructor(...e){super(...e),cn(this,"theme",Jr,this),cn(this,"locale",Qr,this),cn(this,"color",en,this),cn(this,"currentTheme",tn,this),cn(this,"currentLocale",rn,this),this.themeMap={lighter:"F0F0F0",light:"B8B8B8",dark:"535353",darker:"323232"},cn(this,"switchTheme",nn,this),cn(this,"switchLocale",on,this),this.onClickOK=()=>{Z.Z.updateHostInfo(this.locale,this.theme)},this.onClickSecondary=()=>{const e={panelBackgroundColor:{color:sn.E9("535353")}};Z.Z.updateHostInfo("en_US",e)}}listItem(e,t,r=!1){const n=e===(r?this.currentTheme:this.currentLocale),i=n?{icon:"Checkmark"}:{},o=Q()("panel-select-menu-item",{"is-selected":n}),a=`${r?"theme":"locale"}-item-${t}`,s=r?this.switchTheme(e):this.switchLocale(e);return Y.createElement("div",{key:a,className:o,onClick:s,tabIndex:"0","data-test-id":`panel-dropdown-menu-item-${a}`},Y.createElement("div",{"data-test-id":"panel-dropdown-menu-item-text",className:"panel-menu-label"},e),Y.createElement("div",{"data-test-id":"panel-dropdown-menu-item-icon",className:"panel-menu-icon"},i.icon?Y.createElement(X.Z,{id:i.icon,height:12}):null))}get themeList(){return Object.keys(this.themeMap).map(((e,t)=>this.listItem(e,t,!0)))}get localeList(){return Z.Z.supportedLocales.map(((e,t)=>this.listItem(e,t)))}getThemeName({panelBackgroundColor:e}){const t=e.color,r=sn.vq(t.red,t.green,t.blue);return Object.keys(this.themeMap).find((e=>r.includes(this.themeMap[e])))}render(){return Y.createElement(q.Z,{title:"Panel Color Theme & Locale",okButtonText:"Apply Changes",onClickOK:this.onClickOK,cancelButtonText:"Cancel",close:this.props.close,secondaryButtonText:"Reset",onClickSecondary:this.onClickSecondary},Y.createElement("div",{className:"panel-theme-locale-description"},"Select Panel Color Theme"),Y.createElement("div",{"data-test-id":"theme-list",className:"theme-list"},this.themeList),Y.createElement("div",{"data-test-id":"theme-locale-separator",className:"panel-theme-locale-border"}),Y.createElement("div",{className:"panel-theme-locale-description"},"Select Panel Locale"),Y.createElement("div",{"data-test-id":"locale-list",className:"locale-list"},this.localeList))}}).dialogName="appThemeDebug",an.propTypes={close:$().func},Jr=ln((Xr=an).prototype,"theme",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Qr=ln(Xr.prototype,"locale",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),en=ln(Xr.prototype,"color",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return sn.E9("535353")}}),tn=ln(Xr.prototype,"currentTheme",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.getThemeName(Z.Z.getHostEnvironment().appSkinInfo)}}),rn=ln(Xr.prototype,"currentLocale",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Z.Z.getLocale(!0)}}),nn=ln(Xr.prototype,"switchTheme",[o.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>()=>{this.color=sn.$W(this.themeMap[e]),this.theme={panelBackgroundColor:{color:this.color}},this.currentTheme=e}}}),on=ln(Xr.prototype,"switchLocale",[o.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>()=>{this.locale=e,this.currentLocale=e}}}),qr=Xr))||qr;var pn,dn,hn;let fn=(0,K.Pi)(((hn=class extends Y.Component{constructor(...e){super(...e),this.closeOverlay=()=>{this.props.close()}}static canDisplay(){return uc.panel.viewState.isRelinkLayerMode()}get message(){const e=uc.panel.viewState.getState(),t=e&&e.modeParams.overlayMessage;return Y.createElement("div",{"data-test-id":"panel-relink-overlay-message",className:"panel-relink-overlay-message"},t)}render(){return Y.createElement("div",{"data-test-id":"panel-relink-overlay",className:"panel-relink-overlay",onMouseOver:this.closeOverlay,style:{top:uc.panel.viewState.panelHeaderHeight}},this.message)}}).dialogName="relinkLayerOverlay",hn.propTypes={close:$().func.isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((dn=hn).prototype,"message",[o.computed],Object.getOwnPropertyDescriptor(dn.prototype,"message"),dn.prototype),pn=dn))||pn;var mn,gn;let vn=(0,K.Pi)(((gn=class extends Y.Component{render(){return Y.createElement(q.Z,{title:(0,D.Iu)(this.props.title),okButtonText:(0,D.Iu)("DL_OK"),cancelButtonText:null,close:this.props.close},Y.createElement("div",{"data-test-id":"stock-error-message",className:"panel-dialog-layout-100"},(0,D.Iu)(this.props.message)))}}).dialogName="stockError",gn.propTypes={title:$().string.isRequired,message:$().string.isRequired,close:$().func},mn=gn))||mn;var yn,bn;let _n=(0,K.Pi)(((bn=class extends Y.Component{constructor(...e){super(...e),this.onClickCancel=()=>this.props.onClickCancel(),this.onClickA=()=>this.props.onClickOK(this.props.licenseA),this.onClickB=()=>this.props.onClickOK(this.props.licenseB)}render(){const e=(0,D.Iu)("DL_STOCK_PURCHASE_DIALOG_TITLE_SAVE_VIDEO"),t=(0,D.Iu)("DL_STOCK_PURCHASE_DIALOG_VIDEO_SAVE_TYPE_MESSAGE"),r=e=>`${e.label} : ${e.resolution}`;return Y.createElement(q.Z,{title:e,okButtonText:this.props.licenseA.label,secondaryButtonText:this.props.licenseB.label,onClickOK:this.onClickA,onClickSecondary:this.onClickB,onClickCancel:this.onClickCancel,close:this.props.close},Y.createElement("div",{"data-test-id":"stock-video-comp-picker-message",className:"panel-dialog-layout-100"},t),Y.createElement("div",{className:"stock-video-comp-picker-description","data-test-id":"stock-video-comp-picker-description"},Y.createElement("span",{className:"panel-video-license-option","data-test-id":"stock-video-comp-picker-description-license-A"},r(this.props.licenseA)),Y.createElement("span",{className:"panel-video-license-option","data-test-id":"stock-video-comp-picker-description-license-B"},r(this.props.licenseB))))}}).dialogName="stockVideoCompPicker",bn.propTypes={licenseA:$().object.isRequired,licenseB:$().object.isRequired,onClickOK:$().func.isRequired,onClickCancel:$().func.isRequired,close:$().func},yn=bn))||yn;var En=r(33054),wn=r(85080),Ln=r(65843),xn=r(82038),Sn=r(82530);const On=["className"];function Tn(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 In(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pn(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Cn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Cn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function An(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function kn(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){An(o,n,i,a,s,"next",e)}function s(e){An(o,n,i,a,s,"throw",e)}a(void 0)}))}}let Dn;Sn.env.EXCLUDE_SWC||(Dn=new ve.t(["sp-tray"],kn(Cn().mark((function e(){var t,n;return Cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(188)]).then(r.bind(r,95638));case 2:return t=e.sent,n=t.Tray,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Nn=(0,ge.Z)({displayName:"Tray",swcLoader:Dn,fallback:void 0,swcProps:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(r),!0).forEach((function(t){In(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({class:e.className},Pn(e,On)),tagName:"sp-tray"});var Rn,Mn;function jn(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 Zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(r),!0).forEach((function(t){Fn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Bn=(0,K.Pi)(((Mn=class extends Y.Component{constructor(...e){super(...e),this.overlayState=new wn.Z({isOpen:!0,onClose:()=>this.props.close(),hideEvent:"mousedown",ignoreFocus:d.Z.currentProduct.config.ignoreFocusContextMenu}),this.close=()=>{this.overlayState.hideOverlay()},this.setParentRef=e=>{this.overlayState.setParentElement([e,this.props.parentElement])}}get style(){const e=Z.Z.getPanelWidth(),t=Z.Z.getPanelHeight(),r=this.props.x,n=this.props.y,i=d.Z.MAX_CONTEXT_MENU_WIDTH;let o;o="right"===this.props.position?e-r<i?{left:e-r}:{right:r}:e-r<i?r-i>0?{right:e-r}:{left:e-i}:{left:r};const a=t-n<150?{top:"auto",bottom:t-n}:{top:n};return Object.assign(o,a)}get trayComponent(){const e=["delete","duplicate"],t=this.props.menuItems.map((t=>Zn(Zn({},t),{},{onClick:()=>{t.onClick(),e.includes(t.id)&&this.close()}})));return Y.createElement(Nn,{style:{display:"flex",justifyContent:"space-between"},ref:this.setParentRef,open:this.overlayState.isOpen,onClose:this.close,items:t},Y.createElement("div",{className:"tray-menu-items","data-test-id":"tray-menu-items"},Y.createElement(xn.Z,{menuData:t})))}get defaultContextMenu(){const e=this.props.menuItems.filter((e=>!e.divider)),t=Math.min(e.length,4);return Z.Z.isMobileView&&d.Z.currentProduct.config.useTrayContextMenu?this.trayComponent:Y.createElement("div",{ref:this.setParentRef},Y.createElement(En.Z,{clientY:this.props.y,menuItems:this.props.menuItems,maxMenuItemsVisible:this.props.maxMenuItemsVisible,minMenuItemsVisible:t,maxWidth:this.props.maxWidth,style:this.style,close:this.close,className:"panel-search-types"}))}get spectrumWrapperContextMenu(){const e=this.props.menuItems.map((e=>Zn(Zn({},e),{},{onClick:()=>{e.onClick(),this.close()}})));return Y.createElement(Ln.v2,{style:Zn({maxHeight:"500px",overflowY:"auto"},this.style),ref:this.setParentRef,open:this.overlayState.isOpen,onClose:this.close},Y.createElement(xn.Z,{menuData:e,hideDividers:d.Z.currentProduct.config.hideLibraryActionMenuDivider}))}render(){return d.Z.currentProduct.config.useSpectrumWrapperContextMenu?this.spectrumWrapperContextMenu:this.defaultContextMenu}}).defaultProps={maxMenuItemsVisible:10},Mn.propTypes={menuItems:$().array.isRequired,x:$().number.isRequired,y:$().number.isRequired,maxMenuItemsVisible:$().number,maxWidth:$().oneOfType([$().string,$().number]),close:$().func,position:$().string,parentElement:$().object},Mn.dialogName="contextMenu",Rn=Mn))||Rn;var Gn,Un,zn=r(52844),Vn=r(63498),Hn=r(2169);class Yn extends Y.Component{render(){let e;const t={fill:"currentColor",stroke:"#e1e1e1",position:"absolute",width:this.props.size,height:this.props.size,[this.props.horizontalPlacement]:this.props.offset},r=`-${this.props.size}`;return"down"===this.props.direction?(t.bottom=r,e="M 100,0 L 50,50 L 0,0"):(t.top=r,e="M 0,100 L 50,50 L 100,100"),Y.createElement("div",{"data-test-id":"popover-triangle",className:this.props.classes},Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",style:t},Y.createElement("path",{strokeWidth:"5px",d:e})))}}Yn.defaultProps={offset:"25px",size:"18px",classes:"popover-triangle",horizontalPlacement:"left"},Yn.propTypes={horizontalPlacement:$().oneOf(["left","right"]),offset:$().string,direction:$().oneOf(["up","down"]).isRequired,size:$().string,classes:$().string};let Wn=(0,K.Pi)(((Un=class extends Y.Component{constructor(...e){super(...e),this.overlayState=new wn.Z({ignoreAllEvents:!this.props.closeOnOverlayEvent,ignoreClickOutsideEvent:!this.props.closeOnWindowClick,ignoreScrollEvents:!0,ignoreResizeEvents:!this.props.closeOnResize,ignoreFocus:!0,onClose:this.props.close,isOpen:!0}),this.onClickOK=()=>{this.props.closeOnButtonClick&&this.props.close(),this.props.onClickOK&&this.props.onClickOK()},this.onClickCancel=()=>{this.props.closeOnButtonClick&&this.props.close(),this.props.onClickCancel&&this.props.onClickCancel()},this._setPopoverParent=e=>{this.overlayState.setParentElement(e),this._popoverParent=e},this.handleWindowClick=e=>{e.stopPropagation(),!this.props.closeOnWindowClick||this._popoverParent&&(0,Hn.rP)(e,this._popoverParent)||this.props.close()}}get popoverPositionStyle(){const e={[this.props.placement]:this.props.y,[this.props.horizontalPlacement]:this.props.x,width:this.props.width};return this.props.minHeight&&(e.height=Math.min(window.innerHeight,this.props.minHeight)+"px",e.overflowY="auto"),e}get popoverTriangle(){if(this.props.showPopoverTriangle)return Y.createElement(Yn,{direction:"bottom"===this.props.placement?"down":"up",horizontalPlacement:this.props.horizontalPlacement,offset:this.props.triangleOffset+"px"})}get okButton(){return this.props.okButtonText&&Y.createElement(zn.Z,{size:this.props.buttonSize,className:Q()({disabled:this.props.isDisabled},"popover-ok-button"),disabled:this.props.isDisabled,"data-test-id":"popover-ok-button",variant:"cta",onClick:()=>{!this.props.isDisabled&&this.onClickOK()}},this.props.okButtonText)}get cancelButton(){return this.props.cancelButtonText&&Y.createElement(zn.Z,{size:this.props.buttonSize,quiet:this.props.cancelButtonQuiet,variant:"secondary","data-test-id":"popover-cancel-button",className:"popover-cancel-button",onClick:this.onClickCancel},this.props.cancelButtonText)}get footer(){if(this.props.hideFooter)return;const e=Z.Z.isWindowsOS(),t=Q()("popover-footer",{"popover-footer-vertical":this.props.verticalButtonGroup});return Y.createElement("div",{"data-test-id":"popover-footer",className:t},this.props.additionalFooterContent,Y.createElement(Vn.Z,{className:"popover-footer-buttons",preferSpectrumFallback:!0,orientation:this.props.verticalButtonGroup?"vertical":"horizontal"},!e&&Y.createElement(Y.Fragment,null,this.props.additionalFooterButtons,this.cancelButton,this.okButton),e&&Y.createElement(Y.Fragment,null,this.okButton,this.cancelButton,this.props.additionalFooterButtons)))}render(){return Y.createElement("div",{"data-test-id":"popover-wrapper",className:Q()("popover-wrapper",this.props.className),onClick:this.handleWindowClick,onDragEnter:this.props.onDragEnter},Y.createElement("div",{"data-test-id":"popover-layout",ref:this._setPopoverParent,className:"popover-layout",style:this.popoverPositionStyle},this.popoverTriangle,this.props.children,this.footer),this.props.indicators)}}).defaultProps={triangleOffset:25,showPopoverTriangle:!0,closeOnWindowClick:!0,closeOnButtonClick:!0,closeOnOverlayEvent:!0,closeOnResize:!0,horizontalPlacement:"left",hideFooter:!1,onDragEnter:()=>{},verticalButtonGroup:!1,buttonSize:"M"},Un.propTypes={className:$().string,okButtonText:$().string,cancelButtonText:$().string,cancelButtonQuiet:$().bool,buttonSize:$().string,onClickOK:$().func,onClickCancel:$().func,close:$().func.isRequired,children:$().node,hideFooter:$().bool,indicators:$().node,x:$().oneOfType([$().string,$().number]).isRequired,y:$().number.isRequired,width:$().number,triangleOffset:$().number,placement:$().oneOf(["top","bottom"]).isRequired,horizontalPlacement:$().oneOf(["right","left"]),showPopoverTriangle:$().bool,closeOnWindowClick:$().bool,isDisabled:$().bool,onDragEnter:$().func,closeOnButtonClick:$().bool,closeOnOverlayEvent:$().bool,closeOnResize:$().bool,additionalFooterButtons:$().node,additionalFooterContent:$().node,minHeight:$().number,verticalButtonGroup:$().bool},Gn=Un))||Gn;const $n=r.p+"resources/unlock_coachmark.png";var Kn,qn;let Xn=(0,K.Pi)(((qn=class extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{this.context.viewState.unlock(this.context.libraryManager.currentLibrary)},this.onClose=()=>{this.props.close()}}get toolkitType(){const e=this.context.libraryManager.currentLibrary&&this.context.libraryManager.currentLibrary.toolkitId;return d.Z.TOOLKIT_TYPES.includes(e)?e.toUpperCase():"GENERIC"}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_TOOLKIT_UNLOCK_POPOVER_TITLE",{toolkitName:this.context.libraryManager.currentLibrary.name}))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(`DL_${this.toolkitType}_TOOLKIT_UNLOCK_POPOVER_BODY`))}get graphic(){return Y.createElement("img",{"data-test-id":"popover-graphic",className:"popover-graphic",src:$n})}get y(){return this.context.viewState.panelHeaderHeight}render(){return Y.createElement("div",{className:"coach-mark-with-image"},Y.createElement(Wn,{okButtonText:(0,D.Iu)("DL_MY_TOOLKIT_UNLOCK_POPOVER_UNLOCK_BUTTON"),onClickOK:this.onClickOK,cancelButtonText:(0,D.Iu)("DL_CANCEL"),close:this.onClose,showPopoverTriangle:!1,x:5,y:this.y,placement:"top"},this.graphic,this.title,this.body))}}).contextType=ee.r,qn.dialogName="unlockToolkit",qn.propTypes={close:$().func.isRequired},Kn=qn))||Kn;var Jn,Qn,ei;const ti=d.Z.STORED_RECENT_SEARCH_LIBRARIES_KEY,ri=d.Z.STORED_RECENT_SEARCH_STOCK_KEY;let ni=(0,K.Pi)((ei=class extends Y.Component{constructor(...e){super(...e),this.onClickOutsideDialog=e=>{this._dialogElement&&(0,Hn.rP)(e,this._dialogElement)||this.onClose()},this.onClearAllClick=()=>{this.context.viewState.clearAllRecentSearches(),this.onClose()},this.onClearItemClick=(e,t)=>{this.context.viewState.clearRecentSearch(e,t),this.context.viewState.hasRecentSearches()?this.forceUpdate():this.onClose()},this.onRecentSearchClick=(e,t)=>{const r=this.context.viewState;"stock"===e?r.setSearchType(e):"stock"===r.getSearchType()&&r.setSearchType("library");const n=r.getSearchText()||"";if(r.setSearchText(t),d.Z.currentProduct.config.reportSearchSDMEvents){const e={"content.category":"brands&libraries","ui.search_keyword":t,"custom.ui.location":"editor","custom.ui.search_type":"recents","custom.ui.keyword_rank":this.recentLibrarySearches.indexOf(t)+1,"custom.search.id":r.getSearchId(),"custom.search.prefix_query":n,"custom.search.suggestion_list_shown":this.recentLibrarySearches},i={"content.category":"brands&libraries","ui.search_keyword":t,"custom.ui.location":"editor","custom.search.id":r.getSearchId(),"custom.search.result_count":r.librariesInViewOrder.length};d.Z.currentProduct.config.reportSearchSDMEvents(e),d.Z.currentProduct.config.reportSearchSDMEvents(i)}this.onClose()},this.onClose=()=>this.props.close(),this.setOverlayElement=e=>{this._dialogElement=e}}get recentStockSearches(){return this.context.viewState.getRecentSearches()[ri].slice(0,d.Z.STORED_RECENT_SEARCH_DISPLAY_LIMIT)}get recentLibrarySearches(){return this.context.viewState.getRecentSearches()[ti].slice(0,d.Z.STORED_RECENT_SEARCH_DISPLAY_LIMIT)}getListItem(e,t){return Y.createElement("div",{"data-test-id":`list-item-${e}`,className:"panel-recent-search-overlay-list-item",key:e},d.Z.currentProduct.config.enableRecentSearchClockIcons&&Y.createElement(X.Z,{height:18,id:"Clock"}),Y.createElement("div",{className:"recent-search-text-wrapper"},Y.createElement("div",{"data-test-id":"list-item-text",className:"recent-search-text",onClick:()=>this.onRecentSearchClick(t,e)},e)),Y.createElement("div",{"data-test-id":"close-icon",className:"clear-recent-search-icon",onClick:()=>this.onClearItemClick(t,e)},Y.createElement(X.Z,{height:16,id:"Close"})))}get clearAllButton(){return Y.createElement("div",{"data-test-id":"clear-all",className:"panel-recent-search-overlay-header-clear-all",onClick:this.onClearAllClick},(0,D.Iu)("DL_RECENT_SEARCH_OVERLAY_CLEAR_ALL"))}getSearchTypeList(e){const t=e===ri,r=t?this.recentStockSearches:this.recentLibrarySearches,n=d.Z.currentProduct.config.customRecentSearchTitle||"DL_RECENT_SEARCH_OVERLAY_LIBRARY_HEADER",i=t?"DL_RECENT_SEARCH_OVERLAY_STOCK_HEADER":n,o=!d.Z.currentProduct.config.disableClearAllSearches&&(t&&0===this.recentLibrarySearches.length||!t);return Y.createElement(Y.Fragment,null,Y.createElement("div",{"data-test-id":`${e}-header`,className:"panel-recent-search-overlay-header"},Y.createElement("div",{"data-test-id":`${e}-header-text`,className:"panel-recent-search-overlay-header-text"},(0,D.Iu)(i)),o&&this.clearAllButton),r.map((t=>this.getListItem(t,e))))}get recentLibrarySearchList(){if(this.recentLibrarySearches.length)return this.getSearchTypeList(ti)}get recentStockSearchList(){const e=this.recentLibrarySearches.length>0;if(this.recentStockSearches.length)return Y.createElement(Y.Fragment,null,e&&Y.createElement("div",{"data-test-id":"divider",className:"panel-recent-search-overlay-subdivider"}),this.getSearchTypeList(ri))}get topDistance(){return this.context.viewState.searchBarBottom+8}get shouldShowStockList(){return!this.context.viewState.isRootView()&&!this.context.libraryManager.currentLibrary.isDocumentAssets&&!d.Z.currentProduct.config.disableStockSearch}render(){return Y.createElement("div",{"data-test-id":"panel-recent-search-overlay",className:"panel-recent-search-overlay",onClick:this.onClickOutsideDialog,style:{top:this.topDistance}},Y.createElement("div",{className:"panel-recent-search-overlay-content",ref:this.setOverlayElement},this.recentLibrarySearchList,this.shouldShowStockList&&this.recentStockSearchList))}},ei.contextType=ee.r,ei.dialogName="recentSearchesOverlay",ei.propTypes={close:$().func.isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Qn=ei).prototype,"shouldShowStockList",[o.computed],Object.getOwnPropertyDescriptor(Qn.prototype,"shouldShowStockList"),Qn.prototype),Jn=Qn))||Jn;var ii,oi,ai,si,ci,li=r(72279),ui=r(5849);function pi(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let di=(ii=o.observable.ref,(0,K.Pi)((ci=class extends Y.Component{constructor(...e){super(...e),function(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})}(this,"selectedFolder",si,this),this.permission="none",this.handleClickOK=()=>{this.props.promote(this.selectedFolder,this.permission)},this.handleClickCancel=()=>{j.ZP.reportEvent("Operations","Delete Team Library","click","cancel")},this.handleFolderChange=e=>{this.selectedFolder=e,"personal"===e.key&&(this.permission="none")},this.onPermissionChange=e=>{this.permission=e},this.handleClickCopy=e=>{e&&e.stopPropagation();const t=(0,f.yR)(this.props.library);t&&Z.Z.copyContentToClipboard(t)},this.handleKeyDown=(e,t)=>{"Enter"===e.key&&t(e)}}get writableFolders(){return this.props.library.team?this.context.libraryManager.platformFolders.filter((e=>e.id!==this.props.library.team.id)):this.context.libraryManager.platformFolders}componentDidMount(){this.context.libraryManager.refreshTeams(),this.context.libraryManager.fetchLibraryCollaborations(this.props.library,d.Z.FETCH_COLLABORATIONS_THROTTLE)}get library(){return this.props.library}get title(){return(0,D.Iu)("DL_TEAM_LIBRARY_PROMOTE_TITLE")}get message(){return(0,D.Iu)("DL_PROMOTE_TEAM_MESSAGE")}get okButtonText(){return(0,D.Iu)("DL_MOVE")}get dropdown(){return this.writableFolders.length>0&&Y.createElement("div",{className:"panel-dialog-share-select-area promote"},Y.createElement(Xe,{onFolderChange:this.handleFolderChange,library:this.props.library,onPermissionChange:this.onPermissionChange,selectedFolder:this.selectedFolder}))}get buttonContent(){return Y.createElement("div",{"data-test-id":"promote-team-copy-collaborators",className:"promote-team-copy-collaborators-label-container"},Y.createElement("div",{className:"promote-team-copy-collaborators-icon-container"},Y.createElement(X.Z,{className:"promote-team-copy-collaborators-icon",id:"Copy",height:14})),Y.createElement("div",null,Y.createElement("div",{className:"promote-team-copy-collaborators-label-text"},(0,D.Iu)("DL_COPY_COLLABORATORS"))))}get isCollaboratorsLoaded(){return(0,f.yR)(this.props.library)}get warningMessageAndButton(){return this.isCollaboratorsLoaded?Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"panel-dialog-layout-100 promote-team-message-wrapper"},Y.createElement("div",{className:"dialog-warning"},Y.createElement("div",{className:"promote-team-message-title"},(0,D.Iu)("DL_PROMOTE_TEAM_WARN"))),Y.createElement("div",{"data-test-id":"make-team-library-dialog",className:"make-team-library-dialog"},(0,D.Iu)("DL_PROMOTE_TEAM_MESSAGE"))),Y.createElement(li.Z,{variant:"secondary",className:"promote-team-copy-collaborators",onClick:this.handleClickCopy,onKeyDown:e=>this.handleKeyDown(e,this.handleClickCopy)},this.buttonContent)):this.loadingSpinnerMessage}get loadingSpinnerMessage(){return Y.createElement("div",{className:"panel-dialog-collaborator-loading"},Y.createElement("div",{className:"panel-loader"},Y.createElement(ui.Z,{size:"small",indeterminate:!0})),Y.createElement("div",{className:"panel-loading-message"},(0,D.Iu)("DL_LOADING_LIBRARY_COLLABORATORS")))}render(){return Y.createElement(q.Z,{className:Q()("panel-dialog-promote","panel-dialog-share"),title:this.title,okButtonText:this.okButtonText,onClickOK:this.handleClickOK,onClickCancel:this.handleClickCancel,close:this.props.close},Y.createElement("div",{className:"promote-team-dialog"},this.dropdown,(0,f.R3)(this.props.library)&&this.warningMessageAndButton))}},ci.contextType=ee.r,ci.dialogName="promoteLibrary",ci.propTypes={library:$().instanceOf(ze.Zu).isRequired,close:$().func,promote:$().func.isRequired},pi((ai=ci).prototype,"writableFolders",[o.computed],Object.getOwnPropertyDescriptor(ai.prototype,"writableFolders"),ai.prototype),si=pi(ai.prototype,"selectedFolder",[ii],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.writableFolders[0]}}),oi=ai))||oi);var hi,fi,mi,gi,vi,yi=r(85878);function bi(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 _i(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ei=(0,K.Pi)(((vi=class extends Y.Component{constructor(...e){super(...e),bi(this,"name",mi,this),bi(this,"hasPressedKey",gi,this),this.handleClickOK=()=>{this.copy()},this.handleClickCancel=()=>{j.ZP.reportEvent("Operations","Copy Team Library","click","cancel")},this.setInputElement=e=>{this.inputElement=e},this.onTextChange=e=>{e.stopPropagation(),this.name=e.target.value},this.onKeyDown=e=>{if(e.stopPropagation(),"Enter"===e.key&&this.isValidName&&!Z.Z.isComposingInputEvent(e))return e.preventDefault(),this.copy(),void(this.props.close&&this.props.close());27!==e.keyCode?this.hasPressedKey||(this.hasPressedKey=!0):this.props.close&&this.props.close()}}componentDidMount(){setTimeout((()=>{var e;null===(e=this.inputElement)||void 0===e||e.focus()}))}get library(){return this.props.library}get isBrandLibrary(){return(0,M.Ol)(this.library)}get title(){return(0,D.Iu)(this.isBrandLibrary?"DL_TEAM_BRAND_COPY_TITLE":"DL_TEAM_LIBRARY_COPY_TITLE")}get message(){return Y.createElement("div",{"data-test-id":"copy-dialog-message"},Y.createElement(Ot.Z,{html:(0,D.Iu)(this.isBrandLibrary?"DL_TEAM_BRAND_COPY_BODY":"DL_TEAM_LIBRARY_COPY_BODY")}))}get okButtonText(){return(0,D.Iu)("DL_SAVE_COPY")}copy(){this.props.copy(this.name)}get warningMessage(){const e=(0,f.SS)(this.name.trim(),this.props.project);return e===d.Z.RENAME_STATES.VALID?this.remainingCharacters<=d.Z.MAX_REMAINING_CHARACTERS_LENGTH?{message:(0,D.Iu)("DL_LIBRARY_NAME_REMAINING_CHARACTERS",{charCount:this.remainingCharacters})}:void 0:{isError:!0,message:(0,D.Iu)(d.Z.RENAME_STATE_ERROR_MESSAGES[e],{charCount:this.remainingCharacters})}}get isOverMaxLength(){return this.name.trim().length>d.Z.MAX_INPUT_STRING_LENGTH}get remainingCharacters(){const e=this.name.trim().length;return d.Z.MAX_INPUT_STRING_LENGTH-e}get isValidName(){return!this.isErrorWarning}get showWarning(){return this.hasPressedKey&&this.name.trim().length>0&&this.warningMessage}get isErrorWarning(){var e;return null===(e=this.warningMessage)||void 0===e?void 0:e.isError}render(){const e=Q()("panel-dialog-layout-75","panel-dialog-input-container",{"panel-dialog-warning":this.showWarning});return Y.createElement(q.Z,{className:Q()("panel-dialog-promote","panel-dialog-share"),title:this.title,okButtonText:this.okButtonText,onClickOK:this.handleClickOK,onClickCancel:this.handleClickCancel,close:this.props.close,okButtonEnabled:this.isValidName},Y.createElement("div",{className:"promote-team-dialog"},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:e},Y.createElement("input",{className:"panel-dialog-input",type:"text","data-test-id":"copy-library-input",spellCheck:"false",placeholder:(0,D.Iu)(this.isBrandLibrary?"DL_CREATE_NEW_BRAND_PLACEHOLDER":"DL_CREATE_NEW_LIBRARY_PLACEHOLDER"),style:{width:"100%"},ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),this.showWarning&&this.isErrorWarning&&Y.createElement(X.Z,{id:"Alert",height:18}))),this.showWarning&&Y.createElement("div",{"data-test-id":"panel-dialog-name-warning",className:Q()("panel-dialog-input-message",{warning:this.isErrorWarning})},this.warningMessage.message),this.message))}}).contextType=ee.r,vi.dialogName="copyTeamLibrary",vi.propTypes={library:$().instanceOf(ze.Zu).isRequired,project:$().instanceOf(yi.SZ).isRequired,permission:$().string,close:$().func,copy:$().func.isRequired},vi.defaultProps={permission:"none"},mi=_i((fi=vi).prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.library.name}}),gi=_i(fi.prototype,"hasPressedKey",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),hi=fi))||hi;var wi,Li;let xi=(0,K.Pi)(((Li=class extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{var e,t;this.context.viewState.isOneUpMode&&this.context.viewState.isOneUpMode()&&this.context.viewState.resetMode(),null!==(e=(t=d.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)&&Z.Z.navigateToMosaic((0,M.Ol)(this.library)?"brands":"libraries"),this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?(this.context.libraryManager.unpublish(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_UNPUBLISH_TOAST",{libraryName:this.library.name})})):this.props.leave?(this.context.libraryManager.unfollowLibrary(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_UNFOLLOW_TOAST",{libraryName:this.library.name})})):(j.ZP.reportEvent("Operations","Delete Team Library","click","ok"),this.context.libraryManager.deleteLibrary(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_DELETE_TOAST",{libraryName:this.library.name})}))},this.onClickCancel=()=>{j.ZP.reportEvent("Operations","Delete Team Library","click","cancel")}}get library(){return this.props.library}get deleteType(){return this.props.leave?"leave":this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?"unpublish":"delete"}get title(){return(0,D.Iu)({delete:"DL_DELETE_LIBRARY",leave:(0,M.Ol)(this.library)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES",unpublish:"DL_UNPUBLISH_LIBRARY"}[this.deleteType],{name:this.library.name})}get message(){return this.props.leave?Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_DELETE_LIBRARY_LINK")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)((0,M.Ol)(this.library)?"DL_LEAVE_TEAM_BRAND_ACCESS":"DL_LEAVE_TEAM_LIBRARY_ACCESS")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)((0,M.Ol)(this.library)?"DL_LEAVE_TEAM_REJOIN_BRAND":"DL_LEAVE_TEAM_REJOIN")}`)):this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_UNPUBLISH_MESSAGE_SHARING")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_UNPUBLISH_MESSAGE_ELEMENTS")}`)):Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"dialog-warning destructive"},Y.createElement(X.Z,{id:"Alert",height:14}),Y.createElement("div",{className:"warning-message-title"},(0,D.Iu)("DL_CANNOT_UNDO_WARNING"))),Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_DELETE_TEAM_LIBRARY_ACCESS")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_DELETE_LIBRARY_LINK")}`)))}get okButtonText(){return(0,D.Iu)({delete:"DL_DELETE",leave:"DL_UNFOLLOW",unpublish:"DL_UNPUBLISH"}[this.deleteType])}render(){const e=this.props.leave?"leave-team-library-message":"delete-team-library-message";return Y.createElement(q.Z,{mode:"warning",title:this.title,className:"delete-dialog",okButtonText:this.okButtonText,onClickOK:this.onClickOK,onClickCancel:this.onClickCancel,close:this.props.close,showMosaicLibrary:d.Z.currentProduct.config.showMosaicInDeleteTeamDialog&&B.Z.get("enableProjects")?this.library:null},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{"data-test-id":e,className:Q()("panel-dialog-layout-100",{"uxp-bullet-list":!Z.Z.supportsCSSListItem})},this.message)))}}).contextType=ee.r,Li.dialogName="deleteTeamLibrary",Li.propTypes={library:$().instanceOf(ze.Zu).isRequired,leave:$().bool,close:$().func},wi=Li))||wi;var Si,Oi,Ti,Ii,Pi,Ci=r(11437);let Ai=(Si=o.observable.ref,(0,K.Pi)((Pi=class extends Y.Component{constructor(...e){super(...e),function(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})}(this,"selectedFolder",Ii,this),this.permission=void 0,this.clickOk=()=>{const e=this.props.assetsContainer.elements.some((e=>e.isLinked)),t={event:{value:this.selectedFolder?"Shared":"Private",count:this.props.assetsContainer.getGroups().length},content:{type:e?"local-and-linked":"local"}};j.ZP.reportEvent("Manager","Publish Library","click","publish",t),this.publish()},this.clickCancel=()=>j.ZP.reportEvent("Manager","Publish Library","click","cancel"),this.handleFolderChange=e=>{e&&j.ZP.reportEvent("Manager","Publish Library","click","add-org"),this.selectedFolder=e},this.onPermissionChange=e=>{this.permission=e}}publish(){const e=Z.Z.waitForCloudAssetId().then((()=>{const e=this.context.libraryManager;return e.publish(e.documentAssetsContainer,this.selectedFolder,{permissionInheritance:this.permission})}));this.props.onPublish(e)}render(){return Y.createElement(q.Z,{className:"panel-dialog-share",title:(0,D.Iu)("DL_PUBLISH_LIBRARY_TITLE"),okButtonText:(0,D.Iu)("DL_PUBLISH_LIBRARY_CONFIRM"),onClickOK:this.clickOk,onClickCancel:this.clickCancel,close:this.props.close},Y.createElement("div",{className:"panel-dialog-share-select-area"},Y.createElement(Xe,{onFolderChange:this.handleFolderChange,onPermissionChange:this.onPermissionChange,type:"publish-team-libraries",defaultTeam:this.props.defaultTeam,showPersonalFolder:!0,showHelp:!0}),Y.createElement("div",{className:"panel-dialog-share-learn-more"},Y.createElement("div",{className:"panel-dialog-share-learn-more-icon"},Y.createElement(X.Z,{id:"Link",height:10})),Y.createElement("a",{tabIndex:"0","data-test-id":"panel-dialog-learn-more-team",onClick:()=>(0,R.Pi)()},(0,D.Iu)("DL_LEARN_MORE")))))}},Pi.contextType=ee.r,Pi.dialogName="publishLibrary",Pi.propTypes={assetsContainer:$().instanceOf(Ci.Z),defaultTeam:$().object,close:$().func,onPublish:$().func},Pi.defaultProps={onPublish:()=>{}},Ii=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((Ti=Pi).prototype,"selectedFolder",[Si],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.defaultTeam}}),Oi=Ti))||Oi);var ki,Di,Ni=r(62061);let Ri=(0,K.Pi)(((Di=class extends Y.Component{constructor(...e){super(...e),this.onClose=()=>{(0,L.y6)("quotaUpdate"),this.props.close()},this.onClickManage=()=>{(0,L.y6)("quotaUpdate"),(0,R.uF)(this.context.libraryManager.currentLibrary,"Quota Message"),this.props.close()}}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_QUOTA_WARNING_DIALOG_TITLE"))}get body(){const e=(0,Ni.d3)(this.context.libraryManager.userQuota.storage_used,1),t=(0,Ni.d3)(this.context.libraryManager.userQuota.storage_quota,1),r=(0,Ni.d3)(this.context.libraryManager.storageUsed,1);return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_QUOTA_WARNING_DIALOG_BODY",{usedStorage:e,totalStorage:t,librariesSize:r}))}render(){return Y.createElement("div",null,Y.createElement(Wn,{okButtonText:(0,D.Iu)("DL_LIBRARY_MANAGER_MANAGE"),onClickOK:this.onClickManage,close:this.onClose,x:5,y:31,triangleOffset:10,placement:"bottom"},this.title,this.body))}}).contextType=ee.r,Di.dialogName="quotaWarningPopover",Di.isAlwaysInline=!0,Di.propTypes={close:$().func.isRequired},ki=Di))||ki;const Mi="owned",ji="shared";class Zi extends Y.Component{constructor(...e){super(...e),this.onClose=()=>this.props.close(),this.onClickOK=()=>{this.props.errorType===Mi&&(0,R.uF)(),this.onClose()}}shouldComponentUpdate(){return!1}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(`DL_OVER_QUOTA_${1===this.libraries.length?"LIBRARY":"LIBRARIES"}_ERROR_TITLE`,{libraryName:this.libraries[0]&&this.libraries[0].name}))}get body(){let e="DL_OVER_QUOTA_LIBRARY_ERROR_BODY";return this.props.errorType===ji&&(e=`DL_OVER_QUOTA_SHARED_${1===this.libraries.length?"LIBRARY":"LIBRARIES"}_ERROR_BODY`),Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(e))}get sharedQuotaErrorLibraries(){return(0,f.cm)()}get ownedQuotaErrorLibraries(){return(0,f.Iu)()}get libraries(){return this.props.errorType===Mi?this.ownedQuotaErrorLibraries:this.sharedQuotaErrorLibraries}render(){return Y.createElement("div",null,Y.createElement(Wn,{okButtonText:(0,D.Iu)("owned"===this.props.errorType?"DL_LIBRARY_MANAGER_MANAGE":"DL_OK"),onClickOK:this.onClickOK,close:this.onClose,x:5,y:31,triangleOffset:10,placement:"bottom"},this.title,this.body))}}var Fi,Bi;Zi.contextType=ee.r,Zi.dialogName="overQuotaError",Zi.isAlwaysInline=!0,Zi.defaultProps={errorType:Mi},Zi.propTypes={close:$().func.isRequired,errorType:$().oneOf([Mi,ji]).isRequired};let Gi=(0,K.Pi)(((Bi=class extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>Z.Z.openSaveAs().then((e=>{e&&this.props.onSave&&this.props.onSave()}))}get message(){return Y.createElement("div",{className:"panel-dialog-illustrated-message"},Y.createElement("div",{"data-test-id":"save-cloud-doc-illustration",className:`panel-dialog-illustrated-message-image ${Z.Z.getAppName()}`}),Y.createElement("div",{"data-test-id":"save-cloud-doc-heading",className:"panel-dialog-illustrated-message-heading"},(0,D.Iu)(`DL_SAVE_CLOUD_DOC_HEADING_${Z.Z.getAppName()}`)),Y.createElement("div",{"data-test-id":"save-cloud-doc-message",className:"panel-dialog-illustrated-message-description"},(0,D.Iu)("DL_SAVE_CLOUD_DOC_MESSAGE")))}render(){return Y.createElement(q.Z,{className:"panel-dialog-save-cloud-doc",okButtonText:(0,D.Iu)("DL_SAVE_CLOUD_DOC_CONFIRM"),onClickOK:this.onClickOK,close:this.props.close},Y.createElement("div",{className:"panel-dialog-layout-100"},this.message))}}).dialogName="saveCloudDoc",Bi.propTypes={onSave:$().func,close:$().func},Fi=Bi))||Fi;var Ui,zi;let Vi=(0,K.Pi)(((zi=class extends Y.Component{constructor(...e){super(...e),this.onClose=()=>{this.props.close()},this.enableSync=()=>{this.onClose(),this.context.libraryManager.enableSyncing()}}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_LAUNCH_CC_APP_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_LAUNCH_CC_APP_MESSAGE"))}render(){return Y.createElement("div",null,Y.createElement(Wn,{okButtonText:(0,D.Iu)("DL_LAUNCH_CC_APP_ENABLE_BUTTON"),onClickOK:this.enableSync,close:this.onClose,x:5,y:31,triangleOffset:10,placement:"bottom"},this.title,this.body))}}).contextType=ee.r,zi.dialogName="enableSyncPopup",zi.isAlwaysInline=!0,zi.propTypes={close:$().func.isRequired},Ui=zi))||Ui;var Hi=r(6535),Yi=r(82530);const Wi=["className","renderLabel","readOnly","label","checked","disabled","invalid","indeterminate","emphasized","children","onChange"];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 Ki(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){qi(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 qi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xi(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ji(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ji=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function eo(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qi(o,n,i,a,s,"next",e)}function s(e){Qi(o,n,i,a,s,"throw",e)}a(void 0)}))}}const to=(0,ye.Z)(r(82701)).default;let ro;Yi.env.EXCLUDE_SWC||(ro=new ve.t(["sp-checkbox"],eo(Ji().mark((function e(){var t,n;return Ji().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(5987),r.e(2261)]).then(r.bind(r,88399));case 2:return t=e.sent,n=t.Checkbox,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const no=(0,ge.Z)({displayName:"Checkbox",fallback:to,swcLoader:ro,SWCWrapper:e=>{const t=(0,Y.useRef)(null),r=e.className,n=e.renderLabel,i=void 0===n||n,o=e.readOnly,a=e.label,s=e.checked,c=e.disabled,l=e.invalid,u=e.indeterminate,p=e.emphasized,d=e.children,h=e.onChange,f=Xi(e,Wi);(0,Y.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;null==h||h(t.checked,e)};return e&&h&&e.addEventListener("change",r),()=>{e&&h&&e.removeEventListener("change",r)}}),[h]);const m=(0,me.Co)("sp-checkbox");return Y.createElement(m,Ki(Ki(Ki({},f),(0,me.cd)({checked:s,disabled:c,emphasized:p,indeterminate:u,invalid:l,readonly:o})),{},{class:r,ref:t}),i?a:"",d)},tagName:"sp-checkbox"});var io,oo,ao,so,co,lo,uo,po,ho,fo,mo,go,vo=r(68548);function yo(){return yo=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},yo.apply(this,arguments)}function bo(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 _o(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}window.setImmediate=window.setImmediate||window.setTimeout;const Eo={BRAND:"brand",LIBRARY:"library",GROUP:"group"},wo={[Eo.BRAND]:{tooltip:"DL_ADD_BRAND_TOOLTIP",icon:"CCXCreateBrandPlus",inputHeader:"DL_CREATE_BRAND_HEADER_TITLE",title:"DL_CREATE_NEW_BRAND_LIBRARY",getInputPlaceholder:()=>(0,D.Iu)("DL_CREATE_NEW_BRAND_PLACEHOLDER")},[Eo.LIBRARY]:{tooltip:"DL_ADD_LIBRARY_TOOLTIP",icon:"AddCCLibrary",inputHeader:"DL_CREATE_LIBRARY_HEADER_TITLE",title:"DL_CREATE_DESIGN_LIBRARY",getInputPlaceholder:()=>(0,D.Iu)("DL_CREATE_NEW_LIBRARY_PLACEHOLDER")},[Eo.GROUP]:{tooltip:"DL_ADD_GROUP_TOOLTIP",icon:"AddGroup",inputHeader:"DL_CREATE_GROUP_HEADER_TITLE",title:"DL_CREATE_NEW_GROUP",getInputPlaceholder:e=>(0,h.xr)(e)}};let Lo=(io=o.observable.ref,oo=o.observable.ref,ao=o.observable.ref,(0,K.Pi)(((go=class extends Y.Component{constructor(...e){super(...e),bo(this,"createModeType",lo,this),bo(this,"name",uo,this),bo(this,"_selectedLibrary",po,this),bo(this,"selectedGroup",ho,this),bo(this,"selectedFolder",fo,this),bo(this,"_makeCurrentLibraryDefault",mo,this),this.disposeZeroLibrariesReaction=void 0,this.setSelectedLibrary=e=>{var t,r;this._selectedLibrary=e,null===(t=(r=this.props).onChange)||void 0===t||t.call(r,{library:e,group:this.selectedGroup})},this.setSelectedGroup=e=>{var t,r;this.selectedGroup=e,null===(t=(r=this.props).onChange)||void 0===t||t.call(r,{library:this.selectedLibrary,group:e})},this.clearSelectedLibrary=()=>{var e,t;this._selectedLibrary=null,null===(e=(t=this.props).onChange)||void 0===e||e.call(t,{library:void 0,group:this.selectedGroup})},this.shouldDisableSubmission=()=>!this.selectedLibrary&&!this.createData||(!(!this.isDocumentAssets||this.selectedGroup)||(!(!this.createData||this.nameStatus===d.Z.RENAME_STATES.VALID)||(!(this.createData||!this.selectedLibrary||this.validateTarget({library:this.selectedLibrary}))||void 0))),this.shouldAllowBack=e=>e&&(!this.isDocumentAssets||this.selectedGroup),this.shouldHideFooterIcon=e=>!(!this.showGroupPicker||e===Eo.GROUP)||(!this.showGroupPicker&&e===Eo.GROUP||(e===Eo.BRAND&&!B.Z.get("brandFeatureEnabled")||!!this.createData)),this.shouldDisableFooterIcon=()=>{if(this.selectedGroup&&!this.validateTarget({group:this.selectedGroup,library:this.selectedLibrary}))return!0},this.setSelectedGroupToParent=()=>{var e,t;this.selectedGroup=this.selectedGroup.parent,null===(e=(t=this.props).onChange)||void 0===e||e.call(t,{library:this.selectedLibrary,group:this.selectedGroup})},this.onClickBack=()=>this.selectedGroup?this.setSelectedGroupToParent():this.clearSelectedLibrary(),this.getHeader=(e,t)=>{const r=Q()("popover-title","select-target-title-container",{"select-target-header-border":!this.createData,"popover-title-empty":this.showLoading});return Y.createElement("div",{"data-test-id":"popover-title",className:r},Y.createElement("div",{className:"select-target-operation-row","data-test-id":"select-target-operation-row"},Y.createElement("div",{className:"select-target-operation","data-test-id":"select-target-operation"},this.operationTitle),this.props.enableSetAsDefault&&!this.showLoading&&Y.createElement("div",{className:"select-target-header-icons"},this.createIcons),Y.createElement("div",{className:"select-target-close","data-test-id":"select-target-close",onClick:this.props.close},Y.createElement(X.Z,{id:"Close",height:20,width:20}))),e&&Y.createElement("div",{className:"select-target-name-row","data-test-id":"select-target-name-row"},this.shouldAllowBack(t)&&Y.createElement("div",{className:"select-target-back","data-test-id":"select-target-back-arrow",onClick:this.onClickBack},Y.createElement(X.Z,{id:"BackArrow",height:16,width:16})),Y.createElement("div",{"data-test-id":"select-target-item-name",className:"select-target-name"},t?t.name:(0,D.Iu)("DL_SELECT_LIBRARY"))))},this.onClickFooterIcon=e=>{this.shouldDisableFooterIcon()||(this.createModeType=e,this.name=this.createData.getInputPlaceholder(this.currentGroupBranch),this.selectedFolder=void 0)},this.getFooterIcon=e=>{var t;if(this.shouldHideFooterIcon(e))return;const r=wo[e],n=r.icon,i=r.tooltip,o=Q()("select-target-footer-icon",{disabled:this.shouldDisableFooterIcon()}),a=null!==(t=d.Z.currentProduct.config.copyMoveFooterIconSize)&&void 0!==t?t:14;return Y.createElement(Ae.Z,{content:(0,D.Iu)(i),key:e},Y.createElement("div",{className:o,"data-test-id":`select-target-footer-icon-${e}`,onClick:()=>this.onClickFooterIcon(e)},Y.createElement(X.Z,{id:n,width:a,height:a})))},this.onClickCell=(e,t)=>{e||(t.isGroup?this.setSelectedGroup(t):(t===this.selectedLibrary?this.clearSelectedLibrary():this.setSelectedLibrary(t),this._makeCurrentLibraryDefault=!1))},this.getTargetItem=e=>{const t=e.isGroup?"group":"library";if(e&&e.isGroup&&e.hideWhenEmpty&&0===e.children.length)return;const r=e.isLibrary&&e===this.selectedLibrary,n=!this.validateTarget("group"===t?{group:e}:{library:e}),i=this.props.getTargetProps(e).className,o=Q()("select-target-cell",`copymove-${t}`,{"select-target-cell-disabled":n},{"select-target-cell-selected":r},i),a=this.getCellIcons(e);return d.Z.currentProduct.config.showMosaicViewInSelectLibraryPicker?Y.createElement("div",{key:e.id,"data-test-id":`${this.props.id}-${t}-${e.id}`,className:o,onClick:()=>this.onClickCell(n,e)},a.left,Y.createElement(bt.Z,{className:"select-target-cell-mosaic",viewMode:"grid",library:e,renditionGrid:e.renditionGrid}),Y.createElement(Ae.Z,{content:e.name},Y.createElement("div",{className:"select-target-cell-text","data-test-id":`${this.props.id}-${t}-${e.id}-text`},e.name)),a.right):Y.createElement("div",{key:e.id,"data-test-id":`${this.props.id}-${t}-${e.id}`,className:o,onClick:()=>this.onClickCell(n,e)},a.left,Y.createElement(Ae.Z,{content:e.name},Y.createElement("div",{className:"select-target-cell-text","data-test-id":`${this.props.id}-${t}-${e.id}-text`},e.name)),a.right)},this.getCellIcons=e=>{const t={left:void 0,right:void 0};return null!=e&&e.documentId&&(t.left=this.getCellIconElement("LinkedLibrary","left")),e.isLibrary&&(0,M.Ol)(e)&&(t.left=this.getCellIconElement("CCXCreateLogo","left")),this.props.disableGroupSelection||(t.right=this.getCellIconElement("ChevronRightSmall","right")),e===this.selectedLibrary&&(t.right=this.getCellIconElement("Checkmark","right")),t},this.getCellIconElement=(e,t)=>{var r;const n=null!==(r=d.Z.currentProduct.config.copyMoveListItemIconSize)&&void 0!==r?r:8;return Y.createElement("div",{className:`select-target-cell-icon-${t}`,"data-test-id":`select-target-cell-icon-${t}-${e}`},Y.createElement(X.Z,{id:e,width:n,height:n}))},this.setInputElement=e=>{this.inputElement=e,setImmediate((()=>{this.inputElement&&(this.inputElement.select(),this.inputElement.focus())}))},this.validateTarget=e=>{const t=e.library;if(this.props.validateTarget)return this.props.validateTarget(e);if(!t)return!1;const r=t!==this.context.libraryManager.currentLibrary;return!!this.context.viewState.isLibraryWritable(t,!1,r)},this.onTextChange=e=>{this.name=(0,ht.aS)(e.target.value,d.Z.MAX_INPUT_STRING_LENGTH,!1),this.itemName.length||(this.name="")},this.onKeyDown=e=>{"Enter"!==e.key||Z.Z.isComposingInputEvent(e)?"Escape"===e.key&&this.cancelCreateMode():this.shouldDisableSubmission()||this.submitAction(e),e.stopPropagation()},this.onSubmit=()=>{const e={};this.makeCurrentLibraryDefault&&(e.ccl={set_as_default:!0}),this.props.onSubmit({library:this.selectedLibrary,group:this.selectedGroup,extraMetrics:e})},this.cancelCreateMode=()=>{this.createModeType=null},this.createGroupAction=()=>{var e,t;const r=this.selectedGroup?(0,h.yF)(this.selectedGroup,this.itemName,!1):(0,f.sS)(this.selectedLibrary,this.itemName);return null===(e=(t=this.props).onCreateGroup)||void 0===e||e.call(t,r),this.setSelectedGroup(r),r},this._createTeamLibrary=()=>this.context.libraryManager.createTeamLibrary(this.selectedFolder.id,this.itemName,{permissionInheritance:this.permission}),this._createPersonalLibrary=()=>this.context.libraryManager.createLibrary(this.itemName),this.createLibraryAction=e=>{const t=this.context.libraryManager,r=t.areLibrariesLoaded&&!t.libraries.length,n=this.selectedFolder?this._createTeamLibrary():this._createPersonalLibrary();return this.setSelectedLibrary(n),j.ZP.reportEvent("Create Library","New Library",e,"create",{ccl:{is_creating_first_library:r}},n),n},this.createBrandAction=()=>{const e=this.createLibraryAction();return uc.panel.brandActions.brandLibrary(e),e},this._createActions={[Eo.GROUP]:this.createGroupAction,[Eo.LIBRARY]:this.createLibraryAction,[Eo.BRAND]:this.createBrandAction},this.submitAction=e=>{const t="keydown"===(null==e?void 0:e.type)?e.type:"click",r=this._createActions[this.createModeType];return r?(this.cancelCreateMode(),r(t)):this.selectedLibrary?(this.makeCurrentLibraryDefault&&this.context.libraryManager.setDefaultLibrary(this.selectedLibrary),this.onSubmit()):void 0},this.handleFolderChange=e=>{this.selectedFolder=e},this.handleDragEnter=e=>{e.preventDefault(),this.props.close()},this.onPermissionChange=e=>{this.permission=e},this.onClickCancel=()=>{this.shouldCloseOnCancel&&this.props.close(),this.cancelCreateMode()}}get groupsTree(){if(!this.showGroupPicker)return;const e=this.context.viewState.elementSortState,t="modified"===e?"order":e;return(0,h.Oi)([],this.selectedLibrary.getGroups(),{sortBy:t,includeUngrouped:!1})}componentDidMount(){this.disposeZeroLibrariesReaction=(0,o.when)((()=>this.areLibrariesLoaded&&this.zeroLoadedLibraries),(()=>this.createModeType="library"))}componentWillUnmount(){this.disposeZeroLibrariesReaction()}get selectedLibrary(){return void 0===this._selectedLibrary?this.props.startingLibrary:this._selectedLibrary}get makeCurrentLibraryDefault(){return this.selectedLibrary===this.defaultLibrary||this._makeCurrentLibraryDefault}get defaultLibrary(){if(this.props.enableSetAsDefault)return this.context.libraryManager.getDefaultLibrary()}get areLibrariesLoaded(){return this.context.libraryManager.areLibrariesLoaded}get areLibrariesLoading(){return this.context.libraryManager.areLibrariesLoading}get zeroLoadedLibraries(){return!this.context.libraryManager.activeLibraries.length}get showLoading(){return this.zeroLoadedLibraries&&this.areLibrariesLoading}get showCreateActionsInHeader(){return this.props.enableSetAsDefault}get isDocumentAssets(){return this.props.isDocumentAssets}get operationTitle(){return this.showLoading?"":this.createData?(0,D.Iu)(this.createData.title):(0,D.Iu)(this.props.title)}get showGroupPicker(){return this.selectedLibrary&&!this.props.disableGroupSelection}get header(){return this.createData?this.getHeader(!1):this.selectedGroup||this.showGroupPicker?this.selectedGroup?this.getHeader(!0,this.selectedGroup):this.getHeader(!0,this.selectedLibrary):this.getHeader(!this.props.disableGroupSelection)}get x(){var e;const t=d.Z.currentProduct.config.panelWidthAdjustment||0,r=Z.Z.getHostContainerWidth()+t,n=null!==(e=this.props.width)&&void 0!==e?e:d.Z.DEFAULT_SELECT_TARGET_POPOVER_WIDTH;if(r<n)return 0;const i=this.props.x+n-r;return this.props.x-Math.max(0,i)}get y(){var e;const t=Z.Z.getHostContainerHeight(),r=null!==(e=this.props.height)&&void 0!==e?e:d.Z.DEFAULT_SELECT_TARGET_POPOVER_HEIGHT;if(t<r)return 0;const n=this.props.y+r-t;return this.props.y-Math.max(0,n)}get nameStatus(){return this.showGroupPicker?(0,h.PR)(this.itemName,null,this.currentGroupBranch):(0,f.SS)(this.itemName,this.selectedFolder)}get itemName(){return this.name.trim()}get currentGroupBranch(){if(!this.showGroupPicker)return;const e=this.groupsTree,t=e.branches,r=e.root;return this.selectedGroup?t[this.selectedGroup.id]:r}get groupItems(){if(this.showGroupPicker)return this.currentGroupBranch.children.map((e=>e.item))}get emptyGroupMessageLabel(){return this.props.emptyGroupMessageLabel}get defaultPickerBody(){if(this.showLoading)return this.loadingSpinner;if(this.showGroupPicker){const e=this.groupItems;return e&&0!==e.length?e.map((e=>this.getTargetItem(e))):Y.createElement("div",{"data-test-id":"select-target-empty-group-message",className:"select-target-empty-group-message"},this.emptyGroupMessageLabel)}return this.context.libraryManager.activeLibraries.map((e=>this.getTargetItem(e)))}get createInputHeader(){if(d.Z.currentProduct.config.enableCopyMovePickerCreateInputHeader)return Y.createElement("div",{className:"select-target-create-input-header","data-test-id":"select-target-create-input-header"},(0,D.Iu)(this.createData.inputHeader))}get createGroupOrLibPickerBody(){const e=this.nameStatus!==d.Z.RENAME_STATES.VALID&&this.name.trim().length>0;return Y.createElement("div",{className:Q()("select-target-create-container","panel-dialog-share",{invalid:e})},this.createInputHeader,Y.createElement("div",{className:"select-target-create-input-wrapper"},Y.createElement("input",{className:"panel-dialog-input",type:"text","data-test-id":`${this.props.id}-create-input`,spellCheck:"false",placeholder:(0,D.Iu)(this.showGroupPicker?"DL_EDIT_GROUP_NAME_PLACEHOLDER":"DL_CREATE_NEW_LIBRARY_PLACEHOLDER"),ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),e&&Y.createElement("div",{"data-test-id":"select-target-alert-tooltip"},Y.createElement(Ae.Z,{className:"select-target-alert-tooltip",placement:"top",content:(0,D.Iu)(d.Z.RENAME_STATE_ERROR_MESSAGES[this.nameStatus])},Y.createElement(X.Z,{className:"select-target-alert-icon","data-test-id":"select-target-alert-icon",id:"Alert",height:12})))),!this.showGroupPicker&&Y.createElement(Xe,{onFolderChange:this.handleFolderChange,onPermissionChange:this.onPermissionChange,showPersonalFolder:!0,personalFolderIsBrands:this.createModeType===Eo.BRAND,iconSize:d.Z.currentProduct.config.copyMoveTeamSelectorIconSize||"S"}))}get okButtonLabel(){return this.createData?(0,D.Iu)("DL_CREATE"):(0,D.Iu)(this.props.okButtonText)}get createData(){if(this.createModeType)return wo[this.createModeType]}get inputPlaceholder(){if(this.createData)return this.createData.getInputPlaceholder()}get createIcons(){return Y.createElement(Y.Fragment,null,d.Z.currentProduct.config.showSyncIconInSelectLibraryPicker&&Y.createElement(vo.Z,null),!d.Z.currentProduct.config.hideIconsInSelectLibraryPicker&&Object.values(Eo).map((e=>this.getFooterIcon(e))))}get additionalFooterContent(){return this.props.additionalFooterContent}get disableSetAsDefaultLibraryCheckbox(){var e;return!this.selectedLibrary||!(null!==(e=this.selectedLibrary)&&void 0!==e&&e.isWritable)||!this.validateTarget({library:this.selectedLibrary})}get footer(){if(!this.createData||this.mergeInfo)return!this.showGroupPicker&&this.props.enableSetAsDefault?Y.createElement("div",{className:"select-target-footer"},Y.createElement(no,{"data-test-id":"select-target-set-as-default-checkbox",onChange:e=>this._makeCurrentLibraryDefault=e,checked:this.makeCurrentLibraryDefault,disabled:this.disableSetAsDefaultLibraryCheckbox,label:(0,D.Iu)("DL_SET_AS_DEFAULT_LIBRARY")})):Y.createElement("div",{"data-test-id":"select-target-footer",className:"select-target-footer"},this.createIcons,this.additionalFooterContent)}get loadingSpinner(){return Y.createElement("div",null,Y.createElement(ui.Z,{size:"large","data-test-id":"select-target-loading-spinner",indeterminate:!0}))}get cancelButtonText(){if(this.createData||d.Z.currentProduct.config.showCancelInSelectLibraryPicker)return(0,D.Iu)("DL_CANCEL")}get shouldCloseOnCancel(){return!this.createData||this.zeroLoadedLibraries&&this.areLibrariesLoaded}render(){const e=Q()("select-target-body",{"select-target-creating-body":this.createData,"select-target-loading":this.showLoading});return Y.createElement(Wn,yo({},this.props,{okButtonText:this.okButtonLabel,cancelButtonText:this.cancelButtonText,cancelButtonQuiet:d.Z.currentProduct.config.cancelButtonQuiet,onClickOK:this.submitAction,onClickCancel:this.onClickCancel,onDragEnter:this.handleDragEnter,closeOnButtonClick:!this.createData,close:this.props.close,hideFooter:this.showLoading,x:this.x,y:this.y,placement:"top",showPopoverTriangle:!1,isDisabled:this.shouldDisableSubmission(),additionalFooterContent:this.footer,className:"select-target-container"}),this.header,Y.createElement("div",{"data-test-id":"select-target-body",className:e},this.createData?this.createGroupOrLibPickerBody:this.defaultPickerBody))}}).contextType=ee.r,go.dialogName="selectLibrary",go.isAlwaysInline=!0,go.defaultProps={id:"select",disableSearch:!1,enableSetAsDefault:!1,getTargetProps:()=>({className:""}),x:0,y:0,isDocumentAssets:!1,onSubmit:()=>{},okButtonText:"DL_SAVE",title:"DL_SAVE_TO"},go.propTypes={id:$().string,additionalFooterContent:$().node,close:$().func.isRequired,cancelButtonQuiet:$().bool,emptyGroupMessageLabel:$().string,getTargetProps:$().func.isRequired,onSubmit:$().func.isRequired,closeOnResize:$().bool,title:$().string.isRequired,okButtonText:$().string,validateTarget:$().func,disableGroupSelection:$().bool,disableSearch:$().bool,enableSetAsDefault:$().bool,height:$().number,onChange:$().func,onCreateGroup:$().func,isDocumentAssets:$().bool,isGroupOp:$().bool,startingLibrary:$().oneOfType([$().instanceOf(ze.Zu),$().instanceOf(Hi.Z)]),startingGroup:$().instanceOf(ze.ZA),width:$().number,x:$().number.isRequired,y:$().number.isRequired},_o((co=go).prototype,"groupsTree",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"groupsTree"),co.prototype),lo=_o(co.prototype,"createModeType",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),uo=_o(co.prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),po=_o(co.prototype,"_selectedLibrary",[io],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ho=_o(co.prototype,"selectedGroup",[oo],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.startingGroup}}),fo=_o(co.prototype,"selectedFolder",[ao],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mo=_o(co.prototype,"_makeCurrentLibraryDefault",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_o(co.prototype,"areLibrariesLoaded",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"areLibrariesLoaded"),co.prototype),_o(co.prototype,"areLibrariesLoading",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"areLibrariesLoading"),co.prototype),_o(co.prototype,"zeroLoadedLibraries",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"zeroLoadedLibraries"),co.prototype),_o(co.prototype,"showLoading",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"showLoading"),co.prototype),_o(co.prototype,"itemName",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"itemName"),co.prototype),_o(co.prototype,"currentGroupBranch",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"currentGroupBranch"),co.prototype),_o(co.prototype,"groupItems",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"groupItems"),co.prototype),_o(co.prototype,"createData",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"createData"),co.prototype),_o(co.prototype,"inputPlaceholder",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"inputPlaceholder"),co.prototype),_o(co.prototype,"disableSetAsDefaultLibraryCheckbox",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"disableSetAsDefaultLibraryCheckbox"),co.prototype),_o(co.prototype,"footer",[o.computed],Object.getOwnPropertyDescriptor(co.prototype,"footer"),co.prototype),so=co))||so);var xo,So,Oo,To,Io,Po,Co,Ao=r(75623),ko=r(80091);function Do(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Do=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function No(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 Ro(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?No(Object(r),!0).forEach((function(t){Mo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):No(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Zo(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 Fo(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Bo=(xo=o.observable.ref,So=o.observable.ref,(0,K.Pi)(((Co=class extends Y.Component{constructor(...e){var t;super(...e),t=this,Zo(this,"selectedLibrary",Io,this),Zo(this,"selectedGroup",Po,this),this._handleChange=({group:e,library:t})=>{this.selectedLibrary=t,this.selectedGroup=e},this._validateTarget=({group:e,library:t})=>{if(e){if(this.isGroupsOp&&(0,h.zA)(e,this.items[0]))return!1;if(this.isDocumentAssets&&!(0,h.mB)(this.groups,e))return!1}else{if(this.props.isMove&&this.disableGroupSelection&&this.items.find((e=>e.library===t)))return!1;const e=t!==this.context.libraryManager.currentLibrary;if(!this.context.viewState.isLibraryWritable(t,!1,e))return!1}return!0},this._handleSubmit=function(){var e,r=(e=Do().mark((function e({library:r,group:n,extraMetrics:i}){return Do().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.isGroupsOp||(t.props.isMove?j.ZP.reportEvent("Element Operations","Element","move","element",Ro({event:{value:"agg",count:t.items.length},content:{category:"Right Click"}},i),t.context.libraryManager.currentLibrary):(j.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:t.items.length},content:{category:"Element Copy"}},t.context.libraryManager.currentLibrary),j.ZP.setExtraEventMetrics("copyElement",{content:{category:"Element Copy"}}))),t.props.copyMoveAction(t.props.isMove,t.isGroupsOp?t.items[0]:t.items,r,n);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){jo(o,n,i,a,s,"next",e)}function s(e){jo(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),this._onCreateGroup=()=>{j.ZP.setExtraEventMetrics("createGroup",{content:{category:(this.props.isMove?"Move":"Copy")+" Picker"}})},this.getTargetProps=e=>{var t;return{className:Q()({mergeable:null===(t=this.mergeableGroups)||void 0===t?void 0:t.includes(e)})}}}get groupsTree(){var e;const t=this.context.viewState.elementSortState,r="modified"===t?"order":t;return(0,h.Oi)([],null===(e=this.selectedLibrary)||void 0===e?void 0:e.getGroups(),{sortBy:r,includeUngrouped:!1})}get currentGroupBranch(){const e=this.groupsTree,t=e.branches,r=e.root;return this.selectedGroup?t[this.selectedGroup.id]:r}get mergeableGroups(){if(!this.isGroupsOp)return;if(this.items.length>1)return;const e=this.items[0];return(0,h.Nt)(e,this.currentGroupBranch)}get items(){return this.props.items}get groups(){return this.isGroupsOp?this.items:[...new Set(this.items.map((e=>e.getGroups()[0])))]}get startingLibrary(){const e=this.context.libraryManager.currentLibrary;return this.props.startingLibrary?this.props.startingLibrary:this.context.viewState.isLibraryWritable(e)&&!d.Z.currentProduct.config.readOnlyGroups?e:void 0}get startingGroup(){return this.groups[0]&&[this.groups[0],...(0,h._y)(this.groups[0])].find((e=>e.disableDraggingFromOutside))}get isGroupsOp(){return this.items[0].isGroup}get isDocumentAssets(){return this.items[0].library.isDocumentAssets}get emptyGroupMessageLabel(){var e;return null!==(e=this.mergeableGroups)&&void 0!==e&&e.length?(0,D.Iu)("DL_MERGE_EMPTY_GROUP"):(0,D.Iu)(this.props.isMove?"DL_MOVE_EMPTY_GROUP":"DL_COPY_EMPTY_GROUP")}get okButtonText(){var e;if(null!==(e=this.mergeableGroups)&&void 0!==e&&e.length)return(0,D.Iu)("DL_MERGE");const t=this.props.isMove?d.Z.currentProduct.config.overrideMoveText||"DL_MOVE":d.Z.currentProduct.config.overrideCopyText||"DL_COPY";return(0,D.Iu)(t)}get headerTitle(){const e=this.props.isMove?d.Z.currentProduct.config.overrideMoveHeaderText||"DL_MOVE_TO":d.Z.currentProduct.config.overrideCopyHeaderText||"DL_COPY_TO";return(0,D.Iu)(e)}get mergeInfo(){var e;if(null!==(e=this.mergeableGroups)&&void 0!==e&&e.length)return Y.createElement("div",{className:"select-target-footer-icon select-target-merge-info-icon"},Y.createElement(Ae.Z,{placement:"top-start",className:"select-target-merge-info-tooltip",content:(0,D.Iu)("DL_MERGE_HELP_TOOLTIP")},Y.createElement(X.Z,{id:"HelpOutline","data-test-id":"select-target-merge-info-icon",height:14,width:14})))}get disableGroupSelection(){var e;return null!==(e=this.props.disableGroupSelection)&&void 0!==e?e:d.Z.currentProduct.config.readOnlyGroups}render(){return Y.createElement(Lo,{id:"copymove",additionalFooterContent:this.mergeInfo,close:this.props.close,disableGroupSelection:this.disableGroupSelection,enableSetAsDefault:this.props.enableSetAsDefault,disableSearch:!0,emptyGroupMessageLabel:this.emptyGroupMessageLabel,getTargetProps:this.getTargetProps,height:d.Z.currentProduct.config.copyMovePickerHeightOverride,isGroupsOp:this.isGroupsOp,isDocumentAssets:this.isDocumentAssets,isMove:this.props.isMove,onChange:this._handleChange,onCreateGroup:this._onCreateGroup,onSubmit:this._handleSubmit,okButtonText:this.okButtonText,startingGroup:this.startingGroup,startingLibrary:this.startingLibrary,title:this.headerTitle,validateTarget:this._validateTarget,width:d.Z.currentProduct.config.copyMovePickerWidthOverride,x:this.props.x,y:this.props.y})}}).contextType=ee.r,Co.dialogName="copyOrMove",Co.isAlwaysInline=!0,Co.propTypes={items:$().arrayOf($().oneOfType([$().instanceOf(ze.W_),$().instanceOf(ko.Z),$().instanceOf(ze.ZA),$().instanceOf(Ao.Z)])).isRequired,close:$().func.isRequired,copyMoveAction:$().func.isRequired,isMove:$().bool.isRequired,x:$().number.isRequired,y:$().number.isRequired,isDocumentAssets:$().bool,enableSetAsDefault:$().bool,disableGroupSelection:$().bool,startingLibrary:$().oneOfType([$().instanceOf(ze.Zu),$().instanceOf(Hi.Z)])},Io=Fo((To=Co).prototype,"selectedLibrary",[xo],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.startingLibrary}}),Po=Fo(To.prototype,"selectedGroup",[So],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.startingGroup}}),Fo(To.prototype,"groupsTree",[o.computed],Object.getOwnPropertyDescriptor(To.prototype,"groupsTree"),To.prototype),Fo(To.prototype,"currentGroupBranch",[o.computed],Object.getOwnPropertyDescriptor(To.prototype,"currentGroupBranch"),To.prototype),Fo(To.prototype,"mergeableGroups",[o.computed],Object.getOwnPropertyDescriptor(To.prototype,"mergeableGroups"),To.prototype),Fo(To.prototype,"mergeInfo",[o.computed],Object.getOwnPropertyDescriptor(To.prototype,"mergeInfo"),To.prototype),Oo=To))||Oo);const Go=r.p+"resources/Onboarding_Nested-Groups.png";var Uo,zo;function Vo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ho(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Yo(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ho(o,n,i,a,s,"next",e)}function s(e){Ho(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Wo=5e3;let $o=(0,K.Pi)(((zo=class extends Y.Component{constructor(...e){var t;super(...e),t=this,this.handleClickReplaceSlashes=()=>{try{(0,h.JO)(this.props.library),this.context.toastManager.openToast("message",{duration:Wo,closable:!1,variant:"success",message:Y.createElement(Ot.Z,{linkClickMethods:{learnMore:()=>(0,R.UK)()},html:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_SUCCESS_TOAST_REPLACE")})})}catch(e){this.showErrorToast()}this.props.close()},this.handleConvertDelimitedNamesToGroups=Yo(Vo().mark((function e(){return Vo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,h.M_)(t.props.library);case 3:(0,L.XI)()?(t.context.viewState.setViewByState(d.Z.VIEW_BY_MODES.GROUP),(0,L.UK)()):t.context.toastManager.openToast("message",{duration:Wo,closable:!1,variant:"success",message:Y.createElement(Ot.Z,{linkClickMethods:{learnMore:()=>(0,R.UK)()},html:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_SUCCESS_TOAST_GROUP")})}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),t.showErrorToast();case 9:t.props.close();case 10:case"end":return e.stop()}}),e,null,[[0,6]])}))),this.handleClickBackToRoot=()=>{var e;Z.Z.navigateToAllLibraries&&Z.Z.navigateToAllLibraries(),this.context.libraryManager.currentLibrary=null,null===(e=Z.Z.navigateToAllLibraries)||void 0===e||e.call(Z.Z),this.props.close()}}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},Y.createElement(Ot.Z,{linkClickMethods:{learnMore:()=>(0,R.UK)()},html:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_BODY")}))}get graphic(){return Y.createElement("img",{"data-test-id":"popover-graphic",className:"popover-graphic",src:Go})}showErrorToast(){this.context.toastManager.openToast("message",{duration:Wo,variant:"error",message:Y.createElement(Ot.Z,{html:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_ERROR_TOAST")})})}render(){const e=Y.createElement(Y.Fragment,null,Y.createElement(zn.Z,{"data-test-id":"popover-migrate-button",variant:"secondary",onClick:this.handleConvertDelimitedNamesToGroups},(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_CONVERT_TO_GROUPS")),Y.createElement(zn.Z,{"data-test-id":"popover-back-button",variant:"secondary",onClick:this.handleClickBackToRoot},(0,D.Iu)("DL_BACK_BUTTON_ROOT")));return Y.createElement(Wn,{className:"migrate-slashes-library-popover",okButtonText:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_REPLACE_SLASHES"),onClickOK:this.handleClickReplaceSlashes,additionalFooterButtons:e,close:this.props.close,x:0,y:10,placement:"top",verticalButtonGroup:!0,closeOnWindowClick:!1,showPopoverTriangle:!1,closeOnOverlayEvent:!1,minHeight:540},this.graphic,this.title,this.body)}}).dialogName="migrateLibraryWithSlashes",zo.isAlwaysInline=!0,zo.contextType=ee.r,zo.isAlwaysInline=!0,zo.propTypes={library:$().oneOfType([$().instanceOf(ze.Zu),$().instanceOf(Hi.Z)]),close:$().func.isRequired},Uo=zo))||Uo;var Ko,qo;function Xo(){return Xo=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},Xo.apply(this,arguments)}const Jo="owned",Qo="shared";let ea=(0,K.Pi)(((qo=class extends Y.Component{constructor(...e){super(...e),this.handleUpgrade=()=>{(0,R.tD)()},this.handleFreeUpSpace=()=>{(0,R.uF)()}}get dialogData(){return this.props.isFirstTimePublishing?{title:(0,D.Iu)("DL_PUBLISH_QUOTA_ERROR_HEADING"),okButtonText:(0,D.Iu)("DL_PUBLISH_QUOTA_ERROR_UPGRADE"),message:Y.createElement(Ot.Z,{html:(0,D.Iu)("DL_PUBLISH_QUOTA_ERROR_BODY"),onClick:this.handleFreeUpSpace}),onClickOK:this.handleUpgrade}:{[Jo]:{title:(0,D.Iu)("DL_PUBLISH_UPDATES_QUOTA_ERROR_HEADING"),okButtonText:(0,D.Iu)("DL_PUBLISH_QUOTA_ERROR_UPGRADE"),message:(0,D.Iu)("DL_PUBLISH_UPDATES_QUOTA_ERROR_BODY"),onClickOK:this.handleUpgrade},[Qo]:{title:(0,D.Iu)("DL_PUBLISH_UPDATES_QUOTA_ERROR_HEADING"),message:(0,D.Iu)("DL_PUBLISH_UPDATES_SHARED_QUOTA_ERROR_BODY")}}[this.props.errorType]}render(){return Y.createElement(q.Z,Xo({mode:"error",className:"panel-dialog-publish-quota-error",close:this.props.close},this.dialogData),Y.createElement("div",{"data-test-id":"publish-quota-error-message",className:"panel-dialog-layout-100"},this.dialogData.message))}}).dialogName="publishQuotaError",qo.propTypes={isFirstTimePublishing:$().bool,errorType:$().oneOf([Jo,Qo]).isRequired,close:$().func},Ko=qo))||Ko;var ta,ra;let na=(0,K.Pi)(((ra=class extends Y.Component{get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_VIEW_BY_GROUP_POPOVER_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_VIEW_BY_GROUP_POPOVER_BODY"))}render(){return Y.createElement("div",{className:"view-by-group-popover"},Y.createElement(Wn,{okButtonText:(0,D.Iu)("DL_OK"),close:this.props.close,x:10,y:this.context.viewState.panelHeaderHeight,placement:"top",horizontalPlacement:"left"},this.title,this.body))}}).dialogName="viewByGroupPopover",ra.contextType=ee.r,ra.propTypes={close:$().func.isRequired},ta=ra))||ta;var ia,oa,aa,sa;let ca=(0,K.Pi)((sa=class extends Y.Component{constructor(...e){super(...e),function(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})}(this,"assetId",aa,this),this.handleClickOK=()=>{this.loadLibrary()},this.handleChange=e=>{this.assetId=e.target.value},this.handleKeyDown=e=>{"Enter"===e.key&&this.loadLibrary()}}loadLibrary(){this.context.libraryManager.loadLibraryByAssetId(this.assetId.trim()).then((e=>{var t,r;this.context.libraryManager.currentLibrary=e,null===(t=(r=this.props).close)||void 0===t||t.call(r)}))}render(){return Y.createElement(q.Z,{title:"Load library by asset ID",className:"rename-dialog",okButtonText:"Load",onClickOK:this.handleClickOK,close:this.props.close},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:Q()("panel-dialog-layout-75","panel-dialog-input-container")},Y.createElement("input",{className:"rename-library-input",type:"text",spellCheck:"false",placeholder:"Asset ID",style:{width:"100%"},value:this.name,onKeyDown:this.handleKeyDown,onChange:this.handleChange}))))}},sa.contextType=ee.r,sa.dialogName="loadLibraryByAssetId",sa.propTypes={close:$().func},aa=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((oa=sa).prototype,"assetId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ia=oa))||ia;var la=r(74911),ua=r(96195),pa=r.n(ua),da=r(47115),ha=r(78905);const fa={statusText:"CZe",actionGrid:"sxx",libraryHeader:"FBl",executeLine:"FWe",executeText:"f0O",operation:"dPa",linkedAction:"x6t",action:"nz1",insert:"npQ",update:"fhm",remove:"Bn6"};var ma,ga,va,ya,ba;function _a(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||wa(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 Ea(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=wa(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function wa(e,t){if(e){if("string"==typeof e)return La(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)?La(e,t):void 0}}function La(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 xa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Sa(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Oa(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 Ta(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ia=(0,K.Pi)(((ba=class extends Y.Component{constructor(...e){super(...e),Oa(this,"isSyncing",va,this),Oa(this,"displayState",ya,this),this.pushDisplayState=()=>{this.displayState.push([...this.libraryHeaders,...this.libraryActions,...this.libraryOperations])}}componentDidMount(){var e,t;this.isSyncing=this.context.libraryManager.syncingEnabled(),null===(e=(t=this.context.libraryManager.dangerouslyAccessCCLibraries()).on)||void 0===e||e.call(t,"report",this.pushDisplayState),this.tickInterval=setInterval((()=>{this.displayState.length>1&&this.displayState.shift()}),750),this.pushDisplayState()}componentWillUnmount(){var e,t;null===(e=(t=this.context.libraryManager.dangerouslyAccessCCLibraries()).off)||void 0===e||e.call(t,"report",this.pushDisplayState),clearInterval(this.tickInterval)}handleSyncClick(e){var t,r=this;return(t=xa().mark((function t(){return xa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,r.context.libraryManager.enableSyncing();case 3:t.next=6;break;case 5:r.context.libraryManager.disableSyncing();case 6:r.isSyncing=r.context.libraryManager.syncingEnabled();case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){Sa(o,n,i,a,s,"next",e)}function s(e){Sa(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get libraries(){return this.context.libraryManager.libraries.filter((e=>e.actions.length>0)).slice(0,6)}get libraryHeaders(){return this.libraries.map(((e,t)=>Y.createElement("div",{key:e.id,className:fa.libraryHeader,style:{gridColumn:`${t+1} / span 1`}},e.name))).concat([Y.createElement("div",{key:"exec-line",className:fa.executeLine},Y.createElement("div",{className:fa.executeText},"Execute"))])}get libraryActions(){const e=new Map,t=new Map,r=[];for(let t=0;t<this.libraries.length;t+=1){const n=this.libraries[t],i=[];r.push(i);const o=n.actions.slice(0,8);for(let r=0;r<o.length;r+=1){const a=o[r],s={library:n,action:a,column:t,row:r};e.set(a,i),i.push(s)}}let n,i=0;do{n=!1;var o,a=Ea(r);try{for(a.s();!(o=a.n()).done;){const r=o.value.find((e=>e.row===i));if(!r)continue;if(n=!0,!r.action.link||"dependent"===r.action.name)continue;const a=r.action.link,s=e.get(a),c=s.find((e=>e.action===a)),l=s.indexOf(c);if(c.library!==r.library){for(let e=l;e<s.length;e+=1){s[e].row=r.row+e-l}t.set(r,c)}}}catch(e){a.e(e)}finally{a.f()}i+=1}while(n);const s=[];var c,l=Ea(t.entries());try{for(l.s();!(c=l.n()).done;){const e=_a(c.value,2),t=e[0],r=e[1],n=Math.max(t.column,r.column)+1,i=Math.min(t.column,r.column);s.push(Y.createElement("div",{key:`${t.type}-${r.type}-link-${t.row}`,className:Q()(fa.linkedAction),style:{gridColumn:`${i+1} / ${n+1}`,gridRow:`${t.row+3} / span 1`}}))}}catch(e){l.e(e)}finally{l.f()}const u=r.flat().map((({library:e,action:t,column:r,row:n})=>Y.createElement("div",{key:`${e.name}-${t.type}-${r}-${n}`,className:Q()(fa.action,fa[t.type]),style:{gridColumn:`${r+1} / span 1`,gridRow:`${n+3} / span 1`}},t.name)));return[...s,...u]}get libraryOperations(){return this.libraries.map(((e,t)=>{if(e.operation&&"symbol"!==(e.operation,!1)){const r=e.operation.actions.length;return Y.createElement("div",{key:`op-${e.name}-${t}`,className:fa.operation,style:{gridColumn:`${t+1} / span 1`,gridRow:`3 / span ${r}`}})}})).filter(Boolean)}get currentDisplayState(){return this.displayState[0]}render(){return Y.createElement(q.Z,{title:"JS API 2.0 Dashboard",close:this.props.close},Y.createElement("div",null,Y.createElement("div",{className:fa.statusText},"Syncing: ",this.isSyncing?"Enabled":"Disabled"),Y.createElement(la.default,null,Y.createElement(pa(),{icon:Y.createElement(ha.Z,null),onClick:()=>this.handleSyncClick(!0),disabled:this.isSyncing},"Start Syncing"),Y.createElement(pa(),{icon:Y.createElement(da.Z,null),onClick:()=>this.handleSyncClick(!1),disabled:!this.isSyncing},"Stop Syncing")),Y.createElement("div",{className:fa.actionGrid},this.currentDisplayState)))}}).contextType=ee.r,ba.dialogName="jsApi2Dashboard",ba.propTypes={close:$().func},va=Ta((ga=ba).prototype,"isSyncing",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ya=Ta(ga.prototype,"displayState",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[]]}}),ma=ga))||ma;const Pa={publishBrandDialog:"LWd",panelOrganizationBox:"TNA",panelOrganizationTop:"xWb",panelOrganizationTitle:"dbv",ghostLoading:"oxH",panelOrganizationSubtitle:"eTM",panelOrganizationBottom:"coe",publishSuccessContent:"GZf",successHeader:"n1s",successFooter:"C2W",panelLoadingButton:"pIu",statusLightAnimation:"kL-",dialogBanner:"dLu",dialogBannerButton:"fJ7",publishDialogBody:"AFu",m2:"hsb",publishSuccessDialogBody:"jdo",dialogBody:"YVS",confetti:"LnA"};var Ca=r(34954),Aa=r.n(Ca),ka=r(87544),Da=r(82530);const Na=["className","variant","value","indeterminate","size"];function Ra(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 Ma(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(r),!0).forEach((function(t){ja(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ra(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ja(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Za(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Fa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ba(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ga(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ba(o,n,i,a,s,"next",e)}function s(e){Ba(o,n,i,a,s,"throw",e)}a(void 0)}))}}const Ua=(0,ye.Z)(r(88166)).default;let za;Da.env.EXCLUDE_SWC||(za=new ve.t(["sp-progress-circle"],Ga(Fa().mark((function e(){var t,n;return Fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(669)]).then(r.bind(r,82556));case 2:return t=e.sent,n=t.ProgressCircle,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Va={S:"s",M:"m",L:"l"},Ha=(0,ge.Z)({displayName:"Wait",fallback:Ua,swcLoader:za,swcProps:e=>{const t=e.className,r=e.variant,n=e.value,i=e.indeterminate,o=e.size,a=void 0===o?"M":o;return Ma(Ma(Ma({},Za(e,Na)),(0,me.cd)({indeterminate:void 0===n||i})),{},{class:t,progress:n,size:Va[a],static:r&&"overBackground"===r?"white":void 0})},tagName:"sp-progress-circle"}),Ya=JSON.parse('{"v":"5.12.1","fr":30,"ip":0,"op":61,"w":400,"h":400,"nm":"Toast_GenStudio 2","ddd":0,"assets":[{"id":"comp_0","nm":"Shapes","fr":30,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[493.344,347.844,0],"to":[0.656,-1.344,0],"ti":[39.406,-86.094,0]},{"t":49,"s":[506.844,490.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-32.844,-1.844,0],"ti":[27.906,15.906,0]},{"t":49,"s":[339.844,334.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[484.309,340.39,0],"to":[138.156,-61.844,0],"ti":[0,0,0]},{"t":52,"s":[606.309,160.39,0]}],"ix":2,"l":2},"a":{"a":0,"k":[155,53.057,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[-720]},{"t":50,"s":[90]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[477.924,353.652,0],"to":[111.156,-42.844,0],"ti":[0,0,0]},{"t":52,"s":[646.924,403.652,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,68.688,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[493.344,347.844,0],"to":[0.656,-1.344,0],"ti":[-13.094,77.406,0]},{"t":49,"s":[614.844,222.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[486.991,337.233,0],"to":[-14.844,-17.844,0],"ti":[33.656,15.656,0]},{"t":49,"s":[336.491,238.733,0]}],"ix":2,"l":2},"a":{"a":0,"k":[155,50,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[1.156,5.156,0],"ti":[-66.094,-13.094,0]},{"t":49,"s":[596.844,410.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[29.156,-48.844,0],"ti":[-67.094,-2.594,0]},{"t":49,"s":[669.344,243.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"circle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-73.344,-85.844,0],"ti":[1.156,2.656,0]},{"t":52,"s":[396.594,197.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"circle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-126.844,-42.844,0],"ti":[0,0,0]},{"t":49,"s":[350.844,402.594,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":15,"ct":1,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"circle: : outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-39.844,-9.844,0],"ti":[17.406,23.906,0]},{"t":49,"s":[393.344,258.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"circle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-39.344,-135.344,0],"ti":[0,0,0]},{"t":49,"s":[498.094,144.094,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":15,"ct":1,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"half: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[0]},{"t":50,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[494.369,340.789,0],"to":[102.156,27.156,0],"ti":[0,0,0]},{"t":49,"s":[604.369,446.289,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-16,-16,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.5,0,0,0,1,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":15,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"half: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[-1080]},{"t":50,"s":[-198]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[75.156,-25.844,0],"ti":[0,0,0]},{"t":52,"s":[616.594,359.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[65,65,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.5,0,0,0,1,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[0,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":15,"ty":4,"nm":"rectangle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":46,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":15,"s":[-720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":15,"s":[494.196,345.62,0],"to":[0,0,0],"ti":[38.804,93.88,0]},{"t":49,"s":[500.696,195.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.01,0.01,0.01],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":4,"ct":1,"bm":0},{"ddd":0,"ind":16,"ty":4,"nm":"rectangle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[540]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[0,0,0],"ti":[4.971,-89.12,0]},{"t":52,"s":[405.904,431.329,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[199,199,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":17,"ty":4,"nm":"rectangle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":46,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[0,0,0],"ti":[9.304,-87.62,0]},{"t":52,"s":[561.196,472.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[250,250,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":18,"ty":4,"nm":"rectangle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[-8.196,-115.62,0],"ti":[0,0,0]},{"t":52,"s":[422.696,174.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,4.167]},"t":9,"s":[0,0,100]},{"t":50,"s":[250,250,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":19,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":46,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[486.991,337.233,0],"to":[58.156,-29.844,0],"ti":[-50.844,-54.844,0]},{"t":49,"s":[670.491,338.983,0]}],"ix":2,"l":2},"a":{"a":0,"k":[155,50,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":20,"ty":4,"nm":"half: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[0]},{"t":50,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[41.656,-118.844,0],"ti":[0,0,0]},{"t":49,"s":[457.344,191.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.5,0,0,0,1,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":15,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":21,"ty":4,"nm":"half: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":46,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[106.656,-81.844,0],"ti":[0,0,0]},{"t":52,"s":[552.344,164.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.5,0,0,0,1,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":22,"ty":4,"nm":"cube: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":44,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-56.344,-12.344,0],"ti":[10.906,-19.594,0]},{"t":49,"s":[384.844,371.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":23,"ty":4,"nm":"circle: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":43,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-2.844,13.156,0],"ti":[-32.594,-22.094,0]},{"t":49,"s":[534.344,441.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":24,"ty":4,"nm":"circle: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":44,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[38.656,-58.344,0],"ti":[-68.594,-39.094,0]},{"t":49,"s":[668.844,301.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":25,"ty":4,"nm":"half: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":43,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[0]},{"t":50,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[39.656,80.406,0],"ti":[0,0,0]},{"t":49,"s":[460.469,456.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0.736,0,0,0,0.833,0,0,0,0.93,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":15,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":26,"ty":4,"nm":"half: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":44,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[1440]},{"t":50,"s":[90]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-91.844,10.156,0],"ti":[0,0,0]},{"t":49,"s":[358.844,296.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0.736,0,0,0,0.833,0,0,0,0.93,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":15,"op":150,"st":8,"ct":1,"bm":0},{"ddd":0,"ind":27,"ty":4,"nm":"rectangle: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":43,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[37.804,-80.62,0],"ti":[0,0,0]},{"t":52,"s":[529.696,228.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,-2.222]},"t":9,"s":[0,0,100]},{"t":52,"s":[130,130,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":28,"ty":4,"nm":"cube: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":44,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-64.844,-66.594,0],"ti":[0,0,0]},{"t":52,"s":[434.844,227.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[50,50,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":29,"ty":4,"nm":"rectangle: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":43,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[-40.196,-38.62,0],"ti":[0,0,0]},{"t":52,"s":[398.196,316.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,2.564]},"t":9,"s":[0,0,100]},{"t":52,"s":[150,150,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":30,"ty":4,"nm":"small circle: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-0.344,2.156,0],"ti":[-30.344,-8.844,0]},{"t":52,"s":[531.594,390.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":31,"ty":4,"nm":"small circle: center 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[26.656,-32.844,0],"ti":[-20.844,33.156,0]},{"t":52,"s":[577.094,245.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":32,"ty":4,"nm":"small circle: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-22.844,7.156,0],"ti":[17.656,2.656,0]},{"t":52,"s":[428.094,357.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":33,"ty":4,"nm":"small circle: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[12.156,-16.844,0],"ti":[-45.344,-9.344,0]},{"t":52,"s":[618.094,321.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":34,"ty":4,"nm":"small cube: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-65.344,-44.844,0],"ti":[0,0,0]},{"t":52,"s":[473.344,246.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":35,"ty":4,"nm":"small cube: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-0.844,-62.844,0],"ti":[0,0,0]},{"t":52,"s":[432.594,281.094,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":36,"ty":4,"nm":"small cube: center 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-17.344,-10.344,0],"ti":[0,0,0]},{"t":52,"s":[443.094,315.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":37,"ty":4,"nm":"small cube: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[50.156,2.656,0],"ti":[0,0,0]},{"t":52,"s":[572.594,381.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":38,"ty":4,"nm":"small cube: center 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-38.844,10.406,0],"ti":[0,0,0]},{"t":52,"s":[432.844,403.094,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":39,"ty":4,"nm":"small cube: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[51.656,-48.094,0],"ti":[0,0,0]},{"t":52,"s":[595.844,283.594,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":40,"ty":4,"nm":"small rectangle: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":17,"s":[-720]},{"t":52,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":17,"s":[494.196,345.62,0],"to":[0,0,0],"ti":[13.804,-24.62,0]},{"t":51,"s":[482.196,411.12,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.01,0.01,0.01],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":52,"s":[130,130,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":6,"ct":1,"bm":0},{"ddd":0,"ind":41,"ty":4,"nm":"squiggle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":42,"s":[100]},{"t":48,"s":[0]}],"ix":11},"r":{"a":0,"k":122,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":9,"s":[478.5,365,0],"to":[0,0,0],"ti":[0,0,0]},{"t":14,"s":[557.5,306,0]}],"ix":2,"l":2},"a":{"a":0,"k":[119.601,126.337,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.78,0.78,0.78],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,16.667]},"t":9,"s":[0,0,100]},{"t":19,"s":[-190.247,190.247,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.847,0.956],[0.788,1.005],[0.726,1.051],[0.662,1.093],[0.595,1.132],[0.526,1.166],[0.454,1.197],[0.38,1.223],[0.305,1.245],[0.23,1.262],[0.153,1.274],[0.076,1.282]],"o":[[-0.847,-0.955],[-0.787,-1.003],[-0.726,-1.049],[-0.661,-1.09],[-0.593,-1.128],[-0.523,-1.161],[-0.452,-1.19],[-0.378,-1.215],[-0.304,-1.234],[-0.227,-1.249],[-0.151,-1.261],[-0.076,-1.266]],"v":[[-28.535,42.696],[-29.453,38.475],[-33.334,36.579],[-33.738,32.278],[-37.363,29.928],[-37.245,25.61],[-40.558,22.838],[-39.917,18.567],[-42.869,15.413],[-41.715,11.25],[-44.263,7.763],[-42.614,3.769]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":1.3,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.657,0,0,0,0.999,0,0,0],"ix":8}},"s":{"a":0,"k":[-66.39,-27.978],"ix":4},"e":{"a":0,"k":[0.981,77.423],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[67.203,68.242],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[183.94,184.556],"ix":3},"r":{"a":0,"k":-127.103,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.39],"y":[1]},"o":{"x":[0.078],"y":[0]},"t":13,"s":[100]},{"t":52,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.38],"y":[1]},"o":{"x":[0.084],"y":[0]},"t":9,"s":[100]},{"t":47,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":42,"ty":4,"nm":"squiggle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":42,"s":[100]},{"t":48,"s":[0]}],"ix":11},"r":{"a":0,"k":35,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":9,"s":[482.5,354,0],"to":[0,0,0],"ti":[0,0,0]},{"t":14,"s":[493.25,304.75,0]}],"ix":2,"l":2},"a":{"a":0,"k":[121.398,126.066,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.703,0.703,0.703],"y":[1.169,0.831,-10.499]},"o":{"x":[0.162,0.162,0.162],"y":[-0.151,0.151,10.31]},"t":9,"s":[0,0,100]},{"t":18,"s":[-183.292,183.292,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.954,0.846],[0.903,0.902],[0.847,0.956],[0.788,1.005],[0.726,1.051],[0.662,1.093],[0.595,1.132],[0.526,1.166],[0.454,1.197],[0.38,1.223],[0.305,1.245],[0.23,1.262],[0.153,1.274],[0.076,1.282]],"o":[[-0.956,-0.848],[-0.902,-0.903],[-0.847,-0.955],[-0.787,-1.003],[-0.726,-1.049],[-0.661,-1.09],[-0.593,-1.128],[-0.523,-1.161],[-0.452,-1.19],[-0.378,-1.215],[-0.304,-1.234],[-0.227,-1.249],[-0.151,-1.261],[-0.076,-1.266]],"v":[[-23.037,48.195],[-24.455,44.114],[-28.535,42.696],[-29.453,38.475],[-33.334,36.579],[-33.738,32.278],[-37.363,29.928],[-37.245,25.61],[-40.558,22.838],[-39.917,18.567],[-42.869,15.413],[-41.715,11.25],[-44.263,7.763],[-42.614,3.769]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":1.3,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.657,0,0,0,0.999,0,0,0],"ix":8}},"s":{"a":0,"k":[-51.334,-3.368],"ix":4},"e":{"a":0,"k":[-5.664,63.387],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[67.203,68.242],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[183.94,184.556],"ix":3},"r":{"a":0,"k":-127.103,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.08],"y":[0]},"t":14,"s":[100]},{"t":52,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.08],"y":[0]},"t":9,"s":[100]},{"t":47,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":43,"ty":4,"nm":"squiggle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":42,"s":[100]},{"t":48,"s":[0]}],"ix":11},"r":{"a":0,"k":-111,"ix":10},"p":{"a":0,"k":[489.5,346,0],"ix":2,"l":2},"a":{"a":0,"k":[110.531,134.174,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.78,0.78,0.78],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,16.667]},"t":9,"s":[0,0,100]},{"t":19,"s":[-190.2,190.2,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.726,1.051],[0.662,1.093],[0.595,1.132],[0.526,1.166],[0.454,1.197],[0.38,1.223],[0.305,1.245],[0.23,1.262],[0.153,1.274],[0.076,1.282],[0,1.286],[-0.076,1.266]],"o":[[-0.726,-1.049],[-0.661,-1.09],[-0.593,-1.128],[-0.523,-1.161],[-0.452,-1.19],[-0.378,-1.215],[-0.304,-1.234],[-0.227,-1.249],[-0.151,-1.261],[-0.076,-1.266],[0,-1.285],[0.076,-1.282]],"v":[[-33.334,36.579],[-33.738,32.278],[-37.363,29.928],[-37.245,25.61],[-40.558,22.838],[-39.917,18.567],[-42.869,15.413],[-41.715,11.25],[-44.263,7.763],[-42.614,3.769],[-44.726,0],[-42.614,-3.769]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":1.3,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.657,0,0,0,0.999,0,0,0],"ix":8}},"s":{"a":0,"k":[-51.334,-3.368],"ix":4},"e":{"a":0,"k":[-19.907,57.199],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[67.203,68.242],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[188.25,184.565],"ix":3},"r":{"a":0,"k":-127.103,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.08],"y":[0]},"t":15,"s":[100]},{"t":52,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.08],"y":[0]},"t":9,"s":[100]},{"t":47,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Fill","tt":1,"tp":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[214.5,256,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[204,204,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[15.761,0],[0.014,0],[-0.022,-14.891],[-15.762,0],[-0.014,0],[0.022,14.891]],"o":[[-0.014,0],[-15.78,0.021],[0.022,14.878],[0.014,0],[15.78,-0.021],[-0.022,-14.878]],"v":[[-24.999,-109.962],[-25.04,-109.962],[-53.572,-82.962],[-25.001,-56.037],[-24.96,-56.037],[3.572,-83.038]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.945,0.592,0.5,1,0.945,0.592,1,1,0.945,0.592,0,1,0.5,0.51,1,0.02],"ix":9}},"s":{"a":0,"k":[-25.862,-83.289],"ix":5},"e":{"a":0,"k":[-13.548,-61.401],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-6.993,-53.863],"ix":2},"a":{"a":0,"k":[-25.977,-84.863],"ix":1},"s":{"a":0,"k":[132.543,132.543],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"gradient","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[15.761,0],[0.014,0],[-0.022,-14.891],[-15.762,0],[-0.014,0],[0.022,14.891]],"o":[[-0.014,0],[-15.78,0.021],[0.022,14.878],[0.014,0],[15.78,-0.021],[-0.022,-14.878]],"v":[[-24.999,-109.962],[-25.04,-109.962],[-53.572,-82.962],[-25.001,-56.037],[-24.96,-56.037],[3.572,-83.038]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.945,0.592,0.5,1,0.945,0.592,1,1,0.945,0.592,0,1,0.5,0.51,1,0.02],"ix":9}},"s":{"a":0,"k":[-24.561,-84.795],"ix":5},"e":{"a":0,"k":[-39.523,-67.039],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[30.441,-51.809],"ix":2},"a":{"a":0,"k":[-25.977,-84.863],"ix":1},"s":{"a":0,"k":[121.525,121.525],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"gradient","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[14.899,0],[4.925,-1.98],[3.663,-8.609],[9.791,0],[5.499,2.077],[4.93,0],[4.924,-1.982],[-8.293,-18.344],[-14.89,0],[-4.923,1.982],[-3.672,8.588],[-9.801,-0.001],[-5.469,-2.058],[-4.959,0],[-4.924,1.982],[8.298,18.354]],"o":[[-5.031,0],[-9.757,3.928],[-5.135,11.979],[-4.231,0],[-4.505,-1.698],[-5.035,0],[-19.492,7.847],[6.198,13.711],[5.031,0],[9.746,-3.924],[5.137,-12.014],[4.212,0],[4.528,1.719],[5.029,0],[19.503,-7.851],[-6.203,-13.721]],"v":[[43.103,-53.477],[28.028,-50.559],[7.456,-30.732],[-14.187,-13.063],[-28.723,-16.203],[-43.007,-18.8],[-58.087,-15.88],[-78.359,31.551],[-43.127,53.477],[-28.053,50.556],[-7.484,30.778],[14.172,13.064],[28.636,16.176],[42.997,18.806],[58.067,15.886],[78.354,-31.538]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":7,"k":{"a":0,"k":[0,0.443,0.333,0.98,0.215,0.443,0.333,0.98,0.431,0.443,0.333,0.98,0.52,0.443,0.333,0.98,0.61,0.443,0.333,0.98,0.805,0.443,0.333,0.98,1,0.443,0.333,0.98,0,0,0.215,0.5,0.43,1,0.52,1,0.61,1,0.805,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[-19.95,7.46],"ix":5},"e":{"a":0,"k":[81.007,-34.696],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-11,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"wave","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.687,0],[1.091,-22.483],[-24.519,-1.059],[-0.686,0],[-1.091,22.483],[24.518,1.059]],"o":[[-23.608,0.001],[-1.122,23.137],[0.693,0.03],[23.608,0],[1.122,-23.137],[-0.693,-0.03]],"v":[[-0.034,-41.938],[-44.394,-1.918],[-2.032,41.893],[0.035,41.938],[44.395,1.918],[2.033,-41.893]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.933,0.984,0.984,0.5,0.933,0.984,0.984,1,0.933,0.984,0.984,0.001,1,0.5,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[43.24,0.915],"ix":5},"e":{"a":0,"k":[-45.157,1.44],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[13.182,-25.413],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[99.365,99.365],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"circle","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.877,0],[2.517,-1.45],[0,0],[-4.952,-2.868],[0,0],[-2.857,0],[-2.528,1.469],[0,0],[4.92,2.873],[0,0]],"o":[[-2.845,0],[0,0],[-4.959,2.857],[0,0],[2.524,1.462],[2.864,0],[0,0],[4.926,-2.862],[0,0],[-2.536,-1.481]],"v":[[-24.63,-64.572],[-32.838,-62.397],[-83.473,-33.223],[-83.488,-20.753],[-33.188,8.379],[-24.948,10.572],[-16.692,8.369],[33.505,-20.791],[33.52,-33.232],[-16.341,-62.35]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.404,0.8,0.5,1,0.404,0.8,1,1,0.404,0.8,0,1,0.5,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[-66.255,-15.301],"ix":5},"e":{"a":0,"k":[62.6,-27.527],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-4.727,-6.867],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[96.773,96.773],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"diamond","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[210.543,166.086],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.168,0.922,0.063,0,0.584,0.922,0.063,0,1,0.922,0.063,0,0.17,1,0.585,0.5,1,0],"ix":9}},"s":{"a":0,"k":[-64.785,-0.012],"ix":5},"e":{"a":0,"k":[-63.68,182.348],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.17,0.933,0.984,0.984,0.585,0.933,0.984,0.984,1,0.933,0.984,0.984,0.17,1,0.585,0.5,1,0],"ix":9}},"s":{"a":0,"k":[56.645,1.152],"ix":5},"e":{"a":0,"k":[-63.68,182.348],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 2","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-24.729,-31.957],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":4,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"horn","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[144,257.297,0],"ix":2,"l":2},"a":{"a":0,"k":[0,57.649,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.64,0.64,0.639],"y":[1,1,-95.256]},"o":{"x":[1,1,1],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.613,0.613,1],"y":[1,1,1]},"o":{"x":[0.224,0.224,0.566],"y":[0,0,129.431]},"t":14,"s":[225,225,100]},{"t":26,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.151,"y":0.421},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[1.438,2.729],[-0.901,0.476],[0,0],[-0.476,-0.902],[1.18,-1.179],[0.693,-0.204],[0,0],[0.624,0],[1.064,1.064],[-0.721,2.039],[0,0],[0,0],[-0.106,0.222],[-0.315,0.315],[-5.083,-2.706],[0.481,-0.902],[0.902,0.481],[0.227,-0.116],[0,0],[0,0],[-7.09,-7.09],[-2.46,-0.819],[-0.342,0.046]],"o":[[-0.476,-0.902],[0,0],[0.902,-0.477],[2.651,5.023],[-0.384,0.384],[0,0],[-0.62,0.222],[-1.439,0],[-1.526,-1.526],[0,0],[0,0],[0.065,-0.241],[0.209,-0.518],[1.188,-1.188],[0.902,0.481],[-0.481,0.902],[-2.863,-1.521],[0,0],[0,0],[-0.185,1.406],[5.375,5.375],[0.953,0.194],[0.088,-0.254]],"v":[[37.14,38.071],[37.912,35.574],[37.917,35.574],[40.414,36.346],[41.034,45.008],[39.439,45.943],[7.411,57.32],[5.533,57.649],[1.629,56.016],[0.325,50.235],[0.369,50.111],[11.573,18.54],[11.827,17.846],[12.637,16.606],[21.392,17.277],[22.155,19.779],[19.653,20.542],[15.25,19.229],[15.25,19.238],[15.167,19.474],[24.199,33.441],[36.474,42.155],[38.444,42.349]],"c":true}]},{"i":{"x":0.74,"y":1},"o":{"x":0.167,"y":0.114},"t":16,"s":[{"i":[[1.438,2.729],[-0.901,0.476],[0,0],[-0.476,-0.902],[1.18,-1.179],[0.693,-0.204],[10.478,-6.192],[0.624,0],[1.064,1.064],[-0.721,2.039],[-0.649,2.227],[0,0],[-0.106,0.222],[-0.315,0.315],[-5.083,-2.706],[0.481,-0.902],[0.902,0.481],[0.227,-0.116],[0,0],[0,0],[-7.09,-7.09],[-2.46,-0.819],[-0.342,0.046]],"o":[[-0.476,-0.902],[0,0],[0.902,-0.477],[2.651,5.023],[-0.384,0.384],[0,0],[-0.633,0.197],[-1.439,0],[-1.526,-1.526],[0,0],[8.604,-13.533],[0.065,-0.241],[0.209,-0.518],[1.188,-1.188],[0.902,0.481],[-0.481,0.902],[-2.863,-1.521],[0,0],[0,0],[-0.185,1.406],[5.375,5.375],[0.953,0.194],[0.088,-0.254]],"v":[[38.844,39.775],[39.616,37.278],[39.621,37.278],[42.118,38.05],[42.738,46.712],[41.143,47.647],[7.411,57.32],[5.533,57.649],[1.629,56.016],[0.325,50.235],[0.714,49.058],[9.868,16.835],[10.122,16.141],[10.932,14.901],[19.687,15.572],[20.45,18.074],[17.948,18.837],[13.545,17.524],[13.545,17.533],[13.462,17.769],[24.199,33.441],[38.178,43.859],[40.148,44.053]],"c":true}]},{"t":24,"s":[{"i":[[1.438,2.729],[-0.901,0.476],[0,0],[-0.476,-0.902],[1.18,-1.179],[0.693,-0.204],[0,0],[0.624,0],[1.064,1.064],[-0.721,2.039],[0,0],[0,0],[-0.106,0.222],[-0.315,0.315],[-5.083,-2.706],[0.481,-0.902],[0.902,0.481],[0.227,-0.116],[0,0],[0,0],[-7.09,-7.09],[-2.46,-0.819],[-0.342,0.046]],"o":[[-0.476,-0.902],[0,0],[0.902,-0.477],[2.651,5.023],[-0.384,0.384],[0,0],[-0.62,0.222],[-1.439,0],[-1.526,-1.526],[0,0],[0,0],[0.065,-0.241],[0.209,-0.518],[1.188,-1.188],[0.902,0.481],[-0.481,0.902],[-2.863,-1.521],[0,0],[0,0],[-0.185,1.406],[5.375,5.375],[0.953,0.194],[0.088,-0.254]],"v":[[37.14,38.071],[37.912,35.574],[37.917,35.574],[40.414,36.346],[41.034,45.008],[39.439,45.943],[7.411,57.32],[5.533,57.649],[1.629,56.016],[0.325,50.235],[0.369,50.111],[11.573,18.54],[11.827,17.846],[12.637,16.606],[21.392,17.277],[22.155,19.779],[19.653,20.542],[15.25,19.229],[15.25,19.238],[15.167,19.474],[24.199,33.441],[36.474,42.155],[38.444,42.349]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.925490196078,0.811764705882,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false}],"ip":0,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"Shapes","td":1,"refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[200,200,0],"ix":2,"l":2},"a":{"a":0,"k":[519,322,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":1038,"h":644,"ip":0,"op":150,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Gradient","tt":1,"tp":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[194,202,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[85.896,85.896,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[125.517,0],[0,-125.518],[-125.518,0],[0,125.517]],"o":[[-125.518,0],[0,125.517],[125.517,0],[0,-125.518]],"v":[[0,-227.27],[-227.27,0],[0,227.27],[227.27,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":9,"k":{"a":0,"k":[0.313,0.98,0.733,0.62,0.4,0.939,0.549,0.647,0.517,0.898,0.365,0.675,0.542,0.892,0.363,0.678,0.611,0.886,0.361,0.682,0.714,0.733,0.365,0.79,0.899,0.58,0.369,0.898,0.945,0.58,0.369,0.898,1,0.58,0.369,0.898,0.315,1,0.395,1,0.512,1,0.539,1,0.622,1,0.711,1,0.888,1,0.942,0.5,1,0],"ix":9}},"s":{"a":0,"k":[6.72,-0.759],"ix":5},"e":{"a":0,"k":[2.394,226.941],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.505,-5.298],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[111.394,111.394],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Fill 3","tt":1,"tp":6,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[235,231,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[204,204,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[15.761,0],[0.014,0],[-0.022,-14.891],[-15.762,0],[-0.014,0],[0.022,14.891]],"o":[[-0.014,0],[-15.78,0.021],[0.022,14.878],[0.014,0],[15.78,-0.021],[-0.022,-14.878]],"v":[[-24.999,-109.962],[-25.04,-109.962],[-53.572,-82.962],[-25.001,-56.037],[-24.96,-56.037],[3.572,-83.038]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.945,0.592,0.5,1,0.945,0.592,1,1,0.945,0.592,0,1,0.5,0.51,1,0.02],"ix":9}},"s":{"a":0,"k":[-25.862,-83.289],"ix":5},"e":{"a":0,"k":[-33.607,-72.987],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-6.993,-53.863],"ix":2},"a":{"a":0,"k":[-25.977,-84.863],"ix":1},"s":{"a":0,"k":[132.543,132.543],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"gradient","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[15.761,0],[0.014,0],[-0.022,-14.891],[-15.762,0],[-0.014,0],[0.022,14.891]],"o":[[-0.014,0],[-15.78,0.021],[0.022,14.878],[0.014,0],[15.78,-0.021],[-0.022,-14.878]],"v":[[-24.999,-109.962],[-25.04,-109.962],[-53.572,-82.962],[-25.001,-56.037],[-24.96,-56.037],[3.572,-83.038]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.945,0.592,0.5,1,0.945,0.592,1,1,0.945,0.592,0,1,0.5,0.51,1,0.02],"ix":9}},"s":{"a":0,"k":[-24.561,-84.795],"ix":5},"e":{"a":0,"k":[-39.523,-67.039],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[30.441,-51.809],"ix":2},"a":{"a":0,"k":[-25.977,-84.863],"ix":1},"s":{"a":0,"k":[121.525,121.525],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"gradient","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[14.899,0],[4.925,-1.98],[3.663,-8.609],[9.791,0],[5.499,2.077],[4.93,0],[4.924,-1.982],[-8.293,-18.344],[-14.89,0],[-4.923,1.982],[-3.672,8.588],[-9.801,-0.001],[-5.469,-2.058],[-4.959,0],[-4.924,1.982],[8.298,18.354]],"o":[[-5.031,0],[-9.757,3.928],[-5.135,11.979],[-4.231,0],[-4.505,-1.698],[-5.035,0],[-19.492,7.847],[6.198,13.711],[5.031,0],[9.746,-3.924],[5.137,-12.014],[4.212,0],[4.528,1.719],[5.029,0],[19.503,-7.851],[-6.203,-13.721]],"v":[[43.103,-53.477],[28.028,-50.559],[7.456,-30.732],[-14.187,-13.063],[-28.723,-16.203],[-43.007,-18.8],[-58.087,-15.88],[-78.359,31.551],[-43.127,53.477],[-28.053,50.556],[-7.484,30.778],[14.172,13.064],[28.636,16.176],[42.997,18.806],[58.067,15.886],[78.354,-31.538]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":7,"k":{"a":0,"k":[0,0.443,0.333,0.98,0.215,0.443,0.333,0.98,0.431,0.443,0.333,0.98,0.52,0.443,0.333,0.98,0.61,0.443,0.333,0.98,0.805,0.443,0.333,0.98,1,0.443,0.333,0.98,0,0,0.215,0.5,0.43,1,0.52,1,0.61,1,0.805,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[-19.95,7.46],"ix":5},"e":{"a":0,"k":[81.007,-34.696],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-11,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"wave","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.687,0],[1.091,-22.483],[-24.519,-1.059],[-0.686,0],[-1.091,22.483],[24.518,1.059]],"o":[[-23.608,0.001],[-1.122,23.137],[0.693,0.03],[23.608,0],[1.122,-23.137],[-0.693,-0.03]],"v":[[-0.034,-41.938],[-44.394,-1.918],[-2.032,41.893],[0.035,41.938],[44.395,1.918],[2.033,-41.893]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.933,0.984,0.984,0.5,0.933,0.984,0.984,1,0.933,0.984,0.984,0.001,1,0.5,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[17.278,-17.255],"ix":5},"e":{"a":0,"k":[-29.447,28.861],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[11.182,-25.413],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[99.365,99.365],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"circle","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.877,0],[2.517,-1.45],[0,0],[-4.952,-2.868],[0,0],[-2.857,0],[-2.528,1.469],[0,0],[4.92,2.873],[0,0]],"o":[[-2.845,0],[0,0],[-4.959,2.857],[0,0],[2.524,1.462],[2.864,0],[0,0],[4.926,-2.862],[0,0],[-2.536,-1.481]],"v":[[-24.63,-64.572],[-32.838,-62.397],[-83.473,-33.223],[-83.488,-20.753],[-33.188,8.379],[-24.948,10.572],[-16.692,8.369],[33.505,-20.791],[33.52,-33.232],[-16.341,-62.35]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.404,0.8,0.5,1,0.404,0.8,1,1,0.404,0.8,0,1,0.5,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[-66.255,-15.301],"ix":5},"e":{"a":0,"k":[62.6,-27.527],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-4.727,-6.867],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[96.773,96.773],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"diamond","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[210.543,166.086],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.168,0.922,0.063,0,0.584,0.922,0.063,0,1,0.922,0.063,0,0.17,1,0.585,0.5,1,0],"ix":9}},"s":{"a":0,"k":[-64.785,-0.012],"ix":5},"e":{"a":0,"k":[-63.68,182.348],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.17,0.933,0.984,0.984,0.585,0.933,0.984,0.984,1,0.933,0.984,0.984,0.17,1,0.585,0.5,1,0],"ix":9}},"s":{"a":0,"k":[56.645,1.152],"ix":5},"e":{"a":0,"k":[-63.68,182.348],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 2","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-24.729,-31.957],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":4,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false}],"ip":-3,"op":150,"st":-3,"ct":1,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Strokes","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[144,257.297,0],"ix":2,"l":2},"a":{"a":0,"k":[-56,57.297,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.42,0.42,0.658],"y":[1,1,-23.764]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,18.628]},"t":19,"s":[0,0,100]},{"i":{"x":[0.925,0.925,0.796],"y":[1,1,1]},"o":{"x":[0.489,0.489,0.435],"y":[0,0,17.989]},"t":26,"s":[108.171,108.171,100]},{"t":30,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-16.75,0.25]],"o":[[0,0],[15.322,-0.229]],"v":[[7.75,12],[34.25,-3.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.988235294819,0.929411768913,0.823529422283,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.925490196078,0.811764705882,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.25,0],[0,0]],"o":[[0.25,0],[0,0]],"v":[[-1.75,3],[13.75,-12.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.988235294819,0.929411768913,0.823529422283,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.925490196078,0.811764705882,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1,17.5]],"o":[[0,0],[1,-17.5]],"v":[[-11,-6.75],[4.5,-33.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.988235294819,0.929411768913,0.823529422283,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.925490196078,0.811764705882,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[1],"y":[0]},"t":19,"s":[0]},{"t":31,"s":[99]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":19,"op":150,"st":19,"ct":1,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"circle 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.21],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[0]},{"t":29,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.83,"y":1},"o":{"x":0.167,"y":0.167},"t":10,"s":[181.159,228.767,0],"to":[32.091,-27.267,0],"ti":[0,0,0]},{"t":28,"s":[247.409,213.767,0]}],"ix":2,"l":2},"a":{"a":0,"k":[39.892,3.383,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.21,0.21,0.21],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,33.333]},"t":20,"s":[0,0,100]},{"t":29,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.323,1.323],[1.323,1.322],[1.322,-1.323],[-1.323,-1.323]],"o":[[1.323,-1.323],[-1.323,-1.323],[-1.323,1.322],[1.322,1.323]],"v":[[2.391,2.226],[2.391,-2.556],[-2.391,-2.556],[-2.391,2.226]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.486,0.369,0.961,0.5,0.706,0.367,0.814,1,0.925,0.365,0.667],"ix":9}},"s":{"a":0,"k":[4.284,0.371],"ix":5},"e":{"a":0,"k":[-11.611,-2.699],"ix":6},"t":1,"nm":"Gradient Fill blue 01","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[39.892,3.383],"ix":2},"a":{"a":0,"k":[0,-0.165],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"circle","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":10,"op":150,"st":4,"ct":1,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"circle 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.21],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[0]},{"t":29,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.83,"y":1},"o":{"x":0.167,"y":0.167},"t":10,"s":[166.534,213.767,0],"to":[62.216,-12.517,0],"ti":[0,0,0]},{"t":28,"s":[223.784,148.767,0]}],"ix":2,"l":2},"a":{"a":0,"k":[39.892,3.383,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.21,0.21,0.21],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,33.333]},"t":20,"s":[0,0,100]},{"t":29,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.323,1.323],[1.323,1.322],[1.322,-1.323],[-1.323,-1.323]],"o":[[1.323,-1.323],[-1.323,-1.323],[-1.323,1.322],[1.322,1.323]],"v":[[2.391,2.226],[2.391,-2.556],[-2.391,-2.556],[-2.391,2.226]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.326,0.976,0.816,0.678,0.663,0.953,0.586,0.673,1,0.929,0.357,0.667],"ix":9}},"s":{"a":0,"k":[8.464,-12.438],"ix":5},"e":{"a":0,"k":[-2.952,2.827],"ix":6},"t":1,"nm":"Gradient Fill blue 02","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[39.892,3.383],"ix":2},"a":{"a":0,"k":[0,-0.165],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"circle","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":10,"op":150,"st":4,"ct":1,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"rectangle 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.21],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[0]},{"t":29,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.83,"y":1},"o":{"x":0.167,"y":0.167},"t":10,"s":[182.196,234.62,0],"to":[13.554,-41.87,0],"ti":[0,0,0]},{"t":28,"s":[232.696,178.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.21,0.21,0.21],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,33.333]},"t":20,"s":[0,0,100]},{"t":29,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.343,0.976,0.384,0.631,0.671,0.935,0.375,0.655,1,0.894,0.365,0.678],"ix":9}},"s":{"a":0,"k":[-7.602,-3.289],"ix":5},"e":{"a":0,"k":[9.432,4.159],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":10,"op":150,"st":4,"ct":1,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"rectangle ","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.21],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[0]},{"t":29,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.83,"y":1},"o":{"x":0.167,"y":0.167},"t":10,"s":[172.675,222.955,0],"to":[44.075,-39.705,0],"ti":[0,0,0]},{"t":28,"s":[183.925,158.455,0]}],"ix":2,"l":2},"a":{"a":0,"k":[19.963,8.228,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.21,0.21,0.21],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,33.333]},"t":20,"s":[0,0,100]},{"t":29,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.824,-0.603],[0,0],[-0.604,-0.825],[0,0],[-0.825,0.603],[0,0],[0.604,0.824],[0,0]],"o":[[0,0],[-0.825,0.604],[0,0],[0.604,0.825],[0,0],[0.825,-0.603],[0,0],[-0.603,-0.824]],"v":[[-2.456,-4.287],[-3.344,-3.637],[-3.743,-1.051],[-0.13,3.886],[2.456,4.287],[3.344,3.636],[3.743,1.051],[0.13,-3.887]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.922,0.361,0.667,0.5,0.949,0.588,0.673,1,0.976,0.816,0.678],"ix":9}},"s":{"a":0,"k":[-0.736,-2.33],"ix":5},"e":{"a":0,"k":[2.635,9.532],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[19.963,8.228],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":10,"op":150,"st":4,"ct":1,"bm":0}],"markers":[{"tm":9,"cm":"1st wave\\r","dr":0},{"tm":17,"cm":"2nd wave","dr":0}],"props":{}}'),Wa=JSON.parse('{"v":"5.12.1","fr":60,"ip":0,"op":70,"w":250,"h":100,"nm":"Published_001","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Checkmark","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[125,50,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.594,0.594,0.729],"y":[1,1,1]},"o":{"x":[0.18,0.18,0.18],"y":[0.05,0.05,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.717,0.717,0.999],"y":[1,1,1]},"o":{"x":[0.461,0.461,0.932],"y":[0,0,0]},"t":10.01,"s":[90,90,100]},{"t":18,"s":[85,85,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-15.594,-0.125],[-5.594,9.875],[15,-10.125]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":1,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.043137256056,0.643137276173,0.364705890417,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.73],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"i":{"x":[0.73],"y":[1]},"o":{"x":[0.17],"y":[0]},"t":10,"s":[6.5]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[1],"y":[0]},"t":30,"s":[6.5]},{"t":35,"s":[0]}],"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false}],"ip":0,"op":240,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Pill","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[125,50,0],"ix":2,"l":2},"a":{"a":0,"k":[58,19,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.58,0.58,0.58],"y":[0.823,0.823,1]},"o":{"x":[0.18,0.18,0.18],"y":[0.075,0.075,0]},"t":0,"s":[100,100,100]},{"i":{"x":[0.686,0.686,0.686],"y":[1,1,1]},"o":{"x":[0.339,0.339,0.339],"y":[-0.856,-0.856,0]},"t":9,"s":[220,220,100]},{"t":18,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.294,"y":1},"o":{"x":0,"y":0},"t":40,"s":[{"i":[[-9.79,0],[0,0],[0,-9.79],[9.79,0],[0,0],[0,9.79]],"o":[[0,0],[9.79,0],[0,9.79],[0,0],[-9.79,0],[0,-9.79]],"v":[[0,-17.726],[0.125,-17.726],[17.851,0],[0.125,17.726],[0,17.726],[-17.726,0]],"c":true}]},{"t":56,"s":[{"i":[[-9.79,0],[0,0],[0,-9.79],[9.79,0],[0,0],[0,9.79]],"o":[[0,0],[9.79,0],[0,9.79],[0,0],[-9.79,0],[0,-9.79]],"v":[[-39.5,-17.726],[39.5,-17.726],[57.226,0],[39.5,17.726],[-39.5,17.726],[-57.226,0]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.854902020623,0.854902020623,0.854902020623,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.729],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":10,"s":[1.548]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[58,18.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180.18018018018,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Dot","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[42.193,48.138,0],"ix":2,"l":2},"a":{"a":0,"k":[16.596,18.069,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0,0,1],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,17.047]},"t":47.001,"s":[0,0,100]},{"i":{"x":[0,0,0],"y":[1,1,1]},"o":{"x":[0.075,0.075,0],"y":[0,0,0]},"t":54.001,"s":[231.896,231.896,100]},{"t":58.000830909034,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-3.419,0],[0,-3.419],[3.419,0],[0,3.419]],"o":[[3.419,0],[0,3.419],[-3.419,0],[0,-3.419]],"v":[[0,-6.19],[6.19,0],[0,6.19],[-6.19,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[-0.199]},"t":47.001,"s":[0.854902029037,0.854902029037,0.854902029037,1]},{"t":54.000830909034,"s":[0.043137254902,0.643137254902,0.364705882353,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[16.596,18.069],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":47,"op":207.212212212212,"st":29.034034034034,"ct":1,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Text","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":43.001,"s":[0]},{"t":54.000830909034,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[125,50,0],"ix":2,"l":2},"a":{"a":0,"k":[58,19,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0,0,0],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,16.667]},"t":43.001,"s":[0,0,100]},{"t":54.000830909034,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.427,0.186],[0,0],[0.464,0],[0,-1.932],[-1.634,0]],"o":[[0,0],[-0.297,-0.13],[-2.117,0],[0,2.414],[0.483,0]],"v":[[34.066,5.154],[34.066,-1.124],[32.859,-1.309],[29.423,2.053],[32.58,5.395]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[1.04,0],[0,3.064],[-3.027,0],[-0.353,-0.056],[0,0],[-0.074,0],[0,0],[0,-0.055],[0,0],[-0.037,-0.316],[0.074,-0.037]],"o":[[-2.582,0],[0,-2.73],[0.52,0],[0,0],[0,-0.093],[0,0],[0.093,0],[0,0],[0,0.259],[0,0.074],[-1.059,0.501]],"v":[[32.432,6.751],[27.845,2.126],[32.896,-2.646],[34.066,-2.535],[34.066,-6.639],[34.177,-6.751],[35.514,-6.751],[35.626,-6.658],[35.626,5.042],[35.663,5.934],[35.57,6.064]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0.167,-1.244],[0,0],[-0.056,0.019],[0,0.055],[1.746,0]],"o":[[0,0],[0.91,0],[0.018,-0.056],[0,-0.669],[-1.541,0]],"v":[[20.301,1.087],[23.755,1.087],[24.944,1.049],[24.962,0.846],[22.771,-1.365]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0.817,0],[0,0],[-2.099,0],[-0.724,0.353],[0,-0.074],[0,0],[0.056,-0.038],[1.17,0],[0,2.266],[-2.581,0],[0,-1.578],[0.037,-0.167],[0.074,0]],"o":[[0,0],[-0.019,1.765],[0.817,0],[0.056,-0.037],[0,0],[0,0.111],[-0.631,0.315],[-3.213,0],[0,-2.6],[2.655,0],[0,0.464],[0,0.055],[-0.279,0.056]],"v":[[24.331,2.238],[20.283,2.238],[23.384,5.395],[25.705,4.893],[25.798,4.967],[25.798,6.027],[25.705,6.212],[23.087,6.751],[18.723,2.126],[22.827,-2.646],[26.448,1.087],[26.374,2.053],[26.244,2.163]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ind":4,"ty":"sh","ix":5,"ks":{"a":0,"k":{"i":[[0.594,-0.65],[0,0],[0.093,0],[0,0],[0,0.093],[0,0],[-0.093,0],[0,0],[0,-0.074],[0,0],[-1.096,0],[0,-2.935],[0,0],[0.093,0],[0,0],[0,0.111],[0,0],[1.3,0]],"o":[[0,0],[0,0.093],[0,0],[-0.093,0],[0,0],[0,-0.074],[0,0],[0.074,0],[0,0],[0.762,-0.705],[1.318,0],[0,0],[0,0.093],[0,0],[-0.093,0],[0,0],[0,-1.43],[-0.91,0]],"v":[[10.958,-0.251],[10.958,6.454],[10.846,6.564],[9.547,6.564],[9.417,6.434],[9.417,-6.639],[9.528,-6.751],[10.865,-6.751],[10.958,-6.658],[10.976,-1.57],[13.725,-2.646],[16.752,0.938],[16.752,6.434],[16.622,6.564],[15.322,6.564],[15.192,6.417],[15.192,1.105],[13.279,-1.271]],"c":true},"ix":2},"nm":"Path 5","mn":"ADBE Vector Shape - Group","hd":false},{"ind":5,"ty":"sh","ix":6,"ks":{"a":0,"k":{"i":[[0.093,0.056],[0.78,0],[0,-0.557],[-1.392,-0.557],[0,-1.318],[1.932,0],[0.538,0.315],[0,0.093],[0,0],[-0.055,-0.037],[-0.817,0],[0,0.687],[1.281,0.501],[0,1.319],[-2.024,0],[-0.39,-0.223],[0,-0.075],[0,0]],"o":[[-0.52,-0.315],[-1.226,0],[0,0.557],[1.876,0.725],[0,1.709],[-1.021,0],[-0.056,-0.038],[0,0],[0,-0.093],[0.743,0.52],[1.189,0],[0,-0.687],[-1.857,-0.706],[0,-1.337],[1.021,0],[0.092,0.037],[0,0],[0,0.092]],"v":[[7.058,-0.827],[4.904,-1.365],[3.269,-0.214],[4.996,1.29],[7.633,4.094],[4.309,6.751],[1.821,6.212],[1.728,6.044],[1.728,4.801],[1.839,4.708],[4.346,5.451],[6.111,4.243],[4.421,2.646],[1.784,-0.139],[4.941,-2.646],[7.114,-2.238],[7.206,-2.051],[7.206,-0.919]],"c":true},"ix":2},"nm":"Path 6","mn":"ADBE Vector Shape - Group","hd":false},{"ind":6,"ty":"sh","ix":7,"ks":{"a":0,"k":{"i":[[0.576,0],[0,0.557],[-0.557,0],[0,-0.538]],"o":[[-0.575,0],[0,-0.557],[0.594,0],[0,0.557]],"v":[[-1.12,-4.243],[-2.048,-5.191],[-1.101,-6.137],[-0.173,-5.191]],"c":true},"ix":2},"nm":"Path 7","mn":"ADBE Vector Shape - Group","hd":false},{"ind":7,"ty":"sh","ix":8,"ks":{"a":0,"k":{"i":[[0,0.111],[0,0],[-0.093,0],[0,0],[0,-0.093],[0,0],[0.112,0],[0,0]],"o":[[0,0],[0,-0.093],[0,0],[0.074,0],[0,0],[0,0.093],[0,0],[-0.093,0]],"v":[[-1.9,6.417],[-1.9,-2.331],[-1.77,-2.46],[-0.451,-2.46],[-0.34,-2.348],[-0.34,6.434],[-0.47,6.564],[-1.751,6.564]],"c":true},"ix":2},"nm":"Path 8","mn":"ADBE Vector Shape - Group","hd":false},{"ind":8,"ty":"sh","ix":9,"ks":{"a":0,"k":{"i":[[0,1.745],[0,0],[-0.093,0],[0,0],[0,-0.074],[0,0],[-0.446,0],[-0.167,0.038],[0,-0.074],[0,0],[0.074,-0.037],[0.39,0]],"o":[[0,0],[0,-0.093],[0,0],[0.093,0],[0,0],[0,0.724],[0.13,0],[0.056,0],[0,0],[0,0.093],[-0.167,0.074],[-0.91,0]],"v":[[-6.379,4.689],[-6.379,-6.639],[-6.249,-6.751],[-4.949,-6.751],[-4.838,-6.639],[-4.838,4.559],[-4.095,5.451],[-3.724,5.395],[-3.649,5.507],[-3.649,6.471],[-3.742,6.62],[-4.596,6.751]],"c":true},"ix":2},"nm":"Path 9","mn":"ADBE Vector Shape - Group","hd":false},{"ind":9,"ty":"sh","ix":10,"ks":{"a":0,"k":{"i":[[0,2.396],[1.783,0],[0.464,-0.186],[0,0],[-0.502,0]],"o":[[0,-1.894],[-0.798,0],[0,0],[0.353,0.112],[1.783,0]],"v":[[-9.915,1.829],[-12.812,-1.29],[-14.576,-0.975],[-14.576,5.264],[-13.35,5.413]],"c":true},"ix":2},"nm":"Path 10","mn":"ADBE Vector Shape - Group","hd":false},{"ind":10,"ty":"sh","ix":11,"ks":{"a":0,"k":{"i":[[-0.093,0],[0,0],[0,-0.112],[0,0],[-0.743,0],[0,-2.507],[2.618,0],[0.798,0.26],[0,0.074],[0,0]],"o":[[0,0],[0.093,0],[0,0],[0.594,-0.242],[2.562,0],[0,3.343],[-0.929,0],[-0.075,-0.019],[0,0],[0,-0.093]],"v":[[-16.006,-6.751],[-14.706,-6.751],[-14.576,-6.639],[-14.576,-2.275],[-12.57,-2.646],[-8.336,1.699],[-13.48,6.751],[-16.024,6.38],[-16.136,6.212],[-16.136,-6.639]],"c":true},"ix":2},"nm":"Path 11","mn":"ADBE Vector Shape - Group","hd":false},{"ind":11,"ty":"sh","ix":12,"ks":{"a":0,"k":{"i":[[0,-0.075],[0,0],[-0.055,-0.409],[0.093,0],[0,0],[0.037,0.075],[0.019,0.26],[0.928,0],[0,2.692],[0,0],[-0.093,0],[0,0],[0,-0.075],[0,0],[-1.3,0],[-0.558,0.613],[0,0],[-0.093,0],[0,0]],"o":[[0,0],[0,0.984],[0,0.074],[0,0],[-0.092,0],[-0.056,-0.204],[-0.78,0.798],[-1.579,0],[0,0],[0,-0.093],[0,0],[0.074,0],[0,0],[0,1.43],[0.892,0],[0,0],[0,-0.075],[0,0],[0.112,0]],"v":[[-18.76,-2.348],[-18.76,4.596],[-18.649,6.454],[-18.76,6.564],[-19.949,6.564],[-20.097,6.471],[-20.209,5.674],[-22.901,6.751],[-25.965,3.26],[-25.965,-2.348],[-25.835,-2.46],[-24.517,-2.46],[-24.424,-2.348],[-24.424,3.074],[-22.456,5.376],[-20.301,4.43],[-20.301,-2.348],[-20.171,-2.46],[-18.872,-2.46]],"c":true},"ix":2},"nm":"Path 12","mn":"ADBE Vector Shape - Group","hd":false},{"ind":12,"ty":"sh","ix":13,"ks":{"a":0,"k":{"i":[[0.298,-0.019],[0,0],[-0.78,0],[0,2.024],[1.875,0]],"o":[[0,0],[0.316,0.019],[1.82,0],[0,-1.69],[-0.762,0]],"v":[[-34.122,-4.335],[-34.122,0.919],[-32.71,0.939],[-29.312,-1.773],[-32.487,-4.374]],"c":true},"ix":2},"nm":"Path 13","mn":"ADBE Vector Shape - Group","hd":false},{"ind":13,"ty":"sh","ix":14,"ks":{"a":0,"k":{"i":[[0,0.074],[0,0],[-0.074,0],[-1.244,0],[0,-2.08],[2.693,0],[0.409,0],[0,0],[0.093,0],[0,0]],"o":[[0,0],[0,-0.074],[0.594,-0.019],[3.287,0],[0,2.823],[-0.78,0],[0,0],[0,0.093],[0,0],[-0.075,0]],"v":[[-35.663,6.453],[-35.663,-5.562],[-35.57,-5.691],[-32.506,-5.747],[-27.77,-1.811],[-32.692,2.331],[-34.122,2.312],[-34.122,6.434],[-34.233,6.564],[-35.551,6.564]],"c":true},"ix":2},"nm":"Path 14","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.443137284821,0.443137284821,0.443137284821,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[66.125,17.58],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":16,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":43,"op":210.212212212212,"st":32.034034034034,"ct":1,"bm":0}],"markers":[],"props":{}}');var $a,Ka,qa,Xa,Ja;function Qa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function es(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ts(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){es(o,n,i,a,s,"next",e)}function s(e){es(o,n,i,a,s,"throw",e)}a(void 0)}))}}function rs(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 ns(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let is=((Ja=class extends q.Z{constructor(e){var t;super(e),t=this,rs(this,"orgName",Ka,this),rs(this,"currPage",qa,this),rs(this,"isActionLoading",Xa,this),this.handleClickOK=()=>{var e,t;this.toUnpublish?this.context.brandActions.unpublishBrand(this.props.brand):(this.context.brandActions.publishBrand(this.props.brand),null===(e=(t=this.props).onPublish)||void 0===e||e.call(t))},this.handlePublish=ts(Qa().mark((function e(){return Qa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isActionLoading=!0,e.next=3,t.context.brandActions.publishBrand(t.props.brand);case 3:1===e.sent&&t.triggerConfetti(),t.isActionLoading=!1;case 6:case"end":return e.stop()}}),e)}))),this.handleUnpublish=ts(Qa().mark((function e(){return Qa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isActionLoading=!0,e.next=3,t.context.brandActions.unpublishBrand(t.props.brand);case 3:1===e.sent?t.props.close():t.isActionLoading=!1;case 5:case"end":return e.stop()}}),e)}))),this.triggerConfetti=ts(Qa().mark((function e(){return Qa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.currPage="publishConfetti",Aa().loadAnimation({container:t.confettiCanvasRef.current,renderer:"svg",loop:!1,autoplay:!0,animationData:Ya}).addEventListener("complete",t.onCompleteAnimation);case 3:case"end":return e.stop()}}),e)}))),this.onCompleteAnimation=()=>{Aa().destroy(),this.currPage="publish1",this.triggerPublishPillAnimation()},this.onClickCancel=e=>{var t,r;null==e||e.stopPropagation(),null===(t=(r=this.props).close)||void 0===t||t.call(r)},this.onClickLearnMore=()=>{(0,R.rb)()},this.triggerPublishPillAnimation=()=>{Aa().destroy("publish-pill"),Aa().loadAnimation({container:this.publishPillCanvasRef.current,renderer:"svg",loop:!1,autoplay:!0,name:"publish-pill",animationData:Wa})},this.confettiCanvasRef=Y.createRef(),this.publishPillCanvasRef=Y.createRef()}get toUnpublish(){var e;return this.isBrandLifecycleEnabled?"unpublish"===(null===(e=this.props)||void 0===e?void 0:e.action):(0,M.Hc)(this.props.brand)}get showPublishBrandBanner(){return this.props.needsReview&&"publish0"===this.currPage}get isBrandLifecycleEnabled(){return Tt.Z.isBrandLifecycleEnabled()}get isOrgLoading(){return null===this.orgName}componentDidMount(){ka.Z.getAssetWithCloudID(this.props.brand.assetId).then((e=>{(0,o.when)((()=>!!e.repositoryName),(()=>{this.orgName=e.repositoryName}))})).catch((e=>Promise.reject(e)))}get actionSpinner(){return Y.createElement("div",{"data-test-id":"publish-dialog-action-spinner",className:Pa.panelLoadingButton},Y.createElement(Ha,{size:"S",indeterminate:!0}),Y.createElement("div",{style:{opacity:0}},(0,D.Iu)(this.toUnpublish?"BRAND_UNPUBLISH_ACTION":"BRAND_PUBLISH_ACTION")))}get publishContent(){return Y.createElement("div",{"data-test-id":"publish-content"},Y.createElement("div",{className:Pa.panelOrganizationBox},Y.createElement("div",{className:Pa.panelOrganizationTop},Y.createElement(X.Z,{id:"Building",height:18}),Y.createElement("div",{className:Q()(Pa.panelOrganizationTitle,{[Pa.ghostLoading]:this.isOrgLoading})},this.orgName?(0,D.Iu)("BRAND_PUBLISH_DIALOG_INFO_ORG",{organization:this.orgName}):(0,D.Iu)("BRAND_PUBLISH_DIALOG_INFO_ORG_GENERIC")),Y.createElement("div",{className:Pa.panelOrganizationPermission},(0,D.Iu)("BRAND_PUBLISH_DIALOG_INFO_ROLE"))),!this.isBrandLifecycleEnabled&&Y.createElement("div",{className:Pa.panelOrganizationBottom},Y.createElement("div",{className:Pa.panelOrganizationSubtitle},(0,D.Iu)("BRAND_PUBLISH_DIALOG_INFO_SUBTITLE")))),Y.createElement("div",{className:Q()(Pa.publishDialogBody,{[Pa.m2]:!this.isBrandLifecycleEnabled})},this.isBrandLifecycleEnabled?Y.createElement(Ot.Z,{"data-test-id":"publish-dialog-body",onClick:this.onClickLearnMore,html:(0,D.Iu)("BRAND_PUBLISH_DIALOG_PERMISSIONS")}):(0,D.Iu)("BRAND_PUBLISH_DIALOG_PERMISSIONS_M2")),this.isBrandLifecycleEnabled&&Y.createElement("div",{className:Pa.publishDialogBody,"data-test-id":"publish-dialog-review-info"},(0,D.Iu)("BRAND_PUBLISH_DIALOG_REVIEW_INFO")),Y.createElement(Vn.Z,{className:"panel-dialog-footer"},Y.createElement(zn.Z,{"data-test-id":"publish-cancel-button",onClick:this.onClickCancel,variant:"secondary",treatment:"outline"},(0,D.Iu)("DL_CANCEL")),Y.createElement(zn.Z,{"data-test-id":"publish-ok-button",onClick:e=>{e&&e.stopPropagation(),this.handlePublish()},variant:"cta",disabled:this.isActionLoading},this.isActionLoading?this.actionSpinner:(0,D.Iu)("BRAND_PUBLISH_ACTION"))))}get publishConfetti(){return Y.createElement(Y.Fragment,null,Y.createElement("div",{className:Pa.confetti,ref:this.confettiCanvasRef,id:"extraction-dialog-canvas"}))}get publishSuccessContent(){return Y.createElement("div",{className:Pa.publishSuccessContent,"data-test-id":"publish-success-content"},Y.createElement("div",{className:Pa.statusLightAnimation,ref:this.publishPillCanvasRef}),Y.createElement("div",{className:Q()(Pa.successHeader,"panel-dialog-title")},(0,D.Iu)("BRAND_PUBLISH_SUCCESS_TITLE",{brand:this.props.brand.name})),Y.createElement("div",{className:Pa.publishSuccessDialogBody},(0,D.Iu)("BRAND_PUBLISH_SUCCESS_BODY")),Y.createElement(Vn.Z,{className:Pa.successFooter},Y.createElement(zn.Z,{"data-test-id":"publish-done-button",onClick:e=>{e&&e.stopPropagation(),Aa().destroy("publish-pill"),this.props.close()},variant:"cta"},(0,D.Iu)("BRAND_PUBLISH_SUCCESS_DONE"))))}get unpublishContent(){const e=this.isBrandLifecycleEnabled?"BRAND_UNPUBLISH_DIALOG_BODY_PROJECTS":"BRAND_UNPUBLISH_DIALOG_BODY_DIRECT_INVITE";return Y.createElement("div",{"data-test-id":"unpublish-content",className:Pa.dialogBody},(0,D.Iu)(e),Y.createElement(Vn.Z,{className:"panel-dialog-footer"},Y.createElement(zn.Z,{"data-test-id":"unpublish-cancel-button",onClick:this.onClickCancel,variant:"secondary",treatment:"outline"},(0,D.Iu)("DL_CANCEL")),Y.createElement(zn.Z,{"data-test-id":"unpublish-ok-button",onClick:e=>{e&&e.stopPropagation(),this.handleUnpublish()},variant:"cta",disabled:this.isActionLoading},this.isActionLoading?this.actionSpinner:(0,D.Iu)("BRAND_UNPUBLISH_ACTION"))))}get publishBrandBanner(){return this.showPublishBrandBanner&&Y.createElement("div",{className:Pa.dialogBanner},Y.createElement("div",null,(0,D.Iu)("BRAND_PUBLISH_DIALOG_REVIEW_BANNER")),Y.createElement(zn.Z,{className:Pa.dialogBannerButton,"data-test-id":"dialog-cancel-button",onClick:()=>{this.props.close()},variant:"secondary",treatment:"outline"},(0,D.Iu)("BRAND_PUBLISH_DIALOG_REVIEW_BUTTON")))}render(){let e,t="";switch(this.currPage){case"unpublish":t=this.unpublishContent,e=(0,D.Iu)("BRAND_UNPUBLISH_ACTION_LONG");break;case"publish0":default:t=this.publishContent,e=(0,D.Iu)("BRAND_PUBLISH_ACTION_LONG");break;case"publish1":t=this.publishSuccessContent;break;case"publishConfetti":t=this.publishConfetti}return Y.createElement(q.Z,{title:e,className:Pa.publishBrandDialog,close:this.props.close,banner:this.publishBrandBanner,showFooter:!1,ref:this.dialogRef},t)}}).dialogName="publishBrand",Ja.contextType=ee.r,Ja.propTypes={brand:$().instanceOf(ze.Zu),close:$().func.isRequired,needsReview:$().bool,onPublish:$().func,action:$().string.isRequired},Ja.defaultProps={action:"publish"},ns(($a=Ja).prototype,"toUnpublish",[o.computed],Object.getOwnPropertyDescriptor($a.prototype,"toUnpublish"),$a.prototype),Ka=ns($a.prototype,"orgName",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qa=ns($a.prototype,"currPage",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.toUnpublish?"unpublish":"publish0"}}),Xa=ns($a.prototype,"isActionLoading",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$a);const os=r.p+"resources/captureCoachMark.png";var as=r(50777);var ss=r(68370);class cs extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{as.RI(!0),j.ZP.reportEvent("Onboarding","Capture","click","view"),this.props.close()},this.onClose=()=>{(0,L.y6)("capture"),j.ZP.reportEvent("Onboarding","Capture","click","close"),this.props.close()}}componentDidMount(){j.ZP.reportEvent("Onboarding","Capture","render","modal")}componentWillUnmount(){this.context.viewState.setCurrentWorkflow()}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_CAPTURE_ONBOARDING_POPOVER_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_CAPTURE_ONBOARDING_POPOVER_BODY"))}get graphic(){return Y.createElement("img",{"data-test-id":"popover-graphic",className:"capture-popover-graphic",src:os})}get y(){return 44+27*(0,ss.o)().filter((e=>!e.divider)).length}render(){return Y.createElement("div",{className:"coach-mark-with-image"},Y.createElement(Wn,{okButtonText:(0,D.Iu)("DL_CAPTURE_TOUR"),onClickOK:this.onClickOK,cancelButtonText:(0,D.Iu)("DL_CANCEL"),close:this.onClose,x:5,y:this.y,triangleOffset:163,horizontalPlacement:"right",placement:"bottom"},this.graphic,this.title,this.body))}}cs.dialogName="captureOnboardingPopover",cs.contextType=ee.r,cs.isAlwaysInline=!0,cs.propTypes={close:$().func.isRequired};const ls=r.p+"resources/NewUserOnboarding.png",us=r.p+"resources/teamLibrariesOnboarding.png";var ps,ds,hs,fs;let ms=(0,K.Pi)((fs=class extends Y.Component{constructor(...e){super(...e),function(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})}(this,"currentStepId",hs,this),this.onClickSkip=()=>{this.closeDialog()},this.onClose=e=>{e&&e.preventDefault(),this.isLastStep?this.closeDialog():this.currentStepId++},this.getCoachmarkIndicatorRings=()=>Y.createElement("div",{"data-test-id":"root-view-overlay-highlight",className:Q()("delightful-performant-coachmark-indicator-ring","root-view-onboarding-coachmarks")}),this.onLearnMoreClick=()=>{(0,R.Hu)()}}get isNewUser(){return this.context.viewState.isNewUserState()}markViewed(){this.isNewUser&&(0,L.y6)("newUserRoot"),(0,L.y6)("panelRootOnboarding")}closeDialog(){this.markViewed(),this.props.close()}get title(){return this.isNewUser?Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(this.currentStep.title)):Y.createElement("div",{className:"popover-title-row"},Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(this.currentStep.title)),Y.createElement("div",{"data-test-id":"popover-page-number",className:"popover-page-number"},(0,D.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.currentStepId+1,totalPages:this.isNewUser?this.allStepsNewUser.length:this.allStepsReturningUser.length})))}get body(){return this.currentStep.htmlBody?Y.createElement(Ot.Z,{"data-test-id":"popover-body",onClick:this.onLearnMoreClick,className:"popover-body",html:(0,D.Iu)(this.currentStep.htmlBody)}):Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(this.currentStep.body))}get graphic(){return Y.createElement("img",{"data-test-id":"popover-graphic",className:"popover-graphic",src:this.currentStep.onboardingImage})}get y(){const e=Z.Z.getCustomHeaderView();return(e&&e.height||0)+12}get currentStep(){return this.isNewUser?this.allStepsNewUser[this.currentStepId]:this.allStepsReturningUser[this.currentStepId]}get allStepsNewUser(){return[{x:12,y:this.y,verticalPlacement:"top",horizontalPlacement:"left",onboardingImage:ls,title:"DL_PANEL_NEW_USER_ONBOARDING_TITLE1",body:"DL_PANEL_NEW_USER_ONBOARDING_DESCRIPTION1",okButtonText:"DL_ONBOARDING_TOUR_NEXT"},{x:2,y:40,verticalPlacement:"bottom",horizontalPlacement:"right",title:"DL_PANEL_NEW_USER_ONBOARDING_TITLE2",body:"DL_PANEL_NEW_USER_ONBOARDING_DESCRIPTION2",okButtonText:"DL_ONBOARDING_TOUR_FINISH",indicator:this.getCoachmarkIndicatorRings()}]}get allStepsReturningUser(){return[{x:12,y:this.y,verticalPlacement:"top",horizontalPlacement:"left",onboardingImage:us,title:"DL_EXISTING_USER_PANEL_ONBOARDING_TITLE1",htmlBody:"DL_EXISTING_USER_PANEL_ONBOARDING_DESCRIPTION1",okButtonText:"DL_ONBOARDING_TOUR_NEXT",cancelButtonText:"DL_ONBOARDING_TOUR_SKIP"},{x:2,y:40,verticalPlacement:"bottom",horizontalPlacement:"right",title:"DL_EXISTING_USER_PANEL_ONBOARDING_TITLE2",body:"DL_EXISTING_USER_PANEL_ONBOARDING_DESCRIPTION2",okButtonText:"DL_ONBOARDING_TOUR_FINISH",indicator:this.getCoachmarkIndicatorRings()}]}get isLastStep(){return this.currentStepId===(this.isNewUser?this.allStepsNewUser.length-1:this.allStepsReturningUser.length-1)}render(){return Y.createElement("div",{className:Q()("coach-mark-with-image","panel-root-view-onboarding")},Y.createElement(Wn,{okButtonText:(0,D.Iu)(this.currentStep.okButtonText),cancelButtonText:this.currentStep.cancelButtonText?(0,D.Iu)(this.currentStep.cancelButtonText):null,close:this.onClose,onClickCancel:this.onClickSkip,x:this.currentStep.x,y:this.currentStep.y,indicators:this.currentStep.indicator,showPopoverTriangle:!1,closeOnWindowClick:this.isLastStep,horizontalPlacement:this.currentStep.horizontalPlacement,placement:this.currentStep.verticalPlacement},this.graphic,this.title,this.body))}},fs.contextType=ee.r,fs.dialogName="rootViewOnboardingPopover",fs.propTypes={close:$().func.isRequired},hs=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((ds=fs).prototype,"currentStepId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ps=ds))||ps;class gs extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{j.ZP.reportEvent("Onboarding","Path view","click","view"),this.props.close()},this.onClose=()=>{(0,L.y6)("groupsPathView"),j.ZP.reportEvent("Onboarding","Path view","click","close"),this.props.close()},this.handleLearnMoreClick=()=>{(0,L.y6)("groupsPathView"),j.ZP.reportEvent("Onboarding","Path view","click","learnmore"),(0,R.UK)(),this.props.close()}}componentDidMount(){j.ZP.reportEvent("Onboarding","Path view","render","modal")}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_GROUP_ONBOARDING_POPOVER_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_GROUP_ONBOARDING_POPOVER_BODY"))}get indicators(){return Y.createElement("div",{"data-test-id":"path-view-overlay-highlight",className:Q()("delightful-performant-coachmark-indicator-ring","path-view-onboarding")})}get y(){const e=Z.Z.getCustomHeaderView();return(e&&e.height||0)+112}get learnMoreButton(){return Y.createElement(zn.Z,{"data-test-id":"popover-learn-more-button",className:"popover-cancel-button",variant:"secondary",onClick:this.handleLearnMoreClick},(0,D.Iu)("DL_LEARN_MORE"))}render(){return Y.createElement("div",{className:"coach-mark-with-image"},Y.createElement(Wn,{okButtonText:(0,D.Iu)("DL_OK"),onClickOK:this.onClickOK,additionalFooterButtons:this.learnMoreButton,close:this.onClose,x:10,y:this.y,triangleOffset:32,horizontalPlacement:"right",placement:"top",indicators:this.indicators},this.title,this.body))}}gs.dialogName="pathViewOnboarding",gs.contextType=ee.r,gs.isAlwaysInline=!0,gs.propTypes={close:$().func.isRequired};const vs="lSG";var ys,bs,_s,Es;let ws=(0,K.Pi)((Es=class extends Y.Component{constructor(...e){super(...e),function(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})}(this,"currentStepId",_s,this),this.onClickSkip=()=>{this.closeDialog()},this.onClose=e=>{e&&e.preventDefault(),this.isLastStep?this.closeDialog():this.currentStepId++}}closeDialog(){(0,L.y6)("teamLibraryOneUpPanel"),this.props.close()}get title(){return Y.createElement("div",{className:"popover-title-row"},Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},Y.createElement(Ot.Z,{html:(0,D.Iu)(this.currentStep.title)})),Y.createElement("div",{"data-test-id":"popover-page-number",className:"popover-page-number"},(0,D.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.currentStepId+1,totalPages:this.allSteps.length})))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(this.currentStep.body))}get y(){const e=Z.Z.getCustomHeaderView();return(e&&e.height||0)+40}get currentStep(){return this.allSteps[this.currentStepId]}get allSteps(){return[{x:6,y:this.y,verticalPlacement:"top",horizontalPlacement:"right",title:"DL_PANEL_TEAM_LIBRARY_ONBOARDING_TITLE1",body:"DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION1",okButtonText:"DL_ONBOARDING_TOUR_NEXT",cancelButtonText:"DL_ONBOARDING_TOUR_SKIP"},{x:12,y:this.y,verticalPlacement:"top",horizontalPlacement:"left",title:"DL_PANEL_TEAM_LIBRARY_ONBOARDING_TITLE2",body:"DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION2",okButtonText:"DL_ONBOARDING_TOUR_FINISH"}]}get isLastStep(){return this.currentStepId===this.allSteps.length-1}render(){return this.currentStep?Y.createElement("div",{className:vs},Y.createElement(Wn,{okButtonText:(0,D.Iu)(this.currentStep.okButtonText),cancelButtonText:this.currentStep.cancelButtonText?(0,D.Iu)(this.currentStep.cancelButtonText):null,onClickCancel:this.onClickSkip,close:this.onClose,x:this.currentStep.x,y:this.currentStep.y,showPopoverTriangle:!0,triangleOffset:10,closeOnWindowClick:this.isLastStep,horizontalPlacement:this.currentStep.horizontalPlacement,placement:this.currentStep.verticalPlacement},this.title,this.body)):null}},Es.contextType=ee.r,Es.dialogName="panelTeamLibraryOneUpOnboardingPopover",Es.propTypes={close:$().func.isRequired},_s=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((bs=Es).prototype,"currentStepId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ys=bs))||ys;var Ls,xs,Ss,Os;let Ts=(0,K.Pi)((Os=class extends Y.Component{constructor(...e){super(...e),function(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})}(this,"currentStepId",Ss,this),this.onClickCancel=()=>{this.closeDialog()},this.onClose=()=>{this.isLastStep?this.closeDialog():this.currentStepId++}}closeDialog(){this.context.viewState.setTourInProgress(!1),(0,L.y6)("firstEnteredLibrary"),this.props.close()}get title(){return Y.createElement("div",{className:"popover-title-row"},Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(this.currentStep.title)),this.props.isNewUserTour&&Y.createElement("div",{"data-test-id":"popover-page-number",className:"popover-page-number"},(0,D.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.currentStepId+1,totalPages:this.allSteps.length})))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(this.currentStep.body))}get y(){return this.context.viewState.panelHeaderHeight}get currentStep(){return this.allSteps[this.currentStepId]}get allSteps(){const e=d.Z.currentProduct.config.hideAddControls?33:57,t=Z.Z.getCustomHeaderView(),r=42+(t&&t.height||0);return[{x:5,y:30,triangleOffset:33,title:"DL_NEW_USER_TOUR_ADD_TITLE",body:"DL_NEW_USER_TOUR_ADD_BODY",verticalPlacement:"bottom",isDisabled:!this.props.isNewUserTour||d.Z.currentProduct.config.hideAddControls},{x:5,y:30,triangleOffset:e,title:"DL_NEW_USER_TOUR_GROUP_TITLE",body:"DL_NEW_USER_TOUR_GROUP_BODY",verticalPlacement:"bottom",isDisabled:!this.props.isNewUserTour},{x:5,y:r,triangleOffset:9,title:"DL_NEW_USER_TOUR_INVITE_TITLE",body:"DL_NEW_USER_TOUR_INVITE_BODY",verticalPlacement:"top",isDisabled:!(0,f.hp)(this.context.libraryManager.currentLibrary)}].filter((e=>!e.isDisabled))}get isLastStep(){return this.currentStepId===this.allSteps.length-1}get okButtonText(){const e=this.props.isNewUserTour?"DL_ONBOARDING_TOUR_FINISH":"DL_OK";return(0,D.Iu)(this.isLastStep?e:"DL_ONBOARDING_TOUR_NEXT")}get cancelButtonText(){return(0,D.Iu)(this.isLastStep?"":"DL_ONBOARDING_TOUR_SKIP")}render(){return this.currentStep?Y.createElement("div",{className:"coach-mark-with-image popover-tour-transparent-overlay"},Y.createElement(Wn,{okButtonText:this.okButtonText,onClickCancel:this.onClickCancel,triangleOffset:this.currentStep.triangleOffset,cancelButtonText:this.cancelButtonText,close:this.onClose,x:this.currentStep.x,y:this.currentStep.y,closeOnWindowClick:this.isLastStep,horizontalPlacement:"right",placement:this.currentStep.verticalPlacement},this.title,this.body)):null}},Os.contextType=ee.r,Os.isTour=!0,Os.dialogName="firstEnteredLibraryOnboardingPopoverTour",Os.propTypes={close:$().func.isRequired,isNewUserTour:$().bool},Ss=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((xs=Os).prototype,"currentStepId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ls=xs))||Ls;var Is,Ps,Cs,As;let ks=(0,K.Pi)((As=class extends Y.Component{constructor(...e){super(...e),function(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})}(this,"currentStepId",Cs,this),this.onClickSkip=()=>{this.closeDialog()},this.onClose=()=>{Z.Z.isLibraryManagerWindowOpen()&&(this.isLastStep?this.closeDialog():this.currentStepId++)}}closeDialog(){(0,L.y6)("librariesManager"),this.props.close()}get title(){return Y.createElement("div",{className:"popover-title-row"},Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(this.currentStep.title)),this.allSteps.length>1&&Y.createElement("div",{"data-test-id":"popover-page-number",className:"popover-page-number"},(0,D.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.currentStepId+1,totalPages:this.allSteps.length})))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(this.currentStep.body))}get currentStep(){return this.allSteps[this.currentStepId]}get allSteps(){return[{x:70,y:205,triangleOffset:25,verticalPlacement:"top",horizontalPlacement:"right",title:"MANAGER_TOUR_TITLE_1",body:"MANAGER_TOUR_BODY_1",okButtonText:"DL_ONBOARDING_TOUR_NEXT",cancelButtonText:"DL_ONBOARDING_TOUR_SKIP",disable:this.context.libraryManager.isRestrictedAccount},{x:210,y:335,triangleOffset:17,verticalPlacement:"top",horizontalPlacement:"left",title:"MANAGER_TOUR_TITLE_2",body:"MANAGER_TOUR_BODY_2",okButtonText:"DL_ONBOARDING_TOUR_FINISH"}].filter((e=>!e.disable))}get isLastStep(){return this.currentStepId===this.allSteps.length-1}render(){return this.currentStep?Y.createElement("div",{className:"coach-mark-with-image popover-tour-transparent-overlay"},Y.createElement(Wn,{okButtonText:(0,D.Iu)(this.currentStep.okButtonText),cancelButtonText:this.currentStep.cancelButtonText&&(0,D.Iu)(this.currentStep.cancelButtonText),onClickCancel:this.onClickSkip,triangleOffset:this.currentStep.triangleOffset,close:this.onClose,x:this.currentStep.x,y:this.currentStep.y,closeOnWindowClick:this.isLastStep,horizontalPlacement:this.currentStep.horizontalPlacement,placement:this.currentStep.verticalPlacement},this.title,this.body)):null}},As.dialogName="managerOnboardingPopoverTour",As.contextType=ee.r,As.isTour=!0,As.propTypes={close:$().func.isRequired},Cs=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((Ps=As).prototype,"currentStepId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Is=Ps))||Is;class Ds extends Y.Component{componentDidMount(){j.ZP.reportEvent("Onboarding","Teams Library One up Intro","render","modal")}constructor(e){super(e),this.onClickOK=()=>{(0,L.y6)("teamsLibraryOpen"),j.ZP.reportEvent("Onboarding","Teams Library One up Intro","click","close"),this.props.close()},this.onLearnMoreClick=()=>{(0,R.Hu)()}}render(){const e=Q()("panel-dialog-layout-75","panel-dialog-input-container",{"panel-dialog-warning":this.showWarning});return Y.createElement(q.Z,{title:(0,D.Iu)("DL_TEAM_LIBRARY_ONBOARDING_HEADING"),okButtonText:(0,D.Iu)("DL_OK"),onClickOK:this.onClickOK,onClickCancel:this.onLearnMoreClick,close:this.props.close,cancelButtonText:(0,D.Iu)("DL_LEARN_MORE"),className:"team-library-one-up-onboarding"},Y.createElement("div",{className:e},Y.createElement("span",{className:"team-library-onboarding-browse-icon-container"},Y.createElement(X.Z,{id:"Browse","data-test-id":"onboarding-browse-icon",height:18})),Y.createElement("span",{"data-test-id":"onboarding-first-message",className:"team-library-onboarding-message-container"},(0,D.Iu)("DL_TEAM_LIBRARY_ONBOARDING_FIRST_MESSAGE"))),Y.createElement("div",{className:e},Y.createElement("span",{className:"team-library-onboarding-invite-icon-container"},Y.createElement(X.Z,{id:"Invite","data-test-id":"onboarding-invite-icon",height:18})),Y.createElement("span",{"data-test-id":"onboarding-second-message",className:"team-library-onboarding-message-container"},(0,D.Iu)("DL_TEAM_LIBRARY_ONBOARDING_SECOND_MESSAGE"))),Y.createElement("div",{className:e},Y.createElement("span",{className:"team-library-onboarding-organisations-icon-container"},Y.createElement(X.Z,{id:"Organisations","data-test-id":"onboarding-organisation-icon",height:18})),Y.createElement("span",{"data-test-id":"onboarding-third-message",className:"team-library-onboarding-message-container"},(0,D.Iu)("DL_TEAM_LIBRARY_ONBOARDING_THIRD_MESSAGE"))))}}Ds.contextType=ee.r,Ds.dialogName="teamsLibraryCCDOneUpOnboardingDialog",Ds.propTypes={close:$().func.isRequired};const Ns="Hen",Rs="iKS",Ms="TrK",js="eQY";var Zs,Fs;let Bs=(0,K.Pi)(((Fs=class extends Y.Component{constructor(...e){super(...e),this.closeClick=()=>{j.ZP.reportEvent("Onboarding","Teams Library Create Intro","click","close"),this.props.close&&this.props.close(),this.context.viewState.setRemoveDialogPadding(!1),this.context.dialogManager.openDialog("createLibrary",{defaultTeam:this.props.defaultTeam})},this.onLearnMoreClick=()=>{(0,R.Hu)()}}componentDidMount(){j.ZP.reportEvent("Onboarding","Teams Library Create Intro","render","modal")}render(){return Y.createElement(q.Z,{"data-test-id":"team-libraries-create-onboarding",okButtonText:(0,D.Iu)("DL_OK"),close:this.closeClick,cancelButtonText:null},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:Ns},Y.createElement("img",{"data-test-id":"team-libraries-create-onboarding-graphic",className:Rs,src:us}),Y.createElement(Ot.Z,{className:Ms,"data-test-id":"team-libraries-create-onboarding-heading",html:(0,D.Iu)("DL_TEAM_LIBRARIES_CREATE_DIALOG_TITLE")}),Y.createElement(Ot.Z,{className:js,"data-test-id":"team-libraries-create-onboarding-description",html:(0,D.Iu)("DL_TEAM_LIBRARIES_CREATE_DIALOG_DESCRIPTION"),onClick:this.onLearnMoreClick}))))}}).dialogName="teamsLibraryCreateCCDOnboardingDialog",Fs.contextType=ee.r,Fs.propTypes={close:$().func,defaultTeam:$().object},Zs=Fs))||Zs;var Gs,Us;let zs=(0,K.Pi)(((Us=class extends Y.Component{get title(){return(0,D.Iu)("DL_REVISIONHISTORY_LIBRARY",{name:this.props.library.name})}render(){return Y.createElement(q.Z,{title:this.title,okButtonText:"",close:this.props.close,cancelButtonText:""},Array.from({length:11},((e,t)=>Y.createElement("div",{key:t},Y.createElement("span",null,"Edited")," ",Y.createElement("br",null),Y.createElement("span",null,"Today 2:15pm")))))}}).contextType=ee.r,Us.dialogName="revisionHistory",Us.propTypes={library:$().instanceOf(ze.Zu).isRequired,close:$().func},Gs=Us))||Gs;const Vs=[st,Lt,It,Rt,Gt,er,Fr,Vr,Kr,un,fn,vn,_n,Bn,Xn,ni,di,Ei,xi,Ai,Gi,Ri,Vi,Zi,Bo,Lo,$o,ea,na,ca,Ia,is,cs,ms,Ts,ks,Ds,ws,Bs,gs,zs,r(11507).Z,r(37182).Z,r(67116).Z,r(145).Z,r(99525).Z];class Hs extends s{get libraryManager(){return this._rootContext.libraryManager}}class Ys extends Hs{constructor(e){super(e),this.dialogManager=new i.aS(this),this.viewManager=new O(this),this.toastManager=new P.y(this),this.viewState=new k(this),this.libraryActions=new V(this),this.documentActions=new H(this)}init(){this.dialogManager.init(Vs)}reset(){this.dialogManager.closeDialog(),this.toastManager.closeToast(),this.viewState.setSearchText(""),this.viewManager.stopRename()}}var Ws=r(16993),$s=r(24399);const Ks="GenStudio-app",qs="brands";const Xs=new class{sendPublishBrandOmegaEvent(e){const t={applicationName:Ks,eventData:{feature:qs,action:$s.eX.click,widget:{name:"publish-brand-dialog",type:"dialog"},element:"publish-button",elementId:"publish-button-id",type:$s.iN.button},attributes:{brandId:e}};(0,$s.oe)(t)}sendUnpublishBrandOmegaEvent(e){const t={applicationName:Ks,eventData:{feature:qs,action:$s.eX.click,widget:{name:"unpublish-brand-dialog",type:"dialog"},element:"unpublish-button",elementId:"unpublish-button-id",type:$s.iN.button},attributes:{brandId:e}};(0,$s.oe)(t)}};var Js=r(47696);function Qs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qs=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ec(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 tc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ec(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ic(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){nc(o,n,i,a,s,"next",e)}function s(e){nc(o,n,i,a,s,"throw",e)}a(void 0)}))}}class oc extends s{rename(e,t){if(j.ZP.reportEvent("Operations","brand","click","rename",{},e),Tt.Z.isBrandLifecycleEnabled()&&t)return e.name=t,e;this.context.dialogManager.openDialog("renameLibrary",{library:e})}invite(e,t=!1){var r;j.ZP.reportEvent("Library Operations","Collaboration","click","invite",{content:{category:t?"Header":"List"}},e),null===(r=Z.Z.showShareSheet)||void 0===r||r.call(Z.Z,e,"invite")}getBrandActions(e){if(!Z.Z.isBrandCreator&&Tt.Z.isBrandLifecycleEnabled())return[];const t=e.collaboration||(f.D3(e)?"bookmarked":"private"),r=e.isWritable&&!e.toolkitId&&this.context.libraryManager.isSharingEnabled&&!Tt.Z.isBrandLifecycleEnabled(),n=!f.zW(e)&&!f.$_(e)&&f.pN(e)&&!e.toolkitId,i=!e.isDocumentAssets&&f.GL(e),o=(0,M.re)(e)&&!(0,M.lv)(Z.Z.brandLocation),a=Tt.Z.isBrandLifecycleEnabled()&&(e.publishedTo||e.publishedFrom);return[r&&{id:"invite",label:(0,D.Iu)("DL_FLYOUT_COLLABORATE"),onClick:()=>this.invite(e,!1),enableMenu:!0,description:(0,D.Iu)("DL_FLYOUT_COLLABORATE_DESCRIPTION"),icon:"Invite",hideIcon:!1},r&&{id:"shareDivider",divider:!0},o&&{id:"edit",label:(0,D.Iu)("DL_EDIT_ITEM"),onClick:()=>this.editBrand(e),enableMenu:!0,icon:"Edit",hideIcon:!1},a&&{id:"unpublish",label:(0,D.Iu)("DL_UNPUBLISH"),enableMenu:!0,onClick:()=>this.context.dialogManager.openDialog("publishBrand",{brand:e,needsReview:null==e?void 0:e.needsReview,action:"unpublish"}),icon:"PublishRemove",hideIcon:!1},!Tt.Z.isBrandLifecycleEnabled()&&f.W(e)&&{id:"rename",label:(0,D.Iu)("DL_RENAME"),enableMenu:!0,onClick:()=>this.rename(e),icon:"Rename",hideIcon:!1},n&&{id:"leave",label:"bookmarked"===t?"DL_REMOVE_FROM_YOUR_BRANDS":(0,D.Iu)("DL_LEAVE"),enableMenu:!0,onClick:()=>this.context.dialogManager.openDialog("deleteLibrary",{library:e}),destructive:!0,icon:"Leave",hideIcon:!1},i&&{id:"delete",label:(0,D.Iu)("DL_DELETE"),enableMenu:!0,onClick:()=>this.context.dialogManager.openDialog("deleteLibrary",{library:e}),destructive:!0,icon:"Delete",hideIcon:!1}].filter((e=>e))}publishBrand(e,t){var r=this;return ic(Qs().mark((function n(){var i;return Qs().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Tt.Z.isBrandLifecycleEnabled()){n.next=21;break}return n.prev=1,n.next=4,e.committed;case 4:return n.next=6,ka.Z.getAssetWithCloudID(e.assetId);case 6:return i=n.sent,n.next=9,i.patchAppMetadata([{op:"add",path:"/library:roles",value:e.roles}]);case 9:return n.next=11,uc.libraryManager.publishBrand(e);case 11:return n.next=13,new Promise((n=>{i.appMetadata.once("change",(()=>{var o;const a=null===(o=i.appMetadata.data)||void 0===o?void 0:o["brand:publishedTo"];e.load().then((()=>{a&&Z.Z.navigateToLibrary(tc(tc({},e),{},{id:a["repo:assetId"]})),t&&r.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)(t)}),j.ZP.reportPublishBrand(e),Xs.sendPublishBrandOmegaEvent(e.id),n()}))}))})).catch((e=>{throw e}));case 13:return n.abrupt("return",1);case 16:return n.prev=16,n.t0=n.catch(1),r.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_PUBLISH_ERROR_TOAST")}),j.ZP.reportPublishBrand(e,{"event.subtype":"error","event.error_code":null===n.t0||void 0===n.t0?void 0:n.t0.statusCode,"event.error_desc":null===n.t0||void 0===n.t0?void 0:n.t0.message}),n.abrupt("return",0);case 21:return n.abrupt("return",(0,Js.pQ)(uc.libraryManager.userId,e.assetId).then((n=>{const i=n.collaborators[0];return i&&i.statusCode.toString().startsWith("2")?(e.roles=[...e.roles,{type:d.Z.ROLE_VERIFIED}],t&&r.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)(t)}),j.ZP.reportPublishBrand(e),Xs.sendPublishBrandOmegaEvent(e.id),1):i&&i.statusCode.toString().startsWith("4")?(r.context.toastManager.openToast("message",{variant:"error",message:`${(0,D.Iu)("DL_GENERIC_MANAGER_DIALOG_ERROR")} ${i.statusCode}: ${i.statusText}`}),j.ZP.reportPublishBrand(e,{"event.subtype":"error","event.error_code":i.statusCode,"event.error_desc":i.statusText}),0):void 0})).catch((t=>(r.context.toastManager.openToast("message",{variant:"error",message:(null==t?void 0:t.message)||(0,D.Iu)("DL_GENERIC_MANAGER_DIALOG_ERROR")}),j.ZP.reportPublishBrand(e,{"event.subtype":"error","event.error_code":null==t?void 0:t.statusCode,"event.error_desc":null==t?void 0:t.message}),0))));case 22:case"end":return n.stop()}}),n,null,[[1,16]])})))()}unpublishBrandM3(e){var t=this;return ic(Qs().mark((function r(){var n,i;return Qs().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.publishedFrom||e.assetId,r.prev=1,r.next=4,ka.Z.getAssetWithCloudID(n);case 4:return i=r.sent,r.next=7,uc.libraryManager.unpublishBrand(e);case 7:return r.abrupt("return",new Promise((r=>{i.appMetadata.once("change",(()=>{var n;!(null===(n=i.appMetadata.data)||void 0===n?void 0:n["brand:publishedTo"])&&e.publishedFrom&&(0,M.lv)(Z.Z.brandLocation)&&Z.Z.navigateToLibrary(tc(tc({},e),{},{id:e.publishedFrom})),t.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("BRAND_UNPUBLISHED_SUCCESS_TOAST")}),j.ZP.reportUnpublishBrand(e),Xs.sendUnpublishBrandOmegaEvent(e.id),r(1)}))})));case 10:return r.prev=10,r.t0=r.catch(1),t.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_UNPUBLISH_ERROR_TOAST")}),j.ZP.reportUnpublishBrand(e,{"event.subtype":"error","event.error_code":null===r.t0||void 0===r.t0?void 0:r.t0.status,"event.error_desc":null===r.t0||void 0===r.t0?void 0:r.t0.message}),r.abrupt("return",0);case 15:case"end":return r.stop()}}),r,null,[[1,10]])})))()}unpublishBrand(e){var t=this;return ic(Qs().mark((function r(){return Qs().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Tt.Z.isBrandLifecycleEnabled()||!e.publishedTo&&!e.publishedFrom){r.next=2;break}return r.abrupt("return",t.unpublishBrandM3(e));case 2:return r.abrupt("return",(0,Js.w0)(uc.libraryManager.userId,e.assetId).then((r=>{const n=r.collaborators[0];return n&&n.statusCode.toString().startsWith("2")?(e.roles=e.roles.filter((e=>e.type!==d.Z.ROLE_VERIFIED)),t.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("BRAND_UNPUBLISHED_SUCCESS_TOAST_M2")}),j.ZP.reportUnpublishBrand(e),Xs.sendUnpublishBrandOmegaEvent(e.id),1):n&&n.statusCode.toString().startsWith("4")?(t.context.toastManager.openToast("message",{variant:"error",message:`${(0,D.Iu)("DL_GENERIC_MANAGER_DIALOG_ERROR")} ${n.statusCode}: ${n.statusText}`}),j.ZP.reportUnpublishBrand(e,{"event.subtype":"error","event.error_code":n.statusCode,"event.error_desc":n.statusText}),0):void 0})).catch((r=>(t.context.toastManager.openToast("message",{variant:"error",message:(null==r?void 0:r.message)||(0,D.Iu)("DL_GENERIC_MANAGER_DIALOG_ERROR")}),j.ZP.reportUnpublishBrand(e,{"event.subtype":"error","event.error_code":null==r?void 0:r.statusCode,"event.error_desc":null==r?void 0:r.message}),0))));case 3:case"end":return r.stop()}}),r)})))()}editBrand(e){return ic(Qs().mark((function t(){return Qs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.publishedFrom&&Z.Z.navigateToLibrary(tc(tc({},e),{},{id:e.publishedFrom}));case 1:case"end":return t.stop()}}),t)})))()}closeDraft(e){return ic(Qs().mark((function t(){return Qs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.publishedTo&&Z.Z.navigateToLibrary(tc(tc({},e),{},{id:e.publishedTo}));case 1:case"end":return t.stop()}}),t)})))()}brandLibrary(e){e.roles=[{type:d.Z.ROLE_TYPE_BRAND}]}unbrandLibrary(e){e.roles=[]}}var ac=r(53849),sc=r(10440);class cc extends s{createGroupFromSet(e){if(this.context.viewState.isLibrariesSearchMode())return;const t=e.length&&e[0].isGroup?e:[],r=e.length&&e[0].library||this.context.libraryManager.currentLibrary;if("group"!==this.context.viewState.viewByState&&this.context.viewState.setViewByState("group"),"group"===this.context.viewState.viewByState){let n;r.beginOperation();const i=t.filter((e=>!e.parent||e.parent&&!t.includes(e.parent)));if(i&&1===i.length)n=(0,h.yF)(i[0]);else{const o=(0,h.Q_)(e);n=o&&o!==d.Z.UNGROUPED_GROUP?(0,h.yF)(o):(0,f.sS)(r),t.length>=1?i.forEach((e=>e.parent=n)):((0,f.c_)(e,n),j.ZP.reportEvent("Element Operations","Element","click","add-to-group",{event:{value:"agg",count:e.length},content:{category:"Click"}},r),j.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Click"}}))}r.endOperation(),this.context.viewState.clearAllSelections(),sc.Z.setSelection(n),this.context.viewState.resetMode(),this._onNewGroup(n)}}_onNewGroup(e){ac.Z.revealGroup(e),d.Z.currentProduct.config.disableEditPathOperation?this.context.viewManager.startRename(e):this.context.viewManager.startEditPath(e,!0)}createSubgroup(e){const t=(0,h.yF)(e);return this._onNewGroup(t),t}}class lc extends Hs{constructor(e){super(e),this.dialogManager=i.ZP,this.viewManager=new O(this),this.toastManager=P.Z,this.viewState=Ws.Z,this.libraryActions=new V(this),this.brandActions=new oc(this),this.documentActions=new H(this),this.groupActions=new cc(this)}init(){this.dialogManager.init(Vs),this.viewState.init()}reset(){this.dialogManager.closeDialog(),this.toastManager.closeToast(),this.viewState.setSearchText(""),this.viewManager.stopRename()}}const uc=new class extends s{constructor(){super(),this.libraryManager=n.ZP,this.panel=new lc(this),this.manager=new Ys(this)}init(){this.panel.init(),this.manager.init()}reset(){this.panel.reset(),this.manager.reset()}}},41765:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n,i,o,a=r(89526),s=r(50265),c=r(62631),l=r(2652),u=r.n(l),p=r(27611),d=r(16993),h=r(84824),f=r(64403),m=r.n(f),g=r(2169),v=r(43616),y=r(99386),b=r(72279),_=r(85080),E=r(18580),w=r(76485);function L(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let x=(0,c.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.overlayState=new _.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleFocusVisibility=e=>{const t=(0,g.j6)(e);t&&t.blur()},this.handleClick=()=>{this.overlayState.toggleOverlay()},this.setCustomLabelRef=e=>{this.customLabelRef=e}}get currentLibrariesFilter(){return d.Z.currentLibrariesFilter}get filterData(){const e=d.Z.getLibraryListFilterOptions().map((e=>{if(this.props.disabledFilters.includes(e))return null;const t={id:e};return t.label=(0,h.Iu)(`DL_LIBRARY_LIST_FILTER_${e.toUpperCase()}`),t.isSelected=this.currentLibrariesFilter===e,t.key=e,t.onClick=()=>{d.Z.setCurrentLibrariesFilter(e),this.props.onFilterChange()},t})).filter((e=>e));return[{label:(0,h.Iu)("DL_LIBRARY_LIST_FILTER_BY"),isTitle:!0,onClick:()=>{},id:"title"}].concat(e)}get labelIcon(){var e,t;const r=y.Z.currentProduct.config.iconHeight||16,n=y.Z.currentProduct.config.iconWidth||16,i=null===(e=(t=y.Z.currentProduct).isExpandedBrandsView)||void 0===e?void 0:e.call(t);return a.createElement("div",{ref:this.setCustomLabelRef},a.createElement(b.Z,{selected:this.overlayState.isOpen,quiet:!0,variant:"action","data-test-id":"library-list-filter-button",disabled:this.props.disabled,"aria-label":(0,h.Iu)(i?"DL_LIBRARY_LIST_FILTER_BRANDS":"DL_LIBRARY_LIST_FILTER_LIBS"),className:m()("view-toggle-button",{"is-disabled":this.props.disabled,selected:this.overlayState.isOpen}),onClick:this.handleClick},a.createElement(p.Z,{id:"Filter","data-test-id":"panel-dropdown-icon",height:r,width:n}),"all"!==this.currentLibrariesFilter&&a.createElement("div",{className:"filter-applied-badge","data-test-id":"library-list-filter-button-badge"})))}render(){var e,t;const r=null===(e=(t=y.Z.currentProduct).isExpandedBrandsView)||void 0===e?void 0:e.call(t);return E.Z.hasLoaded()&&E.Z.isBrandLifecycleEnabled()&&!w.Z.isBrandCreator?null:a.createElement(v.Z,{"data-test-id":"filter-libraries-dropdown",tooltip:(0,h.Iu)(r?"DL_LIBRARY_LIST_FILTER_BRANDS":"DL_LIBRARY_LIST_FILTER_LIBS"),data:this.filterData,className:"panel-select-library-filter",type:"filter",currentLabel:this.labelIcon,locationBasedOnLabel:!0,customLabelRef:this.customLabelRef})}}).defaultProps={onFilterChange:()=>{},disabledFilters:[],disabled:!1},o.propTypes={onFilterChange:u().func,disabledFilters:u().arrayOf(u().string),disabled:u().bool},L((i=o).prototype,"currentLibrariesFilter",[s.computed],Object.getOwnPropertyDescriptor(i.prototype,"currentLibrariesFilter"),i.prototype),L(i.prototype,"labelIcon",[s.computed],Object.getOwnPropertyDescriptor(i.prototype,"labelIcon"),i.prototype),n=i))||n},54048:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(89526),i=r(2652),o=r.n(i),a=r(16993),s=r(84824),c=r(2169),l=r(51461),u=r(93028),p=r(99386);class d extends n.Component{constructor(...e){super(...e),this.onStockSearchClick=()=>{l.ZP.reportEvent("Search","Search","click","try-stock",{ui:{filter:a.Z.getSearchType()}}),a.Z.setSearchType("stock")},this.onLibrariesSearchClick=()=>{l.ZP.reportEvent("Search","Search","click","try-all-libraries",{ui:{filter:a.Z.getSearchType()}}),a.Z.setSearchType("libraries")}}static getHeight(e){return(0,c.fk)((0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_TITLE"),"panel-contents-bottom-message-text",e)+(0,c.fk)((0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_ALL_LIBRARIES"),"panel-contents-bottom-message-link",e)+(!a.Z.isDocumentSearchMode()&&(0,c.fk)((0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_STOCK"),"panel-contents-bottom-message-link",e)||0)+72}get searchStockLink(){if(!(p.Z.currentProduct.config.disableStockSearch||a.Z.isDocumentSearchType()||a.Z.isStockSearchMode()))return n.createElement("div",{className:"panel-contents-bottom-message-link","data-test-id":"search-result-bottom-message-stock-search",onClick:this.onStockSearchClick},(0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_STOCK"))}render(){return a.Z.isLibrariesSearchMode()||u.ZP.disableCCLibraries||p.Z.currentProduct.config.disableSearchSourceSelection?null:n.createElement("div",{className:"panel-contents-bottom-message","data-test-id":"search-result-bottom-message"},!this.props.hidePromptText&&n.createElement("div",{className:"panel-contents-bottom-message-text","data-test-id":"search-result-bottom-message-title"},(0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_TITLE")),!p.Z.currentProduct.config.disableAllLibrariesElementSearch&&n.createElement("div",{className:"panel-contents-bottom-message-link","data-test-id":"search-result-bottom-message-libraries-search",onClick:this.onLibrariesSearchClick},(0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_ALL_LIBRARIES")),this.searchStockLink)}}d.defaultProps={hidePromptText:!1},d.propTypes={hidePromptText:o().bool}},85080:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,i,o=r(50265),a=r(99409),s=r(16993),c=r(2169),l=r(76485);let u=(n=class{constructor(e={}){var t,r,n,o;t=this,r="_isOpen",o=this,(n=i)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(o):void 0}),this._prevDimensions=null,this._globalHide=e=>{let t=!1;l.Z.flyoutMenuClickEvent&&(t=(null==e?void 0:e.type)===l.Z.flyoutMenuClickEvent);const r=!e||!this._parentElements||this._parentElements.every((t=>!t||!(0,c.rP)(e,t)));!t&&r&&this.hideOverlay()},this._resizeHide=()=>{l.Z.hasUXPResizeBug||this._globalHide();const e={width:l.Z.getPanelWidth(),height:l.Z.getPanelHeight()};this._prevDimensions&&JSON.stringify(this._prevDimensions)!==JSON.stringify(e)?this.hideOverlay():this._prevDimensions=e},this.setParentElement=e=>{this._parentElements=Array.isArray(e)?e:[e]},this._hideOnEscapeKey=e=>{"Escape"===e.key&&this._globalHide()},this._doHideOverlay=()=>this.hideOverlay(),this._options=e,this._hideEvent=e.hideEvent||"click",e.isOpen&&this._openOverlay()}get _focusEvent(){const e=this._parentElements&&this._parentElements.find((e=>e));return e&&e.shadowRoot?"keyup":"focusin"}getParentElement(){return this._parentElements}get isOpen(){return this._isOpen}_openOverlay(){this._options.ignoreAllEvents||(this._options.ignoreClickOutsideEvent||window.addEventListener(this._hideEvent,this._globalHide,!0),window.addEventListener("contextmenu",this._globalHide,!0),window.addEventListener("dragstart",this._globalHide,!0),a.Z.addListener("flyoutMenuClicked",this._globalHide),a.Z.addListener("flyoutMenuOpened",this._globalHide),l.Z.addEventListener("canvasClick",this._globalHide),this._options.ignoreResizeEvents||window.addEventListener("resize",this._resizeHide,!0),this._options.ignoreScrollEvents||window.addEventListener("scroll",this._globalHide,!0),this._options.ignoreViewState||s.Z.addListener("resetMode",this._doHideOverlay),this._options.ignoreFocus||window.addEventListener(this._focusEvent,this._globalHide,!0),this._options.ignoreEscape||window.addEventListener("keydown",this._hideOnEscapeKey,!0)),this._isOpen=!0}hideOverlay(){this.isOpen&&(this._options.ignoreAllEvents||(this._options.ignoreClickOutsideEvent||window.removeEventListener(this._hideEvent,this._globalHide,!0),window.removeEventListener("contextmenu",this._globalHide,!0),window.removeEventListener("dragstart",this._globalHide,!0),a.Z.removeListener("flyoutMenuClicked",this._globalHide),a.Z.removeListener("flyoutMenuOpened",this._globalHide),l.Z.removeEventListener("canvasClick",this._globalHide),this._options.ignoreResizeEvents||window.removeEventListener("resize",this._resizeHide,!0),this._options.ignoreScrollEvents||window.removeEventListener("scroll",this._globalHide,!0),this._options.ignoreViewState||s.Z.removeListener("resetMode",this._doHideOverlay),this._options.ignoreFocus||window.removeEventListener(this._focusEvent,this._globalHide,!0),this._options.ignoreEscape||window.removeEventListener("keydown",this._hideOnEscapeKey,!0)),this._isOpen=!1,this._prevDimensions=null,this._options.onClose&&this._options.onClose())}toggleOverlay(){if(this.isOpen)return this.hideOverlay();this._openOverlay(),this._options.onOpen&&this._options.onOpen()}},p=n.prototype,d="_isOpen",h=[o.observable],f={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},g={},Object.keys(f).forEach((function(e){g[e]=f[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=h.slice().reverse().reduce((function(e,t){return t(p,d,e)||e}),g),m&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(m):void 0,g.initializer=void 0),void 0===g.initializer&&(Object.defineProperty(p,d,g),g=null),i=g,n);var p,d,h,f,m,g},77227:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n,i,o,a,s,c,l,u=r(50265),p=r(69233),d=r(48919),h=r(99386);function f(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 m(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const g=h.Z.VIEW_BY_GROUP_MODES,v=/^ /,y=/ {2}/,b=/ \//;let _=(n=u.observable.ref,i=u.observable.ref,o=u.observable.ref,s=m((a=class{constructor(){f(this,"_group",s,this),f(this,"_inputElement",c,this),this._isNewGroup=!1,f(this,"_livePath",l,this),this.setInputElement=e=>{this._inputElement=e}}get group(){return this._group}get viewByGroupMode(){return d.Z.panel.viewState.viewByGroupMode}get maxDepth(){return this.group?this.viewByGroupMode===g.TREE?this._groupPath.length-1:this.group.library.pathViewMaxDepth||0:0}get inputElement(){return this._inputElement}get isNewGroup(){return this._isNewGroup}get _groupPath(){return[...(0,p._y)(this.group),this.group]}get groupPath(){return this.group?this._groupPath.slice(this.maxDepth):[]}get changesToCommit(){return!!this._commitPath.length&&(this._groupPath.length!==this._commitPath.length||!!this._commitPath.filter(((e,t)=>e!==this._groupPath[t])).length)}get _commitPath(){return this.matchedPath.filter((e=>e.name))}get matchedPath(){return this.isEditing?(0,p.aX)(this.group.library,this._groupPath,this.livePath,this.maxDepth):[]}get headIndex(){return this.livePath.length-1}get head(){return this.livePath[this.headIndex]}getAutocompleteResultsForPath(e){const t=e.length-1,r=!e.length||!e[t].name.length,n=e[t-1];if(n&&!n.isGroup)return[];if(r)return n?n.children:(0,p.GN)(this.group.library);const i=e[t],o=(e,t)=>e.toLowerCase().includes(t.toLowerCase());return n?i.name?n.getFilteredChildren((e=>o(e.name,i.name.trim()))):[]:this.group.library.getFilteredGroups(void 0,(e=>!e.parent&&o(e.name,i.name.trim())))}get autocompleteResults(){return this.isEditing?this.getAutocompleteResultsForPath(this.matchedPath):[]}get livePath(){return this._livePath}get isEditing(){return!(!this._group||!this._livePath.length)}startEdit(e,t=!1){this._group=e,this._isNewGroup=t,this.reset()}stopEdit(){this._group=null,this._isNewGroup=!1,this._livePath=[],this.setInputElement(null)}commitEdit(){if(this.changesToCommit){const e=this._commitPath[this._commitPath.length-1].isGroup&&this.viewByGroupMode===h.Z.VIEW_BY_GROUP_MODES.TREE,t=e&&(0,p.GI)(this.group.library);if(d.Z.panel.viewState.clearAllSelections(),(0,p.eV)(this.group,this._commitPath,{deleteEmpty:!0}),e){const e=()=>(0,p.r5)(t);d.Z.panel.toastManager.openToast("undoMergeGroups",{undo:e})}}this.stopEdit()}reset(){this._livePath=this.groupPath.slice()}getNewGroupEntry(e){return{name:e||""}}_escapeName(e){return e=(e=(e=(e=e.replace(b,"")).replace(y," ")).replace(v,"")).replace("/"," ")}addEntry(e){this._livePath.push(this.getNewGroupEntry(e)),this._livePath=this._livePath.slice()}updateEntry(e,t){if(this._livePath[e].disableEditing)return;const r=this._livePath[e].isGroup?this.getNewGroupEntry():this._livePath[e];r.name=this._escapeName(t),this._livePath[e]=r,this._livePath=this._livePath.slice(0,e+1)}deleteEntry(e){this._livePath[e].disableEditing||(this._livePath=this._livePath.slice(0,e))}}).prototype,"_group",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=m(a.prototype,"_inputElement",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=m(a.prototype,"_livePath",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m(a.prototype,"_groupPath",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"_groupPath"),a.prototype),m(a.prototype,"groupPath",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"groupPath"),a.prototype),m(a.prototype,"changesToCommit",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"changesToCommit"),a.prototype),m(a.prototype,"_commitPath",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"_commitPath"),a.prototype),m(a.prototype,"matchedPath",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"matchedPath"),a.prototype),m(a.prototype,"headIndex",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"headIndex"),a.prototype),m(a.prototype,"head",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"head"),a.prototype),m(a.prototype,"autocompleteResults",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"autocompleteResults"),a.prototype),a)},99386:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{constructor(){this.EXTENSION_ID="com.adobe.DesignLibraries.angular",this.MANAGER_EXTENSION_ID="com.adobe.cclibraries.manager",this.STOCK_PURCHASE_EXTENSION_ID="com.adobe.stock.panel.licensing-embedded",this.PROFILE_CHANGE_EVENT_ID="com.adobe.csxs.events.ProfileChanged",this.strTempFolder="",this.showTooltips=!0,this.DRAGDROP_SOURCE="com.adobe.designlibrary",this.UNGROUPED_GROUP={id:"*",isGroup:!0},this.MAX_DRAG_DISPLAY_COUNT=99,this.DRAG_COUNT_TRIGGER_MAX=3,this.PATH_VIEW_GROUP_SEPARATOR=" / ",this.nativeProxy=void 0,this.SYNC_NOTIFICATIONS_AVAILABLE=!1,this.APP_NAME="",this.SUPPORTED_PRODUCTS=[],this.currentProduct=void 0,this.SHARE_LINK_HOST_TYPE_PARAM="cclibrariespanel",this.LEARN_MORE_URL_ROOT="https://www.adobe.com/go/cclibraries_help",this.LIBRARY_MANAGEMENT_URL_ROOT="https://www.adobe.com/go/library-management",this.PATH_VIEW_URL_ROOT="https://www.adobe.com/go/learn-more-path-view",this.SERVICE_ERROR_URL_ROOT="https://www.adobe.com/go/process_error",this.INSTALL_CC_APP_URL_ROOT="https://www.adobe.com/go/cc_install",this.UPDATE_CC_APP_URL_ROOT="https://www.adobe.com/go/process_update",this.UPDATE_CC_LIBRARIES_URL_ROOT="https://www.adobe.com/go/panel_update",this.WHATS_NEW_URL_ROOT="https://www.adobe.com/go/cclibs-whats-new",this.STOCK_LICENSE_INFORMATION_URL_ROOT="https://www.adobe.com/go/stock-license-terms",this.FEEDBACK_URL_ROOT="https://www.adobe.com/go/libraries-feedback",this.TEAM_LIBRARIES_URL_ROOT="https://www.adobe.com/go/learn_more_team_libraries",this.BUSINESS_STORAGE_URL_ROOT="https://helpx.adobe.com/enterprise/using/libraries-in-business-storage.html",this.LEARN_MORE_QUOTA_URL_ROOT="https://www.adobe.com/go/learn_more_quota",this.LEARN_MORE_TEAMS_URL_ROOT="https://www.adobe.com/go/cclibraries_teams_learn_more",this.LEARN_MORE_COLLABORATION_URL_ROOT="https://www.adobe.com/go/creative-cloud-collaboration",this.OFFICE_INSTRUCTIONS_URL_ROOT="https://www.adobe.com/go/libraries-microsoft-add-in",this.DELETE_HELPX_ROOT="https://www.adobe.com/go/cc-delete-files",this.PUBLISH_LEARN_MORE_ROOT="https://www.adobe.com/go/brandspublishing",this.XD_UI_KITS_ROOT="http://www.adobe.com/go/xd_ui_kits_more",this.XD_MISSING_LINKS_ASK_FOR_ACCESS_LEARN_MORE="http://www.adobe.com/go/xd_missinglinks",this.XD_MIGRATE_TO_CCLIBRARIES_LEARN_MORE="http://www.adobe.com/go/xd_designsys_migration_libraries_learnmore",this.XD_GROUP_LEARN_MORE="https://www.adobe.com/go/xd_pt_pathview",this.LIBRARIES_VIEW_STATES={GRID:"grid",LIST:"list"},this.ELEMENTS_VIEW_STATES={GRID:"grid",LIST:"list"},this.AVAILABLE_HELP_LANGUAGES={ae:!0,br:!0,cn:!0,cz:!0,dk:!0,de:!0,en:!0,es:!0,fi:!0,fr:!0,hu:!0,il:!0,it:!0,jp:!0,mx:!0,kr:!0,no:!0,nl:!0,pl:!0,ru:!0,se:!0,tr:!0,tw:!0,ua:!0},this.DEFAULT_HELP_LANGUAGE="en",this.TEST_LOCALE="zz_ZZ",this.FLOODGATE_CLIENT_ID="CCXWeb1",this.FLOODGATE_URL="https://ZZZZ/fg/api/v3/feature",this.FLOODGATE_LIBRARIES_CLIENT_ID="CCLibraries",this.FLOODGATE_BRANDS_CLIENT_ID="unified_brand_service",this.ASSETS_WEB_SPECIALTY_LANGUAGE_MAP={"zh-CN":"zh-Hans","zh-TW":"zh-Hant"},this.CCWEB_ELEMENT_URL="https://ZZZZ/libraries/YYYY/XXXX",this.CCWEB_LIBRARIES_URL="https://ZZZZ/libraries/YYYY",this.CCWEB_LIBRARY_ARCHIVE_URL="https://ZZZZ/assets/libraries/YYYY?filter=archive",this.CCWEB_LIBRARIES_ARCHIVE_URL="https://ZZZZ/deleted",this.CCWEB_TEAM_LIBRARIES_URL="https://www.adobe.com/go/browse-more-libraries",this.CCWEB_BROWSE_ALL_URL="https://ZZZZ/more-libraries",this.CCWEB_MARKETPLACE_STAGE="https://stage.creativecloud.adobe.com/cc/libraries/?locale=ZZZZ",this.CCWEB_MARKETPLACE_PROD="https://creativecloud.adobe.com/cc/libraries/?locale=ZZZZ",this.EXPRESS_STAGE="https://stage.projectx.corp.adobe.com/your-stuff/ZZZZ/XXXX",this.EXPRESS_PROD="https://new.express.adobe.com/your-stuff/ZZZZ/XXXX",this.CCWEB_LIBRARIES_ROUTE_SELECTOR=/^\/(?:libraries|brands)[/]?([^/]+)?$/,this.ASSET_ID_SELECTOR=new RegExp("^urn:aaid:sc:([a-z]{2}.*):[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}$","i"),this.LIBRARY_ID_SELECTOR=new RegExp("^[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}$","i"),this.PUBLIC_LIBRARY_URL="https://ZZZZ/link/YYYY",this.CREATIVE_CLOUD_ID="creative_cloud",this.FIREFLY_RECIPE_TYPE="application/vnd.adobe.firefly-recipe+dcx",this.IMAGE_ELEMENT_TYPE="application/vnd.adobe.element.image+dcx",this.CHANNEL_ELEMENT_TYPE="application/vnd.adobe.element.channel+dcx",this.COLOR_ELEMENT_TYPE="application/vnd.adobe.element.color+dcx",this.COLOR_THEME_ELEMENT_TYPE="application/vnd.adobe.element.colortheme+dcx",this.BRUSH_ELEMENT_TYPE="application/vnd.adobe.element.brush+dcx",this.CHARACTER_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.characterstyle+dcx",this.PARAGRAPH_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.paragraphstyle+dcx",this.FONT_ELEMENT_TYPE="application/vnd.adobe.element.font+dcx",this.LAYER_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.layerstyle+dcx",this.LOOK_ELEMENT_TYPE="application/vnd.adobe.element.look+dcx",this.CAPSULE_ELEMENT_TYPE="application/vnd.adobe.element.graphic+dcx",this.VIDEO_ELEMENT_TYPE="application/vnd.adobe.element.video+dcx",this.THREE_D_ELEMENT_TYPE="application/vnd.adobe.element.3d+dcx",this.LIGHT_ELEMENT_TYPE="application/vnd.adobe.element.light+dcx",this.MATERIAL_ELEMENT_TYPE="application/vnd.adobe.element.material+dcx",this.PATTERN_ELEMENT_TYPE="application/vnd.adobe.element.pattern+dcx",this.TEMPLATE_ELEMENT_TYPE="application/vnd.adobe.element.template+dcx",this.TEXT_ELEMENT_TYPE="application/vnd.adobe.element.text+dcx",this.ANIMATION_ELEMENT_TYPE="application/vnd.adobe.element.animation+dcx",this.LIBRARY_TYPE="application/vnd.adobe.library+dcx",this.GRADIENT_ELEMENT_TYPE="application/vnd.adobe.element.gradient+dcx",this.COMPONENT_ELEMENT_TYPE="application/vnd.adobe.element.component+dcx",this.AUDIO_ELEMENT_TYPE="application/vnd.adobe.element.audio+dcx",this.IMAGE_GUIDELINE_ELEMENT_TYPE="application/vnd.adobe.element.imageguideline+dcx",this.ROLE_TYPE_BRAND="brand",this.ROLE_LOGO="logo",this.ROLE_HEADER="header",this.ROLE_BODY="body",this.ROLE_PRIORITY_PRIMARY="primary",this.ROLE_PRIORITY_SECONDARY="secondary",this.ROLE_VERIFIED="approvedbrand",this.FETCH_COLLABORATIONS_THROTTLE=18e5,this.FETCH_INVITATIONS_THROTTLE=3e5,this.FETCH_TEAM_LIBS_THROTTLE=18e4,this.IMAGE_THUMBNAIL_SIZE=202,this.LOOK_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.CAPSULE_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.VIDEO_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.THREE_D_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.LIGHT_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.MATERIAL_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.BRUSH_THUMBNAIL_SIZE=124,this.CHARACTER_STYLE_THUMBNAIL_SIZE=104,this.PARAGRAPH_STYLE_THUMBNAIL_SIZE=this.CHARACTER_STYLE_THUMBNAIL_SIZE,this.FONT_THUMBNAIL_SIZE=this.CHARACTER_STYLE_THUMBNAIL_SIZE,this.LAYER_STYLE_THUMBNAIL_SIZE=108,this.PATTERN_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.TEMPLATE_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.TEXT_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.ANIMATION_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.COMPONENT_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.AUDIO_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.LARGE_THUMBNAIL_SIZE=400,this.MAX_INPUT_STRING_LENGTH=248,this.MAX_REMAINING_CHARACTERS_LENGTH=50,this.GROUP_GRID_WIDTH=95,this.GROUP_GRID_HEIGHT=60,this.QUOTA_WARNING_THRESHOLD=70,this.BYTE_MULTIPLIER=1024,this.MEGABYTE_MULTIPLIER=1048576,this.WARN_EXTENDED_UPLOAD_TIME=3e4,this.GRID_MINIMUM_BREAKPOINT=290,this.GRID_VIEW_BREAKPOINT_SIZE=110,this.GRID_TYPE_LARGE="large",this.GRID_TYPE_MEDIUM="medium",this.GRID_TYPE_SMALL="small",this.GRID_TYPE_WIDE="wide",this.GRID_TYPE_WIDE_SET_HEIGHT=54,this.MAX_CONTEXT_MENU_WIDTH=200,this.GRID_VIEW_NAME_HEIGHT=16,this.EXPANDED_GRID_VIEW_NAME_HEIGHT=28,this.GRID_SIZE_TYPES=[this.GRID_TYPE_LARGE,this.GRID_TYPE_MEDIUM,this.GRID_TYPE_SMALL,this.GRID_TYPE_WIDE],this.ELEMENT_BACKGROUNDS={CHECKERED:"checkered",SOLID:"solid"},this.THUMBNAIL_RENDERER_DEBOUNCE=300,this.OPEN_SHARESHEET_TIMEOUT=1e4,this.MAX_LIBRARIES_ONBOARDING=3,this.SUBGROUP_INDENT_PERCENT=.15,this.MAX_SUBGROUP_INDENT=16,this.SHORT_FONT_PREVIEW_TEXT="Ag",this.DEFAULT_MAX_PREVIEW_FONT_SIZE=20,this.DEFAULT_MIN_PREVIEW_FONT_SIZE=11,this.DEFAULT_PREVIEW_FONT_SIZE=12,this.ONE_UP_ELEMENT_VIEW_MAX_PREVIEW_FONT_SIZE=60,this.LIST_VIEW_PREVIEW_FONT_SIZE=20,this.MOSAIC_VIEW_QUARTER_PREVIEW_FONT_SIZE=45,this.MOSAIC_VIEW_FULL_PREVIEW_FONT_SIZE=80,this.GRID_MEDIUM_PREVIEW_FONT_SIZE=27,this.GRID_LARGE_PREVIEW_FONT_SIZE=45,this.MANAGER_CEP_EVENTS={INIT:"com.adobe.cclibraries.manager.init",CLOSE:"com.adobe.csxs.events.ExtensionUnloaded",OPEN_DIALOG:"com.adobe.cclibraries.manager.openDialog"},this.RECENT_SEARCH_TIMER=3e3,this.STORED_RECENT_LIBRARIES_SEARCH_LIMIT=15,this.STORED_RECENT_STOCK_SEARCH_LIMIT=5,this.STORED_RECENT_SEARCH_DISPLAY_LIMIT=5,this.STORED_RECENT_SEARCH_LIBRARIES_KEY="libraries",this.STORED_RECENT_SEARCH_STOCK_KEY="stock",this.STOCK_NAMESPACE="adobestock",this.STOCK_DATA_KEY="trackingdata",this.STOCK_CLIENT_ID="AdobeStockClient2",this.STOCK_TARGET_SCOPE="AdobeID,openid,creative_cloud,creative_sdk,cc_private,gnav,sao.stock,additional_info.address.mail_to,additional_info.dob,read_organizations,read_pc.stock,read_pc.stock_credits,additional_info.roles,sao.cce_private,account_cluster.read",this.STOCK_GET_USER_PROFILE_PATH="/Rest/Libraries/1/Member/Profile?locale=ZZZZ&content_id=YYYY&license=LLLL&format=message_ccx",this.STOCK_LICENSE_PATH="/Rest/Libraries/1/Content/License?content_id=ZZZZ&license=LLLL",this.STOCK_METADATA_PATH="/Rest/Media/1/Files",this.STOCK_INFO_PATH="/Rest/Libraries/1/Content/Info?content_id=ZZZZ",this.STOCK_SEARCH_PATH="/Search",this.STOCK_SEARCH_API_PATH="/Rest/Media/1/Search/Files",this.STOCK_ABANDON_TRANSACTION_PATH="/Rest/Libraries/1/Member/Abandon?&state=ZZZZ&content_id=YYYY&license=LLLL",this.INVITATIONS_COLLABORATIONS_API_PATH="/api/v4/share",this.INVITATIONS_CAPABILITIES_API_PATH="/api/v4/capabilities",this.INVITATIONS_PENDING_API_PATH="/api/v4/invitations",this.INVITATIONS_ACCEPT_API_PATH="/api/v4/invitations/id",this.STOCK_LICENSE_TYPE_STANDARD="Standard",this.STOCK_LICENSE_TYPE_EXTENDED="Extended",this.STOCK_LICENSE_TYPE_SMALL="Standard_M",this.STOCK_IMAGE_LICENSE_TYPE_SMALL={label:"DL_STOCK_LICENSE_TYPE_SMALL",field:"Standard_M"},this.STOCK_IMAGE_LICENSE_TYPE_FULL={label:"DL_STOCK_LICENSE_TYPE_FULL",field:"Standard"},this.STOCK_IMAGE_LICENSE_TYPES=[this.STOCK_IMAGE_LICENSE_TYPE_FULL,this.STOCK_IMAGE_LICENSE_TYPE_SMALL],this.STOCK_VIDEO_LICENSE_TYPE_HD={label:"HD",field:"Video_HD"},this.STOCK_VIDEO_LICENSE_TYPE_4K={label:"4K",field:"Video_4K"},this.STOCK_VIDEO_LICENSE_TYPES=[this.STOCK_VIDEO_LICENSE_TYPE_4K,this.STOCK_VIDEO_LICENSE_TYPE_HD],this.STOCK_STATE_PURCHASED="purchased",this.STOCK_STATE_NOT_PURCHASED="not_purchased",this.STOCK_STATE_CANCELLED="cancelled",this.STOCK_SEARCH_RESULT_SIZE=50,this.NOTES_MAX_CHARACTER_COUNT=130,this.STOCK_SEARCH_TIMEOUT=3e4,this.STOCK_SIMILARITY_THUMBNAIL_SIZE=640,this.STOCK_SEARCH_OPTION_PHOTO={label:"DL_STOCK_SEARCH_OPTION_PHOTO",id:"photo",param:"photo"},this.STOCK_SEARCH_OPTION_ILLUSTRATION={label:"DL_STOCK_SEARCH_OPTION_ILLUSTRATION",id:"illustration",param:"illustration"},this.STOCK_SEARCH_OPTION_VECTOR={label:"DL_STOCK_SEARCH_OPTION_VECTOR",id:"vector",param:"vector"},this.STOCK_SEARCH_OPTION_VIDEO={label:"DL_STOCK_SEARCH_OPTION_VIDEO",id:"video",param:"video"},this.STOCK_SEARCH_OPTION_TEMPLATE={label:"DL_STOCK_SEARCH_OPTION_TEMPLATE",id:"template",param:"template"},this.STOCK_SEARCH_OPTION_3D={label:"DL_STOCK_SEARCH_OPTION_3D",id:"3d",param:"3d"},this.STOCK_SEARCH_SUB_FILTER_MODEL={label:"DL_TYPE_3D",id:"3d_1",param:"3d",filterKey:"3d_type_id",filterValue:1,isArray:!0},this.STOCK_SEARCH_SUB_FILTER_LIGHT={label:"DL_TYPE_LIGHT",id:"3d_2",param:"3d",filterKey:"3d_type_id",filterValue:2,isArray:!0},this.STOCK_SEARCH_SUB_FILTER_MATERIAL={label:"DL_TYPE_MATERIAL",id:"3d_3",param:"3d",filterKey:"3d_type_id",filterValue:3,isArray:!0},this.STOCK_SEARCH_OPTION_PREMIUM={label:"DL_STOCK_SEARCH_OPTION_PREMIUM",id:"premium",filterKey:"premium",filterValue:"true"},this.STOCK_SEARCH_OPTIONS=[this.STOCK_SEARCH_OPTION_PHOTO,this.STOCK_SEARCH_OPTION_ILLUSTRATION,this.STOCK_SEARCH_OPTION_VECTOR,this.STOCK_SEARCH_OPTION_VIDEO,this.STOCK_SEARCH_OPTION_TEMPLATE,this.STOCK_SEARCH_OPTION_3D,this.STOCK_SEARCH_OPTION_PREMIUM,this.STOCK_SEARCH_SUB_FILTER_MODEL,this.STOCK_SEARCH_SUB_FILTER_LIGHT,this.STOCK_SEARCH_SUB_FILTER_MATERIAL],this.STOCK_SEARCH_UI_OPTIONS=[this.STOCK_SEARCH_OPTION_PHOTO,this.STOCK_SEARCH_OPTION_ILLUSTRATION,this.STOCK_SEARCH_OPTION_VECTOR,this.STOCK_SEARCH_OPTION_VIDEO,this.STOCK_SEARCH_OPTION_TEMPLATE,this.STOCK_SEARCH_OPTION_3D,this.STOCK_SEARCH_OPTION_PREMIUM],this.STOCK_SEARCH_PRODUCT_TEMPLATE_ID_MAP={PHXS:[1],ILST:[2],IDSN:[3],PPRO:[5]},this.STOCK_SEARCH_PRODUCT_MOGRT_VERSION_MAP={PPRO:{"13.1.0":"1.5","13.0.0":"1.4","12.0.0":"1.3"}},this.STOCK_CORE_CONTENT_LEVEL_ID=0,this.STOCK_FREE_CONTENT_LEVEL_ID=1,this.STOCK_PREMIUM_CONTENT_LEVEL_IDS=[2,3,4],this.STOCK_TEMPLATES_SUPPORTED_PRODUCTS=["PHXS","PHXS_UXP","ILST","IDSN","PPRO","KBRG"],this.AGC_REPRESENTATION_TYPE="application/vnd.adobe.element.agc+json",this.NXD_REPRESENTATION_TYPE="application/vnd.adobe.element.nxd+json",this.COLOR_NAMESPACE="color",this.COLOR_DATA_KEY="data",this.COLOR_REPRESENTATION_TYPE="application/vnd.adobe.color+json",this.DEFAULT_SRGB_PROFILE="sRGB IEC61966-2.1",this.COLOR_THEME_DATA_KEY="data",this.COLOR_THEME_NAMESPACE="colortheme",this.COLOR_THEME_REPRESENTATION_TYPE="application/vnd.adobe.colortheme+json",this.GRADIENT_NAMESPACE="gradient",this.GRADIENT_DATA_KEY="data",this.GRADIENT_REPRESENTATION_TYPE="application/vnd.adobe.gradient+json",this.CHARACTER_STYLE_REPRESENTATION="application/vnd.adobe.characterstyle+json",this.FONT_NAMESPACE="font",this.FONT_DATA_KEY="data",this.FONT_REPRESENTATION_TYPE="application/vnd.adobe.font+json",this.THREE_D_NAMESPACE="3d",this.THREE_D_DATA_KEY="data",this.TEXT_REPRESENTATION_ID_SNIPPET_TYPE="application/vnd.adobe.indesign-idms-text",this.TEXT_REPRESENTATION_JSON_TYPE="application/vnd.adobe.text+json",this.TEXT_NAMESPACE="text",this.TEXT_DATA_KEY="data",this.CAPSULE_DEFINITION_REPRESENTATION_TYPE="application/vnd.adobe.graphic+json",this.CAPSULE_NAMESPACE="graphic",this.CAPSULE_DATA_KEY="data",this.VIDEO_NAMESPACE="video",this.AUDIO_NAMESPACE="audio",this.PUBLIC_LINK_CLIENT_ID="CCXPublicLinks1",this.PUBLIC_LINK_TARGET_SCOPE="AdobeID,openid,gnav,sao.cce_private,sao.ccprivate,creative_cloud,sao.ccpublish,additional_info.roles",this.LIBRARY_SNAPSHOT_EXTENSION="cclibs",this.LIBRARY_CLOUD_EXTENSION="cclibc",this.LIBRARY_ALLOWED_EXTENSIONS=[this.LIBRARY_SNAPSHOT_EXTENSION,this.LIBRARY_CLOUD_EXTENSION],this.NATIVE_DROP_ALLOWED_FILE_EXTENSIONS=["ai","png","bmp","psd","svg","gif","jpg","jpeg","tif","tiff","pdf","heic","heif","dng","psdt","ait","indt","fla","mp4","mov","wmv","mpeg","mpg","wav","aac","mp3","mp2","m4a","aiff","aif","aifc","mdl","sbsar","glb","gltf","obj","dn","usdz","ibl","fbx","exr","hdr",this.LIBRARY_SNAPSHOT_EXTENSION,this.LIBRARY_CLOUD_EXTENSION],this.NATIVE_DROP_FILES_SLOW_PERFORMANCE_THRESHOLD=500,this.NATIVE_DROP_MAX_FILE_COUNT=1e3,this.DEFAULT_ELEMENTS_PER_CATEGORY=50,this.SHOW_MORE_STAGGER_INTERVAL=3,this.THEME_COLOR_CHANGED_EVENT="com.adobe.csxs.events.ThemeColorChanged",this.THEME_COLOR_CHANGED_EVENT_UXP="themechanged",this.CONTEXT_MENUS_ENABLED=!0,this.IS_APP_IN_TOUCH_MODE=!1,this.RECENTS_LIST_LIMIT=5,this.RECENTS_LIST_LIBRARY_MIN=8,this.RECENT_LIBRARY_ID_FLAG="-recent",this.DEFAULT_TOAST_TIMEOUT=3e3,this.UNDO_TOAST_TIMEOUT=5e3,this.TOAST_FADEOUT=500,this.IMPORT_EXPORT_DEFAULT_FOLDER="CC Library",this.SLOW_COPY_MOVE_THRESHOLD=200,this.CONTRAST_THRESHOLD=10,this.MAX_ONEUP_ELEMENT_CONTEXT_MENU_ITEMS=30,this.SELECTION_CHANGE_THROTTLE=100,this.AUTO_SCROLL_GROUP_SELECT_DEBOUNCE=300,this.WINDOW_RESIZE_DEBOUNCE=200,this.ANALYTICS_PROJECT="cclib-panel",this.ANALYTICS_INGEST_TYPE="dunamis",this.ANALYTICS_MAX_QUEUED_EVENTS=50,this.ANALYTICS_DEBOUNCE=15e3,this.DISABLE_CREATE_ELEMENT_METRIC_OPTYPES=["publish"],this.GROUPS_TREE_CACHE_KEEPALIVE_TIME=3e5,this.THUMBNAIL_CACHE_KEEPALIVE_TIME=3e5,this.AUTO_GROUPS_ORDER=["DL_AUTOGROUP_COLORS","DL_AUTOGROUP_TYPOGRAPHY","DL_AUTOGROUP_STYLES","DL_AUTOGROUP_BRUSHES","DL_AUTOGROUP_VECTORS","DL_AUTOGROUP_IMAGES","DL_AUTOGROUP_MOTION","DL_AUTOGROUP_3D","DL_AUTOGROUP_TEMPLATES","DL_AUTOGROUP_UNKNOWN"],this.EXPORTABLE_ELEMENT_TYPES=[this.IMAGE_ELEMENT_TYPE,this.ANIMATION_ELEMENT_TYPE,this.VIDEO_ELEMENT_TYPE,this.THREE_D_ELEMENT_TYPE,this.AUDIO_ELEMENT_TYPE],this.DRAGOUT_ELEMENT_TYPES=[this.ANIMATION_ELEMENT_TYPE,this.IMAGE_ELEMENT_TYPE,this.TEMPLATE_ELEMENT_TYPE,this.VIDEO_ELEMENT_TYPE,this.THREE_D_ELEMENT_TYPE],this.TOOLKIT_TYPES=["photoshop_swatches","photoshop_brushes","photoshop_gradients","photoshop_patterns","photoshop_styles","photoshop_shapes"],this.WINDOWS_RESERVED_NAMES=["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"],this.RENAME_STATES={VALID:"VALID",SLASH_ELEMENT:"SLASH_ELEMENT",SLASH_GROUP:"SLASH_GROUP",INVALID_CHARACTER:"INVALID_CHARACTER",INVALID_LIBRARY_PERIOD:"INVALID_LIBRARY_PERIOD",INVALID_LIBRARY_LENGTH:"INVALID_LIBRARY_LENGTH",DUPLICATE_LIBRARY:"DUPLICATE_LIBRARY",DUPLICATE_GROUP:"DUPLICATE_GROUP"},this.RENAME_STATE_ERROR_MESSAGES={[`${this.RENAME_STATES.SLASH_ELEMENT}`]:"DL_EDIT_NAME_INVALID_SLASH",[`${this.RENAME_STATES.SLASH_GROUP}`]:this.currentProduct&&this.currentProduct.config.invalidGroupNameSlashMessage||"DL_GROUP_NAME_INVALID_SLASHES",[`${this.RENAME_STATES.INVALID_CHARACTER}`]:"DL_LIBRARY_NAME_INVALID",[`${this.RENAME_STATES.DUPLICATE_LIBRARY}`]:"DL_LIBRARY_NAME_DUPLICATE",[`${this.RENAME_STATES.INVALID_LIBRARY_LENGTH}`]:"DL_LIBRARY_NAME_REMAINING_CHARACTERS",[`${this.RENAME_STATES.INVALID_LIBRARY_PERIOD}`]:"DL_LIBRARY_NAME_PERIOD_END",[`${this.RENAME_STATES.DUPLICATE_GROUP}`]:"DL_GROUP_NAME_DUPLICATE"},this.ASSET_LINK_STATES={NORMAL:"NORMAL",PENDING_UPDATE:"PENDING_UPDATE",MISSING_ELEMENT:"MISSING_ELEMENT",MISSING_LIBRARY:"MISSING_LIBRARY",NEED_TO_FOLLOW:"NEED_TO_FOLLOW",SYNCING:"SYNCING",PENDING_INVITE:"PENDING_INVITE",BROKEN:"BROKEN",FILE_MISSING:"FILE_MISSING"},this.XD_ASSET_LINK_REFERENCE_TYPES={CCLIBRARIES_ELEMENT:"CCLIBRARIES_ELEMENT",LEGACY_CCLIBRARIES_ELEMENT:"LEGACY_CCLIBRARIES_ELEMENT",LEGACY_DOCUMENT_ASSET:"LEGACY_DOCUMENT_ASSET",LEGACY_CLOUD_DOCUMENT_ASSET:"LEGACY_CLOUD_DOCUMENT_ASSET"},this.SAM_LINK_STATES={NORMAL:"UpToDate",PENDING_METADATA_UPDATE:"MetadataOutOfDate",PENDING_UPDATE:"OutOfDate",RESTRICTED:"Restricted",DISCARDED:"Discarded",BROKEN:"Broken"},this.SAM_PERMISSIONS={READ:"Read",WRITE:"Write",DELETE:"Delete",SHARE:"Share",MOVE:"Move",RENAME:"Rename",ALL:"All",ACK:"Ack",NONE:"None",EDIT:"Edit",VIEW:"View"},this.SAM_LEGACY_PERMISSIONS_MAP={Edit:this.SAM_PERMISSIONS.WRITE,View:this.SAM_PERMISSIONS.READ},this.DOCUMENT_LIBRARY_STATES={LOADING:"LOADING",NOT_PUBLISHED:"NOT_PUBLISHED",PUBLISHED:"PUBLISHED",PUBLISHING:"PUBLISHING",COEDITOR_PUBLISHING:"COEDITOR_PUBLISHING",UNPUBLISHED_CHANGES:"UNPUBLISHED_CHANGES",NOT_FOUND:"NOT_FOUND"},this.DOCUMENT_ASSETS_MESSAGES={RECEIVE_ASSETS:"ccac.dap.in.notify.assets",RECEIVE_CONFIG:"ccac.dap.in.notify.config",SEND_UPDATE:"ccac.dap.out.notify.update"},this.LIBRARIES_MESSAGES={APPLY_ELEMENTS:"ccac.libraries.out.request.apply",REQUEST_ACTION:"ccac.libraries.out.request.action",RECEIVE_UPDATE:"ccac.libraries.in.request.update"},this.CCX_ACTIONS={OPEN_PICKER:"openPicker",OPEN_SHARE_SHEET:"openShareSheet",OPEN_TEMPLATE_PREVIEW:"openPreview"},this.GEN_STUDIO_ACTIONS={OPEN_UPLOAD_WIZARD:"openUploadWizard",OPEN_SHARE_SHEET:"openShareSheet"},this.DISABLED_PUBLISH_STATES={OFFLINE:"OFFLINE",READ_ONLY:"READ_ONLY",QUOTA:"QUOTA",EMPTY:"EMPTY",MISSING_STORAGE:"MISSING_STORAGE",UPGRADE:"UPGRADE",COEDITOR_PUBLISHING:"COEDITOR_PUBLISHING",MAX_ELEMENTS:"MAX_ELEMENTS"},this.ELEMENT_CHANGE_TYPE={CONTENT:"CONTENT",GROUP:"GROUP"},this.GROUP_CHANGE_TYPE={CONTENT:"CONTENT",GROUP:"GROUP"},this.VIEW_BY_GROUP_MODES={TREE:"tree",PATH:"path"},this.VIEW_BY_MODES={TYPE:"type",GROUP:"group"},this.LIBRARY_CONTENTS_VIEW_TABS={ELEMENTS:"elements",PREVIEW:"preview"},this.BRANDS_FILTER_OPTIONS_M2_1=Object.freeze({ALL:"all",YOURS:"yours",SHARED:"shared",PUBLISHED:"published"}),this.BRANDS_FILTER_OPTIONS=Object.freeze({ALL:"all",CREATED:"created",DRAFTS:"drafts",PUBLISHED:"published"}),this.BRANDS_SORT_OPTIONS=Object.freeze({MODIFIED:"modified",CREATED:"created",NAME:"name"}),this.MAX_ASSET_UPDATE_COUNT=99,this.ELEMENT_VIEW_MODES=["grid","list","thumbnail","thumbnail-large"],this.DISPLAY_TIME_PER_CHARACTER={"en-US":50,"ja-JP":75,"ko-KR":100,"zh-CN":150,"zh-TW":150},this.PREFERRED_EXPORT_TYPES={"image/vnd.adobe.shape+svg":["image/svg+xml"]},this.DEFAULT_SELECT_TARGET_POPOVER_WIDTH=200,this.DEFAULT_SELECT_TARGET_POPOVER_HEIGHT=226,this.COPYMOVE_TL_DROPDOWN_MAXHEIGHT=80,this.MAX_COLLABORATORS=15,this.TOOLTIP_MAX_WIDTH=190,this.MIN_CEP_VULCAN_7_VERSION=11.5,this.PROGRESS_LOG={PUBLISHING:"Publishing",COEDITOR_PUBLISHING:"Coeditor Publishing"},this.CONSTANT_KEY_IDS=["*","autocomplete"],this.SPECTRUM_ICONS_MAP={SyncDefault:"Cloud",LinkedLibrary:"Link",ChevronLeftMedium:"ChevronLeft",ChevronDownSmall:"ChevronDown",ChevronRightSmall:"ChevronRight"},this.PAYWALL_BANNER_TYPES={BRAND:"Brands",LIBRARY:"Libraries",LIBRARY_PANEL:"LibraryPanel"}}get LIST_VIEW_ELEMENT_HEIGHT(){return this.currentProduct.config.listViewElementHeight||44}get LIST_VIEW_ELEMENT_THUMBNAIL_HEIGHT(){return this.LIST_VIEW_ELEMENT_HEIGHT-8}get SCROLLBAR_WIDTH(){var e,t,r;return null!==(e=null===(t=(r=this.currentProduct.config).getScrollBarPadding)||void 0===t?void 0:t.call(r))&&void 0!==e?e:16}initApplication(e,t){this.APP_NAME=e,this.SUPPORTED_PRODUCTS=t.map((e=>e.config)),this.currentProduct=t.find((t=>t.config.code===e))}getElementType(e){return"application/vnd.adobe.element."+e+"+dcx"}}},47320:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(4784),i=r(31870),o=r(34038),a=r(62061),s=r(46903),c=r(68895),l=r(16993),u=r(17179),p=r(84824),d=r(76485),h=r(99386),f=r(69233),m=r(73306),g=r(77560),v=r(93028),y=r(53849),b=r(51461),_=r(29219);const E=new class{_getConfiguration(e){if(!this._configurations)throw"Error: element configuration is not initialized.";return this._configurations[e]||this._configurations["*"]}init(e=[]){if(this._configurations)throw"Error: Can only register element type configurations once.";this._configurations={},this._elementTypes=[],e.forEach((e=>{const t=new e(this),r=t&&t.type;if(!(t instanceof m.Z))throw`Error: Element type configuration ${t.constructor.name} is not an instance of BaseElementConfig.`;if(this._configurations[r])throw`Error: Attempting to register element type ${r} more than once.`;this._configurations[r]=t,this._elementTypes.push(r)}));const t=Object.keys(g.Z).map((e=>(new g.Z[e]).type));t.forEach((e=>{if(!this._elementTypes.includes(e))throw`No configuration for element type ${e} - you must provide a configuration.`})),this._elementTypes.forEach((e=>{if(!t.includes(e))throw`Unexpected element type ${e} - no default configuration exists.`}))}getElementTypes(){return this._elementTypes}getElementRole(e){var t;if(null==e||null===(t=e.roles)||void 0===t||!t.length)return;const r=e.roles.find((e=>e.type===h.Z.currentProduct.config.roleType));return null==r?void 0:r.usage}getElementPriority(e){var t;if(null==e||null===(t=e.roles)||void 0===t||!t.length)return;const r=e.roles.find((e=>e.type===h.Z.currentProduct.config.roleType));return null==r?void 0:r.priority}getThumbnailSizes(){const e={};return this.getElementTypes().forEach((t=>{const r=this._getConfiguration(t);r.thumbnailSize&&(e[t]=[r.thumbnailSize])})),e}getFullRenditionConfig(){const e={};return this.getElementTypes().forEach((t=>{const r=this._getConfiguration(t);r.fullRenditionConfig&&(e[t]=r.fullRenditionConfig())})),e}getComponent(e){return this._getConfiguration(e).component}getCustomRenderer(e){return this._getConfiguration(e.type).getCustomRenderer(e)}getInfoControlComponent(e){return this._getConfiguration(e.type).getInfoControlComponent(e)}getStockComponent(e){return this._getConfiguration(e).stockComponent}getGridSizeByType(e){if(h.Z.currentProduct.config.uniformElementSize)return l.Z.gridZoomFactor;return this._getConfiguration(e).gridSizeType}getElementSearchFunction(e){const t=this._getConfiguration(e);return t._elementSearchFunctionClosure||(t._elementSearchFunctionClosure=t.search.bind(t)),t._elementSearchFunctionClosure}getTypeName(e,t=!1){return this._getConfiguration(e)[t?"typeNameSingular":"typeName"]}getShortType(e=""){const t=this._getConfiguration(e).type.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/);return t?t[1]:"unsupported"}isStockAssetDraggable(e){return this._getConfiguration(e).isStockAssetDraggable()}isStockMultiLicense(e,t,r){return this._getConfiguration(e).isStockMultiLicense(t,r)}getStockCompKeyForLicenseType(e,t){return this._getConfiguration(e).getStockCompKeyForLicenseType(t)}getAutoGroupName(e){return this._getConfiguration(e.type).getAutoGroupName(e)}allowBlankName(e){return e&&!0===this._getConfiguration(e.type).allowBlankName}getThumbnailSize(e){return e&&this._getConfiguration(e.type).thumbnailSize}getLocalThumbnailURL(e,t=!1){const r=this._getConfiguration(e.type),n=t?h.Z.LARGE_THUMBNAIL_SIZE:r.thumbnailSize;return h.Z.currentProduct.config.usesThumbnailDataURLs?e.getThumbnailContent(n).then(_.n5):d.Z.supportsFileURLs?e.getThumbnailPath(n).then((e=>e&&`file://${e}`)):Promise.resolve(e.getThumbnailURL(n))}getBadgeText(e){return this._getConfiguration(e.type).getBadgeText(e)}getCustomPanelInfoPrimaryProperties(e){return this._getConfiguration(e.type).getCustomPanelInfoPrimaryProperties(e)}getCustomPanelInfoSubProperties(e){return this._getConfiguration(e.type).getCustomPanelInfoSubProperties(e)}getCustomServiceProperties(e){return this._getConfiguration(e.type).getCustomServiceProperties(e)}getExtension(e){return this._getConfiguration(e.type).getExtension(e)}getApplyOperations(e,t,r){const n=this._getConfiguration(r||e.type),i={index:1,length:1,uuid:o.Rl()};return n.getApplyOperations(e,t,i)}getMultiApplyOperations(e=[]){if(1===e.length)return this.getApplyOperations(e[0]);const t=o.Rl();if(0===e.length||!e.every((t=>t.type===e[0].type)))return[];const r={};e.forEach(((n,i)=>{const o=this._getConfiguration(n.type),a={index:i+1,length:e.length,uuid:t};o.getApplyOperations(n,void 0,a).filter((e=>e.allowMultiple)).forEach((e=>{r[e.name]?r[e.name].apply.push(e.apply):(e.apply=[e.apply],r[e.name]=e)}))}));const n=Object.keys(r).map((e=>r[e])).filter((t=>t.apply.length===e.length));return n.forEach((e=>{const t=e.apply;e.apply=()=>t.map((e=>e()))})),n}getOnClickApplyOperation(e,t){const r=this.getApplyOperations(e,t);return r.reverse(),r.find((e=>e.onClick))}getOnEditApplyOperation(e,t){const r=this.getApplyOperations(e,t);return r.reverse(),r.find((e=>e.onEditItem))}editElement(e){const t=this.getOnEditApplyOperation(e);if(t)return void t.apply();const r=this.getEditOperations(e),n=r.find((e=>e.onEditItem)),i=r.find((e=>e.onEditItem&&!e.disabled));n&&(0,s.ix)(e)&&(this.isDownloadInProgress(e)?d.Z.showError((0,p.Iu)("DL_ERROR_EDIT_ELEMENT_DOWNLOADING")):null==i||i.apply())}getEditOperations(e){const t=this._getConfiguration(e.type),r=(e,t)=>{b.ZP.reportElementEvent("Element Operations","Element","click",e,t,{event:{value:"single",count:1},content:{category:"Right Click"}})};if(e.isLegacyDocumentLink){const n=e.isDeprecatedLegacyDocumentLink,i=n?t.publishToLibraryLabel:"DL_EDIT_IN_SOURCE",o=n?"publish-to-source-library":"edit-in-source-document";return[{name:i,disabled:e.isLinked&&e.isMissingLink,apply:()=>{r(o,e),(0,c.Fb)(e)},onEditItem:!0}]}if((0,c.EZ)(e))return[{name:t.editInSourceLabel||"DL_EDIT_IN_SOURCE",disabled:e.isLinked&&e.isMissingLink,apply:()=>{r(t.editInSourceLabel?"edit-in-source-document":"view-in-source-document",e),(0,c.Fb)(e)},onEditItem:!0}];if(e.isLinked){const t=v.ZP.resolveCachedElementReference(e.linkReference);return t?[{name:"DL_REVEAL_LINKED_ITEM",apply:()=>{r("reveal-in-library",e),v.ZP.setLibraryActiveState(t.library,!0),y.Z.revealElement(t)}}]:[]}return t.defaultEditOperation||(0,c.tw)(e)?[{name:t.editItemLabel||"DL_EDIT_ITEM",disabled:!this.isEditable(e,!0),apply:()=>{if(t.defaultEditOperation)return Promise.resolve(t.defaultEditOperation(e)).then((t=>{!1===t&&(0,c.VH)(e,this.isEditable(e,!0,!0))}));(0,c.VH)(e)},onEditItem:!0}]:[]}isDisabled(e){const t=this._getConfiguration(e.type).isDisabled(e)||!e.isCommitted&&!e.library.isDocumentAssets;return!h.Z.currentProduct.config.enableUnusableElements&&t}isThumbnailTiled(e){return this._getConfiguration(e.type).isThumbnailTiled}showCheckeredBackground(e){return this._getConfiguration(e.type).showCheckeredBackground}isEditable(e,t=!1,r=!1){const n=e.getPrimaryRepresentation();if(!n||!l.Z.isLibraryWritable(e.library,!1,!0))return!1;const i=o.PX(e.type);let a=this.isRepresentationCompatible(n,i,r);return t&&!a&&(a=(0,c.tw)(e)),!a&&h.Z.currentProduct.config.isElementEditable&&(a=h.Z.currentProduct.config.isElementEditable(e)),a}getAddOperations(e,t){return t&&!n.Z.canAddElements(t)?[]:this.getElementTypes().map((t=>{const r=this._getConfiguration(t).getAddOperations(e);return r.forEach((e=>e.type=t)),r})).reduce(((e,t)=>e.concat(t)),[])}getOpenPickerOperation(e){return this._getConfiguration(e).openPicker}openElementPreview(e){this._getConfiguration(e.type).openPreview(e)}getTooltipData(e,t){const r=this._getConfiguration(e.type);if(t)return r.getAdditionalTooltipData(e,t);const n=i.Jw(e),c=e.getPrimaryRepresentation()||{},l=c&&o.i_(e.type,c.type),u=e.getGroups()[0],d={name:(0,s.vo)(e),group:u&&(0,f.DB)(u),isStockAsset:n,stockId:n?i.wq(e):void 0,isLicensed:n?i.kv(e):void 0,createdIn:l&&l.createdIn,representationType:l&&(l.displayName?(0,p.Iu)(l.displayName):l.badge),filesize:c.contentLength&&a.d3(c.contentLength),dimensions:c.width&&c.height&&a.Ny(c.width,c.height),description:e.description,isDisabled:this.isDisabled(e)};Object.assign(d,r.getAdditionalTooltipData(e,t));for(var h=0,m=Object.keys(d);h<m.length;h++){const e=m[h];void 0===d[e]&&delete d[e]}return d}getTooltipContent(e,t){if(!e)return;const r=this._getConfiguration(e.type);let n=this.getTooltipData(e,t);if(h.Z.currentProduct.config.enabledElementTooltipData){const e={};h.Z.currentProduct.config.enabledElementTooltipData.forEach((t=>{e[t]=n[t]})),n=e}const i=r.formatTooltipContent(n).filter((e=>e)),o=[];return l.Z.isLibrariesSearchMode()&&o.push((0,p.Iu)("DL_ITEM_LIBRARY_TOOLTIP",{libraryName:e.library.name})),o.length>0&&(i.push({divider:!0}),i.push.apply(i,o)),i}getDragData(e,t=!0,r){const n=this._getConfiguration(r||e.type);let o={name:e.name,libraryName:e.library.name,type:n.dragType||e.type,elementRef:e.getLegacyReference(),modifiedTime:(0,s.RW)(e),creationTime:e.created};if(i.Jw(e)&&(o.adobeStock={id:i.wq(e),license:i.kv(e),premiumLevel:i.Tw(e)}),t){const t=n.getDragData(e);if(!t)return;o=Object.assign(o,t)}return o}getStockDragData(e,t,r){const n=e.type;if(!this.isStockAssetDraggable(n))return{};const i=this._getConfiguration(n),o=this.getDragData(e,!1),a=i.getStockDragData(t,r);return o.data=a,o}setStockMetadata(e,t){this._getConfiguration(e.element.type).setStockMetadata(e,t)}isRepresentationCompatible(e,t,r=!1){if(!e)return!1;if(!r&&e.isExternalLink){if(e.getCachedExternalLinkError())return!1;if(!1!==this._getConfiguration(e.element.type).autoDownloadExternalLinks&&!e.getCachedContentPath())return!1}return t.some((t=>e.isCompatibleType(t)))}findUsableRepresentation(e,t,r=!1){t=t||o.ku(e.type),t=Array.isArray(t)?t:[t];const n=e.getPrimaryRepresentation();return n&&this.isRepresentationCompatible(n,t,r)?n:e.representations.find((e=>this.isRepresentationCompatible(e,t,r)))}getEmbeddedData(e){if(!e)return{};return this._getConfiguration(e.type).getEmbeddedData(e)}isDownloadInProgress(e){const t=e.getPrimaryRepresentation();if(t&&t.isExternalLink){if(t.getCachedExternalLinkError())return!1;if(!1!==this._getConfiguration(e.type).autoDownloadExternalLinks&&!t.getCachedContentPath())return!0}return!1}groupElementsByType(e,t,r=!1){const n="modified"===t?e=>u.Z.sortByModified(e):e=>u.Z.sortByName(e),i=h.Z.currentProduct.config.elementRolesInViewByRole,o={};this.getElementTypes().forEach((e=>o[e]={type:e,children:[]}));const a="role"===l.Z.viewByState,s={};a&&i.forEach((e=>s[e]={type:e,isRole:!0,children:[]})),e.forEach((e=>{var t;const r=(null===(t=e.roles)||void 0===t?void 0:t.length)>0&&this.getElementRole(e);if(a&&r&&i.includes(r))s[r]=s[r]||{type:r,isRole:!0,children:[]},s[r].children.push(e);else{const t=o[e.type]?e.type:"*";o[t].children.push(e)}}));let c=Object.keys(o).map((e=>o[e]));if(a){c=Object.keys(s).map((e=>s[e])).concat(c)}return c.forEach((e=>{const t=n(e.children);return r?t.reverse():t})),c}groupElementsByCustomGroup(e,t,r,n){return(0,f.Oi)(e,t,{maxDepth:r,sortBy:n,includeEmpty:!1}).root.children}groupElementsByTopLevelGroup(e,t,r){const n=(0,f.Oi)(e,t,{maxDepth:1,sortBy:r}).root,i=e=>{const t=[];return e.children.forEach((e=>{e.item.isGroup?t.push(...i(e)):t.push(e)})),t};return n.children.forEach((e=>{e.children=i(e)})),n.children}groupElementsByTime(e,t){const r={};e.forEach((e=>{const n=6e4*Math.round(e[t]/6e4);r[n]=r[n]||{time:n,children:[]},r[n].children.push(e)}));const n=Object.keys(r).map((e=>r[e]));return n.sort(((e,t)=>t.time-e.time)),n.forEach((e=>u.Z.sortByName(e.children))),n}getAdditionalElementDetails(e){return this._getConfiguration(e.type).getAdditionalElementDetails(e)}getGridElementDetails(e,t){const r=this._getConfiguration(t.type).getGridElementDetails(e,t);return h.Z.currentProduct.config.enableUppercaseGridDetails?r.toLocaleUpperCase(d.Z.getLocale()):r}canFindSimilar(e){return this._getConfiguration(e.type).canFindSimilar(e)}getAdditionalClasses(e){return this._getConfiguration(e.type).getAdditionalClasses(e)}getBackupThumbnail(e,t){return this._getConfiguration(e.type).getBackupThumbnail(e,t)}getReplaceableExtensions(e){return this._getConfiguration(e.type).getReplaceableExtensions(e)}getRepresentationForExport(e){const t=e.getPrimaryRepresentation(),r=h.Z.PREFERRED_EXPORT_TYPES[t.type]||[t.type];return this.findUsableRepresentation(e,r)}}},71923:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(99386),i=r(34038),o=r(73306),a=r(46903),s=r(87694),c=r(86357);class l extends o.Z{constructor(...e){super(...e),this.type=n.Z.ANIMATION_ELEMENT_TYPE,this.typeName="DL_TYPE_ANIMATION",this.typeNameSingular="DL_TYPE_ANIMATION_SINGULAR",this.thumbnailSize=n.Z.ANIMATION_THUMBNAIL_SIZE,this.dragType="animation",this.component=c.Z,this.allowDragWithoutUsableRepresentation=!0}getAutoGroupName(){return"DL_AUTOGROUP_MOTION"}fullRenditionConfig(){const e=i.ku(this.type);return 0===e.length?[]:[{id:n.Z.currentProduct.config.code,condition:"IF_NO_MATCHING_REPRESENTATION",types:e}]}getBadgeText(e){return(0,a.Q1)(e)}getExtension(e){return(0,a.VI)(e)}getCustomPanelInfoSubProperties(e){return(0,s.zw)(e,[s.IS.dimensions])}}},70232:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n,i,o=r(99386),a=r(73306),s=r(62061),c=r(34038),l=r(46903),u=r(89526),p=r(62631),d=r(49004),h=r(18135);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 m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(){return g=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},g.apply(this,arguments)}let v=(0,p.Pi)(((i=class extends u.Component{render(){return u.createElement(d.Z,g({"data-test-id":"audio-view"},this.props))}}).defaultProps={viewMode:"grid"},i.propTypes=function(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){m(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}({},h.Z.propTypes),n=i))||n;var y=r(84824),b=r(64403),_=r.n(b),E=r(31870),w=r(89526);const L=r(90305);class x extends a.Z{constructor(...e){super(...e),this.type=o.Z.AUDIO_ELEMENT_TYPE,this.typeName="DL_TYPE_AUDIO",this.typeNameSingular="DL_TYPE_AUDIO_SINGULAR",this.thumbnailSize=o.Z.AUDIO_THUMBNAIL_SIZE,this.autoDownloadExternalLinks=!0,this.component=v}getAutoGroupName(){return"DL_AUTOGROUP_MOTION"}getDragData(e){if(!E.Jw(e))return super.getDragData(e);const t=c.ku(e.type),r=e.representations.filter((e=>this._config.isRepresentationCompatible(e,t))),n=r.map((e=>({contentType:e.type,url:e.getContentURL(),contentLength:e.contentLength})));return n.length>0?{data:n,usedRepresentationForAnalytics:r[0]}:void 0}getExtension(e){return(0,l.VI)(e)}getAdditionalTooltipData(e){const t={},r=e.getPrimaryRepresentation(),n=this._config.findUsableRepresentation(e),i=n||r;n||(t.disabledMessage=`DL_ERROR_UNSUPPORTED_${o.Z.currentProduct.config.translationSuffix}`);const a=i&&i.getValue("audio","data")||{},c=E.Xz(i)||{};return i&&(i.contentLength&&(t.filesize=s.d3(i.contentLength)),a.duration&&(t.duration=s.zW(a.duration)),c.artist&&(t.artist=c.artist),a.tempo&&(t.tempo=s.ME(a.tempo))),t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.duration,i=e.tempo,o=e.artist,a=e.filesize,s=e.disabledMessage,c=e.isStockAsset,l=e.stockId,u=e.isLicensed,p=e.description;return[t,r,n,i,o,a,s&&(0,y.Iu)(s),c&&`${(0,y.Iu)("DL_ADOBE_STOCK_AUDIO")}: ${l}`,c&&(u?(0,y.Iu)("DL_LICENSED"):(0,y.Iu)("DL_UNLICENSED")),p&&{divider:!0},p]}getBadgeText(e){return(0,l.Q1)(e)}getCustomPanelInfoSubProperties(e){const t=e.getPrimaryRepresentation(),r=t.getValue("audio","data")||{},n=E.Xz(t)||{},i=[];return r.duration&&i.push({label:(0,y.Iu)("DL_INFO_DURATION"),value:s.zW(r.duration)}),r.tempo&&i.push({label:(0,y.Iu)("DL_AUDIO_TEMPO"),value:r.tempo}),n.artist&&i.push({label:(0,y.Iu)("DL_AUDIO_ARTIST"),value:n.artist}),n.album&&i.push({label:(0,y.Iu)("DL_AUDIO_ALBUM"),value:n.album}),i}getBackupThumbnail(e,t){var r,n;const i=e.getPrimaryRepresentation();if(!i)return;const a=i.type,s=(0,c.i_)(o.Z.AUDIO_ELEMENT_TYPE,a),l=s&&s.badge.toLowerCase(),u=this._config.isDisabled(e)&&!t.startsWith("thumbnail")&&!(null!==(r=(n=o.Z.currentProduct).isExpandedView)&&void 0!==r&&r.call(n));if(!l)return;const p=L(`./${l}_filetype_64.svg`);return w.createElement("div",{"data-test-id":"thumbnail-failed-icon-audio",className:_()(`panel-no-rendition-holder-${t}`,{"panel-thumbnail-disabled":u},`panel-${t}-element-fallback`)},w.createElement("img",{src:p,className:`panel-${t}-element-fallback`}))}}},73306:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n,i,o=r(99386),a=r(31870),s=r(89526),c=r(2652),l=r.n(c),u=r(62631),p=r(58925),d=r(84824),h=r(76485);class f extends s.Component{_getIsEditorial(){return this.props.asset.is_editorial}_getIsIllustrative(){return this.props.asset.is_illustrative}_getIsFree(){return a.U(this.props.asset)}_getIsPremium(){return this.props.asset.is_premium}_getFreeChin(){if(this._getIsFree())return s.createElement("div",{className:"panel-dl-stock-content-footer-bar-text","data-test-id":"free-chin"},(0,d.Iu)("DL_STOCK_FOOTER_BAR_FREE").toLocaleUpperCase(h.Z.getLocale()))}_getPremiumChin(){if(!this._getIsPremium())return;const e=this.props.asset.price;return s.createElement("div",{className:"panel-dl-stock-content-footer-bar-text","data-test-id":"premium-chin"},s.createElement("span",null,(0,d.Iu)("DL_STOCK_FOOTER_BAR_PREMIUM").toLocaleUpperCase(h.Z.getLocale())),s.createElement("span",{"data-test-id":"price"},e||null))}_getEditorialChin(){if(this._getIsEditorial()||this._getIsIllustrative())return s.createElement("div",{className:"panel-dl-stock-content-footer-bar-text panel-dl-stock-content-footer-bar-text-editorial","data-test-id":"editorial-chin"},s.createElement("span",null,(0,d.Iu)("DL_STOCK_SEARCH_RESULT_EDITORIAL_LABEL").toLocaleUpperCase(h.Z.getLocale())))}_getChin(){if(this._getIsFree()||this._getIsEditorial()||this._getIsPremium()||this._getIsIllustrative())return s.createElement("div",{className:"panel-dl-stock-content-footer-bar-rect","data-test-id":"chin-background"},this._getFreeChin(),this._getPremiumChin(),this._getEditorialChin())}render(){const e=(this.props.asset.media_type_id,"panel-dl-stock-content-footer-bar");return s.createElement("div",{className:e,"data-test-id":"asset-chin"},this._getChin())}}f.propTypes={asset:l().object.isRequired};let m=(0,u.Pi)(((i=class extends s.Component{render(){return s.createElement(p.Z,this.props,s.createElement(f,{asset:this.props.asset}))}}).propTypes={asset:l().object.isRequired,layout:l().shape({width:l().number.isRequired,height:l().number.isRequired}).isRequired},n=i))||n;var g=r(87694),v=r(34038),y=r(69233),b=r(64403),_=r.n(b),E=r(89368),w=r.n(E),L=r(89526);const x=r(50238);class S{constructor(e){this.type=void 0,this.typeName=void 0,this.typeNameSingular=void 0,this.thumbnailSize=void 0,this.dragType=void 0,this.allowBlankName=!1,this.allowDragWithoutUsableRepresentation=!1,this.autoDownloadExternalLinks=!0,this.component=void 0,this.stockComponent=m,this.gridSizeType=o.Z.GRID_TYPE_LARGE,this._config=e}getAutoGroupName(){return"DL_AUTOGROUP_UNKNOWN"}getAdditionalTooltipData(e){if(this.isDisabled(e))return{disabledMessage:"DL_ERROR_UNSUPPORTED_"+o.Z.currentProduct.config.translationSuffix}}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,o=e.dimensions,a=e.filesize,s=e.disabledMessage,c=e.isStockAsset,l=e.stockId,u=e.isLicensed,p=e.description;return[t,r,n&&`${(0,d.Iu)("DL_CREATED_IN")} ${(0,d.Iu)(n)}`,i&&`${(0,d.Iu)("DL_TYPE")} ${i}`,s&&(0,d.Iu)(s),o,a,c&&`${(0,d.Iu)("DL_ADOBE_STOCK_PHOTO")}: ${l}`,c&&(u?(0,d.Iu)("DL_LICENSED"):(0,d.Iu)("DL_UNLICENSED")),p&&{divider:!0},p]}search(e,t){const r=e.name&&e.name.toLowerCase(),n=e.description&&e.description.toLowerCase(),i=e.getGroups()[0],o=i&&[i,...(0,y._y)(i)].map((e=>e.name.toLowerCase())),s=(0,a.wq)(e);let c=(0,a.Ht)(e);c=c&&c.toLowerCase();for(let i=0;i<t.length;i++){const a=t[i];if(!(r&&r.includes(a)||n&&n.includes(a)||o&&o.find((e=>e.includes(a)))||s&&s.includes(a)||c&&c.includes(a)||this.searchAdditionalElementData&&this.searchAdditionalElementData(e,a)))return!1}return!0}getDragData(e){let t,r=this._config.findUsableRepresentation(e);if(r)t=r.getCachedContentPath();else if(e&&this.allowDragWithoutUsableRepresentation){const n=e.getCachedThumbnailPath();n&&(t=n,r={type:"image/png",element:e})}if(t){const e={},n=t&&!t.startsWith("http")?w().normalize(t):t;return e.data=[n],e.usedRepresentationForAnalytics=r,e}}getApplyOperations(){return[]}getAddOperations(){return[]}getAdditionalElementDetails(){}getGridElementDetails(e,t){if("type"===e)return a.Jw(t)?`${(0,d.Iu)(this.typeNameSingular)}, ${(0,d.Iu)(a.kv(t)?"DL_LICENSED_ADOBE_STOCK":"DL_UNLICENSED_ADOBE_STOCK")}`:(0,d.Iu)(this.typeNameSingular)}getBadgeText(){}getCustomPanelInfoPrimaryProperties(e){return(0,g.zw)(e,[g.IS.elementType,g.IS.elementSize])}getInfoControlComponent(){}getCustomPanelInfoSubProperties(){return[]}getCustomServiceProperties(e){return a.S5(e)}getReplaceableExtensions(){return!1}getExtension(){}canFindSimilar(e){return(0,a.Jw)(e)}isDisabled(e){return!this._config.findUsableRepresentation(e)}getAdditionalClasses(){return[]}isStockAssetDraggable(){return!1}isStockMultiLicense(){return!1}getStockCompKeyForLicenseType(e){return e}getStockDragData(){return[]}setStockMetadata(){}getBackupThumbnail(e,t){const r=e.getPrimaryRepresentation();if(!r)return;const n=r.type,i=(0,v.i_)(e.type,n),o=i&&i.exts[0].toLowerCase(),a=this._config.isDisabled(e)&&!t.startsWith("thumbnail");if(!o)return;let s;try{s=x(`./${o}_filetype_1024.svg`)}catch(e){return}return L.createElement("div",{"data-test-id":"thumbnail-failed-icon-fallback",className:_()(`panel-no-rendition-holder-${t}`,{"panel-thumbnail-disabled":a},`panel-${t}-element-fallback`)},L.createElement("img",{src:s,className:`panel-${t}-element-fallback`}))}getCustomRenderer(){}getEmbeddedData(){return{}}getFilename(e,t){return`${e.replace(/ +/g,"-")}.${t}`}}},76572:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n,i,o=r(99386),a=r(73306),s=r(84824),c=r(89526),l=r(62631),u=r(18135),p=r(31408),d=r(64403),h=r.n(d),f=r(24937);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,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let v=(0,l.Pi)(((i=class extends c.Component{get isInteractive(){return"thumbnail"!==this.props.viewMode}render(){const e=h()({"thumbnail-view":!this.isInteractive,interactive:this.isInteractive},"panel-list-brush-item-thumb");return c.createElement(u.Z,this.props,["list","thumbnail"].includes(this.props.viewMode)?c.createElement("div",{className:e},c.createElement(p.Z,{element:this.props.element,viewMode:this.props.viewMode,className:"panel-list-brush-item",thumbnailType:this.context.viewState.thumbnailType})):c.createElement(p.Z,{className:`panel-${this.props.viewMode}-item-background`,element:this.props.element,viewMode:this.props.viewMode,thumbnailType:this.context.viewState.thumbnailType}))}}).contextType=f.r,i.defaultProps={viewMode:"grid"},i.propTypes=function(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){g(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}({},u.Z.propTypes),n=i))||n;const y={"application/vnd.adobe.scatter.brush+zip":"DL_BRUSHTYPE_SCATTER","application/vnd.adobe.vector.brush+zip":"DL_BRUSHTYPE_VECTOR","application/vnd.adobe.ribbon.brush+zip":"DL_BRUSHTYPE_RIBBON","image/x-adobe-photoshop-brush":"DL_BRUSHTYPE_SCATTER"};class b extends a.Z{constructor(...e){super(...e),this.type=o.Z.BRUSH_ELEMENT_TYPE,this.typeName="DL_TYPE_BRUSH",this.typeNameSingular="DL_TYPE_BRUSH_SINGULAR",this.thumbnailSize=o.Z.BRUSH_THUMBNAIL_SIZE,this.gridSizeType=o.Z.GRID_TYPE_MEDIUM,this.component=v}getAutoGroupName(){return"DL_AUTOGROUP_BRUSHES"}getAdditionalTooltipData(e){const t={},r=e.getPrimaryRepresentation();return r&&r.type&&(t.brushType=y[r.type]),this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_BRUSH_NOT_SUPPORTED_"+o.Z.currentProduct.config.translationSuffix),t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.brushType,i=e.disabledMessage,o=e.description;return[t,r,n&&(0,s.Iu)(n),i&&(0,s.Iu)(i),o&&{divider:!0},o]}}},16771:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(99386),i=r(73306),o=r(74379),a=r(46903),s=r(84824),c=r(76485),l=r(74149),u=r(9276);const p=["type","content"];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){f(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 f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}class g extends i.Z{constructor(...e){super(...e),this.type=n.Z.COLOR_ELEMENT_TYPE,this.typeName="DL_TYPE_COLOR",this.typeNameSingular="DL_TYPE_COLOR_SINGULAR",this.allowBlankName=!0,this.gridSizeType=n.Z.GRID_TYPE_SMALL,this.component=u.Z}getAutoGroupName(){return"DL_AUTOGROUP_COLORS"}_createColor(e,t,r){let i=e.name;!i&&e.data[0]&&e.data[0].type&&"spot"===e.data[0].type&&(i=e.data[0].spotColorName),i=i||"";const o=(0,a.MN)(t,i,n.Z.COLOR_ELEMENT_TYPE,{opType:r});return e.data.forEach(((e,t)=>{const r=0===t?"primary":"rendition";o.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,r).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,e)})),o.endOperation(),Promise.resolve(o)}_getColorData(e){const t=e.getPrimaryRepresentation();return null==t?void 0:t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY)}getAddOperations(e){return e&&e.colors&&0!==e.colors.length?e.colors.filter((e=>e.data)).map((e=>{const t=e.data;return{name:"DL_ADD_COLOR_NAME_"+e.colorType,style:{backgroundColor:o.m3(t),border:"1px solid",width:"14px",height:"14px",margin:"1px 6px 1px 0px"},apply:(t,r)=>this._createColor(e,t,r)}})):[]}searchAdditionalElementData(e,t){let r=o.lP(e);return r=r&&o.m3(r).toLowerCase(),r&&r.includes(t)}getAdditionalTooltipData(e){const t={},r=this._getColorData(e);r&&(t.primaryValue=o.hx(r),t.opacity=r.alpha,t.spotColorName=r.spotColorName);const n=o.lP(e);return n&&(t.hexValue=o.m3(n).toUpperCase()),t}getCustomPanelInfoSubProperties(e){const t=e.representations.filter((e=>"application/vnd.adobe.color+json"===e.type)).map((e=>e?e.getValue("color","data"):null));return o.Zi(t)}formatTooltipContent(e){const t=void 0!==e.opacity&&(0,s.Iu)("DL_PERCENTAGE",{percent:Math.round(100*e.opacity)}),r=e.name,n=e.group,i=e.spotColorName,o=e.hexValue,a=e.primaryValue,c=e.description;return[!(o===r)&&r,i&&`${(0,s.Iu)("DL_SPOT_COLOR")} ${i}`,o,n,a,t&&`${(0,s.Iu)("DL_OPACITY")} ${t}`,c&&{divider:!0},c]}getAdditionalClasses(e){const t=c.Z.getHostEnvironment().appSkinInfo.panelBackgroundColor.color,r=o.lP(e);if(r){return o.mj(o.su(r),t)<=n.Z.CONTRAST_THRESHOLD?["contrast"]:[]}return[]}getEmbeddedData(e){return{primary:this._getColorData(e),rendition:o.lP(e)}}createElement(e,t,r){const i=e.representations.map((e=>{let t=e.type,r=e.content,i=m(e,p);return h({type:t||n.Z.COLOR_REPRESENTATION_TYPE,customData:[{namespace:n.Z.COLOR_NAMESPACE,key:n.Z.COLOR_DATA_KEY,value:r}]},i)}));return(0,l.wS)(h(h({},e),{},{representations:i}),t,r)}updateElement(e,t){const r=t.getElementById(e.id);return r.beginOperation(),e.representations&&(r.removeAllRepresentations(),e.representations.forEach((e=>{const t=e.type,i=e.content,o=e.relationship;r.createRepresentation(t,o).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,i)}))),r.endOperation(),Promise.resolve(r)}}},38122:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n,i,o,a,s=r(99386),c=r(73306),l=r(74379),u=r(46903),p=r(84824),d=r(33372),h=r(89526),f=r(50265),m=r(62631),g=r(64403),v=r.n(g),y=r(44853),b=r(9142),_=r(2652),E=r.n(_),w=r(24937);function L(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let x=(0,m.Pi)(((a=class extends h.Component{constructor(...e){var t,r,n,i;super(...e),this.componentDidMount=()=>{this.context.viewState.isOneUpMode()&&this.context.viewState.setOneUpSubElement(this.controllerData[this.currentColorIndex].swatch)},t=this,r="currentColorIndex",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.onColorChange=e=>{this.currentColorIndex=e,this.context.viewState.isOneUpMode()&&this.context.viewState.setOneUpSubElement(this.controllerData[e].swatch)}}get displayBar(){const e=this.controllerData.map(((e,t)=>{const r=v()("info-panel-controller-nav-item",{selected:this.currentColorIndex===t});return h.createElement("div",{className:"info-panel-controller-nav-item-wrapper",onClick:()=>this.onColorChange(t),"data-test-id":`info-panel-controller-color-theme-block-button-${t}`,key:`color-${t.toString()}`},h.createElement("div",{className:r,"data-test-id":`info-panel-controller-color-theme-block-${t}`,style:{backgroundColor:e.hex}}))}));return h.createElement("div",{className:"info-panel-controller-nav"},e)}get controllerData(){return l.xc(this.props.element)}render(){return h.createElement(b.Z,{currentStopIndex:this.controllerData.length<this.currentColorIndex?0:this.currentColorIndex,onChange:e=>this.onColorChange(e-1),displayBar:this.displayBar,controllerData:this.controllerData,stopLabel:"DL_INFO_COLOR_STOP"})}}).contextType=w.r,a.propTypes={element:E().instanceOf(y.Z).isRequired},o=L((i=a).prototype,"currentColorIndex",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),L(i.prototype,"controllerData",[f.computed],Object.getOwnPropertyDescriptor(i.prototype,"controllerData"),i.prototype),n=i))||n;class S extends c.Z{constructor(...e){super(...e),this.type=s.Z.COLOR_THEME_ELEMENT_TYPE,this.typeName="DL_TYPE_COLOR_THEME",this.typeNameSingular="DL_TYPE_COLOR_THEME_SINGULAR",this.gridSizeType=s.Z.GRID_TYPE_WIDE,this.component=d.Z}getAutoGroupName(){return"DL_AUTOGROUP_COLORS"}getApplyOperations(e,t){if(!e||!t)return[];return this._config.getApplyOperations({type:s.Z.COLOR_ELEMENT_TYPE,library:e.library,getPrimaryRepresentation:()=>e.getPrimaryRepresentation()},t).map((r=>({name:r.name,icon:r.icon,displayInMenu:r.displayInMenu,onClick:r.onClick,apply:()=>r.apply(t,(t=>{const r=this._config.findUsableRepresentation(e);r&&(0,u.vM)(r,t)}))})))}searchAdditionalElementData(e,t){const r=this._config.findUsableRepresentation(e),n=r&&r.getValue("colortheme","data");if(n&&Array.isArray(n.swatches))for(let e=0;e<n.swatches.length;e++){const r=n.swatches[e];if(l.m3(r).toLowerCase().includes(t))return!0}return!1}getAdditionalTooltipData(e,t){if(!t)return{};const r={};return r.spotColorName=t[0]&&t[0].spotColorName,r.hexValue=l.m3(t).toUpperCase(),r.primaryValue=l.hx(t[0]),r.description=e.description,this._config.findUsableRepresentation(e)||(r.disabledMessage="DL_ERROR_UNSUPPORTED_"+s.Z.currentProduct.config.translationSuffix),r}getInfoControlComponent(){return x}formatTooltipContent(e){return[e.name,e.group,e.spotColorName&&`${(0,p.Iu)("DL_SPOT_COLOR")} ${e.spotColorName}`,e.hexValue,e.primaryValue,e.disabledMessage&&(0,p.Iu)(e.disabledMessage),e.description&&{divider:!0},e.description]}}},53784:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99386),i=r(73306),o=r(84824),a=r(46903),s=r(86357);class c extends i.Z{constructor(...e){super(...e),this.type=n.Z.COMPONENT_ELEMENT_TYPE,this.typeName="DL_TYPE_COMPONENT",this.typeNameSingular="DL_TYPE_COMPONENT_SINGULAR",this.thumbnailSize=n.Z.COMPONENT_THUMBNAIL_SIZE,this.component=s.Z}getAutoGroupName(e){return(0,a.NR)(e)?"DL_AUTOGROUP_VECTORS":"DL_AUTOGROUP_IMAGES"}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,a=e.filesize,s=e.disabledMessage,c=e.description,l=e.instances;return[t,r,n&&`${(0,o.Iu)("DL_CREATED_IN")} ${(0,o.Iu)(n)}`,i&&`${(0,o.Iu)("DL_TYPE")} ${i}`,a,s&&(0,o.Iu)(s),c&&{divider:!0},c,l]}getBadgeText(e){return(0,a.Q1)(e)}getExtension(e){return(0,a.VI)(e)}canFindSimilar(){return!1}getAdditionalTooltipData(e){const t={};return this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_UNSUPPORTED_"+n.Z.currentProduct.config.translationSuffix),t}getApplyOperations(e){return e?this._config.getApplyOperations(e,void 0,n.Z.IMAGE_ELEMENT_TYPE):[]}getDragData(e){return this._config.getDragData(e,!0,n.Z.IMAGE_ELEMENT_TYPE)}}},77560:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n=r(71923),i=r(76572),o=r(99386),a=r(73306),s=r(84824),c=r(49004),l=r(87694),u=r(89368),p=r.n(u);class d extends a.Z{constructor(...e){super(...e),this.type=o.Z.CAPSULE_ELEMENT_TYPE,this.typeName="DL_TYPE_CAPSULE",this.typeNameSingular="DL_TYPE_CAPSULE_SINGULAR",this.thumbnailSize=o.Z.CAPSULE_THUMBNAIL_SIZE,this.dragType="capsule",this.component=c.Z}getAutoGroupName(){return"DL_AUTOGROUP_TEMPLATES"}getAdditionalTooltipData(e){const t={};return this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_CAPSULE_NOT_SUPPORTED_"+o.Z.currentProduct.config.translationSuffix),t}getDragData(e){const t=super.getDragData(e);if(!t)return;const r=this._config.findUsableRepresentation(e,o.Z.CAPSULE_DEFINITION_REPRESENTATION_TYPE);if(r){const e=r.getCachedContentPath(),n=e.startsWith&&!e.startsWith("http")?p().normalize(e):e;n&&(t.json=[n])}return t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.duration,o=e.filesize,a=e.isStockAsset,c=e.stockId,l=e.isLicensed,u=e.disabledMessage,p=e.description;return[t,r,n&&`${(0,s.Iu)("DL_CREATED_IN")} ${(0,s.Iu)(n)}`,i,o,a&&`${(0,s.Iu)("DL_ADOBE_STOCK_CAPSULE")}: ${c}`,a&&(l?(0,s.Iu)("DL_LICENSED"):(0,s.Iu)("DL_UNLICENSED")),u&&(0,s.Iu)(u),p&&{divider:!0},p]}canFindSimilar(){return!1}setStockMetadata(e,t){(t.duration||t.filesize)&&e.setValue(o.Z.CAPSULE_NAMESPACE,o.Z.CAPSULE_DATA_KEY,{duration:t.duration,contentLength:t.filesize})}getCustomPanelInfoSubProperties(e){return(0,l.zw)(e,[l.IS.dimensions,l.IS.capsuleFramesPerSecond,l.IS.capsuleDuration])}}var h=r(56649);class f extends a.Z{constructor(...e){super(...e),this.type=o.Z.CHANNEL_ELEMENT_TYPE,this.typeName="DL_TYPE_CHANNEL",this.typeNameSingular="DL_TYPE_CHANNEL_SINGULAR",this.gridSizeType=o.Z.GRID_TYPE_SMALL,this.thumbnailSize=o.Z.AUDIO_THUMBNAIL_SIZE,this.component=h.Z}getAutoGroupName(){return"DL_AUTOGROUP_UNKNOWN"}}var m=r(16771),g=r(38122),v=r(86423),y=r(48124);class b extends a.Z{constructor(...e){super(...e),this.type=o.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,this.typeName="DL_TYPE_IMAGE_GUIDELINE",this.typeNameSingular="DL_TYPE_IMAGE_GUIDELINE_SINGULAR",this.gridSizeType=o.Z.GRID_TYPE_SMALL,this.thumbnailSize=o.Z.AUDIO_THUMBNAIL_SIZE,this.component=h.Z}getAutoGroupName(){return"DL_AUTOGROUP_UNKNOWN"}}var _=r(92106),E=r(59846),w=r(65944),L=r(54888),x=r(83841),S=r(95134),O=r(54712),T=r(91696),I=r(54142),P=r(82359),C=r(86357);class A extends a.Z{constructor(...e){super(...e),this.type="*",this.typeName="DL_TYPE_UNKNOWN",this.typeNameSingular="DL_TYPE_UNKNOWN",this.thumbnailSize=82,this.gridSizeType=o.Z.GRID_TYPE_LARGE,this.component=C.Z}getAdditionalTooltipData(){return{disabledMessage:"DL_ERROR_UNSUPPORTED_"+o.Z.currentProduct.config.translationSuffix}}formatTooltipContent(e){return[(0,s.Iu)(e.disabledMessage),e.description&&{divider:!0},e.description]}}var k=r(4328),D=r(53784),N=r(70232),R=r(12894);const M={AnimationElementConfig:n.Z,AudioElementConfig:N.Z,BrushElementConfig:i.Z,CapsuleElementConfig:d,ChannelElementConfig:f,ColorElementConfig:m.Z,ColorThemeElementConfig:g.Z,ComponentElementConfig:D.Z,GradientElementConfig:v.Z,ImageElementConfig:y.Z,ImageGuidelineElementConfig:b,LayerStyleElementConfig:_.Z,LightElementConfig:E.Z,LookElementConfig:w.Z,MaterialElementConfig:L.Z,ParagraphStyleElementConfig:x.Z,PatternElementConfig:S.Z,TemplateElementConfig:O.Z,TextElementConfig:T.Z,TextStyleElementConfig:I.Z,FontElementConfig:R.Z,ThreeDElementConfig:P.Z,UnsupportedElementConfig:A,VideoElementConfig:k.Z}},12894:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(99386),i=r(73306),o=r(16203),a=r(90885),s=r(13293),c=r(87694),l=r(74149);const u=["type","content"];function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))}}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 m(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){g(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 g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}class y extends i.Z{constructor(...e){super(...e),this.type=n.Z.FONT_ELEMENT_TYPE,this.typeName="DL_TYPE_FONT",this.typeNameSingular="DL_TYPE_FONT_SINGULAR",this.thumbnailSize=n.Z.FONT_THUMBNAIL_SIZE,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM,this.component=a.Z}getAutoGroupName(){return"DL_AUTOGROUP_TYPOGRAPHY"}getAddOperations(e){return e&&e.text&&e.fontInfo,[]}_getStyleData(e,t){const r=this._config.findUsableRepresentation(e,"application/vnd.adobe.font+json"),n=r&&r.getValue("font","data");return n&&t?{adbeFont:n}:n}searchAdditionalElementData(e,t){const r=this._getStyleData(e),n=r&&r.family&&r.family.toLowerCase(),i=r&&r.style&&r.style.toLowerCase();return n&&n.includes(t)||i&&i.includes(t)}getAdditionalTooltipData(e){const t=this._getStyleData(e,!0);return o.xO(t)}getAdditionalElementDetails(e){const t=this._getStyleData(e,!0);if(t){return o.zH(t).join(", ")}}formatTooltipContent(e){return o.Aj(e)}getCustomServiceProperties(e){return(0,s.h)(e)}getCustomPanelInfoSubProperties(e){return(0,c.zw)(e,[c.IS.fontFamily,c.IS.fontStyle])}getEmbeddedData(e){return{primary:this._getStyleData(e)}}_formatRepresentationDataFromPicker(e){return e.representations=e.representations||[],e.representations.map((e=>{let t,r=e.type,i=e.content,o=v(e,u);return r===n.Z.FONT_REPRESENTATION_TYPE&&(t=[{namespace:n.Z.FONT_NAMESPACE,key:n.Z.FONT_DATA_KEY,value:i}]),m({type:r||n.Z.FONT_REPRESENTATION_TYPE,customData:t,content:t?void 0:i},o)}))}createElement(e,t,r){e.name=void 0;const n=this._formatRepresentationDataFromPicker(e);return(0,l.wS)(m(m({},e),{},{representations:n}),t,r)}updateElement(e,t){var r=this;return h(p().mark((function i(){var o;return p().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=t.getElementById(e.id),e.representations=r._formatRepresentationDataFromPicker(e),!e.representations.length){i.next=12;break}return i.next=5,Promise.all(e.representations.map(function(){var e=h(p().mark((function e(r){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.oC)(r);case 2:if(!(n=e.sent)){e.next=7;break}return e.next=6,t.stageRepresentationForCommit(n,r.type);case 6:r.stagedData=e.sent;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return o.beginOperation(),o.removeAllRepresentations(),e.roles&&(o.roles=e.roles),e.customData&&e.customData.forEach((({namespace:e,key:t,value:r})=>o.setValue(e,t,r))),i.next=11,Promise.all(e.representations.map(function(){var e=h(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.createRepresentation(t.type||n.Z.FONT_REPRESENTATION_TYPE,t.relationship),!t.stagedData){e.next=4;break}return e.next=4,r.setStagedContent(t.stagedData);case 4:t.customData&&t.customData.forEach((({namespace:e,key:t,value:n})=>r.setValue(e,t,n)));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 11:o.endOperation();case 12:return i.abrupt("return",o);case 13:case"end":return i.stop()}}),i)})))()}}},86423:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a,s=r(99386),c=r(73306),l=r(84824),u=r(51993),p=r(89526),d=r(50265),h=r(62631),f=r(74379),m=r(44853),g=r(9142),v=r(2652),y=r.n(v);function b(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let _=(0,h.Pi)(((a=class extends p.Component{constructor(...e){var t,r,n,i;super(...e),this.resetCurrentStopIndex=()=>{this.currentStopIndex=0},t=this,r="currentStopIndex",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.onStopChange=e=>{this.currentStopIndex=e-1}}componentDidMount(){this.disposeElementReaction=(0,d.reaction)((()=>this.props.element),(()=>this.resetCurrentStopIndex()))}componentWillUnmount(){this.disposeElementReaction()}get displayBar(){const e=f.Zw(this.props.element,!1,!1,!0),t=this.controllerData[this.currentStopIndex],r=t.offset>.5?Math.min(.94,t.offset):Math.max(.05,t.offset);return p.createElement("div",{className:"info-panel-controller-nav info-panel-controller-gradient"},p.createElement("div",{"data-test-id":"info-panel-controller-gradient-bar",className:"info-panel-controller-gradient-bar",style:e},p.createElement("div",{"data-test-id":"info-panel-controller-gradient-bar-circle",className:"info-panel-controller-gradient-bar-circle",style:{left:100*r+"%"}})))}get controllerData(){return f.ds(this.props.element)}render(){return this.controllerData.length?p.createElement(g.Z,{currentStopIndex:this.currentStopIndex,onChange:this.onStopChange,displayBar:this.displayBar,controllerData:this.controllerData}):null}}).propTypes={element:y().instanceOf(m.Z).isRequired},o=b((i=a).prototype,"currentStopIndex",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b(i.prototype,"controllerData",[d.computed],Object.getOwnPropertyDescriptor(i.prototype,"controllerData"),i.prototype),n=i))||n;var E=r(62061);class w extends c.Z{constructor(...e){super(...e),this.type=s.Z.GRADIENT_ELEMENT_TYPE,this.typeName="DL_TYPE_GRADIENT",this.typeNameSingular="DL_TYPE_GRADIENT_SINGULAR",this.gridSizeType=s.Z.GRID_TYPE_SMALL,this.component=u.Z}getAutoGroupName(){return"DL_AUTOGROUP_COLORS"}searchAdditionalElementData(e,t){const r=e.getPrimaryRepresentation(),n=r&&r.getValue("gradient","data");return n&&n.stops&&n.stops.some((e=>{let r=e.color||[];return r=f.Nh(r),r=r&&f.m3(r).toLowerCase(),r&&r.includes(t)}))}getAdditionalTooltipData(e){const t={},r=e.getPrimaryRepresentation(),n=r&&r.getValue("gradient","data");return n&&(t.type=n.type,t.stopCount=n.stops&&n.stops.length),this._config.findUsableRepresentation(e)||(t.disabledMessage=`DL_ERROR_GRADIENT_NOT_SUPPORTED_${s.Z.currentProduct.config.translationSuffix}`),t}formatTooltipContent(e){const t={linear:"DL_GRADIENT_TYPE_LINEAR",radial:"DL_GRADIENT_TYPE_RADIAL",noise:"DL_GRADIENT_TYPE_NOISE"},r=e.name,n=e.group,i=e.type,o=e.disabledMessage;return[r,n,t[i]&&(0,l.Iu)(t[i]),o&&(0,l.Iu)(o),e.description&&{divider:!0},e.description]}getInfoControlComponent(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");if(r&&["radial","linear"].includes(r.type))return _}getCustomPanelInfoSubProperties(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data"),n=[];return r.type&&n.push({label:(0,l.Iu)("DL_INFO_GRADIENT_TYPE"),value:(0,l.Iu)(`DL_GRADIENT_TYPE_${r.type.toUpperCase()}`)}),"linear"===r.type&&r.angle&&n.push({label:(0,l.Iu)("DL_INFO_GRADIENT_ANGLE"),value:(0,l.Iu)("DL_DEGREE",{degree:(0,E.Eq)(r.angle,2)})}),"radial"===r.type&&(n.push({label:(0,l.Iu)("DL_INFO_GRADIENT_ASPECT_RATIO"),value:(0,E.Eq)(r.aspectRatio,2)}),n.push({label:(0,l.Iu)("DL_INFO_GRADIENT_CENTER_POINT"),value:`${(0,E.Eq)(r.centerPoint.x,2)}, ${(0,E.Eq)(r.centerPoint.y,2)}`})),n}}},48124:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(99386),i=r(73306),o=r(34038),a=r(74149),s=r(84824),c=r(49004),l=r(46903),u=r(50777),p=r(87694),d=r(31870);function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=f,s(y,"constructor",f),s(f,"constructor",d),d.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function f(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const m=[["jpg","jpeg","png","tif","tiff","bmp"],["svg"],["pdf"],["ai"],["psd"]];class g extends i.Z{constructor(...e){super(...e),this.type=n.Z.IMAGE_ELEMENT_TYPE,this.typeName="DL_TYPE_IMAGE",this.typeNameSingular="DL_TYPE_IMAGE_SINGULAR",this.thumbnailSize=n.Z.IMAGE_THUMBNAIL_SIZE,this.dragType="image",this.allowDragWithoutUsableRepresentation=!0,this.component=c.Z}getReplaceableExtensions(e){const t=(0,l.VI)(e);return t&&m.find((e=>e.includes(t)))||[]}getAutoGroupName(e){return(0,l.NR)(e)?"DL_AUTOGROUP_VECTORS":"DL_AUTOGROUP_IMAGES"}fullRenditionConfig(){const e=o.ku(n.Z.IMAGE_ELEMENT_TYPE);return 0===e.length?[]:[{id:n.Z.currentProduct.config.code,condition:"IF_NO_MATCHING_REPRESENTATION",types:e}]}getAddOperations(e){const t=[];if(u.BQ()){const e=e=>Promise.resolve(u.RI(null,e));t.push({interactive:!0,name:"DL_CAPTURE",icon:"Capture",dropSupport:!1,apply:e})}if(!e||!e.selectionExists)return t;return t.unshift({name:"DL_ADD_IMAGE_NAME",icon:"AddImage",dropSupport:!0,apply:(e,t,r)=>(0,l.g0)(r).then((n=>{const i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:r};return(0,a.Bm)(n.layerName,n.files,n.rendition,e,t,i)}),(()=>Promise.reject("Could not extract asset.")))}),t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,o=e.dimensions,a=e.filesize,c=e.disabledMessage,l=e.isStockAsset,u=e.stockId,p=e.isLicensed,d=e.description;return[t,r,n&&`${(0,s.Iu)("DL_CREATED_IN")} ${(0,s.Iu)(n)}`,i&&`${(0,s.Iu)("DL_TYPE")} ${i}`,c&&(0,s.Iu)(c),o,a,l&&`${(0,s.Iu)("DL_ADOBE_STOCK_PHOTO")}: ${u}`,l&&(p?(0,s.Iu)("DL_LICENSED"):(0,s.Iu)("DL_UNLICENSED")),d&&{divider:!0},d]}getBadgeText(e){return(0,l.Q1)(e)}getExtension(e){return(0,l.VI)(e)}canFindSimilar(){return!0}isStockAssetDraggable(){return!0}isStockMultiLicense(e,t){return e||t}getStockCompKeyForLicenseType(){return n.Z.STOCK_LICENSE_TYPE_STANDARD}getStockDragData(e,t){return[t.path]}getCustomPanelInfoSubProperties(e){return(0,p.zw)(e,[p.IS.dimensions])}getCustomServiceProperties(e){return(0,d.S5)(e)}createElement(e,t,r){return(n=h().mark((function n(){return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,a.wS)(e,t,r));case 1:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){f(o,r,i,a,s,"next",e)}function s(e){f(o,r,i,a,s,"throw",e)}a(void 0)}))})();var n}}},92106:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(99386),i=r(73306),o=r(56649),a=r(84824);class s extends i.Z{constructor(...e){super(...e),this.type=n.Z.LAYER_STYLE_ELEMENT_TYPE,this.typeName="DL_TYPE_LAYER_STYLE",this.typeNameSingular="DL_TYPE_LAYER_STYLE_SINGULAR",this.thumbnailSize=n.Z.LAYER_STYLE_THUMBNAIL_SIZE,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM,this.component=o.Z}getAutoGroupName(){return"DL_AUTOGROUP_STYLES"}getAdditionalTooltipData(e){const t={};return this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_LAYER_STYLE_NOT_SUPPORTED_"+n.Z.currentProduct.config.translationSuffix),t}formatTooltipContent(e){return[e.name,e.group,e.disabledMessage&&(0,a.Iu)(e.disabledMessage),e.description&&{divider:!0},e.description]}}},59846:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99386),i=r(73306),o=r(84824),a=r(49004),s=r(87694);class c extends i.Z{constructor(...e){super(...e),this.type=n.Z.LIGHT_ELEMENT_TYPE,this.typeName="DL_TYPE_LIGHT",this.typeNameSingular="DL_TYPE_LIGHT_SINGULAR",this.thumbnailSize=n.Z.LIGHT_THUMBNAIL_SIZE,this.dragType="light",this.component=a.Z,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}getAutoGroupName(){return"DL_AUTOGROUP_3D"}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,a=e.isStockAsset,s=e.stockId,c=e.isLicensed,l=e.description,u=e.disabledMessage;return[t,r,n&&`${(0,o.Iu)("DL_CREATED_IN")} ${(0,o.Iu)(n)}`,i&&`${(0,o.Iu)("DL_TYPE")} ${i}`,u&&(0,o.Iu)(u),a&&`${(0,o.Iu)("DL_ADOBE_STOCK_LIGHT")}: ${s}`,a&&(c?(0,o.Iu)("DL_LICENSED"):(0,o.Iu)("DL_UNLICENSED")),l&&{divider:!0},l]}setStockMetadata(e,t){t["3d_metadata"]&&e.setValue("3d","data",t["3d_metadata"])}getCustomPanelInfo(e){return(0,s.zw)(e,[s.IS.dimensions])}}},65944:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(84824),i=r(99386),o=r(73306),a=r(86357);class s extends o.Z{constructor(...e){super(...e),this.type=i.Z.LOOK_ELEMENT_TYPE,this.typeName="DL_TYPE_LOOK",this.typeNameSingular="DL_TYPE_LOOK_SINGULAR",this.thumbnailSize=i.Z.LOOK_THUMBNAIL_SIZE,this.component=a.Z}getAutoGroupName(){return"DL_AUTOGROUP_STYLES"}formatTooltipContent(e){return[e.name,e.group,e.disabledMessage&&(0,n.Iu)(e.disabledMessage),e.description&&{divider:!0},e.description]}}},54888:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99386),i=r(73306),o=r(84824),a=r(49004);const s="data";class c extends i.Z{constructor(...e){super(...e),this.type=n.Z.MATERIAL_ELEMENT_TYPE,this.typeName="DL_TYPE_MATERIAL",this.typeNameSingular="DL_TYPE_MATERIAL_SINGULAR",this.thumbnailSize=n.Z.MATERIAL_THUMBNAIL_SIZE,this.dragType="material",this.component=a.Z,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}getAutoGroupName(){return"DL_AUTOGROUP_3D"}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,a=e.isStockAsset,s=e.stockId,c=e.isLicensed,l=e.description,u=e.disabledMessage;return[t,r,n&&`${(0,o.Iu)("DL_CREATED_IN")} ${(0,o.Iu)(n)}`,i&&`${(0,o.Iu)("DL_TYPE")} ${i}`,u&&(0,o.Iu)(u),a&&`${(0,o.Iu)("DL_ADOBE_STOCK_MATERIAL")}: ${s}`,a&&(c?(0,o.Iu)("DL_LICENSED"):(0,o.Iu)("DL_UNLICENSED")),l&&{divider:!0},l]}setStockMetadata(e,t){t["3d_metadata"]&&e.setValue("3d",s,t["3d_metadata"])}getCustomPanelInfoSubProperties(e){const t=[],r=e.getPrimaryRepresentation().getValue("3d",s),n=r&&r.materials&&r.materials[0];return n&&(void 0!==n.tileable&&t.push({label:(0,o.Iu)("DL_INFO_TILEABLE"),value:(0,o.Iu)("DL_INFO_"+(n.tileable?"YES":"NO"))}),void 0!==n.procedural&&t.push({label:(0,o.Iu)("DL_INFO_PROCEDURAL"),value:(0,o.Iu)("DL_INFO_"+(n.procedural?"YES":"NO"))})),t}}},83841:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(99386),i=r(73306),o=r(76485),a=r(16203),s=r(8733),c=r(34038),l=r(46903),u=r(84824),p=r(87694),d=r(13293),h=r(90885);const f="paragraphstyle",m="data",g="application/vnd.adobe.paragraphstyle+json";class v extends i.Z{constructor(...e){super(...e),this.type=n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,this.typeName="DL_TYPE_PARA_STYLE",this.typeNameSingular="DL_TYPE_PARA_STYLE_SINGULAR",this.thumbnailSize=n.Z.PARAGRAPH_STYLE_THUMBNAIL_SIZE,this.gridSizeType=n.Z.GRID_TYPE_WIDE,this.component=h.Z}_addParaStyleImpl(e,t,r){return e&&"LayerKind.TEXT"===e.kind?o.Z.execApp("getParaStyleInfo").then((e=>{var i;const o=JSON.parse(e);null!==(i=n.Z.currentProduct.config)&&void 0!==i&&i.copyTempFileIfNecessary&&(o.idmsPath=o.idmsPath&&n.Z.currentProduct.config.copyTempFileIfNecessary(o.idmsPath),o.previewPath=o.previewPath&&n.Z.currentProduct.config.copyTempFileIfNecessary(o.previewPath)),o.styleName||(o.styleName=(0,u.Iu)("DL_TYPE_NEW_PARA_STYLE"));const a=(0,l.MN)(t,o.styleName,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,{opType:r}),s=[];if(o.idmsPath){const e=a.createRepresentation("application/vnd.adobe.paragraphstyle+snippet","primary").setContentFromPath(o.idmsPath);s.push(e);a.createRepresentation(g,"rendition").setValue(f,m,o.styleInfo)}else{a.createRepresentation(g,"primary").setValue(f,m,o.styleInfo)}if(o.previewPath){const e=a.createRepresentation("image/png","rendition").setContentFromPath(o.previewPath);s.push(e)}return Promise.all(s).then((()=>{const e=[];return o.previewPath&&e.push(a.setThumbnailCache(n.Z.PARAGRAPH_STYLE_THUMBNAIL_SIZE,o.previewPath)),e.push(a.endOperation()),Promise.all(e).then((()=>{o.previewPath&&c._I(o.previewPath),o.idmsPath&&c._I(o.idmsPath)})),a}),(()=>(t.removeElement(a,!0),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save paragraph style preview."))):Promise.reject("Not a text layer")}getAutoGroupName(){return"DL_AUTOGROUP_TYPOGRAPHY"}getAddOperations(e){if(!e||!e.text||!1===e.isAppliedParaStyleSupported)return[];return[{name:"DL_ADD_PARA_STYLE_NAME",order:3,icon:"AddParagraphStyle",apply:(t,r)=>new Promise((n=>{s.Z.updateLayerInfo().then((()=>n(this._addParaStyleImpl(e,t,r))))}))}]}_getStyleData(e){const t=this._config.findUsableRepresentation(e,g);return t&&t.getValue(f,m)}searchAdditionalElementData(e,t){const r=this._getStyleData(e),n=r&&r.fontFamily&&r.fontFamily.toLowerCase(),i=r&&r.adbeFont&&r.adbeFont.style&&r.adbeFont.style.toLowerCase(),o=r&&r.fontSize&&r.fontSize.value&&r.fontSize.value.toString().toLowerCase();return n&&n.includes(t)||i&&i.includes(t)||o&&o.includes(t)}getAdditionalTooltipData(e){const t=this._getStyleData(e),r=this._config.isDisabled(e);return a.xO(t,r)}formatTooltipContent(e){return a.Aj(e)}getAdditionalElementDetails(e){const t=this._getStyleData(e);if(t){return a.zH(t).join(", ")}}getCustomServiceProperties(e){return(0,d.h)(e)}getCustomPanelInfoSubProperties(e){return(0,p.zw)(e,[p.IS.fontFamily,p.IS.fontStyle,p.IS.fontSize,p.IS.fontDecoration,p.IS.alignment,p.IS.paragraphLeftIndent,p.IS.paragraphRightIndent,p.IS.paragraphFirstLineIndent,p.IS.paragraphSpaceBefore,p.IS.paragraphSpaceAfter,p.IS.fontColorType,p.IS.fontHexColor,p.IS.fontRgbColor,p.IS.fontCmykColor,p.IS.fontLabColor,p.IS.fontHsbColor,p.IS.fontGrayColor,p.IS.fontSpotColor,p.IS.fontOpacity])}}},95134:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99386),i=r(73306),o=r(84824),a=r(46903),s=r(86357);class c extends i.Z{constructor(...e){super(...e),this.type=n.Z.PATTERN_ELEMENT_TYPE,this.typeName="DL_TYPE_PATTERN",this.typeNameSingular="DL_TYPE_PATTERN_SINGULAR",this.thumbnailSize=n.Z.PATTERN_THUMBNAIL_SIZE,this.component=s.Z,this.isThumbnailTiled=!0,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}getAutoGroupName(e){return(0,a.NR)(e)?"DL_AUTOGROUP_VECTORS":"DL_AUTOGROUP_IMAGES"}getAdditionalTooltipData(e){const t={patternType:(0,a.NR)(e)?"DL_VECTOR_PATTERN_TYPE":"DL_BITMAP_PATTERN_TYPE"};return this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_UNSUPPORTED_"+n.Z.currentProduct.config.translationSuffix),t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.patternType,i=e.disabledMessage,a=e.description;return[t,r,n&&`${(0,o.Iu)("DL_TYPE")} ${(0,o.Iu)(n)}`,i&&(0,o.Iu)(i),a&&{divider:!0},a]}getBadgeText(e){return(0,a.NR)(e)?"SVG":"PNG"}getExtension(e){return this.getBadgeText(e)}}},54712:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(99386),i=r(73306),o=r(84824),a=r(49004),s=r(46903),c=r(87694);class l extends i.Z{constructor(...e){super(...e),this.type=n.Z.TEMPLATE_ELEMENT_TYPE,this.typeName="DL_TYPE_TEMPLATE",this.typeNameSingular="DL_TYPE_TEMPLATE_SINGULAR",this.thumbnailSize=n.Z.IMAGE_THUMBNAIL_SIZE,this.component=a.Z}getAutoGroupName(){return"DL_AUTOGROUP_TEMPLATES"}getAdditionalTooltipData(e){const t={};return this.isDisabled(e)&&(t.disabledMessage="DL_ERROR_TEMPLATE_NOT_SUPPORTED_"+n.Z.currentProduct.config.translationSuffix),t}isDisabled(e){return!this._config.findUsableRepresentation(e,null,!0)}formatTooltipContent(e){const t=e.name,r=e.group,n=e.representationType,i=e.isStockAsset,a=e.stockId,s=e.isLicensed,c=e.filesize,l=e.disabledMessage,u=e.description;return[t,r,n&&`${(0,o.Iu)("DL_TYPE")} ${n}`,c,i&&`${(0,o.Iu)("DL_ADOBE_STOCK_TEMPLATE")}: ${a}`,i&&(s?(0,o.Iu)("DL_LICENSED"):(0,o.Iu)("DL_UNLICENSED")),l&&(0,o.Iu)(l),u&&{divider:!0},u]}getBadgeText(e){return(0,s.Q1)(e)}getExtension(e){return(0,s.VI)(e)}canFindSimilar(){return!1}getCustomPanelInfoSubProperties(e){return(0,c.zw)(e,[c.IS.dimensions])}}},91696:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(99386),i=r(73306),o=r(76485),a=r(8733),s=r(34038),c=r(46903),l=r(25585),u=r(84824),p=r(74379),d=r(56649);class h extends i.Z{constructor(...e){super(...e),this.type=n.Z.TEXT_ELEMENT_TYPE,this.typeName="DL_TYPE_TEXT",this.typeNameSingular="DL_TYPE_TEXT_SINGULAR",this.thumbnailSize=n.Z.TEXT_THUMBNAIL_SIZE,this.dragType="text",this.component=d.Z,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}_addTextImpl(e,t,r){return e&&e.canAddTextAsset?o.Z.execApp("getTextInfo").then((i=>{var o;const a=JSON.parse(i);if(!a||!a.textInfo)return Promise.reject("Could not create element.");null!==(o=n.Z.currentProduct.config)&&void 0!==o&&o.copyTempFileIfNecessary&&(a.previewPath=n.Z.currentProduct.config.copyTempFileIfNecessary(a.previewPath),a.primaryRepresentation.filePath=n.Z.currentProduct.config.copyTempFileIfNecessary(a.primaryRepresentation.filePath));const l=e.textAssetName||a.name,u=(0,c.In)(t,l,"DL_TEXT_LABEL");let p="textFrame";!0===e.textSelectionExists?p="textSelection":!0===e.insertionPointExists&&(p="insertionPoint");const d=(0,c.MN)(t,u,n.Z.TEXT_ELEMENT_TYPE,{opType:r,selectionType:p}),h=[];if(a.primaryRepresentation){const e=d.createRepresentation(a.primaryRepresentation.representationType,"primary");if(a.primaryRepresentation.isFile){const t=e.setContentFromPath(a.primaryRepresentation.filePath).then((()=>{h.push(t)}))}else e.setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,a.primaryRepresentation.data);d.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,a.textInfo)}else{d.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"primary").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,a.textInfo)}if(a.previewPath){const e=d.createRepresentation("image/png","rendition");e.isPreferredThumbnail=!0,h.push(e.setContentFromPath(a.previewPath))}return Promise.all(h).then((()=>{const e=[];return a.previewPath&&e.push(d.setThumbnailCache(n.Z.TEXT_THUMBNAIL_SIZE,a.previewPath)),e.push(d.endOperation()),Promise.all(e).then((()=>{a.previewPath&&s._I(a.previewPath),a.primaryRepresentation.isFile&&s._I(a.primaryRepresentation.filePath)})),d}),(()=>(t.removeElement(d),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save text preview."))):Promise.reject("no text in layer")}getAutoGroupName(){return"DL_AUTOGROUP_TYPOGRAPHY"}getAddOperations(e){if(!e||!e.canAddTextAsset)return[];return[{name:"DL_ADD_TEXT_NAME",icon:"AddText",dropSupport:!0,getDropLabel:(t,r)=>(0,c.In)(r,e.textAssetName,"DL_TEXT_LABEL"),apply:(t,r)=>new Promise((n=>{a.Z.updateLayerInfo().then((()=>n(this._addTextImpl(e,t,r))))}))}]}searchAdditionalElementData(e,t){const r=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE),i=r&&r.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);if(!i||!i.paragraphs)return!1;let o=0;for(let e=0;e<i.paragraphs.length&&!(o>=6e3);e++){const r=(0,l.aS)(i.paragraphs[e].text,6e3-o).toLowerCase();if(r.includes(t))return!0;o+=r.length}return!1}getDragData(e){if(this._config.findUsableRepresentation(e))return{}}_getTooltipTextData(e){const t=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE);return t&&t.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY)}getAdditionalTooltipData(e){const t={},r=this._getTooltipTextData(e);if(t.description=e.description,this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_UNSUPPORTED_"+n.Z.currentProduct.config.translationSuffix),r&&r.paragraphs&&r.paragraphs[0]&&r.paragraphs[0].text){t.paragraphText={},t.paragraphText.firstPara=(0,l.aS)(r.paragraphs[0].text,160);const e=r.paragraphs[0].text.length;e<=160&&r.paragraphs[1]&&r.paragraphs[1].text&&(t.paragraphText.secondPara=(0,l.aS)(r.paragraphs[1].text,160-e))}return t}getAdditionalElementDetails(e){const t=this._getTooltipTextData(e);let r="";return t&&t.paragraphs&&t.paragraphs.forEach((e=>{r+=e.text,r+=" "})),r.length>=500&&(r=(0,l.aS)(r,500)),r}formatTooltipContent({paragraphText:e={},description:t}){const r=e.firstPara,n=e.secondPara,i=e.disabledMessage;return[!r&&!n&&(0,u.Iu)("DL_TEXT_EMPTY_CONTENT_TOOLTIP"),r,n,i&&(0,u.Iu)(i),t&&{divider:!0},t]}getBadgeText(e){return(0,c.Q1)(e)}getExtension(e){return(0,c.VI)(e)}getAdditionalClasses(e){const t=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE),r=t&&t.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);if(r&&r.paragraphs)for(let e=0;e<r.paragraphs.length;e++){const t=r.paragraphs[e].runs||[];for(let e=0;e<t.length;e++)for(let n=0;n<t[e].styles.length;n++){const i=t[e].styles[n],a=r.styles[i]||{},s=a.value&&a.value.color;if(o.Z.recolorLightTextElements&&s&&(0,p.eO)(s))return["light-text"]}}return[]}}},54142:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(99386),i=r(73306),o=r(76485),a=r(16203),s=r(8733),c=r(34038),l=r(13293),u=r(46903),p=r(90885),d=r(87694);const h="characterstyle",f="data",m="application/vnd.adobe.characterstyle+json";class g extends i.Z{constructor(...e){super(...e),this.type=n.Z.CHARACTER_STYLE_ELEMENT_TYPE,this.typeName="DL_TYPE_TEXT_STYLE",this.typeNameSingular="DL_TYPE_TEXT_STYLE_SINGULAR",this.thumbnailSize=n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,this.gridSizeType=n.Z.GRID_TYPE_WIDE,this.component=p.Z}_addTextStyleImpl(e,t,r){return e&&"LayerKind.TEXT"===e.kind?o.Z.execApp("saveTextStylePreview",[e.fontInfo]).then((i=>{if(void 0===i||"undefined"===i)return Promise.reject("Unable to generate preview");const o=(0,u.MN)(t,"",n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r});o.createRepresentation(m,"primary").setValue(h,f,e.fontInfo);return o.createRepresentation("image/png","rendition").setContentFromPath(i).then((()=>(Promise.all([o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,i),o.endOperation()]).then((()=>{c._I(i)})),o)),(()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save text style preview."))):Promise.reject("Not a text layer")}getAutoGroupName(){return"DL_AUTOGROUP_TYPOGRAPHY"}getAddOperations(e){if(!e||!e.text||!e.fontInfo)return[];return[{name:"DL_ADD_TEXT_STYLE_NAME",icon:"AddCharacterStyle",apply:(t,r)=>new Promise((n=>{s.Z.updateLayerInfo().then((()=>n(this._addTextStyleImpl(e,t,r))))}))}]}_getStyleData(e){const t=this._config.findUsableRepresentation(e,m),r=t&&t.getValue(h,f);return null!=r&&r.adbeFont?r:{adbeFont:r}}searchAdditionalElementData(e,t){const r=this._getStyleData(e),n=r&&r.fontFamily&&r.fontFamily.toLowerCase(),i=r&&r.adbeFont&&r.adbeFont.style&&r.adbeFont.style.toLowerCase(),o=r&&r.fontSize&&r.fontSize.value&&r.fontSize.value.toString().toLowerCase();return n&&n.includes(t)||i&&i.includes(t)||o&&o.includes(t)}getAdditionalElementDetails(e){const t=this._getStyleData(e);if(t){return a.zH(t).join(", ")}}getAdditionalTooltipData(e){const t=this._getStyleData(e),r=this._config.isDisabled(e);return a.xO(t,r)}formatTooltipContent(e){return a.Aj(e)}getCustomServiceProperties(e){return(0,l.h)(e)}getCustomPanelInfoSubProperties(e){return(0,d.zw)(e,[d.IS.fontFamily,d.IS.fontStyle,d.IS.fontSize,d.IS.fontDecoration,d.IS.alignment,d.IS.fontColorType,d.IS.fontHexColor,d.IS.fontRgbColor,d.IS.fontCmykColor,d.IS.fontLabColor,d.IS.fontHsbColor,d.IS.fontGrayColor,d.IS.fontSpotColor,d.IS.fontOpacity])}}},82359:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(99386),i=r(73306),o=r(84824),a=r(49004);class s extends i.Z{constructor(...e){super(...e),this.type=n.Z.THREE_D_ELEMENT_TYPE,this.typeName="DL_TYPE_3D",this.typeNameSingular="DL_TYPE_3D_SINGULAR",this.thumbnailSize=n.Z.THREE_D_THUMBNAIL_SIZE,this.dragType="3d",this.component=a.Z,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}getAutoGroupName(){return"DL_AUTOGROUP_3D"}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,a=e.filesize,s=e.disabledMessage,c=e.isStockAsset,l=e.stockId,u=e.isLicensed,p=e.description;return[t,r,n&&`${(0,o.Iu)("DL_CREATED_IN")} ${(0,o.Iu)(n)}`,i&&`${(0,o.Iu)("DL_TYPE")} ${i}`,a,s&&(0,o.Iu)(s),c&&`${(0,o.Iu)("DL_ADOBE_STOCK_MODEL")}: ${l}`,c&&(u?(0,o.Iu)("DL_LICENSED"):(0,o.Iu)("DL_UNLICENSED")),p&&{divider:!0},p]}setStockMetadata(e,t){t["3d_metadata"]&&e.setValue("3d","data",t["3d_metadata"])}}},4328:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var n,i,o,a=r(99386),s=r(73306),c=r(62061),l=r(34038),u=r(84824),p=r(31870),d=r(89526),h=r(50265),f=r(62631),m=r(49004),g=r(47320),v=r(18135);function y(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 b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let E=(0,f.Pi)(((o=class extends d.Component{get disabled(){var e,t;return g.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=a.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}get videoDuration(){const e=this.props.element.getPrimaryRepresentation(),t=e&&e.getValue("video","data");return t&&t.duration&&c.zW(t.duration)}get videoBadge(){if(["grid","thumbnail-large"].includes(this.props.viewMode)&&this.videoDuration)return d.createElement("div",{className:"panel-video-badge","data-test-id":"video-view-badge"},d.createElement("div",{className:"panel-video-badge-duration","data-test-id":"video-view-duration"},this.videoDuration))}render(){return d.createElement(m.Z,this.props,this.videoBadge)}}).defaultProps={viewMode:"grid"},o.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},v.Z.propTypes),_((i=o).prototype,"disabled",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"disabled"),i.prototype),_(i.prototype,"videoDuration",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"videoDuration"),i.prototype),_(i.prototype,"videoBadge",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"videoBadge"),i.prototype),n=i))||n;var w,L,x=r(2652),S=r.n(x),O=r(58925),T=r(26964),I=r(76485);let P=(0,f.Pi)(((L=class extends d.Component{constructor(...e){super(...e),this._playing=!1,this.handleMouseOver=e=>{this._playing||(this._playing=!0,e.target.play().catch((e=>{const t=e||{},r=t.name,n=t.message;T.Z.log(`Could not play video at ${this.props.asset.video_small_preview_url}. Encountered error ${r} with details ${n}`)})))},this.handleMouseOut=e=>{this._playing=!1,e.target.pause()}}getLicenseLabels(){const e=this.props.asset.is_licensed;if(e){const t=a.Z.STOCK_VIDEO_LICENSE_TYPES.find((({field:t})=>e===t));return t?[t.label]:[]}return(0,p.ST)(this.props.asset).map((({label:e})=>e))}get videoFooter(){const e=this.getLicenseLabels().map((e=>d.createElement("div",{key:e,className:"panel-stock-search-result-video-footer-license","data-test-id":`video-license-${e}`},e)));return d.createElement("div",{className:"panel-stock-search-result-video-footer","data-test-id":"video-footer"},d.createElement("div",{className:"panel-stock-search-result-video-footer-container"},d.createElement("div",{className:"panel-stock-search-result-video-footer-duration","data-test-id":"video-duration"},(0,c.zW)(this.props.asset.duration)),e))}render(){const e=this.props.asset.video_small_preview_url;return d.createElement(O.Z,this.props,!I.Z.hasVideoRenderingBug&&d.createElement("video",{className:"panel-stock-search-result-video",loop:!0,muted:!0,preload:"auto",onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,"data-test-id":"video"},d.createElement("source",{src:e,type:"video/mp4"})),this.videoFooter)}}).propTypes={asset:S().object.isRequired,layout:S().shape({width:S().number.isRequired,height:S().number.isRequired}).isRequired},w=L))||w;var C=r(46903),A=r(87694);class k extends s.Z{constructor(...e){super(...e),this.type=a.Z.VIDEO_ELEMENT_TYPE,this.typeName="DL_TYPE_VIDEO",this.typeNameSingular="DL_TYPE_VIDEO_SINGULAR",this.thumbnailSize=a.Z.VIDEO_THUMBNAIL_SIZE,this.autoDownloadExternalLinks=!1,this.component=E,this.stockComponent=P}getAutoGroupName(){return"DL_AUTOGROUP_MOTION"}getDragData(e){if(!p.Jw(e))return super.getDragData(e);const t=[],r=l.ku(e.type);let n;return e.representations.forEach((e=>{if(this._config.isRepresentationCompatible(e,r)){n=n||e;const r=e.getValue("video","data")||{};t.push({contentType:e.type,url:e.getContentURL(),width:e.width,height:e.height,contentLength:e.contentLength,framerate:r.framerate,duration:r.duration})}})),t.length>0?{data:t,usedRepresentationForAnalytics:n}:void 0}getAdditionalTooltipData(e){const t={},r=e.getPrimaryRepresentation(),n=this._config.findUsableRepresentation(e);t.description=e.description,n||(t.disabledMessage=`DL_ERROR_UNSUPPORTED_${a.Z.currentProduct.config.translationSuffix}`);const i=n||r;if(i){i.width&&i.height&&(t.dimensions=c.Ny(i.width,i.height)),i.contentLength&&(t.filesize=c.d3(i.contentLength));const e=i.getValue("video","data")||{};e.framerate&&(t.framerate=c.Mb(e.framerate)),e.duration&&(t.duration=c.zW(e.duration))}return t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.dimensions,i=e.duration,o=e.framerate,a=e.filesize,s=e.isStockAsset,c=e.stockId,l=e.isLicensed,p=e.description,d=e.disabledMessage;return[t,r,n,i,o,a,d&&(0,u.Iu)(d),s&&`${(0,u.Iu)("DL_ADOBE_STOCK_VIDEO")}: ${c}`,s&&(l?(0,u.Iu)("DL_LICENSED"):(0,u.Iu)("DL_UNLICENSED")),p&&{divider:!0},p]}isStockAssetDraggable(){return!1}isStockMultiLicense(){return!0}getExtension(e){return(0,C.VI)(e)}getStockCompKeyForLicenseType(e){const t=a.Z.STOCK_VIDEO_LICENSE_TYPES.find((({label:t})=>t===e));return t&&t.field||e}getStockDragData(e){const t=p.ST(e),r=e.comps[t[0].field],n=r.url,i=r.width,o=r.height;return[{content_type:e.content_type,framerate:e.framerate,duration:e.duration,url:n,width:i,height:o}]}setStockMetadata(e,t){(t.framerate||t.duration)&&e.setValue("video","data",{framerate:t.framerate,duration:t.duration})}getBadgeText(e){return(0,C.Q1)(e)}getCustomPanelInfoSubProperties(e){return(0,A.zw)(e,[A.IS.dimensions,A.IS.videoFramesPerSecond,A.IS.videoDuration])}getAdditionalElementDetails(e){const t=(0,A.zw)(e,[A.IS.videoDuration]);return t[0]&&t[0].value}}},85834:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(72373),i=r(50777),o=r(26981),a=r(76485),s=r(99386);const c=new class{_addBool(e,t,r=(()=>!0),n=(()=>{}),i=!1){this._config[e]={label:t,shouldShowInMenu:r,afterHook:n,defaultValue:i}}_addEnum(e,t,r=(()=>!0),n=(()=>{}),i=!1){this._config[e]={enums:t,shouldShowInMenu:r,afterHook:n,defaultValue:i}}constructor(){this._config={},this._addBool("dropZoneIndicators","Enable Drop-Zone Indicators"),this._addEnum("localeDebug",{keys:"Enable Localization Keys",test:"Enable Test Locale"}),this._addBool("recordMetrics","Enable Analytics Recording"),this._addBool("logIngestAPI","Enable Ingest API Logging"),this._addBool("apiLogging","Enable Libraries API Logging",(()=>a.Z.disableAPILoggingByDefault)),this._addBool("publishDiffLogging","Enable Document Library Diff Logging"),this._addBool("showToolkitLibraries","Enable Showing Toolkit Libraries"),this._addBool("ccdDarkestTheme","Enable CCD Darkest Theme",(()=>a.Z.ccdAPI),(()=>{a.Z.ccdAPI.updateTheme({panelBackgroundColor:{color:{alpha:255,green:245,blue:245,red:245}}})})),this._addBool("capture","Enable Capture",i.jK),this._addBool("showDebugHUD","Show Debug HUD"),this._addBool("brandFeatureEnabled","Enable Brands [CCX]",(()=>s.Z.currentProduct.config.showBrandFeatureFlag)),this._addBool("globalSearchBoxEnabled","Enable global searchbar [CCX]",(()=>s.Z.currentProduct.config.showGlobalSearchbarFeatureFlag)),this._addBool("librariesCCLColorThemeEnabled","Enable Color Themes [CCX]",(()=>s.Z.currentProduct.config.showColorThemeFeatureFlag)),this._addBool("enableProjects","Enable Projects experience"),this._addBool("disableExpandedNavigationLabel","Disable Expanded View Navigation Label [CCX]",(()=>s.Z.currentProduct.config.showDisableExpandedNavigationLabelFeatureFlag)),this._addBool("forceEnableCCLibraries","Force Enable CC Libraries",void 0,(()=>setTimeout((()=>window.location.reload()),2e3))),this._addBool("enableTextStyle","Enable Text Styles",o.jY),this._addBool("enableOpenInAppMenu","Enable Open in App Menu for 3D elements in CCD"),this._addBool("ubeDesignEnabled","Enable new design based on UBE designs [AW]",(()=>s.Z.currentProduct.config.ubeDesignEnabled)),this._addBool("showRevisionHistory","Show Revision History [GenStudio]",(()=>s.Z.currentProduct.config.showRevisionHistory)),this._addBool("useFakeProjectName","Use Fake Project Name [GenStudio]",(()=>s.Z.currentProduct.config.useFakeProjectName))}get(e){if(!this._config[e])throw new Error(`Feature flag ${e} not found`);return n.Z.getDebugValue(e)||a.Z.getFeatureFlag(e)||this._config[e].defaultValue}getMenuItems(){const e=[];return Object.keys(this._config).map((t=>{const r=this._config[t];if(!r.shouldShowInMenu())return;const i=n.Z.getDebugValue(t);r.enums?Object.keys(r.enums).forEach((o=>{const a=r.enums[o],s="string"==typeof a?a:a.label;("string"==typeof a||!a.shouldShowInMenu||a.shouldShowInMenu())&&e.push({label:s,checked:i===o,onClick:()=>{n.Z.setDebugValue(t,i===o?void 0:o),r.afterHook()}})})):e.push({label:this._config[t].label,checked:!0===i,onClick:()=>{n.Z.setDebugValue(t,!i),r.afterHook()}})})),e}}},72373:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a=r(50265),s=r(76485),c=r(34038),l=r(86351),u=r(26964);const p=()=>window.nodeRequire("fs");class d{constructor(e,t){this._settings=a.observable.map(),this._writing=!1,this._pendingWrite=!1,this._path=e,this._fileName=t,this._listenerManager=(0,l.N)(this,["flushed"]);try{this._settings.replace(JSON.parse(p().readFileSync(e+t)))}catch(e){}}_write(){if(this._writing)return void(this._pendingWrite=!0);this._writing=!0;const e=()=>{this._writing=!1,this._pendingWrite?(this._pendingWrite=!1,this._write()):this._listenerManager.notify("flushed")};c.u2(this._path,(()=>{p().writeFile(this._path+this._fileName,JSON.stringify(this._settings.toJSON(),void 0,2),(t=>{t&&(u.Z.log(t),this._pendingWrite=!1),e()}))}))}get(e){return this._settings.get(e)}set(e,t){this._settings.set(e,t),this._write()}}class h{constructor(e){this._settings=a.observable.map(),this._localStorageKey=s.Z.getLocalStorageKey(e);try{let e=s.Z.localStorage.getItem(this._localStorageKey);if("{"!==e[0]){const t=e.split(",");e=t.map((e=>s.Z.localStorage.getItem(e))).join("")}this._settings.replace(JSON.parse(e))}catch(e){}}rebind(e){this._localStorageKey=s.Z.getLocalStorageKey(e),this._save()}get(e){return this._settings.get(e)}_setItem(e,t){try{s.Z.localStorage.setItem(e,t)}catch(e){u.Z.log(`Error - Unable to write to localStorage: ${e}`)}}set(e,t){this._settings.set(e,t),this._save()}_save(){const e=JSON.stringify(this._settings.toJSON()),t=s.Z.maxLocalStorageLength;if(t&&e.length>t){const r=Math.ceil(e.length/t),n=[];for(let i=0;i<r;i++){const r=this._localStorageKey+i;n.push(r),this._setItem(r,e.substr(i*t,t))}this._setItem(this._localStorageKey,n.join(","))}else this._setItem(this._localStorageKey,e)}}const f=e=>s.Z.documentId?`${s.Z.documentId}#${e}-docAssets`:e;let m=(n=a.observable.ref,i=class{constructor(){var e,t,r,n;e=this,t="_settings",n=this,(r=o)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}init(e="settings.json",t="debug"){const r=()=>this.load(f(e),f(t));r(),(0,a.reaction)((()=>s.Z.documentId),(()=>{var r;u.Z.log(`Rebinding settings: ${f(e)}`),this._settings.rebind(f(e)),null===(r=this._debugSettings)||void 0===r||r.rebind(f(t))})),(0,a.reaction)((()=>s.Z.localSettingsKey),r)}load(e,t){if(u.Z.log(`Loading settings: ${e}`),!s.Z.supportsFileSystem)return this._settings=new h(e),void(s.Z.hideDebugFlyoutMenu(t)||(this._debugSettings=new h(t)));this._settings=new d(s.Z.getLocalRoot(),e),p().existsSync(s.Z.getGlobalRoot()+t)&&(this._debugSettings=new d(s.Z.getGlobalRoot(),t))}setValue(e,t){this._settings.set(e,t)}getValue(e){return this._settings.get(e)}setDebugValue(e,t){this.hasDebugSettings()&&this._debugSettings.set(e,t)}getDebugValue(e){if(this.hasDebugSettings())return this._debugSettings.get(e)}hasDebugSettings(){return void 0!==this._debugSettings}showDebugMenu(){return this.hasDebugSettings()}addListener(e,t){this._settings.addListener(e,t)}removeListener(e,t){this._settings.removeListener(e,t)}},g=i.prototype,v="_settings",y=[n],b={configurable:!0,enumerable:!0,writable:!0,initializer:null},E={},Object.keys(b).forEach((function(e){E[e]=b[e]})),E.enumerable=!!E.enumerable,E.configurable=!!E.configurable,("value"in E||E.initializer)&&(E.writable=!0),E=y.slice().reverse().reduce((function(e,t){return t(g,v,e)||e}),E),_&&void 0!==E.initializer&&(E.value=E.initializer?E.initializer.call(_):void 0,E.initializer=void 0),void 0===E.initializer&&(Object.defineProperty(g,v,E),E=null),o=E,i);var g,v,y,b,_,E;const w=new m},76485:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new([r(46916),r(41477),!1,!1,r(3458),r(36881),r(47764),r(50532),!1,!1,!1].filter((e=>e)).map((e=>e.default||e)).find((e=>e.check())))},47764:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>C});class n{constructor(e,t){this.number=e,this.message=t}toString(){return"Error "+this.number+": "+this.message}}class i{constructor(e,t){this._enumName=e,this._enumId=t,this._kind="enum"}toString(){return this._enumName}}class o{constructor(e,t,r,n){this._enumValueName=e,this._enumValueId=t,this._enumId=r,this._enumName=n,this._kind="enumValue"}toString(){return this._enumName+"."+this._enumValueName}}function a(e){return Object.prototype.hasOwnProperty.call(e,"_target")&&"nonCreatable"===e._target._kind}function s(e){if(null===e)return null;if(Array.isArray(e))for(const[t,r]of Object.entries(e))e[t]=s(r);else if(t=e,Object.prototype.hasOwnProperty.call(t,"_kind")&&"creatable"===t._kind)for(const[t,r]of Object.entries(e))a(r)&&(e[t]=s(r));else{if(!a(e))return e;if(Object.prototype.hasOwnProperty.call(e,"_target")&&"nonCreatable"===e._target._kind)return e=e._target}var t;return e}function c(...e){let t,r;const i=e[0],o=e[1],a=[...e].slice(2);let c=[];c.push(...a[0]),"object"==typeof c&&(c=s(c));try{t=0===a.length?dom.action("call",i,o):dom.action("call",i,o,c)}catch(e){r=e}if(r){if(!r.domain||"ExtendScript"!==r.domain)throw r;throw new n(r.number,r.message)}return p(t)}function l(...e){let t,r;const i=e[0],o=e[1];try{t=dom.action("get",i,o)}catch(e){r=e}if(r){if(!r.domain||"ExtendScript"!==r.domain)throw r;throw new n(r.number,r.message)}return p(t)}function u(){return{get(e,t,...r){if(e._properties.indexOf(t)>-1){return l(e._target,t)}if(e._collections.indexOf(t)>-1){return l(e._target,t)}return e._methods.indexOf(t)>-1?function(...r){return c(e._target,t,r)}:Reflect.get(e,t,...r)},set:(e,t,r,...i)=>e._properties.indexOf(t)>-1?(function(...e){let t,r;const i=e[0],o=e[1];let a=e[2];"object"==typeof a&&(a=s(a));try{t=dom.action("put",i,o,a)}catch(e){r=e}if(r){if(!r.domain||"ExtendScript"!==r.domain)throw r;throw new n(r.number,r.message)}p(t)}(e._target,t,r),!0):Reflect.set(e,t,r,...i)}}function p(e){switch(typeof e){case"undefined":case"number":case"string":case"boolean":return e;case"object":if(Array.isArray(e)){let t;for(t=0;t<e.length;t++)e[t]=p(e[t]);return e}return function(e){if(e._className)return d(e);if(e._enumId){const t=e._enumId,r=e._enumValueId;return window.liveObjectAPI.getEnumerationValue(t,r)}return e}(e)}throw"Unknown type: "+typeof e}function d(e){if(!e._className)throw Error("missing _className");const t=e._kind;if(!t)throw Error("missing _kind");const r=window.liveObjectAPI.getClassInfo(e),n={};let i;if(Object.defineProperty(n,"_target",{value:e,enumerable:!1}),Object.defineProperty(n,"_properties",{value:r._properties,enumerable:!1}),Object.defineProperty(n,"_methods",{value:r._methods,enumerable:!1}),Object.defineProperty(n,"_collections",{value:r._collections,enumerable:!1}),"nonCreatable"===t)r._properties.forEach((e=>{n[e]=null})),i=new Proxy(n,u());else if("collection"===t)r._properties.forEach((e=>{n[e]=null})),i=new Proxy(n,{get(e,t){const r=parseInt(t);return isNaN(r)?e._properties.indexOf(t)>-1?l(e._target,t):e._methods.indexOf(t)>-1?function(...r){return c(e._target,t,r)}:p(dom.action("call",e._target,"getElement",t)):p(dom.action("call",e._target,"getElement",r))},set:(...e)=>Reflect.set(...e)});else if("creatable"===t){for(const t in e)"object"==typeof e[t]&&"nonCreatable"===e[t]._kind&&(e[t]=d(e[t]));i=e}return i}window.liveObjectAPI=new class{getClassInfo(e){this.classInfoCache||(this.classInfoCache=new Map);const t=e._className;let r=this.classInfoCache.get(t);return r&&!this.disableCache||(r=dom.action("getClassInfo",e),this.classInfoCache.set(t,r)),r}setDisableCache(e){this.disableCache=e}addEnumValue(e,t){this.enumValueCache||(this.enumValueCache=new Map);const r=e._enumId;this.enumValueCache[r]||(this.enumValueCache[r]=new Map),this.enumValueCache[r][t._enumValueId]=t}getEnumerationValue(e,t){const r=this.enumValueCache[e];if(r)return r[t]}},window.liveObjectAPI.setDisableCache(!1);try{window.app=d({_className:"Application",_kind:"nonCreatable"}),dom.action("getCreatableClasses").forEach((e=>{r.g[e]=class extends class{constructor(e){this._className=e,this._kind="creatable"}}{constructor(){super(e);const t=dom.action("instantiateProxy",{_className:e});for(const e in t)Object.hasOwnProperty.call(t,e)&&(this[e]=t[e])}}})),dom.action("getEnumerations").forEach((e=>{const t=e._enumName,n=e._enumId,a=new i(t,n);r.g[t]=a,e._values.forEach((e=>{const r=e._enumValueName,i=e._enumValueId,s=new o(r,i,n,t);a[r]=s,window.liveObjectAPI.addEnumValue(a,s)}))}))}catch(e){}const h=window.app;var f=r(7218),m=r(76485),g=r(15577),v=r(26964);function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))}}class E{constructor(){this.previewMaxWidth=248,this.previewMaxHeight=188}getThumbnailOptions(e,t){const n=new r.g.ExportOptionsPNG24;n.antiAliasing=!0,n.transparency=!0;const i=new r.g.Dimensions;return i.width=e||this.previewMaxWidth,i.height=t||this.previewMaxHeight,n.dimensions=i,n}static shortenString(e,t,r){return r=r||10,(e=e.replace(/(<|>|:|"|\/|\\|\||\?|\*|[\x00-\x1F])|\(|\)|\{|\}|,/g,"")).length>r&&(e=e.substr(0,r-1),t&&(e+="...")),e}saveAsPNG(e,t,r,n){const i=window.app,o=this.getThumbnailOptions(r,n);t?i.activeDocument.exportFile(e,ExportType.PNG24,o):i.activeDocument.exportSelectionAsPNG(e,o)}placeAsset(e){return _(y().mark((function t(){var r,n,i,o,a,s,c,l;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=window.app,n=m.Z.fs,i=window.nodeRequire("uxp").storage.localFileSystem,t.next=6,i.getTemporaryFolder();case 6:if(o=t.sent,a={_path:e.filePath},r&&0!==r.documents.length&&r.activeDocument){t.next=17;break}if(!0!==e.isOpenIn){t.next=13;break}r.documents.add(),t.next=17;break;case 13:return s=e.filePath.substr(e.filePath.lastIndexOf(".")+1).toLowerCase(),c=o.nativePath+"/"+(new Date).valueOf()+"."+s,n.copyFile(e.filePath,c),t.abrupt("return");case 17:l=!e.isOpenIn,r.activeDocument.importFile(a,e.isLinked,e.libraryName,e.itemName,e.elementRef,e.modifiedTime,e.creationTime,e.adobeStockId,e.adobeStockLicense,l),t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),v.Z.log(t.t0);case 24:case"end":return t.stop()}}),t,null,[[0,21]])})))()}saveAssets(e){var t=this;return _(y().mark((function r(){var n,i,o,a,s,c,l,u;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=window.app,i={files:[]},o=window.nodeRequire("uxp").storage.localFileSystem,r.next=5,o.getTemporaryFolder();case 5:return a=r.sent,s=e.name+".png",r.next=9,a.createFile(s,{overwrite:!0});case 9:return c=r.sent,t.saveAsPNG({_path:c.nativePath},!1,e.maxWidth,e.maxHeight),i.rendition="/private/"+c.nativePath,l=e.name+".ai",r.next=15,a.createFile(l,{overwrite:!0});case 15:return u=r.sent,n.activeDocument.exportSelectionAsAi({_path:u.nativePath}),i.files.push({path:u.nativePath,relationship:"primary"}),i.layerName=n.activeDocument.activeLayer.name,r.abrupt("return",JSON.stringify(i));case 20:case"end":return r.stop()}}),r)})))()}static pushUnique(e,t,r){if(void 0===e)return;let n;for(n=0;n<r.length;n++)if(r[n].data===e)return;r.push({colorType:t,data:e})}static populateTextOptionsInLayerObject(e,t,r,n,i){const o=window.app;if(e.kind="LayerKind.TEXT",""===t.contents)e.text="Random Text";else{e.text=t.contents;const r=100;e.text.length>r&&(e.text=e.text.substr(0,r-1))}if(r.fillTooltip="AI_TEXT_FILL",n.strokeTooltip="AI_TEXT_STROKE",e.canAddTextAsset=!0,t&&t.length>0&&t.characterAttributes&&t.characterAttributes.textFont)i.isFontAvailableinAI=o.textFonts.isFontAvailable(t.characterAttributes.textFont.name);else if(t&&0===t.length){const t=o.textFonts.getCurrentFont();i.isFontAvailableinAI=o.textFonts.isFontAvailable(t),e.canAddTextAsset=!0,e.insertionPointExists=!0}}getLayerName(){const e=window.app;return new Promise((function(t){t(e.activeDocument.activeLayer.name)}))}getLayerInfo(){const e=window.app;return new Promise((function(t){try{const r={},n=[],i={fillTooltip:"FILL"},o={strokeTooltip:"STROKE"},a={isFontAvailableinAI:!0},s=e.selection;if(s){let t=s;r.kind="",t&&(1===t.length&&t[0]&&t[0]._target&&"TextFrame"===t[0]._target._className?(t=t[0].textRange,E.populateTextOptionsInLayerObject(r,t,i,o,a)):t._target&&"TextRange"===t._target._className&&E.populateTextOptionsInLayerObject(r,t,i,o,a));try{const t=e.activeDocument.defaultFillColor;E.pushUnique(g.Z.solidColorToData(t),i.fillTooltip,n)}catch(e){v.Z.log(e)}try{const t=e.activeDocument.defaultStrokeColor;E.pushUnique(g.Z.solidColorToData(t),o.strokeTooltip,n)}catch(e){v.Z.log(e)}r.colors=n,r.name="None",t[0]&&t[0].name&&""!==t[0].name?(r.name=t[0].name,r.fullName=t[0].name):e.activeDocument.activeLayer&&(r.name=e.activeDocument.activeLayer.name,r.fullName=e.activeDocument.activeLayer.name),r.name=E.shortenString(r.name,!1,248),r.selectionExists=s&&s.length>0,r.isAppliedCharStyleSupported=!1,r.isAppliedParaStyleSupported=!1,"LayerKind.TEXT"===r.kind&&a.isFontAvailableinAI&&(r.isAppliedCharStyleSupported=!0,r.isAppliedParaStyleSupported=!0),s&&s._target&&"TextRange"===s._target._className&&(r.selectionExists=!1,s.length>0&&(r.textSelectionExists=!0))}t(r)}catch(e){v.Z.log(e)}}))}openAsset(e){try{return h.open({_path:e}).name}catch(e){v.Z.log(e)}}openAssetForEdit(e,t,r){if(!t)return Promise.resolve(this.openAsset(e));try{const n=new OpenOptions;n.addToRecentFiles=!1;const i=h.openCloudLibraryAssetForEditing({_path:e},{_path:t},r,n);return Promise.resolve(i.name)}catch(e){v.Z.log(e)}}loadAndSelectBrush(e,t){try{h.activeDocument.brushes.add({_path:e},t)}catch(e){}}openDocumentFromTemplate(e){try{h.open({_path:e})}catch(e){}}}const w=new E;function L(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))}}const O=new class{constructor(){this.PARASTYLE_REPRESENTATION_JSON_TYPE="application/vnd.adobe.paragraphstyle+json",this.CHARSTYLE_REPRESENTATION_JSON_TYPE="application/vnd.adobe.characterstyle+json",this.GET_CHARACTER_STYLE="Get Character Style",this.GET_PARAGRAPH_STYLE="Get Paragraph Style",this.GET_CHARACTER_STYLE_BY_ID="Get Character Style By Id",this.GET_PARAGRAPH_STYLE_BY_ID="Get Paragraph Style By Id",this.GET_COLLISION_RESPONCE="Get Collision Response",this.MAX_STYLE_NAME_SIZE=255,this.TypographyArray=[],this.GlobalConflictResolutionStrategy={},this.ConflictResolutionStrategy={wasNotOk:1,useExisting:2,useIncoming:3}}isEmptyObject(e){let t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}collectCharacterAttributes(e,t){const r={};let n,i;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n))try{r[n]=t[n]}catch(e){v.Z.log(e)}if(void 0!==r.fillColor&&("String"===r.fillColor.__class__?e.color=r.fillColor:g.Z.isColorSupported(r.fillColor)&&(e.color=g.Z.solidColorToData(r.fillColor))),void 0!==r.strokeColor&&("String"===r.strokeColor.__class__?e.adbeIlstStrokeColor=r.strokeColor:g.Z.isColorSupported(r.strokeColor)&&(e.adbeIlstStrokeColor=g.Z.solidColorToData(r.strokeColor))),void 0!==r.textFont&&null!==r.textFont&&(e.adbeFont={family:r.textFont.family,name:r.textFont.name,postScriptName:r.textFont.name,style:r.textFont.style},e.fontFamily=r.textFont.family),void 0!==r.size&&(e.fontSize={type:"pt",value:r.size}),void 0!==r.textFont&&null!==r.textFont&&void 0!==r.textFont.style){const t=r.textFont.style.toLowerCase();-1!==t.indexOf("italic")?e.fontStyle="italic":-1!==t.indexOf("oblique")&&(e.fontStyle="oblique"),-1!==t.indexOf("bold")&&(e.fontWeight="bold"),-1===t.indexOf("light")&&-1===t.indexOf("thin")||(e.fontWeight="lighter")}if(void 0!==r.alignment&&(e.adbeIlstAlignment=r.alignment),void 0!==r.alternateGlyphs)try{e.adbeIlstAlternateGlyphs=r.alternateGlyphs}catch(t){e.adbeIlstAlternateGlyphs=AlternateGlyphsForm.DEFAULTFORM.toString()}if(void 0!==r.baselineDirection&&(e.adbeIlstBaselineDirection=r.baselineDirection,"BaselineDirectionType.TateChuYoko"===e.adbeIlstBaselineDirection&&(e.adbeIdsnTatechuyoko=!0)),void 0!==r.figureStyle&&(e.adbeIlstFigureStyle=r.figureStyle),void 0!==r.kerningMethod)try{e.adbeIlstKerningMethod=r.kerningMethod}catch(t){e.adbeIlstKerningMethod=AutoKernType.AUTO.toString()}return void 0!==r.openTypePosition&&(e.adbeIlstOpenTypePosition=r.openTypePosition),void 0!==r.wariChuJustification&&(e.adbeIlstWariChuJustification=r.wariChuJustification),void 0!==r.akiLeft&&(e.adbeIlstAkiLeft=r.akiLeft),void 0!==r.akiRight&&(e.adbeIlstAkiRight=r.akiRight),void 0!==r.autoLeading&&r.autoLeading&&(e.adbeAutoLeading=!0),void 0!==r.baselineShift&&(e.baselineShift={type:"pt",value:r.baselineShift}),void 0!==r.connectionForms&&(e.adbeIlstConnectionForms=r.connectionForms),void 0!==r.horizontalScale&&(e.adbeHorizontalScale=r.horizontalScale),void 0!==r.leading&&(e.lineHeight={type:"pt",value:r.leading}),void 0!==r.language&&(e.adbeIdsnAppliedLanguageName=r.language),void 0!==r.noBreak&&r.noBreak&&(e.whiteSpace="nowrap"),void 0!==r.overprintFill&&(e.adbeIlstOverprintFill=r.overprintFill),void 0!==r.overprintStroke&&(e.adbeIlstOverprintStroke=r.overprintStroke),void 0!==r.proportionalMetrics&&(e.adbeIlstProportionalMetrics=r.proportionalMetrics),void 0!==r.rotation&&(e.adbeIlstRotation=r.rotation),void 0!==r.strokeWeight&&e.adbeIlstStrokeColor&&(e.adbeIlstStrokeWeight=r.strokeWeight),void 0!==r.tateChuYokoHorizontal&&(e.adbeIlstTateChuYokoHorizontal=r.tateChuYokoHorizontal),void 0!==r.tateChuYokoVertical&&(e.adbeIlstTateChuYokoVertical=r.tateChuYokoVertical),e.fontFeatureSettings=[],e.fontFeatureSettingsObject={},void 0!==r.swash&&(e.fontFeatureSettingsObject.adbeOTFSwash=r.swash,r.swash&&e.fontFeatureSettings.push("swsh")),void 0!==r.justificationAlternates&&(e.fontFeatureSettingsObject.adbeOTFJustificationAlternates=r.justificationAlternates,r.justificationAlternates&&e.fontFeatureSettings.push("jalt")),void 0!==r.stylisticSets&&(e.adbeIdsnOtfStylisticSets=2*r.stylisticSets),void 0!==r.ordinals&&(e.fontFeatureSettingsObject.adbeOTFOrdinals=r.ordinals,r.ordinals&&e.fontFeatureSettings.push("ordn")),void 0!==r.ornaments&&(e.fontFeatureSettingsObject.adbeOTFOrnaments=r.ordinals,r.ornaments&&e.fontFeatureSettings.push("ornm")),void 0!==r.kana&&(e.fontFeatureSettingsObject.adbeOTFHVKana=r.kana,r.kana&&e.fontFeatureSettings.push("hvkn")),void 0!==r.discretionaryLigature&&(e.fontFeatureSettingsObject.adbeOTFDiscretionaryLigatures=r.discretionaryLigature,r.discretionaryLigature&&e.fontFeatureSettings.push("dlig")),void 0!==r.contextualLigature&&(e.fontFeatureSettingsObject.adbeOTFContextualAlternates=r.contextualLigature,r.contextualLigature&&e.fontFeatureSettings.push("clig")),void 0!==r.ligature&&(e.fontFeatureSettingsObject.adbeLigatures=r.ligature,r.ligature&&e.fontFeatureSettings.push("liga")),void 0!==r.fractions&&(e.fontFeatureSettingsObject.adbeOTFFractions=r.fractions,r.fractions&&e.fontFeatureSettings.push("frac")),void 0!==r.titling&&(e.fontFeatureSettingsObject.adbeOTFTitlingAlternates=r.titling,r.titling&&e.fontFeatureSettings.push("titl")),void 0!==r.stylisticAlternates&&(e.fontFeatureSettingsObject.adbeOTFStylisticAlternates=r.stylisticAlternates,r.stylisticAlternates&&e.fontFeatureSettings.push("salt")),void 0!==r.italics&&(e.fontFeatureSettingsObject.adbeOTFRomanItalics=r.italics,r.italics&&e.fontFeatureSettings.push("rita")),r.baselinePosition===FontBaselineOption.SUPERSCRIPT.toString()?(e.fontFeatureSettingsObject.adbePosition="Position.SUPERSCRIPT",e.fontFeatureSettings.push("sups")):r.baselinePosition===FontBaselineOption.SUBSCRIPT.toString()?(e.fontFeatureSettingsObject.adbePosition="Position.SUBSCRIPT",e.fontFeatureSettings.push("subs")):r.baselinePosition===FontBaselineOption.NORMALBASELINE.toString()&&(e.fontFeatureSettingsObject.adbePosition="Position.NORMAL"),void 0!==r.capitalization&&(r.capitalization===FontCapsOption.NORMALCAPS.toString()?e.fontFeatureSettingsObject.adbeCapitalization="FontCapsOption.NORMAL":e.fontFeatureSettingsObject.adbeCapitalization=r.capitalization),r.capitalization===FontCapsOption.ALLSMALLCAPS.toString()?e.fontFeatureSettings.push("c2sc"):r.capitalization===FontCapsOption.SMALLCAPS.toString()?e.fontFeatureSettings.push("smcp"):r.capitalization===FontCapsOption.ALLCAPS.toString()&&(e.textTransform="capitalize"),this.isEmptyObject(e.fontFeatureSettingsObject)&&delete e.fontFeatureSettingsObject,0===e.fontFeatureSettings.length&&delete e.fontFeatureSettings,void 0!==r.tracking&&(e.adbeTracking=r.tracking),e.adbeTracking&&(e.letterSpacing={type:"em",value:(e.adbeTracking/1e3).toFixed(2)}),void 0!==r.Tsume&&(e.adbeIlstTsume=r.Tsume),e.textDecorationObject={},void 0!==r.underline&&(e.textDecorationObject.adbeUnderline=r.underline,r.underline&&(e.textDecoration?e.textDecoration.push("underline"):e.textDecoration=["underline"])),void 0!==r.strikeThrough&&(e.textDecorationObject.adbeStrikethrough=r.strikeThrough,r.strikeThrough&&(e.textDecoration?e.textDecoration.push("line-through"):e.textDecoration=["line-through"])),void 0!==r.verticalScale&&(e.adbeVerticalScale=r.verticalScale),void 0!==r.wariChuCharactersAfterBreak&&(e.adbeIlstWariChuCharactersAfterBreak=r.wariChuCharactersAfterBreak),void 0!==r.wariChuCharactersBeforeBreak&&(e.adbeIlstWariChuCharactersBeforeBreak=r.wariChuCharactersBeforeBreak),void 0!==r.wariChuEnabled&&(e.adbeIlstWariChuEnabled=r.wariChuEnabled),void 0!==r.wariChuLineGap&&(e.adbeIlstWariChuLineGap=r.wariChuLineGap),void 0!==r.wariChuLines&&(e.adbeIlstWariChuLines=r.wariChuLines),void 0!==r.wariChuScale&&(e.adbeIlstWariChuScale=r.wariChuScale),void 0!==r.kashidas&&(e.adbeIdsnKashidas=r.kashidas),void 0!==r.dirOverride&&(i=r.dirOverride.split(".",2)[1],e.adbeIdsnCharacterDirection="CharacterDirectionOptions."+i),void 0!==r.digitSet&&(e.adbeIdsnDigitsType=r.digitSet),void 0!==r.diacVPos&&(e.adbeIdsnDiacriticPosition=r.diacVPos),void 0!==r.diacXOffset&&(e.adbeIdsnXOffsetDiacritic=r.diacXOffset),void 0!==r.diacYOffset&&(e.adbeIdsnYOffsetDiacritic=r.diacYOffset),e}collectParagraphAttributes(e,t){this.getJustificationAttributes(e,t),this.getScalingAttributes(e,t),this.getSpacingAttributes(e,t),this.getHyphenationAttributes(e,t),this.getIndentationAttributes(e,t),this.getOtherAttributes(e,t),this.getTabAttributes(e,t)}convertJustificationString(e,t){let r="Alignment.";switch(t&&(r="Justification."),e){case"Alignment.LEFT_ALIGN":case"Justification.LEFT_ALIGN":return"LEFT";case"Alignment.CENTER_ALIGN":case"Justification.CENTER_ALIGN":return"CENTER";case"Alignment.RIGHT_ALIGN":case"Justification.RIGHT_ALIGN":return"RIGHT";case"Alignment.LEFT_JUSTIFIED":case"Justification.LEFT_JUSTIFIED":return"FULLJUSTIFYLASTLINELEFT";case"Alignment.CENTER_JUSTIFIED":case"Justification.CENTER_JUSTIFIED":return"FULLJUSTIFYLASTLINECENTER";case"Alignment.RIGHT_JUSTIFIED":case"Justification.RIGHT_JUSTIFIED":return"FULLJUSTIFYLASTLINERIGHT";case"Alignment.FULLY_JUSTIFIED":case"Justification.FULLY_JUSTIFIED":return"FULLJUSTIFY";case"Justification.LEFT":return r+"LEFT_ALIGN";case"Justification.CENTER":return r+"CENTER_ALIGN";case"Justification.RIGHT":return r+"RIGHT_ALIGN";case"Justification.FULLJUSTIFYLASTLINELEFT":return r+"LEFT_JUSTIFIED";case"Justification.FULLJUSTIFYLASTLINECENTER":return r+"CENTER_JUSTIFIED";case"Justification.FULLJUSTIFYLASTLINERIGHT":return r+"RIGHT_JUSTIFIED";case"Justification.FULLJUSTIFY":return r+"FULLY_JUSTIFIED";default:return""}}convertKinsokuTypeString(e){switch(e){case"KinsokuType.KINSOKU_PUSH_IN_FIRST":return"KinsokuOrderEnum.PUSHIN";case"KinsokuType.KINSOKU_PUSH_OUT_FIRST":return"KinsokuOrderEnum.PUSHOUTFIRST";case"KinsokuType.KINSOKU_PUSH_OUT_ONLY":return"KinsokuOrderEnum.PUSHOUTONLY";case"KinsokuOrderEnum.PUSHIN":return"KinsokuType.KINSOKU_PUSH_IN_FIRST";case"KinsokuOrderEnum.PUSHOUTONLY":return"KinsokuType.KINSOKU_PUSH_OUT_ONLY";case"KinsokuOrderEnum.PUSHOUTFIRST":return"KinsokuType.KINSOKU_PUSH_OUT_FIRST";default:return""}}convertTabAlignmentTypeString(e){const t="TabStopAlignment.";switch(e){case"TabStopAlignment.LEFT_ALIGN":return TabStopAlignment.Left;case"TabStopAlignment.RIGHT_ALIGN":return TabStopAlignment.Right;case"TabStopAlignment.CENTER_ALIGN":return TabStopAlignment.Center;case"TabStopAlignment.CHARACTER_ALIGN":return TabStopAlignment.Decimal;case"TabType.Left":return t+"LEFT_ALIGN";case"TabType.Right":return t+"RIGHT_ALIGN";case"TabType.Center":return t+"CENTER_ALIGN";case"TabType.Decimal":return t+"CHARACTER_ALIGN";default:return""}}convertComposerEngineTypeString(e){const t="ComposerType.";switch(e){case"ComposerType.WorldReady":return ComposerEngineType.optycaComposer;case"ComposerType.Japanese":case"ComposerType.Adobe":return ComposerEngineType.latinCJKComposer;case"ComposerEngineType.optycaComposer":return t+"WorldReady";case"ComposerEngineType.latinCJKComposer":return!0===h.preferences.getBooleanPreference("showAsianTextOptions")?t+"Japanese":t+"Adobe";default:return""}}getJustificationAttributes(e,t){try{void 0!==t.justification&&(e.adbeParaAlignment=this.convertJustificationString(t.justification,!1))}catch(e){v.Z.log(e)}try{if(void 0!==t.singleWordJustification){const r=t.singleWordJustification;e.adbeSingleWordJustification=this.convertJustificationString(r,!0)}}catch(e){v.Z.log(e)}}getSpacingAttributes(e,t){try{void 0!==t.minimumWordSpacing&&(e.adbeMinimumWordSpacing=t.minimumWordSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.desiredWordSpacing&&(e.adbeDesiredWordSpacing=t.desiredWordSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.maximumWordSpacing&&(e.adbeMaximumWordSpacing=t.maximumWordSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.minimumLetterSpacing&&(e.adbeMinimumLetterSpacing=t.minimumLetterSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.desiredLetterSpacing&&(e.adbeDesiredLetterSpacing=t.desiredLetterSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.maximumLetterSpacing&&(e.adbeMaximumLetterSpacing=t.maximumLetterSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.spaceAfter&&(e.adbeSpaceAfter={type:"pt",value:t.spaceAfter})}catch(e){v.Z.log(e)}try{void 0!==t.spaceBefore&&(e.adbeSpaceBefore={type:"pt",value:t.spaceBefore})}catch(e){v.Z.log(e)}}getScalingAttributes(e,t){try{void 0!==t.minimumGlyphScaling&&(e.adbeMinimumGlyphScaling=t.minimumGlyphScaling)}catch(e){v.Z.log(e)}try{void 0!==t.desiredGlyphScaling&&(e.adbeDesiredGlyphScaling=t.desiredGlyphScaling)}catch(e){v.Z.log(e)}try{void 0!==t.maximumGlyphScaling&&(e.adbeMaximumGlyphScaling=t.maximumGlyphScaling)}catch(e){v.Z.log(e)}}getHyphenationAttributes(e,t){try{void 0!==t.hyphenation&&(e.adbeHyphenation=t.hyphenation)}catch(e){v.Z.log(e)}void 0!==t.hyphenationZone&&(e.adbeHyphenationZone={type:"pt",value:t.hyphenationZone}),void 0!==t.hyphenateCapitalizedWords&&(e.adbeHyphenateCapitalizedWords=t.hyphenateCapitalizedWords);try{void 0!==t.hyphenationPreference&&(e.adbeHyphenWeight=100*t.hyphenationPreference)}catch(e){v.Z.log(e)}try{void 0!==t.maximumConsecutiveHyphens&&(e.adbeHyphenateLimit=t.maximumConsecutiveHyphens)}catch(e){v.Z.log(e)}try{void 0!==t.minimumAfterHyphen&&(e.adbeHyphenateAfterFirst=t.minimumAfterHyphen)}catch(e){v.Z.log(e)}try{void 0!==t.minimumBeforeHyphen&&(e.adbeHyphenateBeforeLast=t.minimumBeforeHyphen)}catch(e){v.Z.log(e)}try{void 0!==t.minimumHyphenatedWordSize&&(e.adbeHyphenateWordsLongerThan=t.minimumHyphenatedWordSize)}catch(e){v.Z.log(e)}}getIndentationAttributes(e,t){try{void 0!==t.firstLineIndent&&(e.adbeFirstLineIndent={type:"pt",value:t.firstLineIndent})}catch(e){v.Z.log(e)}try{void 0!==t.leftIndent&&(e.adbeLeftIndent={type:"pt",value:t.leftIndent})}catch(e){v.Z.log(e)}try{void 0!==t.rightIndent&&(e.adbeRightIndent={type:"pt",value:t.rightIndent})}catch(e){v.Z.log(e)}}getOtherAttributes(e,t){try{void 0!==t.paragraphDirection&&(e.adbeIdsnParagraphDirection=t.paragraphDirection)}catch(e){v.Z.log(e)}try{void 0!==t.kashidaWidth&&(e.adbeIdsnKashidaWidth=t.kashidaWidth)}catch(e){v.Z.log(e)}try{void 0!==t.composerEngine&&(e.adbeIlstComposerEngine=this.convertComposerEngineTypeString(t.composerEngine))}catch(e){v.Z.log(e)}try{void 0!==t.bunriKinshi&&(e.adbeBunriKinshi=t.bunriKinshi)}catch(e){v.Z.log(e)}try{void 0!==t.kinsokuOrder&&(e.adbeKinsokuType=this.convertKinsokuTypeString(t.kinsokuOrder))}catch(e){v.Z.log(e)}try{void 0!==t.autoLeadingAmount&&(e.adbeParaAutoLeading=t.autoLeadingAmount)}catch(e){v.Z.log(e)}try{if(void 0!==t.burasagariType)switch(t.burasagariType){case BurasagariTypeEnum.Forced.toString():e.adbeIlstBurasagariType="BurasagariTypeEnum.Forced";break;case BurasagariTypeEnum.Standard.toString():e.adbeIlstBurasagariType="BurasagariTypeEnum.Standard";break;case BurasagariTypeEnum.None.toString():e.adbeIlstBurasagariType="BurasagariTypeEnum.None"}}catch(e){v.Z.log(e)}try{void 0!==t.everyLineComposer&&(e.adbeIlstEveryLineComposer=t.everyLineComposer)}catch(e){v.Z.log(e)}try{void 0!==t.leadingType&&(e.adbeLeadingModel=t.leadingType)}catch(e){v.Z.log(e)}try{void 0!==t.kurikaeshiMojiShori&&(e.adbeIlstKurikaeshiMojiShori=t.kurikaeshiMojiShori)}catch(e){v.Z.log(e)}if(void 0!==t.mojikumi&&(e.adbeIlstMojikumi=t.mojikumi),void 0!==t.kinsoku)switch(t.kinsoku){case"Hard":e.adbeKinsokuSet="KinsokuSet.HARD_KINSOKU";break;case"Soft":e.adbeKinsokuSet="KinsokuSet.SOFT_KINSOKU";break;case"None":e.adbeKinsokuSet="KinsokuSet.NOTHING"}try{void 0!==t.romanHanging&&(e.adbeIlstRomanHanging=t.romanHanging)}catch(e){v.Z.log(e)}}getTabAttributes(e,t){try{if(void 0!==t.tabStops){e.adbeTabStops=[];const r=t.tabStops;let n,i,o={};for(i=0;i<r.length;++i)n=r[i],o={},o.adbeTabAlignment=this.convertTabAlignmentTypeString(n.alignment),o.adbeTabAlignmentChar=n.alignmentCharacter,o.adbeTabLeader=n.leader,o.adbeTabPosition={type:"pt",value:n.position},e.adbeTabStops.push(o);0===e.adbeTabStops.length&&delete e.adbeTabStops}}catch(e){v.Z.log(e)}}captureText(e){let t={};t=JSON.parse(e);const r=t.styles;let n,i,o,a,s;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n=r[i],a={},s=n.type,o=n.value,delete o.styleName,this.collectCharacterAttributes(a,o),"application/vnd.adobe.paragraphstyle+json"===s&&this.collectParagraphAttributes(a,o),n.value=a);return t}getTextInfo(){var e=this;return S(L().mark((function t(){var r,n,i,o,a,s,c,l,u,p;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r={},(i=h.activeDocument.selection)&&i._target&&"TextRange"===i._target._className?n=i:Array.isArray(i)&&1===i.length&&i[0]&&i[0]._target&&"TextFrame"===i[0]._target._className&&(n=i[0].textRange),!n){t.next=14;break}return o=window.nodeRequire("uxp").storage.localFileSystem,t.next=7,o.getTemporaryFolder();case 7:a=t.sent,s=a.nativePath+"TextPreview"+(new Date).valueOf(),c=s+".ai",l=s+".png",u=h.sendScriptMessage("Design Library","Get Add Text JSON",s),p=e.captureText(u),e.isEmptyObject(p)?v.Z.log("this.getTextInfo->failed creating text info"):(r.primaryRepresentation={},r.primaryRepresentation.filePath=c,r.primaryRepresentation.isFile=!0,r.primaryRepresentation.representationType="application/illustrator-text",r.textInfo=p,r.previewPath=l);case 14:return t.abrupt("return",JSON.stringify(r));case 15:case"end":return t.stop()}}),t)})))()}getParagraphStyle(){var e=this;return S(L().mark((function t(){var r,n,i,o,a,s,c;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},n={},i=window.nodeRequire("uxp").storage.localFileSystem,t.next=5,i.getTemporaryFolder();case 5:o=t.sent,a=o.nativePath+"TextStylePreview"+(new Date).valueOf()+".png";try{if((c=h.sendScriptMessage("Design Library",e.GET_PARAGRAPH_STYLE,a))&&(s=JSON.parse(c)),s.styleName&&(r.styleName=s.styleName),s){try{e.collectParagraphAttributes(n,s)}catch(e){v.Z.log("Error ILST->this.getCharacterStyle()->collectParagraphAttributes() ",e)}try{e.collectCharacterAttributes(n,s)}catch(e){v.Z.log("Error ILST->this.getCharacterStyle()->collectCharacterAttributes() ",e)}}r.styleInfo=n,r.previewPath=a}catch(e){v.Z.log("Error ILST->this.getParagraphStyle()",e)}return t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)})))()}getCharacterStyle(){var e=this;return S(L().mark((function t(){var r,n,i,o,a,s,c;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=window.nodeRequire("uxp").storage.localFileSystem,t.next=3,r.getTemporaryFolder();case 3:n=t.sent,i=n.nativePath+"TextStylePreview"+(new Date).valueOf()+".png",o={};try{if((s=h.sendScriptMessage("Design Library",e.GET_CHARACTER_STYLE,i))&&(a=JSON.parse(s)),c={},a.styleName&&(o.styleName=a.styleName),a)try{e.collectCharacterAttributes(c,a)}catch(e){v.Z.log("Error ILST->this.getCharacterStyle()->collectCharacterAttributes() ",e)}o.styleInfo=c,o.previewPath=i}catch(e){v.Z.log("Error ILST->this.getCharacterStyle()",e)}return t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}getParaStyleInfo(){var e=this;return S(L().mark((function t(){var r;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getParagraphStyle();case 3:return r=t.sent,t.abrupt("return",JSON.stringify(r));case 7:t.prev=7,t.t0=t.catch(0),v.Z.log("ILST.jsx-getParaStyleInfo()",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()}getCharStyleInfo(){var e=this;return S(L().mark((function t(){var r;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getCharacterStyle();case 3:return r=t.sent,t.abrupt("return",JSON.stringify(r));case 7:t.prev=7,t.t0=t.catch(0),v.Z.log("ILST.jsx-getParaStyleInfo()",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()}processStyleName(e){return e.length>=this.MAX_STYLE_NAME_SIZE&&(e=e.substring(0,this.MAX_STYLE_NAME_SIZE)),e}getParagraphStyleJSONStringfromAI(e,t){const r={};r.styleName=e,r.previewPath=t||"null";return h.sendScriptMessage("Design Library",this.GET_PARAGRAPH_STYLE_BY_ID,JSON.stringify(r))}getCharacterStyleJSONStringfromAI(e,t){const r={};r.styleName=e,r.previewPath=t||"null";return h.sendScriptMessage("Design Library",this.GET_CHARACTER_STYLE_BY_ID,JSON.stringify(r))}removeParagraphStyle(e){const t=h.activeDocument.paragraphStyles.getByName(e);t&&t.remove()}removeCharacterStyle(e){const t=h.activeDocument.characterStyles.getByName(e);t&&t.remove()}updateRegistrationColor(){try{const e=h.activeDocument,t=e.spots,r=t.length;let n;for(n=0;n<r;n++)if(t[n].colorType===ColorModel.REGISTRATION)return void(this.RegistrationColor=e.swatches.getByName(t[n].name).color)}catch(e){v.Z.log("Error while reading registration color",e)}}addCharacterAttributesToStyle(e,t,r){let n,i,o=0;if(!h.activeDocument)return;if(t.adbeFont&&""!==t.adbeFont.postScriptName)try{i=h.textFonts.getFontByName(t.adbeFont.postScriptName),e.characterAttributes.textFont=i}catch(e){v.Z.log(e)}else if(t.fontFamily)for(o=0;o<h.textFonts.length;o++)if(i=h.textFonts[o],i.family===t.fontFamily){e.characterAttributes.textFont=i;break}try{t.color&&("String"===t.color.__class__?"None"===t.color?e.characterAttributes.fillColor=NoColor:"Registration"===t.color&&(void 0===this.RegistrationColor&&this.updateRegistrationColor(),e.characterAttributes.fillColor=this.RegistrationColor):e.characterAttributes.fillColor=g.Z.dataToSolidColor(t.color))}catch(e){v.Z.log(e)}try{t.adbeIlstStrokeColor&&("String"===t.adbeIlstStrokeColor.__class__?"None"===t.adbeIlstStrokeColor?e.characterAttributes.strokeColor=NoColor:"Registration"===t.adbeIlstStrokeColor&&(void 0===this.RegistrationColor&&this.updateRegistrationColor(),e.characterAttributes.strokeColor=this.RegistrationColor):e.characterAttributes.strokeColor=g.Z.dataToSolidColor(t.adbeIlstStrokeColor))}catch(e){v.Z.log(e)}void 0!==t.fontSize&&(e.characterAttributes.size=t.fontSize.value),t.adbeIlstAlignment&&(n=t.adbeIlstAlignment.split(".",2)[1],e.characterAttributes.alignment=StyleRunAlignmentType[n],r===TextOrientation.VERTICAL&&(e.characterAttributes.alignment===StyleRunAlignmentType.ROMANBASELINE?e.characterAttributes.alignment=StyleRunAlignmentType.center:e.characterAttributes.alignment===StyleRunAlignmentType.center&&(e.characterAttributes.alignment=StyleRunAlignmentType.ROMANBASELINE))),t.adbeIlstAlternateGlyphs&&(n=t.adbeIlstAlternateGlyphs.split(".",2)[1],e.characterAttributes.alternateGlyphs=AlternateGlyphsForm[n]),t.adbeIlstBaselineDirection&&(n=t.adbeIlstBaselineDirection.split(".",2)[1],e.characterAttributes.baselineDirection=BaselineDirectionType[n]),!0===t.adbeIdsnTatechuyoko&&(e.characterAttributes.baselineDirection=BaselineDirectionType.TateChuYoko),t.adbeIlstFigureStyle&&(n=t.adbeIlstFigureStyle.split(".",2)[1],e.characterAttributes.figureStyle=FigureStyleType[n]),t.adbeIlstKerningMethod&&(n=t.adbeIlstKerningMethod.split(".",2)[1],e.characterAttributes.kerningMethod=AutoKernType[n]),t.adbeIlstOpenTypePosition&&(n=t.adbeIlstOpenTypePosition.split(".",2)[1],e.characterAttributes.openTypePosition=FontOpenTypePositionOption[n]),t.adbeIlstWariChuJustification&&(n=t.adbeIlstWariChuJustification.split(".",2)[1],e.characterAttributes.wariChuJustification=WariChuJustificationType[n]),void 0!==t.adbeIdsnKashidas&&(n=t.adbeIdsnKashidas.split(".",2)[1],e.characterAttributes.kashidas=KashidasType[n]),void 0!==t.adbeIdsnCharacterDirection&&(n=t.adbeIdsnCharacterDirection.split(".",2)[1],e.characterAttributes.dirOverride=DirOverrideType[n]),void 0!==t.adbeIdsnDigitsType&&(n=t.adbeIdsnDigitsType.split(".",2)[1],e.characterAttributes.digitSet=DigitSetType[n]);try{void 0!==t.adbeIdsnDiacriticPosition&&(n=t.adbeIdsnDiacriticPosition.split(".",2)[1],e.characterAttributes.diacVPos=DiacVPosType[n])}catch(e){v.Z.log(e)}if("italics"===t.fontStyle&&(e.characterAttributes.italics=!0),void 0!==t.adbeIlstAkiLeft&&(e.characterAttributes.akiLeft=t.adbeIlstAkiLeft),void 0!==t.adbeIlstAkiRight&&(e.characterAttributes.akiRight=t.adbeIlstAkiRight),t.adbeAutoLeading&&(e.characterAttributes.autoLeading=!0),void 0!==t.baselineShift){const r=new UnitValue(t.baselineShift.value,t.baselineShift.type);e.characterAttributes.baselineShift=r.as("pt")}if(void 0!==t.adbeIlstConnectionForms&&(e.characterAttributes.connectionForms=t.adbeIlstConnectionForms),void 0!==t.adbeHorizontalScale&&(e.characterAttributes.horizontalScale=t.adbeHorizontalScale),void 0!==t.lineHeight){const r=new UnitValue(t.lineHeight.value,t.lineHeight.type);e.characterAttributes.autoLeading=!1,e.characterAttributes.leading=r.as("pt")}try{void 0!==t.adbeIdsnAppliedLanguageName&&(e.characterAttributes.language=t.adbeIdsnAppliedLanguageName)}catch(e){v.Z.log(e)}t.whiteSpace&&"nowrap"===t.whiteSpace&&(e.characterAttributes.noBreak=!0),void 0!==t.adbeIlstOverprintFill&&(e.characterAttributes.overprintFill=t.adbeIlstOverprintFill),void 0!==t.adbeIlstOverprintStroke&&(e.characterAttributes.overprintStroke=t.adbeIlstOverprintStroke),void 0!==t.adbeIlstProportionalMetrics&&(e.characterAttributes.proportionalMetrics=t.adbeIlstProportionalMetrics),void 0!==t.adbeIlstRotation&&(e.characterAttributes.rotation=t.adbeIlstRotation),void 0!==t.adbeIlstStrokeWeight&&t.adbeIlstStrokeColor&&"NoColor"!==e.characterAttributes.strokeColor.typename&&(e.characterAttributes.strokeWeight=t.adbeIlstStrokeWeight.value),void 0!==t.adbeIlstTateChuYokoHorizontal&&(e.characterAttributes.tateChuYokoHorizontal=t.adbeIlstTateChuYokoHorizontal),void 0!==t.adbeIlstTateChuYokoVertical&&(e.characterAttributes.tateChuYokoVertical=t.adbeIlstTateChuYokoVertical),void 0!==t.adbeTracking?e.characterAttributes.tracking=t.adbeTracking:t.letterSpacing&&(e.characterAttributes.tracking=1e3*t.letterSpacing.value),void 0!==t.textDecorationObject?(void 0!==t.textDecorationObject.adbeUnderline&&(e.characterAttributes.underline=t.textDecorationObject.adbeUnderline),void 0!==t.textDecorationObject.adbeStrikethrough&&(e.characterAttributes.strikeThrough=t.textDecorationObject.adbeStrikethrough)):t.textDecoration&&(-1!==t.textDecoration.indexOf("underline")?e.characterAttributes.underline=!0:e.characterAttributes.underline=!1,-1!==t.textDecoration.indexOf("line-through")?e.characterAttributes.strikeThrough=!0:e.characterAttributes.strikeThrough=!1),void 0!==t.adbeIdsnXOffsetDiacritic&&(e.characterAttributes.diacXOffset=t.adbeIdsnXOffsetDiacritic),void 0!==t.adbeIdsnYOffsetDiacritic&&(e.characterAttributes.diacYOffset=t.adbeIdsnYOffsetDiacritic),void 0!==t.adbeIlstTsume&&(e.characterAttributes.Tsume=t.adbeIlstTsume),void 0!==t.adbeVerticalScale&&(e.characterAttributes.verticalScale=t.adbeVerticalScale),void 0!==t.adbeIlstWariChuCharactersAfterBreak&&(e.characterAttributes.wariChuCharactersAfterBreak=t.adbeIlstWariChuCharactersAfterBreak),void 0!==t.adbeIlstWariChuCharactersBeforeBreak&&(e.characterAttributes.wariChuCharactersBeforeBreak=t.adbeIlstWariChuCharactersBeforeBreak),void 0!==t.adbeIlstWariChuEnabled&&(e.characterAttributes.wariChuEnabled=t.adbeIlstWariChuEnabled),void 0!==t.adbeIlstWariChuLineGap&&(e.characterAttributes.wariChuLineGap=t.adbeIlstWariChuLineGap),void 0!==t.adbeIlstWariChuLines&&(e.characterAttributes.wariChuLines=t.adbeIlstWariChuLines),void 0!==t.adbeIlstWariChuScale&&(e.characterAttributes.wariChuScale=t.adbeIlstWariChuScale),void 0!==t.adbeIdsnOtfStylisticSets&&(e.characterAttributes.stylisticSets=t.adbeIdsnOtfStylisticSets/2);let a=t.fontFeatureSettingsObject;if(a||(a=t.fontFeatureSettings),a)if("Array"===a.__class__&&a.length>0){const r=void 0!==t.fontFeatureSettings&&t.fontFeatureSettings.length>0;e.characterAttributes.discretionaryLigature=r&&-1!==t.fontFeatureSettings.indexOf("dlig"),e.characterAttributes.contextualLigature=r&&-1!==t.fontFeatureSettings.indexOf("clig"),e.characterAttributes.ornaments=r&&-1!==t.fontFeatureSettings.indexOf("ornm"),e.characterAttributes.ordinals=r&&-1!==t.fontFeatureSettings.indexOf("ordn"),e.characterAttributes.swash=r&&-1!==t.fontFeatureSettings.indexOf("swsh"),e.characterAttributes.ligature=r&&-1!==t.fontFeatureSettings.indexOf("liga"),e.characterAttributes.fractions=r&&-1!==t.fontFeatureSettings.indexOf("frac"),e.characterAttributes.titling=r&&-1!==t.fontFeatureSettings.indexOf("titl"),e.characterAttributes.stylisticAlternates=r&&-1!==t.fontFeatureSettings.indexOf("salt"),e.characterAttributes.italics=r&&-1!==t.fontFeatureSettings.indexOf("rita"),r&&-1!==t.fontFeatureSettings.indexOf("sups")?e.characterAttributes.baselinePosition=FontBaselineOption.SUPERSCRIPT:r&&-1!==t.fontFeatureSettings.indexOf("subs")?e.characterAttributes.baselinePosition=FontBaselineOption.SUBSCRIPT:e.characterAttributes.baselinePosition=FontBaselineOption.NORMALBASELINE,r&&-1!==t.fontFeatureSettings.indexOf("c2sc")?e.characterAttributes.capitalization=FontCapsOption.ALLSMALLCAPS:r&&-1!==t.fontFeatureSettings.indexOf("smcp")?e.characterAttributes.capitalization=FontCapsOption.SMALLCAPS:"capitalize"===t.textTransform?e.characterAttributes.capitalization=FontCapsOption.ALLCAPS:e.characterAttributes.capitalization=FontCapsOption.NORMALCAPS}else if("Object"===a.__class__){if(void 0!==a.adbeOTFSwash&&(e.characterAttributes.swash=a.adbeOTFSwash),void 0!==a.adbeOTFOrdinals&&(e.characterAttributes.ordinals=a.adbeOTFOrdinals),void 0!==a.adbeOTFDiscretionaryLigatures&&(e.characterAttributes.discretionaryLigature=a.adbeOTFDiscretionaryLigatures),void 0!==a.adbeOTFContextualAlternates&&(e.characterAttributes.contextualLigature=a.adbeOTFContextualAlternates),void 0!==a.adbeLigatures&&(e.characterAttributes.ligature=a.adbeLigatures),void 0!==a.adbeOTFFractions&&(e.characterAttributes.fractions=a.adbeOTFFractions),void 0!==a.adbeOTFTitlingAlternates&&(e.characterAttributes.titling=a.adbeOTFTitlingAlternates),void 0!==a.adbeOTFStylisticAlternates&&(e.characterAttributes.stylisticAlternates=a.adbeOTFStylisticAlternates),void 0!==a.adbeOTFRomanItalics&&(e.characterAttributes.italics=a.adbeOTFRomanItalics),void 0!==a.adbeOTFOrnaments&&(e.characterAttributes.ornaments=a.adbeOTFOrnaments),void 0!==a.adbeOTFHVKana&&(e.characterAttributes.kana=a.adbeOTFHVKana),a.adbePosition)switch(a.adbePosition){case"Position.NORMAL":e.characterAttributes.baselinePosition=FontBaselineOption.NORMALBASELINE;break;case"Position.SUBSCRIPT":e.characterAttributes.baselinePosition=FontBaselineOption.SUBSCRIPT;break;case"Position.SUPERSCRIPT":e.characterAttributes.baselinePosition=FontBaselineOption.SUPERSCRIPT}if(a.adbeCapitalization)switch(a.adbeCapitalization){case"FontCapsOption.NORMAL":e.characterAttributes.capitalization=FontCapsOption.NORMALCAPS;break;case"FontCapsOption.ALLSMALLCAPS":e.characterAttributes.capitalization=FontCapsOption.ALLSMALLCAPS;break;case"FontCapsOption.SMALLCAPS":e.characterAttributes.capitalization=FontCapsOption.SMALLCAPS;break;case"FontCapsOption.ALLCAPS":e.characterAttributes.capitalization=FontCapsOption.ALLCAPS}void 0!==a.adbeOTFJustificationAlternates&&(e.characterAttributes.justificationAlternates=a.adbeOTFJustificationAlternates)}}setJustificationAttributes(e,t){let r;if(void 0!==t.adbeIdsnParagraphDirection&&(r=t.adbeIdsnParagraphDirection.split(".",2)[1],e.paragraphAttributes.paragraphDirection=ParagraphDirectionType[r]),void 0!==t.adbeParaAlignment)switch(this.convertJustificationString(t.adbeParaAlignment,!1)){case"CENTER":e.paragraphAttributes.justification=Justification.CENTER;break;case"LEFT":e.paragraphAttributes.justification=Justification.LEFT;break;case"RIGHT":e.paragraphAttributes.justification=Justification.RIGHT;break;case"FULLJUSTIFY":e.paragraphAttributes.justification=Justification.FULLJUSTIFY;break;case"FULLJUSTIFYLASTLINECENTER":e.paragraphAttributes.justification=Justification.FULLJUSTIFYLASTLINECENTER;break;case"FULLJUSTIFYLASTLINELEFT":e.paragraphAttributes.justification=Justification.FULLJUSTIFYLASTLINELEFT;break;case"FULLJUSTIFYLASTLINERIGHT":e.paragraphAttributes.justification=Justification.FULLJUSTIFYLASTLINERIGHT}if(void 0!==t.adbeSingleWordJustification)switch(this.convertJustificationString(t.adbeSingleWordJustification,!0)){case"CENTER":e.paragraphAttributes.singleWordJustification=Justification.CENTER;break;case"LEFT":e.paragraphAttributes.singleWordJustification=Justification.LEFT;break;case"RIGHT":e.paragraphAttributes.singleWordJustification=Justification.RIGHT;break;case"FULLJUSTIFY":e.paragraphAttributes.singleWordJustification=Justification.FULLJUSTIFY;break;case"FULLJUSTIFYLASTLINECENTER":e.paragraphAttributes.singleWordJustification=Justification.FULLJUSTIFYLASTLINECENTER;break;case"FULLJUSTIFYLASTLINELEFT":e.paragraphAttributes.singleWordJustification=Justification.FULLJUSTIFYLASTLINELEFT;break;case"FULLJUSTIFYLASTLINERIGHT":e.paragraphAttributes.singleWordJustification=Justification.FULLJUSTIFYLASTLINERIGHT}}setScalingAttributes(e,t){void 0!==t.adbeMinimumGlyphScaling&&(e.paragraphAttributes.minimumGlyphScaling=t.adbeMinimumGlyphScaling),void 0!==t.adbeMaximumGlyphScaling&&(e.paragraphAttributes.maximumGlyphScaling=t.adbeMaximumGlyphScaling),void 0!==t.adbeDesiredGlyphScaling&&(e.paragraphAttributes.desiredGlyphScaling=t.adbeDesiredGlyphScaling)}setSpacingAttributes(e,t){if(void 0!==t.adbeMaximumWordSpacing&&(e.paragraphAttributes.maximumWordSpacing=t.adbeMaximumWordSpacing),void 0!==t.adbeMinimumWordSpacing&&(e.paragraphAttributes.minimumWordSpacing=t.adbeMinimumWordSpacing),void 0!==t.adbeDesiredWordSpacing&&(e.paragraphAttributes.desiredWordSpacing=t.adbeDesiredWordSpacing),void 0!==t.adbeMaximumLetterSpacing&&(e.paragraphAttributes.maximumLetterSpacing=t.adbeMaximumLetterSpacing),void 0!==t.adbeMinimumLetterSpacing&&(e.paragraphAttributes.minimumLetterSpacing=t.adbeMinimumLetterSpacing),void 0!==t.adbeDesiredLetterSpacing&&(e.paragraphAttributes.desiredLetterSpacing=t.adbeDesiredLetterSpacing),void 0!==t.adbeSpaceAfter){const r=new UnitValue(t.adbeSpaceAfter.value,t.adbeSpaceAfter.type);e.paragraphAttributes.spaceAfter=r.as("pt")}if(void 0!==t.adbeSpaceBefore){const r=new UnitValue(t.adbeSpaceBefore.value,t.adbeSpaceBefore.type);e.paragraphAttributes.spaceBefore=r.as("pt")}}setHyphenationAttributes(e,t){if(void 0!==t.adbeHyphenation&&(e.paragraphAttributes.hyphenation=t.adbeHyphenation),void 0!==t.adbeHyphenationZone){const r=new UnitValue(t.adbeHyphenationZone.value,t.adbeHyphenationZone.type);e.paragraphAttributes.hyphenationZone=r.as("pt")}void 0!==t.adbeHyphenateCapitalizedWords&&(e.paragraphAttributes.hyphenateCapitalizedWords=t.adbeHyphenateCapitalizedWords),void 0!==t.adbeHyphenWeight&&(e.paragraphAttributes.hyphenationPreference=t.adbeHyphenWeight/100),void 0!==t.adbeHyphenateLimit&&(e.paragraphAttributes.maximumConsecutiveHyphens=t.adbeHyphenateLimit),void 0!==t.adbeHyphenateAfterFirst&&(e.paragraphAttributes.minimumAfterHyphen=t.adbeHyphenateAfterFirst),void 0!==t.adbeHyphenateBeforeLast&&(e.paragraphAttributes.minimumBeforeHyphen=t.adbeHyphenateBeforeLast),void 0!==t.adbeHyphenateWordsLongerThan&&(e.paragraphAttributes.minimumHyphenatedWordSize=t.adbeHyphenateWordsLongerThan)}setIndentationAttributes(e,t){if(void 0!==t.adbeFirstLineIndent){const r=new UnitValue(t.adbeFirstLineIndent.value,t.adbeFirstLineIndent.type);e.paragraphAttributes.firstLineIndent=r.as("pt")}if(void 0!==t.adbeLeftIndent){const r=new UnitValue(t.adbeLeftIndent.value,t.adbeLeftIndent.type);e.paragraphAttributes.leftIndent=r.as("pt")}if(void 0!==t.adbeRightIndent){const r=new UnitValue(t.adbeRightIndent.value,t.adbeRightIndent.type);e.paragraphAttributes.rightIndent=r.as("pt")}}setOtherAttributes(e,t){let r;if(void 0!==t.adbeBunriKinshi&&(e.paragraphAttributes.bunriKinshi=t.adbeBunriKinshi),void 0!==t.adbeKinsokuType){switch(this.convertKinsokuTypeString(t.adbeKinsokuType)){case"KinsokuOrderEnum.PUSHOUTFIRST":e.paragraphAttributes.kinsokuOrder=KinsokuOrderEnum.PUSHOUTFIRST;break;case"KinsokuOrderEnum.PUSHIN":e.paragraphAttributes.kinsokuOrder=KinsokuOrderEnum.PUSHIN;break;case"KinsokuOrderEnum.PUSHOUTONLY":e.paragraphAttributes.kinsokuOrder=KinsokuOrderEnum.PUSHOUTONLY}}if(void 0!==t.adbeParaAutoLeading&&(e.paragraphAttributes.autoLeadingAmount=t.adbeParaAutoLeading),void 0!==t.adbeIlstBurasagariType)switch(t.adbeIlstBurasagariType){case"BurasagariTypeEnum.Forced":e.paragraphAttributes.burasagariType=BurasagariTypeEnum.Forced;break;case"BurasagariTypeEnum.Standard":e.paragraphAttributes.burasagariType=BurasagariTypeEnum.Standard;break;case"BurasagariTypeEnum.None":e.paragraphAttributes.burasagariType=BurasagariTypeEnum.None}if(void 0!==t.adbeLeadingModel)switch(t.adbeLeadingModel){case"AutoLeadingType.BOTTOMTOBOTTOM":e.paragraphAttributes.leadingType=AutoLeadingType.BOTTOMTOBOTTOM;break;case"AutoLeadingType.TOPTOTOP":e.paragraphAttributes.leadingType=AutoLeadingType.TOPTOTOP}if(void 0!==t.adbeIlstKurikaeshiMojiShori&&(e.paragraphAttributes.kurikaeshiMojiShori=t.adbeIlstKurikaeshiMojiShori),void 0!==t.adbeKinsokuSet)switch(t.adbeKinsokuSet){case"KinsokuSet.HARD_KINSOKU":e.paragraphAttributes.kinsoku="Hard";break;case"KinsokuSet.SOFT_KINSOKU":e.paragraphAttributes.kinsoku="Soft";break;case"KinsokuSet.NOTHING":e.paragraphAttributes.kinsoku="None"}void 0!==t.adbeIlstMojikumi&&(e.paragraphAttributes.mojikumi=t.adbeIlstMojikumi),void 0!==t.adbeIlstRomanHanging&&(e.paragraphAttributes.romanHanging=t.adbeIlstRomanHanging),void 0!==t.adbeIdsnKashidaWidth&&(r=t.adbeIdsnKashidaWidth.split(".",2)[1],e.paragraphAttributes.kashidaWidth=KashidaWidthType[r]),void 0!==t.adbeIlstComposerEngine&&(r=this.convertComposerEngineTypeString(t.adbeIlstComposerEngine),e.paragraphAttributes.composerEngine=r),void 0!==t.adbeIlstEveryLineComposer&&(e.paragraphAttributes.everyLineComposer=t.adbeIlstEveryLineComposer)}setTabAttributes(e,t){try{if(void 0!==t.adbeTabStops){const r=t.adbeTabStops,n=[];let i;for(i=0;i<r.length;++i)n[i]=new TabStopInfo,n[i].position=r[i].adbeTabPosition.value,n[i].decimalCharacter=r[i].adbeTabAlignmentChar,n[i].alignment=this.convertTabAlignmentTypeString(r[i].adbeTabAlignment),void 0!==r[i].adbeTabLeader&&""!==r[i].adbeTabLeader&&(n[i].leader=r[i].adbeTabLeader);e.paragraphAttributes.tabStops=n}}catch(e){v.Z.log(e)}}addParagraphStyleToAI(e,t,r){let n;if(e=this.processStyleName(e),n=h.activeDocument.paragraphStyles.add(e),void 0===n){if(h.activeDocument.paragraphStyles&&h.activeDocument.paragraphStyles[0].name===e)return null;const i="Temp"+(new Date).valueOf(),o=this.addParagraphStyleToAI(i,t,r);if(null==o)return null;const a=this.getParagraphStyleJSONStringfromAI(i),s=this.getParagraphStyleJSONStringfromAI(e);try{this.removeParagraphStyle(i)}catch(e){v.Z.log("ILST-> TEXT-> addParagraphStyleToAI -> removeParagraphStyle",e)}if(!a||!s)return null;if(n=h.activeDocument.paragraphStyles.getByName(e),a===s)return n;const c=h.sendScriptMessage("Design Library",this.GET_COLLISION_RESPONCE,""),l=JSON.parse(c);if(!l)return null;const u=l.ActionOK&&"true"===l.ActionOK,p=l.useExisting&&"true"===l.useExisting;if(!u)return null;if(p)return n}if(n){n.clear();try{this.addCharacterAttributesToStyle(n,t,r)}catch(e){v.Z.log("addParagraphStyleToAI ->addCharacterAttributesToStyle",e)}try{this.setJustificationAttributes(n,t),this.setScalingAttributes(n,t),this.setSpacingAttributes(n,t),this.setHyphenationAttributes(n,t),this.setIndentationAttributes(n,t),this.setOtherAttributes(n,t),this.setTabAttributes(n,t)}catch(e){v.Z.log("addParagraphStyleToAI ->adding paragraph attributes to style ",e)}}return n}addCharacterStyleToAI(e,t,r){let n;if(e=this.processStyleName(e),n=h.activeDocument.characterStyles.add(e),void 0===n){if(h.activeDocument.characterStyles&&h.activeDocument.characterStyles[0].name===e)return null;const r="Temp"+(new Date).valueOf(),i=this.addCharacterStyleToAI(r,t);if(null==i)return null;const o=this.getCharacterStyleJSONStringfromAI(r),a=this.getCharacterStyleJSONStringfromAI(e);try{this.removeCharacterStyle(r)}catch(e){v.Z.log("ILST-> TEXT-> addCharacterStyleToAI -> removeCharacterStyle",e)}if(!o||!a)return null;if(n=h.activeDocument.characterStyles.getByName(e),o===a)return n;let s=!0,c=!1;if(!0!==this.GlobalConflictResolutionStrategy.initialized){const e=h.sendScriptMessage("Design Library",this.GET_COLLISION_RESPONCE,""),t=JSON.parse(e);if(!t)return null;s=t.ActionOK&&"true"===t.ActionOK,c=t.useExisting&&"true"===t.useExisting,this.GlobalConflictResolutionStrategy.initialized=!0,this.GlobalConflictResolutionStrategy.strategy=s?c?this.ConflictResolutionStrategy.useExisting:this.ConflictResolutionStrategy.useIncoming:this.ConflictResolutionStrategy.wasNotOk}else this.GlobalConflictResolutionStrategy.strategy===this.ConflictResolutionStrategy.wasNotOk?s=!1:this.GlobalConflictResolutionStrategy.strategy===this.ConflictResolutionStrategy.useExisting&&(c=!0);if(!s)return null;if(c)return n}try{n&&(n.clear(),this.addCharacterAttributesToStyle(n,t,r))}catch(e){v.Z.log("addCharacterStyleToAI -> addCharacterAttributesToStyle",e)}return n}setParagraphStyle(e){let t;const r=this.addParagraphStyleToAI(e.name,e),n=h.selection;if(n)try{if(r)if(n._target&&"TextRange"===n._target._className)r.applyTo(n,!0);else if(n.length>0&&void 0!==n[0])for(t=0;t<n.length;t++)n[t]._target&&"TextFrame"===n[t]._target._className&&r.applyTo(n[t].textRange,!0)}catch(e){v.Z.log("Ilst.jsx-setParagraphStyle",e)}}setCharacterStyle(e){let t=0;const r=this.addCharacterStyleToAI(e.name,e),n=h.selection;if(n)try{if(r)if(n._target&&"TextRange"===n._target._className)r.applyTo(n,!0);else if(n.length>0&&void 0!==n[0])for(t=0;t<n.length;t++)n[t]._target&&"TextFrame"===n[t]._target._className&&r.applyTo(n[t].textRange,!0)}catch(e){v.Z.log("Ilst.jsx-setCharacterStyle",e)}}setFont(e){try{"parastyle"===e.type?this.setParagraphStyle(e):this.setCharacterStyle(e)}catch(e){v.Z.log("Ilst.jsx-setFont()",e)}}addParagraphStyles(){this.GlobalConflictResolutionStrategy.initialized=!1;const e=this.TypographyArray.length;let t,r;for(t=0;t<e;t++)r=this.TypographyArray[t],this.addParagraphStyle(r);this.GlobalConflictResolutionStrategy.initialized=!1}addCharacterStyles(){this.GlobalConflictResolutionStrategy.initialized=!1;const e=this.TypographyArray.length;let t,r;for(t=0;t<e;t++)r=this.TypographyArray[t],this.addCharacterStyle(r);this.GlobalConflictResolutionStrategy.initialized=!1}addParagraphStyle(e){this.addParagraphStyleToAI(e.name,e)}addCharacterStyle(e){this.addCharacterStyleToAI(e.name,e)}createTextLayer(e,t,r){if(!1!==t&&(this.TypographyArray=[]),this.TypographyArray.push(e),!1!==r){try{"parastyle"===e.type?this.addParagraphStyles():this.addCharacterStyles()}catch(e){v.Z.log("Ilst.jsx-createTextLayer()",e)}this.TypographyArray=[]}}getCharacterStyleById(e){var t=this;return S(L().mark((function r(){var n,i,o,a,s,c,l;return L().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=window.nodeRequire("uxp").storage.localFileSystem,r.next=3,n.getTemporaryFolder();case 3:i=r.sent,o=i.nativePath+"TextStylePreview"+(new Date).valueOf()+".png",a={};try{(s=t.getCharacterStyleJSONStringfromAI(e,o))&&(c=JSON.parse(s),l={},a.styleName=e,h.activeDocument.characterStyles&&h.activeDocument.characterStyles[0].name===e&&"["===e[0]&&"]"===e[e.length-1]&&(a.styleName=e.substring(1,e.length-1)),t.collectCharacterAttributes(l,c),a.styleInfo=l,a.previewPath=o)}catch(e){}return r.abrupt("return",a);case 8:case"end":return r.stop()}}),r)})))()}getParagraphStyleById(e){var t=this;return S(L().mark((function r(){var n,i,o,a,s,c,l;return L().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={},i={},o=window.nodeRequire("uxp").storage.localFileSystem,r.next=5,o.getTemporaryFolder();case 5:a=r.sent,s=a.nativePath+"TextStylePreview"+(new Date).valueOf()+".png";try{c=t.getParagraphStyleJSONStringfromAI(e,s),(l=JSON.parse(c))&&(n.styleName=e,h.activeDocument.paragraphStyles&&h.activeDocument.paragraphStyles[0].name===e&&"["===e[0]&&"]"===e[e.length-1]&&(n.styleName=e.substring(1,e.length-1)),t.collectParagraphAttributes(i,l),t.collectCharacterAttributes(i,l),n.styleInfo=i,n.previewPath=s)}catch(e){}return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}addCharStyleById(e){var t=this;return S(L().mark((function r(){var n;return L().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.getCharacterStyleById(e);case 3:return n=r.sent,r.abrupt("return",JSON.stringify(n));case 7:r.prev=7,r.t0=r.catch(0);case 9:case"end":return r.stop()}}),r,null,[[0,7]])})))()}addParaStyleById(e){var t=this;return S(L().mark((function r(){var n;return L().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.getParagraphStyleById(e);case 3:return n=r.sent,r.abrupt("return",JSON.stringify(n));case 7:r.prev=7,r.t0=r.catch(0);case 9:case"end":return r.stop()}}),r,null,[[0,7]])})))()}};function T(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */T=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function I(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function P(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){I(o,n,i,a,s,"next",e)}function s(e){I(o,n,i,a,s,"throw",e)}a(void 0)}))}}class C extends f.Z{static check(){return navigator.userAgent.indexOf("UXP")>-1}constructor(e=window){super(e),this.type="Illustrator",this.pluginId="com.adobe.cclibrariespanel",this.hasUXPStockExtension=!0,this.hasOpacityBug=!0,this.additionalStockLicenseCoreModules=[{name:"dom",type:"window-global"}],this.hasInputZOrderBug=!0;const t=window.nodeRequire("uxp").host,r=this.findLocaleMatch(t.locale);this._hostEnvironment={appName:"ILST_UXP",appId:"ILST",appVersion:t.version,isAppOnline:!0,appLocale:r,appUILocale:r,appSkinInfo:{panelBackgroundColor:{color:{alpha:255,green:83,blue:83,red:83}}}}}debugLog(e){return console.info(e),!0}setPanelFlyoutMenu(e){const t=window.nodeRequire("uxp").entrypoints.getPanel("ccLibrariesPanel").menuItems;if(!t)return;let r=0;this._flyoutMenuClickHandlers={};const n=e.map((e=>e.divider?{id:"DIVIDER_"+r++,label:"-"}:(this._flyoutMenuClickHandlers[e.menuId]=e.onClick,{id:e.menuId,label:e.label,enabled:e.enableMenu,checked:e.checked})));for(let e=t.size;e>0;e--)t.removeAt(e-1);n.forEach(((e,r)=>{t.insertAt(r,e)}))}handleFlyout(e){this._flyoutMenuClickHandlers[e]&&this._flyoutMenuClickHandlers[e]()}get exports(){var e=this;return window.nodeRequire("uxp").entrypoints.setup({panels:{ccLibrariesPanel:{show:e=>{this._waitForInit.then((()=>{this._panelMountPoint=this.getMountPoint(e.node),this.renderPanel(this._panelMountPoint)}))},hide:()=>{this._panelMountPoint&&(this.unmountPanel(this._panelMountPoint),this._panelMountPoint.remove(),delete this._panelMountPoint)},menuItems:[],invokeMenu:e=>{this.handleFlyout(e)}}},commands:{adobeStockLicensingPlugin:{run:(t=P(T().mark((function t(r){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.openStockLicenseExtension(JSON.parse(r.data));case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),v.Z.log(t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])}))),function(e){return t.apply(this,arguments)})}}});var t}get hasVideoRenderingBug(){return!!this.isWindowsOS()}exec(e,t,r=[]){var n=()=>super.exec,i=this;return P(T().mark((function o(){var a,s,c,l,u;return T().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("getApplicationVersion"!==t){o.next=5;break}return a=h.version,o.abrupt("return",a);case 5:if("getHostAppPathViaBridgeTalk"!==t){o.next=14;break}return s=window.nodeRequire("uxp").storage.localFileSystem,o.next=9,s.getDataFolder();case 9:return c=o.sent,l=c.nativePath,o.abrupt("return",l);case 14:if("getTempFolder"!==t){o.next=21;break}return s=window.nodeRequire("uxp").storage.localFileSystem,o.next=18,s.getTemporaryFolder();case 18:return u=o.sent,l=u.nativePath,o.abrupt("return",l);case 21:n().call(i,e,t,r);case 22:case"end":return o.stop()}}),o)})))()}execApp(e,t){return"saveAssets"===e?w.saveAssets(t[0]):"placeAsset"===e?w.placeAsset(t):"openAssetForEdit"===e?w.openAssetForEdit(...t):"getTextInfo"===e?O.getTextInfo():"getParaStyleInfo"===e?O.getParaStyleInfo():"getCharStyleInfo"===e?O.getCharStyleInfo():"setFont"===e?O.setFont(t[0]):"createTextLayer"===e?O.createTextLayer(...t):"addCharStyleById"===e?O.addCharStyleById(...t):"addParaStyleById"===e?O.addParaStyleById(...t):"loadAndSelectBrush"===e?w.loadAndSelectBrush(...t):"openDocumentFromTemplate"===e?w.openDocumentFromTemplate(...t):super.exec(this._hostEnvironment.appName,e,t)}addEventListener(e,t){super.addEventListener(e,t),dom.addEventListener(e,t,!1)}removeEventListener(e,t){super.removeEventListener(e,t),dom.removeEventListener(e,t,!1)}getLayerName(){return w.getLayerName()}getLayerInfo(){return w.getLayerInfo()}dispatchEvent(e){dom.dispatchEvent(e.type,e.data)}connectProductInterface(e){const t=(t,r=!0,n)=>i=>{let o;r?i&&(o=e[t](JSON.parse(i))):o=e[t](),n&&o&&n(o)};this.disconnectProductInterface(),this._handlers={dragStarted:t("startDragFromProduct"),dragEnded:t("endDragFromProduct",!1)};for(const e in this._handlers)this.addEventListener(e,this._handlers[e])}disconnectProductInterface(){if(this._handlers){for(const e in this._handlers)this.removeEventListener(e,this._handlers[e]);delete this._handlers}}get application(){return h}get core(){return h}}},85062:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>x,nD:()=>E});var n=r(99386),i=r(16993),o=r(93028),a=r(48919),s=r(77447),c=r.n(s);let l;try{l=localStorage}catch(e){console.error(`Unable to access localStorage: ${e}`);const t={};l={getItem:e=>t[e],setItem:(e,r)=>t[e]=r,removeItem:e=>delete t[e]}}const u=l;var p,d,h,f=r(47320),m=r(50265),g=r(20290);function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var y=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(y,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function b(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 _(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const E=["cs_CZ","da_DK","de_DE","en_US","es_ES","es_MX","fi_FI","fr_FR","fr_CA","fr_MA","hu_HU","id_ID","it_IT","ja_JP","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","ru_RU","sv_SE","th_TH","tr_TR","uk_UA","vi_VN","zh_CN","zh_TW"],w="logged_in",L={win:"Windows",winarm:"Win-ARM:64",mac:"Mac OS X",macarm:"Mac-ARM:64"};let x=(d=_((p=class{constructor(e){this._listeners={},this.supportsAnimations=!0,this.supportsCSSListItem=!0,this.videoElementsSupported=!0,this.developerMode=!1,this.localStorage=u,this.canPlaceElements=!0,this.isMenuInJson=!0,this.recolorLightTextElements=!0,this.supportsDropFiles=!0,this.supportsFileSystem=!0,this.supportsProcessConnection=!0,this._supportsFileURLs=!0,this.supportsFilePicker=!0,this.supportsImagesInButtons=!0,this.supportsNotes=!0,this.supportsExportElement=!1,this.IMSLib=null,this.SmallSpinner=null,this.ElementDragId="com.adobe.cep.dnd.pasteboardtype",this.GroupDragId="com.adobe.cclibraries.dnd.group",b(this,"isViewMounted",d,this),b(this,"_setIsViewMounted",h,this),this.delayProcessLaunch=!1,this.setIsViewMounted=(0,g.Ds)(100,(e=>(this._setIsViewMounted(e),Promise.resolve()))),this._window=e}init(){return Promise.resolve()}notifyProductInitialized(){}connectProductInterface(){}disconnectProductInterface(){}shouldRenderPanel(){return!0}shouldConvertColor(){return!1}convertSingleColor(e){return e}getExtensionID(){return this._extensionId}fetchResourceBundle(e){return function(e){const t=new XMLHttpRequest;return new Promise(((n,i)=>{t.open("GET",`${r.p}locale/${e}/messages.properties`,!0),t.onload=()=>n(t.response),t.onerror=i,t.send()}))}(e).then((e=>function(e){const t={},r=e.split(/\n/);for(let e=0;e<r.length;e++)if(r[e]=r[e].replace(/^\s\s*/,"").replace(/\s\s*$/,""),r[e].length>0&&"#"!==r[e].match("^#")){const n=r[e].split("="),i=n[0].replace(/^\s\s*/,"").replace(/\s\s*$/,"");let o=1===n.length?"":n[1];for(;o.match(/\\$/)&&"\\"===o.match(/\\$/).toString();)o=o.substring(0,o.length-1),o+=r[++e].replace(/\s\s*$/,"");for(let e=2;e<n.length;e++)o+="="+n[e];o=o.replace(/^\s\s*/,"").replace(/\s\s*$/,""),t[i]=o}return t}(e)))}_loadResourceBundle(e){return this.fetchResourceBundle(e).then((e=>this._resourceBundle=e))}get resourceBundle(){return this._resourceBundle}clearResourceBundle(){this._resourceBundle=null}get supportedLocales(){return E}getGlobalRoot(){return this.getUserDataPath()+"/Adobe/Creative Cloud Libraries/"}getLocalRoot(){return this.getGlobalRoot()+this.getAppName()+"/"}getLocalStorageKey(e){return`cclibraries#${e}`}debugLog(e){0}isLibrariesPanel(){return["com.adobe.DesignLibraries.angular","com.adobe.cclibrariespanel","com.adobe.DesignLibraries.touch"].includes(this._extensionId)}isLibrariesManager(){return this._extensionId===n.Z.MANAGER_EXTENSION_ID}getOSName(){const e=o.ZP.DEVICE_DESCRIPTION,t=e&&e.split("-")[0];return t&&L[t]||this._getClientOSName()}_getClientOSName(){const e=this._window.navigator.userAgent;return/windows|win10|win32/i.test(e)?"Windows":/macintosh|darwin/i.test(e)?"Mac OS X":/CrOS/.test(e)?"Chrome OS":/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)?"iOS":"Unknown Operation System"}getOSVersion(){const e=this._window.navigator.platform,t=this._window.navigator.userAgent;if("Win32"===e||"Windows"===e){let e="";return t.includes("Windows")&&(t.includes("Windows NT 6.1")?e="Windows 7":t.includes("Windows NT 6.2")?e="Windows 8":t.includes("Windows NT 6.3")?e="Windows 8.1":t.includes("Windows NT 10")&&(e="Windows 10"),e+=t.includes("WOW64")?" 64-bit":" 32-bit"),e}if("MacIntel"===e||"Macintosh"===e){const e=/[Apple Silicon | Mac OS X ]([0-9_.]+)/.exec(t);return e&&e[1]?e[1].replace(/_/g,"."):""}return""}getOSInformation(){const e=this.getOSName(),t=this.getOSVersion();return e+(t?" "+t:"")}isWindowsOS(){return this.getOSInformation().includes("Win")}getAppName(){return this.getHostEnvironment().appName}getAppVersion(){return this.getHostEnvironment().appVersion}getLocale(e){var t;const r=(null===(t=this.getHostEnvironment())||void 0===t?void 0:t.appUILocale)||"en_US";return e?r:r.replace("_","-")}getAppDescription(){return this.getAppName()+" "+this.getAppVersion()+" "+this.getLocale()}createEvent(e,t,r,n,i){return{type:e,scope:t,appId:r,extensionId:n,data:i}}addEventListener(e,t){this._listeners[e]=this._listeners[e]||[],this._listeners[e].push(t)}removeEventListener(e,t){this._listeners[e]=this._listeners[e]&&this._listeners[e].filter((e=>e!==t))}_notifyEventListeners(e,t){this._listeners[e]&&this._listeners[e].forEach((e=>e(t)))}getFeatureFlag(){}getAvailableExtensions(){return[]}onContextMenu(){}contextMenuEventListeners(e){return{onContextMenu:e}}getRootPanelElement(){return document.body}getPanelWidth(){return window.innerWidth}getPanelHeight(){return window.innerHeight}getHostContainerWidth(){return this.getPanelWidth()}getHostContainerHeight(){return this.getPanelHeight()}isLoggedIn(){return!0}getLoginState(){return w}getCustomPanelView(){}getCustomHeaderView(){}isComposingInputEvent(){}getSavePath(){return Promise.resolve(new Error("getSavePath is not defined"))}getLayerInfo(){return Promise.reject("getLayerInfo is not implemented")}getLayerName(){return Promise.reject("getLayerName is not implemented")}getCurrentDocumentState(){return Promise.resolve({path:void 0,layerID:void 0})}isFontAvailable(){return Promise.resolve(!1)}launchInBrowserAsync(e){e.then((e=>this.launchInBrowser(e)))}hideDebugFlyoutMenu(){return!1}launchInBrowser(){}getProfile(){return{}}get documentLibraryConstants(){return{}}openLibraryManagerWindow(){}isLibraryManagerWindowOpen(){}addManagerInitListener(){}addOpenDialogEventListener(){}getDynamicLayoutBreakpointWidth(){return n.Z.currentProduct.config.getDynamicLayoutBreakpointWidth?n.Z.currentProduct.config.getDynamicLayoutBreakpointWidth():n.Z.GRID_VIEW_BREAKPOINT_SIZE}getDynamicLayoutMinimumBreakpoint(){return n.Z.currentProduct.config.getDynamicLayoutMinimumBreakpoint?n.Z.currentProduct.config.getDynamicLayoutMinimumBreakpoint():n.Z.GRID_MINIMUM_BREAKPOINT}getDynamicLayoutRules(){if(n.Z.currentProduct.config.getDynamicLayoutRules)return n.Z.currentProduct.config.getDynamicLayoutRules();const e="always"===i.Z.nameVisibility?n.Z.GRID_VIEW_NAME_HEIGHT:0;return{[n.Z.GRID_TYPE_LARGE]:{getHeight:t=>Math.floor(.8*t)+e,getColumns:e=>2+e},[n.Z.GRID_TYPE_MEDIUM]:{getHeight:t=>t+e,getColumns:e=>{const t=Math.floor(e/2);return 3+2*t+(t+e%2)}},[n.Z.GRID_TYPE_SMALL]:{getHeight:e=>e,getColumns:e=>4+2*e},[n.Z.GRID_TYPE_WIDE]:{getHeight:()=>n.Z.GRID_TYPE_WIDE_SET_HEIGHT,getColumns:e=>1+Math.floor(e/2)}}}get hasVideoRenderingBug(){return!1}get ignoreFocusOutsideToast(){return!1}navigateToLibrary(e){a.Z.libraryManager.currentLibrary=e}copyContentToClipboard(e){c()(e)}showError(){}showMessage(){}get supportsFileURLs(){return this._supportsFileURLs}set supportsFileURLs(e){this._supportsFileURLs=e}handleDroppedStockElement(e){return(t=v().mark((function t(){var r,n,i,o;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=null==e?void 0:e.currentlyDraggedElement,n=null==e?void 0:e.currentlyDraggedElementPromise,i=null===f.Z||void 0===f.Z?void 0:f.Z.getApplyOperations(r),r&&n&&0!==(null==i?void 0:i.size)){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,n;case 7:return o=i.find((({name:e})=>"DL_ADD_IMAGE_TO_DOC_AS_LINKED"===e))||i[0],t.abrupt("return",o.apply());case 9:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))})();var t}get maintainConnectionToProcess(){return this.isViewMounted}get canLaunchProcess(){return!this.delayProcessLaunch||this.isViewMounted}}).prototype,"isViewMounted",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),h=_(p.prototype,"_setIsViewMounted",[m.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.isViewMounted=e}}}),_(p.prototype,"maintainConnectionToProcess",[m.computed],Object.getOwnPropertyDescriptor(p.prototype,"maintainConnectionToProcess"),p.prototype),_(p.prototype,"canLaunchProcess",[m.computed],Object.getOwnPropertyDescriptor(p.prototype,"canLaunchProcess"),p.prototype),p)},50532:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ao});var n=r(85062),i=r(93028),o=r(47320),a=r(2169),s=r(16993),c=r(50265),l=r(89526),u=r(73961),p=r(14241),d=r(57806),h=r(84824),f=r(21271),m=r.n(f),g=r(76485),v=r(99386);const y="cc-libraries-base-template",b=()=>{let e=document.getElementById(y);if(e)return e;e=document.createElement("template"),e.setAttribute("id",y);const t=document.createElement("html"),r=document.createElement("head"),n=document.createElement("body");return n.style.overflow="visible",t.appendChild(r),t.appendChild(n),e.content.appendChild(t),document.head.appendChild(e),d.ZP.addRoot(t),e};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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||E(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 E(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function w(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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class S extends HTMLElement{constructor(e,t=[],r=[]){super(),this.routeHandlers=[],this.node=e,this.shadowDOM=this.attachShadow({mode:"open"});const n=b().content.firstElementChild.cloneNode(!0);this.shadowDOM.appendChild(n),this.shadowBody=n.querySelector("body"),this.shadowDOM.body=this.shadowBody,this.shadowDOM.documentElement=n,m()(this.shadowDOM),this.mountPoint=document.createElement("div"),this.mountPoint.classList.add(...t),this.shadowBody.appendChild(this.mountPoint);const i=g.Z.getLocale(),o=d.ZP.reactSpectrumTheme,a=d.ZP.appCode,s=v.Z.currentProduct.config.legacySpectrumEnabled;this.shadowBody.classList.add(`locale_${i}`,`ccl-App--${a}`,`ccl-Theme--${o}`,s&&"spectrum-enabled",...r),g.Z.isWindowsOS()&&this.shadowBody.classList.add("windows")}connectedCallback(){const e=!!this.shadowDOM.querySelector("style");d.ZP.addRoot(this.shadowDOM,e).then((()=>{this.render()})),this._localeReactionDispose=(0,c.reaction)((()=>(0,h.Iu)("DL_LIBRARIES")),(()=>{this.handleRouteChange(this.getAttribute("route"))}))}disconnectedCallback(){var e;u.unmountComponentAtNode(this.mountPoint),d.ZP.removeRoot(this.shadowDOM),null===(e=this._localeReactionDispose)||void 0===e||e.call(this)}static get observedAttributes(){return[S.isMobileViewAttributeName,S.isCurrentUserBrandCreator,"route"]}attributeChangedCallback(e,t,r){var n,i=this;return(n=L().mark((function n(){var o,a;return L().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r===t){n.next=12;break}n.t0=e,n.next=n.t0===S.isCurrentUserBrandCreator?4:n.t0===S.isMobileViewAttributeName?6:"route"===n.t0?9:12;break;case 4:return null===(o=g.Z.setIsBrandCreator)||void 0===o||o.call(g.Z,"true"===r),n.abrupt("break",12);case 6:return null===(a=g.Z.setIsMobileView)||void 0===a||a.call(g.Z,"true"===r),"true"===r?i.mountPoint.classList.add("mobile"):i.mountPoint.classList.remove("mobile"),n.abrupt("break",12);case 9:return n.next=11,i.handleRouteChange(r);case 11:return n.abrupt("break",12);case 12:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){x(o,r,i,a,s,"next",e)}function s(e){x(o,r,i,a,s,"throw",e)}a(void 0)}))})()}handleRouteChange(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=E(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this.routeHandlers);try{for(r.s();!(t=r.n()).done;){const r=_(t.value,2),n=r[0],i=r[1],o=n.exec(e);if(o)return i(...o)}}catch(e){r.e(e)}finally{r.f()}}render(e=this.node){this.node=e,u.render(l.createElement(p.X,{portalNode:this.shadowBody},e),this.mountPoint)}}S.isMobileViewAttributeName="ismobileview",S.isCurrentUserBrandCreator="cancreate";class O extends S{connectedCallback(){super.connectedCallback(),g.Z.setCurrentBaseWebComponent(this)}disconnectedCallback(){super.disconnectedCallback(),g.Z.setCurrentBaseWebComponent(null)}constructor(e,t=[],r=[]){super(e,t,r)}}var T,I,P=r(62631),C=r(17632),A=r(27611),k=r(17179);function D(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let N=(0,P.Pi)((D((I=class extends l.Component{get syncStatus(){return i.ZP.syncStatus}get icon(){return l.createElement("span",{className:"error-icon"},l.createElement(A.Z,{id:"CreativeCloudError",height:130,width:130}))}get contents(){return"error"!==this.syncStatus.state?null:l.createElement("div",{className:"list-nolibs-middle","data-test-id":"no-libraries-list-view-content"},this.icon)}render(){return l.createElement("div",{className:"list-nolibs-container","data-test-id":"no-libraries-list-view"},this.contents)}}).prototype,"syncStatus",[c.computed],Object.getOwnPropertyDescriptor(I.prototype,"syncStatus"),I.prototype),D(I.prototype,"icon",[c.computed],Object.getOwnPropertyDescriptor(I.prototype,"icon"),I.prototype),D(I.prototype,"contents",[c.computed],Object.getOwnPropertyDescriptor(I.prototype,"contents"),I.prototype),T=I))||T;var R,M,j,Z=r(72279),F=r(2652),B=r.n(F),G=r(30131);let U=(0,P.Pi)(((j=class extends l.Component{get text(){return l.createElement("div",{className:"onboarding-text"},l.createElement("h1",{"data-test-id":"library-list-onboarding-heading",className:"onboarding-header"},(0,h.Iu)("DL_LIBRARY_LIST_ONBOARDING_HEADER")),l.createElement("div",{"data-test-id":"library-list-onboarding-text"},(0,h.Iu)("DL_LIBRARY_LIST_ONBOARDING_BODY")," ",l.createElement("a",{tabIndex:"0",onKeyPress:e=>"Enter"===e.key?(0,G.I0)(e):null,"data-test-id":"library-list-onboarding-link",className:"onboarding-link",onClick:G.I0},(0,h.Iu)("DL_LIBRARY_LIST_ONBOARDING_LINK"))))}get librariesIcon(){return l.createElement("div",{"data-test-id":"library-list-onboarding-cclibrary-icon",className:"cclibrary-onboarding-icon"},l.createElement(A.Z,{id:"OnboardingCCLibrary",height:184,width:184}))}get createLibraryButton(){return l.createElement("div",{className:"onboarding-action-buttons"},l.createElement(Z.Z,{"data-test-id":"library-list-onboarding-create-button",className:"onboarding-create-library-button",onClick:this.props.handleCreateLibrary},l.createElement("span",{className:"onboarding-action-buttons-label"},(0,h.Iu)("DL_LIB_LIST_ONBOARDING_CREATE_LIBRARY_BUTTON_TEXT"))))}get followLibraryButton(){return l.createElement("div",{className:"onboarding-action-buttons"},g.Z.getIsStarterKitsAvailable&&g.Z.getIsStarterKitsAvailable()?l.createElement(Z.Z,{"data-test-id":"library-list-onboarding-marketplace-button",className:"onboarding-follow-library-button",onClick:this.props.handleMarketplace},l.createElement("span",{className:"onboarding-action-buttons-label"},(0,h.Iu)("DL_GO_MARKETPLACE"))):l.createElement(Z.Z,{"data-test-id":"library-list-onboarding-follow-button",className:"onboarding-follow-library-button",onClick:this.props.handleFollowLibrary},l.createElement("span",{className:"onboarding-action-buttons-label"},(0,h.Iu)("DL_LIB_LIST_ONBOARDING_FOLLOW_LIBRARY_BUTTON_TEXT"))))}get content(){return l.createElement("div",{"data-test-id":"library-list-onboarding-content",className:"onboarding-content"},this.librariesIcon,this.text,this.createLibraryButton,i.ZP.isSharingEnabled&&this.followLibraryButton)}render(){return l.createElement("div",{"data-test-id":"library-list-onboarding",className:"library-list-onboarding"},this.content)}}).propTypes={handleCreateLibrary:B().func.isRequired,handleFollowLibrary:B().func.isRequired,handleMarketplace:B().func.isRequired},z=(M=j).prototype,V="content",H=[c.computed],Y=Object.getOwnPropertyDescriptor(M.prototype,"content"),W=M.prototype,$={},Object.keys(Y).forEach((function(e){$[e]=Y[e]})),$.enumerable=!!$.enumerable,$.configurable=!!$.configurable,("value"in $||$.initializer)&&($.writable=!0),$=H.slice().reverse().reduce((function(e,t){return t(z,V,e)||e}),$),W&&void 0!==$.initializer&&($.value=$.initializer?$.initializer.call(W):void 0,$.initializer=void 0),void 0===$.initializer&&(Object.defineProperty(z,V,$),$=null),R=M))||R;var z,V,H,Y,W,$,K;let q=(function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((K=class extends l.Component{constructor(...e){super(...e),this.resetFilter=()=>{s.Z.resetCurrentLibrariesFilter()}}get text(){return l.createElement("div",{className:"onboarding-text"},l.createElement("div",{"data-test-id":"library-list-empty-filter-view-heading",className:"onboarding-header"},(0,h.Iu)("DL_LIBRARY_LIST_EMPTY_FILTER_VIEW_TITLE")),l.createElement("div",{"data-test-id":"library-list-empty-filter-view-text"},(0,h.Iu)("DL_LIBRARY_LIST_EMPTY_FILTER_VIEW_BODY")))}get librariesIcon(){return l.createElement("div",{"data-test-id":"library-list-empty-filter-view-icon",className:"library-list-empty-filter-icon"},l.createElement(A.Z,{id:"FilterWarning",height:52,width:50}))}get resetFilterLink(){return l.createElement("a",{tabIndex:"0",onKeyPress:e=>"Enter"===e.key&&this.resetFilter(e),"data-test-id":"library-list-empty-filter-view-reset-button",className:"clear-filter-link",onClick:this.resetFilter},(0,h.Iu)("DL_LIBRARY_LIST_EMPTY_FILTER_VIEW_CTA"))}get content(){return l.createElement("div",{"data-test-id":"library-list-empty-filter-view-content",className:"onboarding-content"},this.librariesIcon,this.text,this.resetFilterLink)}render(){return l.createElement("div",{"data-test-id":"library-list-empty-filter-view",className:"library-list-empty-filter"},this.content)}}).prototype,"content",[c.computed],Object.getOwnPropertyDescriptor(K.prototype,"content"),K.prototype),K);var X,J,Q,ee=r(99767),te=r(5849),re=r(41765),ne=r(51461),ie=r(72373),oe=r(73675),ae=r(37800),se=r(46903),ce=r(24937);function le(){return le=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},le.apply(this,arguments)}function ue(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let pe=(0,P.Pi)(((Q=class extends l.Component{constructor(...e){super(...e),this.onFilterChange=()=>{!this.libraries.includes(this.context.libraryManager.currentLibrary)&&this.libraries.length&&g.Z.navigateToLibrary(this.libraries[0])},this.onContextClickTitle=e=>{if(e.preventDefault(),e.stopPropagation(),ie.Z.showDebugMenu()&&e.shiftKey&&e.altKey){const t=e.target.getBoundingClientRect();this.context.viewState.setContextMenuPositionState({x:t.left,y:t.bottom}),g.Z.setContextMenu((0,oe.I0)())}},this.handleCreateLibrary=e=>{this.context.libraryActions.create((e=>g.Z.navigateToLibrary(e)),(()=>{if("addLibraryListMenu"===(e.path&&e.path[0].id)){const t=e.target.shadowRoot.getElementById("addLibraryListMenu");t&&t.focus()}}))},this.handleFollowLibrary=e=>{ne.ZP.reportEvent("Navigation","Library Panel","click","view-public-libraries",{ui:{sequence:e}}),g.Z.openFollowLibrary()},this.handleMarketplace=e=>{ne.ZP.reportEvent("Navigation","Library Panel","click","view-marketplace",{ui:{sequence:e}}),g.Z.routeToStarterKits()},this.handleBrowseMore=()=>{ne.ZP.reportEvent("Library","Library List","click","browse-more-libraries"),g.Z.openBrowseMore()}}get currentLibrariesFilter(){return this.context.viewState.currentLibrariesFilter}get isLoadingLibraries(){if("working"!==this.context.libraryManager.syncStatus.state&&"syncing"!==this.context.libraryManager.syncStatus.state)return!1;return this.context.libraryManager.getNewLibrarySyncProgress().some((e=>e.progress&&!this.context.libraryManager.libraries.find((({id:t})=>t===e.id))))}get loadingLibraries(){return this.isLoadingLibraries&&l.createElement("div",{className:"library-list-load-more"},l.createElement(te.Z,{size:"small",indeterminate:!0}),l.createElement("div",{className:"library-list-load-more-text"},(0,h.Iu)("DL_LOADING_MORE_LIBRARIES")))}get sortedLibraries(){const e=this.context.libraryManager.getCCLibraries(),t=!this.context.viewState.librarySortOrderDescendingState;return"name"===this.context.viewState.librarySortState?k.Z.sortByName(e,t):k.Z.sortByModified(e,!t)}get libraries(){return(0,se.l8)(this.currentLibrariesFilter,this.sortedLibraries)}get libraryList(){return l.createElement("div",{role:"listbox","aria-label":(0,h.Iu)("DL_ARIA_LIBRARY_LIST_TITLE"),"data-test-id":"library-list-content",className:"library-list-content"},this.libraries.map((e=>{var t,r;const n=`${e.id}${"org"===e.ownerType?"-team":""}`,i=g.Z.isContentViewMounted&&this.context.libraryManager.currentLibrary&&this.context.libraryManager.currentLibrary.id===e.id;return l.createElement(C.Z,{isSelected:i,key:n,library:e,onClick:e=>g.Z.navigateToLibrary(e),showContextMenuButton:null===(t=(r=v.Z.currentProduct.config).showLibraryListItemContextMenuButton)||void 0===t?void 0:t.call(r)})})),this.loadingLibraries)}navigationItem({id:e,icon:t,label:r,onClick:n}){return l.createElement(Z.Z,{"data-test-id":`library-list-navigation-item-${e}`,className:"library-list-navigation-item",onClick:n},l.createElement(A.Z,{"data-test-id":`library-list-navigation-item-icon-${e}`,className:"library-list-navigation-item-icon",id:t,height:18}),l.createElement("span",{"data-test-id":`library-list-navigation-item-label-${e}`,className:"library-list-navigation-item-label"},r))}get navigationItems(){const e=g.Z.getIsStarterKitsAvailable&&g.Z.getIsStarterKitsAvailable(),t=this.context.libraryManager.isOnline;return l.createElement("div",{"data-test-id":"navigation",className:"library-list-navigation"},t&&this.navigationItem({id:"browseLibrary",icon:"Browse",label:(0,h.Iu)("DL_MORE_LIBRARY_BROWSE"),onClick:this.handleBrowseMore}),e?this.navigationItem({id:"marketplace",icon:"Shop",label:(0,h.Iu)("DL_GO_MARKETPLACE"),onClick:()=>this.handleMarketplace("add-menu")}):this.navigationItem({id:"followLibrary",icon:"GlobeSearch",label:(0,h.Iu)("DL_LIB_LIST_ONBOARDING_FOLLOW_LIBRARY_BUTTON_TEXT"),onClick:()=>this.handleFollowLibrary("add-menu")}))}get disabledFilters(){return this.context.viewState.getLibraryListFilterOptions().filter((e=>!this.isFilterEnabled(e)))}isFilterEnabled(e){return(0,se.l8)(e,this.sortedLibraries).length>0}get libraryOnboarding(){return this.loadingLibraries||0!==this.libraries.length?1!==this.context.libraryManager.libraries.length||this.isLoadingLibraries?void 0:l.createElement(U,{handleCreateLibrary:this.handleCreateLibrary,handleFollowLibrary:()=>this.handleFollowLibrary("empty-panel"),handleMarketplace:()=>this.handleMarketplace("empty-panel")}):l.createElement(q,null)}get contents(){return!this.context.libraryManager.libraries||this.context.libraryManager.libraries.length<1?l.createElement(N,null):l.createElement(l.Fragment,null,this.navigationItems,l.createElement("div",{"data-test-id":"header",className:"library-list-header"},l.createElement("div",le({"data-test-id":"title",className:"library-list-title"},g.Z.contextMenuEventListeners(this.onContextClickTitle)),(0,h.Iu)(v.Z.currentProduct.config.customPanelTitle||"DL_LIBRARIES_PANEL_NAME")),this.listControls),this.libraryList,this.libraryOnboarding)}get listControls(){return l.createElement("div",{role:"toolbar","aria-label":(0,h.Iu)("DL_ARIA_LIBRARY_LIST_SORT_OPTIONS"),"data-test-id":"controls",className:"library-list-controls"},l.createElement("div",{"data-test-id":"sortControls",className:"library-list-sortControls"},l.createElement(ae.Z,{"data-test-id":"sort-libraries",mode:"libraries",sortOrderControl:!0}),l.createElement(re.Z,{onFilterChange:this.onFilterChange,disabledFilters:this.disabledFilters}),l.createElement(ee.Z,{content:(0,h.Iu)("DL_ADD_LIBRARY_TOOLTIP")},l.createElement("button",{"aria-label":(0,h.Iu)("DL_ADD_LIBRARY_TOOLTIP"),tabIndex:"0","data-test-id":"add-library",className:"library-list-addButton",role:"button",id:"addLibraryListMenu",onClick:this.handleCreateLibrary},l.createElement(A.Z,{id:"Add",height:18})))))}render(){return l.createElement("div",{"data-test-id":"library-list",className:"library-list"},this.contents)}}).contextType=ce.r,ue((J=Q).prototype,"currentLibrariesFilter",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"currentLibrariesFilter"),J.prototype),ue(J.prototype,"isLoadingLibraries",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"isLoadingLibraries"),J.prototype),ue(J.prototype,"loadingLibraries",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"loadingLibraries"),J.prototype),ue(J.prototype,"sortedLibraries",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"sortedLibraries"),J.prototype),ue(J.prototype,"libraries",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"libraries"),J.prototype),ue(J.prototype,"libraryList",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"libraryList"),J.prototype),ue(J.prototype,"libraryOnboarding",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"libraryOnboarding"),J.prototype),ue(J.prototype,"contents",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"contents"),J.prototype),X=J))||X;var de=r(89526);class he extends O{static get observedAttributes(){return["route"]}constructor(){super(de.createElement(pe,null),["ccd-list-container"])}attributeChangedCallback(e,t,r){if("route"===e)g.Z.handleRouteChange(r)}}var fe,me,ge,ve=r(64403),ye=r.n(ve),be=r(64027),_e=r(79012),Ee=r(43616);function we(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Le=(0,P.Pi)(((ge=class extends l.Component{constructor(...e){super(...e),this.onClick=e=>{this.context.viewState.setViewByState(e),ne.ZP.reportEvent("Navigation","Library Panel","click","filter-change")}}get currentSearchType(){return this.context.viewState.getSearchType()}get selectedOption(){return this.context.viewState.viewByState}get groupLabel(){return v.Z.currentProduct.config.viewBySelectCustomOptionGroup||"DL_VIEW_BY_GROUP"}get typeLabel(){return v.Z.currentProduct.config.viewBySelectCustomOptionType||"DL_VIEW_BY_TYPE"}get menuData(){return this.context.viewState.getViewByStateOptions().map((e=>({label:(0,h.Iu)(this[`${e}Label`]),onClick:()=>this.onClick(e),isSelected:e===this.selectedOption,key:e})))}get currentLabel(){return(0,h.Iu)(this[`${this.selectedOption}Label`])}get title(){return l.createElement("div",{className:"panel-select-view-title","data-test-id":"panel-select-view-title"},(0,h.Iu)("DL_GROUP_BY_TITLE"))}render(){return l.createElement("div",{className:"panel-select-view-wrapper"},this.props.showTitle&&this.title,l.createElement(Ee.Z,{data:this.menuData,tooltip:v.Z.currentProduct.config.disableContentViewTooltips?void 0:(0,h.Iu)("DL_VIEW_BY_TOOLTIP"),className:"panel-select-view no-outline-dropdown view-type-dropdown",type:"select-view",currentLabel:this.currentLabel}))}}).contextType=ce.r,ge.propTypes={showTitle:B().bool},we((me=ge).prototype,"currentSearchType",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"currentSearchType"),me.prototype),we(me.prototype,"selectedOption",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"selectedOption"),me.prototype),we(me.prototype,"groupLabel",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"groupLabel"),me.prototype),we(me.prototype,"typeLabel",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"typeLabel"),me.prototype),we(me.prototype,"menuData",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"menuData"),me.prototype),we(me.prototype,"currentLabel",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"currentLabel"),me.prototype),we(me.prototype,"title",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"title"),me.prototype),fe=me))||fe;var xe,Se,Oe,Te,Ie,Pe,Ce=r(53849),Ae=r(95372),ke=r(92652),De=r(91854);function Ne(){return Ne=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},Ne.apply(this,arguments)}function Re(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 Me(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let je=(0,ke.observer)(((Pe=class extends l.Component{constructor(...e){super(...e),Re(this,"isDraggedOver",Oe,this),Re(this,"isDraggedOverBottom",Te,this),Re(this,"isDraggedOverTop",Ie,this),this.handleDragStart=e=>{this.props.isReorderable&&e.dataTransfer.setData(g.Z.GroupDragId,this.props.id),this.props.isCollapsible&&!this.context.viewState.isGroupNavigationCollapsed(this.props.id)&&(this.context.viewState.setCollapsedGroupNavigationToDrag(this.props.id),this.props.onToggleCollapse(e))},this.handleDrop=e=>{if(this.props.isReorderable&&e.dataTransfer.types.includes(g.Z.GroupDragId)){const t=e.dataTransfer.getData(g.Z.GroupDragId);this.props.onReorderDrop(t,this.isDraggedOverBottom);this.context.viewState.collapsedGroupNavigationToDrag(t)&&this.context.viewState.isGroupNavigationCollapsed(t)&&(this.context.viewState.setGroupNavigationCollapsed(t,!1),this.context.viewState.clearCollapsedGroupNavigationToDrag())}else if(this.props.isElementDropTarget&&e.dataTransfer.types.includes(g.Z.ElementDragId)){const t=JSON.parse(e.dataTransfer.getData(g.Z.ElementDragId));this.props.onElementsDrop(t),De.Z.handleDragEnd()}this.isDraggedOver=!1,this.isDraggedOverBottom=!1,this.isDraggedOverTop=!1},this.handleDragOver=e=>{if(e.preventDefault(),e.dataTransfer.dropEffect="move",this.ref)if(this.props.isReorderable&&e.dataTransfer.types.includes(g.Z.GroupDragId)){const t=this.ref.getBoundingClientRect(),r=e.y-t.y;this.isDraggedOverBottom=r>t.height/2,this.isDraggedOverTop=!this.isDraggedOverBottom}else this.props.isElementDropTarget&&e.dataTransfer.types.includes(g.Z.ElementDragId)&&(this.isDraggedOver=!0)},this.handleDragLeave=()=>{this.isDraggedOver=!1,this.isDraggedOverBottom=!1,this.isDraggedOverTop=!1},this.handleKeyDown=e=>{e.stopPropagation(),"Enter"===e.key&&this.props.onToggleCollapse(e)}}get isUngrouped(){return!this.props.id||"*"===this.props.id}get expanderIcon(){if(this.props.expander)return this.props.expander}render(){const e=this.props,t=e.id,r=e.isReorderable,n=e.isElementDropTarget,i=e.onClick,o=e.onContextClick,s=e.children,c=e.requiresFocus,u=e=>{if(c){const t=(0,a.j6)(e);t&&"INPUT"!==t.tagName&&t.blur()}i(e)},p=`section-navigation-${t}`,d=ye()("section-navigation-nav-item",{"is-editing":this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===t,"is-dragged-over-top":this.isDraggedOverTop,"is-dragged-over-bottom":this.isDraggedOverBottom}),h=ye()("section-navigation-nav-item-wrapper",{"is-selected":this.context.viewState.currentSection===t,"is-dragged-over":this.isDraggedOver}),f=this.props.indent+2*v.Z.currentProduct.config.sectionNavIndent,m={onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragEnter:e=>e.preventDefault(),onDragLeave:this.handleDragLeave,onDrop:this.handleDrop,draggable:r},y=c?{tabIndex:"0",onKeyPress:e=>"Enter"===e.key?u(e):null}:{};return l.createElement("div",{"data-test-id":"section-navigation-nav-item-wrapper",className:h,style:{paddingLeft:`${f}px`}},this.expanderIcon,l.createElement("div",Ne({ref:e=>this.ref=e},r||n?m:{},{className:d,key:p,"data-test-id":p,onClick:u,onKeyDown:this.handleKeyDown},y,g.Z.contextMenuEventListeners(o),{style:{width:`calc(100% - ${this.props.indent}px)`}}),l.createElement("div",{className:"section-navigation-nav-item-text"},s)))}}).contextType=ce.r,Pe.propTypes={id:B().string.isRequired,children:B().node.isRequired,isReorderable:B().bool,isElementDropTarget:B().bool,onClick:B().func,onContextClick:B().func,onReorderDrop:B().func,onElementsDrop:B().func,requiresFocus:B().bool,style:B().object,isCollapsible:B().bool,expander:B().node,onToggleCollapse:B().func,indent:B().number},Pe.defaultProps={isCollapsible:!1},Pe.defaultProps={onClick:()=>{},onContextClick:()=>{},onReorderDrop:()=>{},onElementsDrop:()=>{},indent:0},Oe=Me((Se=Pe).prototype,"isDraggedOver",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Te=Me(Se.prototype,"isDraggedOverBottom",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ie=Me(Se.prototype,"isDraggedOverTop",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xe=Se))||xe;var Ze,Fe,Be=r(69233),Ge=r(3303),Ue=r(33275),ze=r(75623);let Ve=(0,P.Pi)(((Fe=class extends l.Component{render(){return l.createElement(Ge.Z,{item:this.props.group,placeholder:this.props.placeholder||(0,h.Iu)("DL_EDIT_GROUP_NAME_PLACEHOLDER"),containerClassName:"panel-group-container-text",inputClassName:"panel-group-container-input",onEditStart:this.props.onEditStart,onEditFinish:this.props.onEditFinish,onEditCancel:this.props.onEditCancel,onOverflowChange:this.props.onOverflowChange,isReadOnly:!this.context.viewState.isLibraryWritable(this.props.group.library),isEditDisabled:!this.context.viewState.isLibraryWritable(this.props.group.library)})}}).contextType=ce.r,Fe.propTypes={group:B().oneOfType([B().instanceOf(Ue.ZA),B().instanceOf(ze.Z)]),placeholder:B().string,onEditStart:B().func,onEditFinish:B().func,onEditCancel:B().func,onOverflowChange:B().func},Ze=Fe))||Ze;var He,Ye,We,$e,Ke=r(48003);function qe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}class Xe extends l.Component{render(){const e=this.props.group.children&&this.props.group.children.length>0;return e||this.props.group.parent?e?l.createElement("div",{"data-test-id":`section-expander-${this.props.group.id}`,className:"section-expander-icon",onClick:this.props.onToggleCollapse},l.createElement(A.Z,{id:this.props.isCollapsed?"ChevronRightMedium":"ChevronDownMedium",height:10})):l.createElement("div",{className:"section-expander-icon"}):l.createElement("div",null)}}Xe.contextType=ce.r,Xe.propTypes={group:B().object.isRequired,isCollapsed:B().bool,onToggleCollapse:B().func};let Je=(0,P.Pi)(($e=class extends l.Component{constructor(...e){super(...e),function(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})}(this,"hasNameTooltip",We,this),this.onGroupClick=e=>{var t;const r=null===(t=this.groupsTree.find((t=>t.item===e)))||void 0===t?void 0:t.children[0];r?Ce.Z.setItemPendingScroll(r.item):Ce.Z.revealGroup(e)},this.onGroupContextClick=(e,t)=>{if(g.Z.setContextMenu&&"*"!==t.id){e.preventDefault(),e.stopPropagation();const r=(0,Ke.M)(t,"Right Click");r.map((e=>e.label=(0,h.Iu)(e.label))),g.Z.setContextMenu(r)}},this.handleReorderDrop=(e,t,r=!1)=>{if(t===e.id)return;const n=this.orderedGroups.filter((e=>this.context.viewState.isGroupNavigationCollapsed(e.id))),i=[];n.forEach((e=>i.push(...(0,Be.xF)(e,!1))));const o=this.orderedGroups.filter((e=>!i.includes(e))),a=e.library.getGroupById(t),s=o.findIndex((t=>t.id===e.id));ne.ZP.setExtraEventMetrics("updateGroup",{content:{category:"List"}});let c=r?e:o[s-1];const l=r?o[s+1]:e,u=c&&this.context.viewState.isGroupNavigationCollapsed(c.id);a.parent===c&&l&&l.parent===c&&!u&&(c=void 0);!a.parent&&c&&!c.parent&&l&&!l.parent||!c||c.parent!==a.parent||l===a.parent||u||(c=void 0),(0,se.dB)(a,c,l),Ce.Z.setItemPendingScroll(a)},this.handleElementsDrop=(e,t)=>{const r=t.elementIds.map((e=>this.context.libraryManager.currentLibrary.getElementById(e))),n=e.library?e:void 0,i=n&&r.every((e=>!!e.getOrderInGroup(n))),o=n?i?"order":"add-to-group":"ungroup";ne.ZP.reportEvent("Element Operations","Element","click",o,{event:{value:"agg",count:r.length},content:{category:"Drag Drop"}},this.context.libraryManager.currentLibrary),ne.ZP.setExtraEventMetrics("updateElement",{subtype:o,content:{category:"Drag Drop List"}}),(0,se.c_)(r,n,null,void 0,"Drag Drop List")},this.handleOverflowChange=e=>{this.hasNameTooltip=e},this.onToggleCollapse=e=>{e.stopPropagation(),this.context.viewState.setGroupNavigationCollapsed(this.group.id,!this.isCollapsed)}}get group(){return this.props.group}get isRenamingMode(){return this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===this.group.id}get isCollapsed(){return this.context.viewState.isGroupNavigationCollapsed(this.props.group.id)}get groupsTree(){return o.Z.groupElementsByCustomGroup(this.context.libraryManager.currentLibrary.elements,this.context.libraryManager.currentLibrary.getGroups(),0,this.context.viewState.elementSortState)}get orderedGroups(){return this.context.viewState.groupsInViewOrder}render(){return l.createElement(je,{isReorderable:this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)&&!!this.group.library&&this.context.viewManager.renamingItem!==this.group&&"order"===this.context.viewState.elementSortState,isElementDropTarget:this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary),key:this.group.id,id:this.group.id,onClick:()=>this.onGroupClick(this.group),onContextClick:e=>this.onGroupContextClick(e,this.group),requiresFocus:!0,onReorderDrop:(e,t)=>this.handleReorderDrop(this.group,e,t),onElementsDrop:e=>this.handleElementsDrop(this.group,e),isCollapsible:this.group.children&&this.group.children.length>0,onToggleCollapse:this.onToggleCollapse,expander:l.createElement(Xe,{group:this.group,onToggleCollapse:this.onToggleCollapse,isCollapsed:this.isCollapsed}),indent:this.props.indent},l.createElement(ee.Z,{className:"group-name-tooltip",placement:"top",content:this.group.name,disable:!this.hasNameTooltip||!!this.isRenamingMode},this.group.name&&l.createElement(Ve,{onOverflowChange:this.handleOverflowChange,group:this.group,key:this.group.id,placeholder:(0,h.Iu)("DL_EDIT_GROUP_NAME_PLACEHOLDER_ACCC")})||(0,h.Iu)("DL_GROUP_UNGROUPED")))}},$e.contextType=ce.r,$e.propTypes={group:B().object.isRequired,indent:B().number},$e.defaultProps={indent:0},We=qe((Ye=$e).prototype,"hasNameTooltip",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qe(Ye.prototype,"groupsTree",[c.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"groupsTree"),Ye.prototype),He=Ye))||He;var Qe,et,tt,rt=r(48919);function nt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let it=(0,P.Pi)((et=class extends l.Component{constructor(...e){super(...e),this.MIN_WIDTH=208,this._MAX_WIDTH=3*this.MIN_WIDTH,this.RESIZE_THRESHOLD=25,function(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})}(this,"_width",tt,this),this.handleClick=()=>{rt.Z.panel.viewState.clearAllSelections()},this.adjustNavWidth=()=>{this._width=Math.min(Math.max(this._width,this.MIN_WIDTH),this.MAX_WIDTH)},this.mouseDragHandler=e=>{if(e.preventDefault(),Math.abs(this._xOffset-e.pageX)>this.RESIZE_THRESHOLD){if(!(1===e.buttons))return this.adjustNavWidth(),void window.removeEventListener("mousemove",this.mouseDragHandler);const t=-1*(this._xOffset-e.pageX)+this._startingPanelWidth;t<=this.MAX_WIDTH&&t>=this.MIN_WIDTH&&(this._width=t)}},this.handleResizeStart=e=>{e.preventDefault(),this._startingPanelWidth=this._width,this._xOffset=e.pageX,window.addEventListener("mousemove",this.mouseDragHandler)}}setCurrentFirstSection(){const e="group"===s.Z.viewByState?this.orderedGroups[0]:this.typedElements[0]&&this.typedElements[0].type;Ce.Z.revealGroup(e,!0)}componentDidUpdate(){s.Z.currentSection||this.setCurrentFirstSection()}componentDidMount(){s.Z.currentSection||this.setCurrentFirstSection(),window.addEventListener("resize",this.adjustNavWidth)}componentWillUnmount(){window.removeEventListener("resize",this.adjustNavWidth)}get typedElements(){return o.Z.groupElementsByType(i.ZP.currentLibrary.elements,s.Z.elementSortState).filter((e=>e.children.length>0))}get typeList(){const e=e=>{const t=this.typedElements.find((t=>t.type===e)).children[0];Ce.Z.setItemPendingScroll(t)};return this.typedElements.map((t=>l.createElement(je,{key:t.type,id:t.type,requiresFocus:!0,onClick:()=>e(t.type)},(0,h.Iu)(o.Z.getTypeName(t.type)))))}get orderedGroups(){return s.Z.groupsInViewOrder}get tree(){const e=s.Z.elementSortState;return(0,Be.GI)(i.ZP.currentLibrary,{sortBy:e})}get groupedSectionsLevels(){const e=this.tree.branches;return Math.max(...Object.values(e).map((e=>e.item.isGroup?e.depth:0)))+1}get subgroupIndent(){const e=this._width*v.Z.SUBGROUP_INDENT_PERCENT,t=this.groupedSectionsLevels;return Math.min(v.Z.MAX_SUBGROUP_INDENT,Math.ceil(e/t))}get groupList(){if(!i.ZP.currentLibrary.elements.length&&this.orderedGroups.length<=1)return;const e=this.subgroupIndent,t=[],r=(n,i)=>{const o=n.item;(o!==v.Z.UNGROUPED_GROUP||n.children.length)&&(t.push(l.createElement(Je,{key:o.id,group:o,indent:i})),s.Z.isGroupNavigationCollapsed(o.id)||n.children&&n.children.forEach((t=>{t.item.isGroup&&r(t,i+e)})))};return this.tree.root.children.forEach((e=>r(e,0))),t}get list(){return"type"===s.Z.viewByState?this.typeList:this.groupList}get disableGroup(){return!s.Z.isLibraryWritable(i.ZP.currentLibrary)||i.ZP.currentLibrary.documentType&&0===i.ZP.currentLibrary.elementCount}get createGroupButton(){if("type"===s.Z.viewByState)return;return l.createElement(je,{isReorderable:!1,isElementDropTarget:!0,key:"newGroupButton",id:"newGroupButton",requiresFocus:!1,onElementsDrop:e=>(e=>{const t=e.elementIds.map((e=>i.ZP.currentLibrary.getElementById(e)));ne.ZP.reportEvent("Element Operations","Element","click","add-to-group",{event:{value:"agg",count:t.length},content:{category:"Drag Drop Group Button"}},i.ZP.currentLibrary),ne.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Drag Drop Group Button"}}),ne.ZP.setExtraEventMetrics("createGroup",{content:{category:"Drag Drop Group Button"}}),(0,se.V5)(t,"Drag Drop Group Button")})(e)},l.createElement("div",{className:"section-navigation-new-group"},l.createElement(Ae.Z,{disableEmptySubgroups:!0,showLabel:!0,disabled:this.disableGroup})))}get navigation(){return l.createElement("div",{className:"section-navigation-nav-list"},l.createElement("div",{className:"section-navigation-nav-list-contents"},this.list))}get MAX_WIDTH(){const e=window.innerWidth/2-2*v.Z.currentProduct.config.windowGutterPaddingWidth;return Math.min(e,this._MAX_WIDTH)}render(){return l.createElement("div",{onClick:this.handleClick,className:ye()("ccd-view-panel",{"is-open":s.Z.showNavigation}),style:{width:this._width},"data-test-id":"ccd-view-panel"},l.createElement("div",{className:"ccd-view-panel-column"},l.createElement(Le,{showTitle:!0}),l.createElement("div",{className:"ccd-section-nav-divider"}),this.createGroupButton,l.createElement("div",{className:"ccd-section-nav-list-wrapper"},this.navigation)),l.createElement("div",{className:"ccd-side-nav-handle",onMouseDown:this.handleResizeStart}))}},tt=nt(et.prototype,"_width",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.MIN_WIDTH}}),nt(et.prototype,"typedElements",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"typedElements"),et.prototype),nt(et.prototype,"typeList",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"typeList"),et.prototype),nt(et.prototype,"tree",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"tree"),et.prototype),nt(et.prototype,"groupedSectionsLevels",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"groupedSectionsLevels"),et.prototype),nt(et.prototype,"subgroupIndent",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"subgroupIndent"),et.prototype),nt(et.prototype,"groupList",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"groupList"),et.prototype),Qe=et))||Qe;var ot,at,st,ct=r(87757),lt=r(75157),ut=r(85834),pt=r(97536),dt=r(74242);function ht(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function ft(){const e=!rt.Z.panel.libraryManager.currentLibrary||rt.Z.panel.libraryManager.currentLibrary.elements.length>0,t="grid"===rt.Z.panel.viewState.viewState,r=[{label:(0,h.Iu)("DL_SORT_NAME"),key:"name"},{label:(0,h.Iu)("DL_SORT_DATE"),key:"modified"}],n=[{label:(0,h.Iu)("DL_SEARCH_SORT_BY_OPTION_ORDER"),key:"order"},{label:(0,h.Iu)("DL_SORT_NAME"),key:"name"}],i="type"===rt.Z.panel.viewState.viewByState?r:n;g.Z.setFooter({navigation:{value:[!0,!1],selected:rt.Z.panel.viewState.showNavigation,onChange:e=>{rt.Z.panel.viewState.setShowNavigation(e),ft()}},zoom:e&&t&&{value:[v.Z.GRID_TYPE_SMALL,v.Z.GRID_TYPE_MEDIUM,v.Z.GRID_TYPE_LARGE],selected:rt.Z.panel.viewState.gridZoomFactor,onChange:e=>{rt.Z.panel.viewState.setGridZoomFactor(e),ft()}},sort:e&&{value:i,selected:rt.Z.panel.viewState.elementSortState,reverse:rt.Z.panel.viewState.elementSortDescendingState,onChange:(e,t)=>{rt.Z.panel.viewState.setElementSortState(e),rt.Z.panel.viewState.setElementSortDescendingState(t),ne.ZP.reportEvent("Navigation","Library Panel","click","sort-change",{content:{type:"element"}}),ft()},supportReverseOrder:!1}})}let mt=(0,P.Pi)((st=class extends l.Component{constructor(e,t){super(e),g.Z.setHeader&&(this.disposeHeaderChangeReaction=(0,c.reaction)((()=>t.libraryManager.isSharingEnabled),(()=>g.Z.setHeader()))),g.Z.setFooter&&(this.disposeViewStateReaction=(0,c.reaction)((()=>t.viewState.viewByState),(()=>ft()),{fireImmediately:!0}),this.disposeLibraryElementsReaction=(0,c.reaction)((()=>t.libraryManager.currentLibrary&&t.libraryManager.currentLibrary.elements.length),(()=>ft()),{fireImmediately:!0}))}componentDidMount(){(0,pt.Sy)()}componentDidUpdate(){const e=this.context.viewState.currentSection;if(!this.library||"type"===this.context.viewState.viewByState||e&&"*"===e||!e)return;if(!this.library.getGroupById(e)){const e=this.context.viewState.groupsInViewOrder;e.length&&this.context.viewState.setCurrentSection(e[0].id)}}componentWillUnmount(){this.disposeViewStateReaction&&this.disposeViewStateReaction(),this.disposeLibraryElementsReaction&&this.disposeLibraryElementsReaction(),this.disposeHeaderChangeReaction&&this.disposeHeaderChangeReaction()}get library(){return this.context.libraryManager.currentLibrary}get viewPanel(){if(this.library&&this.context.viewState.showNavigation)return l.createElement(it,null)}get stickyHeader(){const e=this.context.viewState.currentSection,t=this.library&&0===this.library.elements.length&&0===this.library.getGroups().length||"type"===this.context.viewState.viewByState&&0===this.library.elements.length,r="group"===this.context.viewState.viewByState&&0===this.library.getGroups().length;if(!e||!this.library||t||r)return;const n="type"===this.context.viewState.viewByState||"*"===e?(()=>{const t="*"===e?(0,h.Iu)("DL_GROUP_UNGROUPED"):(0,h.Iu)(o.Z.getTypeName(e));return l.createElement("span",{className:"panel-group-header root last-of-type"},t)})():(()=>{const t=this.library.getGroupById(e);if(t)return l.createElement(dt.Z,{group:t,disableEditing:!0})})();return l.createElement("div",{"data-test-id":"ccd-sticky-header",className:"ccd-sticky-header"},n)}get libraryContents(){return this.library?l.createElement(l.Fragment,null,this.stickyHeader,l.createElement("div",{className:"ccd-contents-container"},l.createElement(be.Z,null))):l.createElement(_e.Z,{className:"panel-nolibs-container"})}get toolkitUnlock(){const e=()=>{this.context.viewState.unlock(this.library),g.Z.setHeader&&g.Z.setHeader()};if(this.library&&this.library.toolkitId&&this.context.viewState.isLocked(this.library)){const t=v.Z.TOOLKIT_TYPES.includes(this.library.toolkitId)?this.library.toolkitId.toUpperCase():"GENERIC";return l.createElement("div",{className:"toolkit-unlocked-bar","data-test-id":"toolkit-unlocked-bar"},l.createElement("div",{className:"toolkit-unlocked-bar-text"},(0,h.Iu)(`DL_${t}_TOOLKIT_UNLOCK_TOAST_MESSAGE`)),l.createElement("button",{className:"toolkit-unlocked-bar-button","data-test-id":"toolkit-unlocked-bar-button",onClick:e},l.createElement("span",{className:"toolkit-unlocked-bar-button-text"},(0,h.Iu)("DL_MY_TOOLKIT_UNLOCK_TOAST_BUTTON"))))}}render(){const e=ye()("panel-contents-wrapper",`panel-contents-zoom-${this.context.viewState.gridZoomFactor}`);return l.createElement(l.Fragment,null,ut.Z.get("showToolkitLibraries")&&this.toolkitUnlock,l.createElement("div",{className:"ccd-contents-wrapper"},this.viewPanel,l.createElement("div",{className:e},this.libraryContents),l.createElement(lt.Z,null),l.createElement(ct.Z,null)))}},st.contextType=ce.r,ht((at=st).prototype,"viewPanel",[c.computed],Object.getOwnPropertyDescriptor(at.prototype,"viewPanel"),at.prototype),ht(at.prototype,"stickyHeader",[c.computed],Object.getOwnPropertyDescriptor(at.prototype,"stickyHeader"),at.prototype),ht(at.prototype,"libraryContents",[c.computed],Object.getOwnPropertyDescriptor(at.prototype,"libraryContents"),at.prototype),ht(at.prototype,"toolkitUnlock",[c.computed],Object.getOwnPropertyDescriptor(at.prototype,"toolkitUnlock"),at.prototype),ot=at))||ot;var gt=r(89526);class vt extends O{static get observedAttributes(){return["route"]}constructor(){super(gt.createElement(mt,null),["ccd-panel-container"])}connectedCallback(){super.connectedCallback(),g.Z.isContentViewMounted=!0}disconnectedCallback(){super.disconnectedCallback(),g.Z.isContentViewMounted=!1,rt.Z.panel.viewState.showRootView()}attributeChangedCallback(e,t,r){if("route"===e)g.Z.handleRouteChange(r)}}var yt,bt,_t=r(84074);let Et=(0,P.Pi)(((bt=class extends l.Component{render(){const e=_t.ZP.dialog;return e?l.cloneElement(e,{close:()=>{e.props.close(),this.props.onClose()}}):(this.props.onClose(),null)}}).propTypes={onClose:B().func.isRequired},yt=bt))||yt;class wt extends S{constructor(){super(l.createElement(Et,{onClose:()=>{return e=this,g.Z.hideDialog(),void d.ZP.removeRoot(e.shadowDOM);var e}}),s.Z.getRemovePadding()?["ccd-dialog-container-no-margin"]:[],s.Z.getRemovePadding()?["ccd-dialog-body-no-margin"]:[])}}var Lt=r(16154),xt=r(89526);class St extends S{constructor(){super(xt.createElement(Lt.Z,null),["ccd-info-container"])}connectedCallback(){super.connectedCallback(),g.Z.isLibrariesViewMounted=!0}disconnectedCallback(){super.disconnectedCallback(),g.Z.isLibrariesViewMounted=!1}}var Ot=r(13169),Tt=r(82562),It=r(74149),Pt=r(45079),Ct=r(96195),At=r.n(Ct),kt=r(32817),Dt=r.n(kt),Nt=r(37642),Rt=r(85080);const Mt={libraryMosaicHeader:"iQ3",libraryMosaicHeaderContainer:"Pve",libraryMosaicTitle:"J9H",libraryMosaicHeaderControls:"pdT",libraryMosaicHeaderButtonContainer:"MNG",libraryMosaicHeaderNewLibrary:"hN8",libraryMosaicHeaderButtonIcon:"p9k",libraryMosaicHeaderSubdivider:"PR-",libraryMosaicToggleButtonContainer:"Ct7",libraryMosaicToggleButton:"PqJ",newButton:"y1R",librarySearchFilter:"n8Y",libraryMosaicHeaderSearch:"gLI",newDropdown:"dfF"};var jt,Zt,Ft;const Bt=v.Z.LIBRARIES_VIEW_STATES.GRID,Gt=v.Z.LIBRARIES_VIEW_STATES.LIST;let Ut=(0,P.Pi)(((Ft=class extends l.Component{constructor(...e){super(...e),this.overlayState=new Rt.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.onSortChange=()=>{ne.ZP.reportEvent("Navigation","Library Panel","click","sort-change",{content:{type:"library"}})},this.onClickBrowseLibraries=()=>{g.Z.openBrowseMore&&(ne.ZP.reportEvent("Navigation","Navigation","click","browse-all-libraries"),g.Z.openBrowseMore())},this.handleCreateLibrary=()=>this.context.libraryActions.create((e=>g.Z.navigateToLibrary(e))),this.onToggleViewClick=()=>{this.context.viewState.setLibrariesViewState(this.context.viewState.librariesViewState===Gt?Bt:Gt)},this.onSearchChange=e=>{this.context.viewState.setSearchText(e)},this.handleClick=()=>{this.overlayState.toggleOverlay()},this.setCustomLabelRef=e=>{this.customLabelRef=e}}get syncStatus(){return this.context.libraryManager.syncStatus}getHeaderButton({id:e,label:t,className:r,onClick:n,icon:i,disabled:o,tooltip:a}){return l.createElement(ee.Z,{content:a,className:Mt.libraryMosaicHeaderButtonContainer},l.createElement(At(),{"data-test-id":`library-mosaic-header-${e}`,label:t,variant:"action",className:ye()(r,Mt.libraryMosaicHeaderButton),disabled:o,icon:i,onClick:n}))}get disableActions(){return!this.context.libraryManager.libraries.length&&"error"===this.syncStatus.state&&!Nt.Cu(this.syncStatus)}get browseAllButton(){const e=!this.context.libraryManager.isOnline||this.disableActions;return this.getHeaderButton({id:e?"browse-all-offline":"browse-all",className:Mt.libraryMosaicHeaderBrowseAll,label:(0,h.Iu)("DL_MORE_LIBRARY_BROWSE_ALL"),onClick:this.onClickBrowseLibraries,disabled:e,icon:l.createElement(A.Z,{id:"Browse",height:14,width:15,className:Mt.libraryMosaicHeaderButtonIcon}),tooltip:e?(0,h.Iu)("DL_MORE_LIBRARY_BROWSE_ALL_OFFLINE"):(0,h.Iu)("DL_MORE_LIBRARY_BROWSE_ALL")})}get newLibraryButton(){return this.getHeaderButton({id:"new-library",label:(0,h.Iu)("DL_NEW_LIBRARY"),className:Mt.libraryMosaicHeaderNewLibrary,onClick:this.handleCreateLibrary,icon:l.createElement(A.Z,{id:"AddCircle",height:14,className:Mt.libraryMosaicHeaderButtonIcon}),tooltip:(0,h.Iu)("DL_NEW_LIBRARY"),disabled:this.disableActions})}get toggleViewButton(){const e=this.context.viewState.librariesViewState===Gt?"GridView":"ListView";return l.createElement(ee.Z,{content:(0,h.Iu)("DL_LIBRARY_TOGGLE_VIEW"),className:Mt.libraryMosaicToggleButtonContainer},l.createElement(At(),{"data-test-id":"library-mosaic-header-toggle-view",variant:"action",className:Mt.libraryMosaicToggleButton,disabled:this.disableActions,onClick:this.onToggleViewClick,icon:l.createElement(A.Z,{id:e,height:16})}))}get filterBySearch(){return l.createElement(Dt(),{"data-test-id":"library-mosaic-header-search",className:Mt.libraryMosaicHeaderSearch,onChange:this.onSearchChange,placeholder:(0,h.Iu)("DL_LIBRARY_MANAGER_SEARCH_INPUT_PLACEHOLDER_AW"),quiet:!0,maxLength:100})}get newButton(){return l.createElement("div",{className:Mt.newDropdown},l.createElement(Ee.Z,{tooltip:(0,h.Iu)("DL_NEW"),data:this.newDropdownData,className:"new-dropdown",type:"newButton",locationBasedOnLabel:!0,currentLabel:this.label,customLabelRef:this.customLabelRef}))}get newDropdownData(){return[{label:(0,h.Iu)("DL_NEW_LIBRARY"),onClick:()=>this.context.dialogManager.openDialog("createLibrary",{createTitle:(0,h.Iu)("DL_NEW_LIBRARY"),onCreate:g.Z.navigateToMosaic}),id:"NewLibrary",iconId:"AddCircle",key:"newLibrary"},{label:(0,h.Iu)("DL_MORE_LIBRARY_BROWSE_ALL"),onClick:()=>{var e;return null===(e=g.Z.navigateToBrowseAll)||void 0===e?void 0:e.call(g.Z)},id:"BrowseAll",iconId:"Browse",key:"browseAll"}]}get label(){return l.createElement("div",{ref:this.setCustomLabelRef},l.createElement(At(),{variant:"cta",onClick:this.handleClick,selected:this.overlayState.isOpen,"data-test-id":"new-button-dropdown"},l.createElement(A.Z,{id:"AddCircle",height:14,className:Mt.newButton}),(0,h.Iu)("DL_NEW")))}get isEmptyView(){return 0===this.context.libraryManager.libraries.length}get libraryMosiacHeaderControls(){return"assets-web"===this.props.variant?l.createElement(l.Fragment,null,l.createElement(re.Z,null),!this.isEmptyView&&l.createElement(l.Fragment,null,l.createElement(ae.Z,{mode:"libraries",sortOrderControl:!0,onSortChange:this.onSortChange}),this.toggleViewButton,l.createElement("span",{"data-test-id":"libraries-search-filter",className:Mt.librarySearchFilter},(0,h.Iu)("DL_SEARCH_FILTERS_TOOLTIP")),this.filterBySearch),l.createElement("span",{"data-test-id":"mosaic-header-divider",className:Mt.libraryMosaicHeaderSubdivider}),this.newButton):l.createElement(l.Fragment,null,this.newLibraryButton,this.browseAllButton,l.createElement("span",{"data-test-id":"mosaic-header-divider",className:Mt.libraryMosaicHeaderSubdivider}),l.createElement(re.Z,{disabled:this.disableActions}),l.createElement(ae.Z,{disabled:this.disableActions,mode:"libraries",sortOrderControl:!0,onSortChange:this.onSortChange}),this.toggleViewButton)}render(){return l.createElement("div",{"data-test-id":"library-mosaic-header",className:Mt.libraryMosaicHeader},l.createElement("div",{className:Mt.libraryMosaicHeaderContainer},l.createElement(Pt.default,{variant:"subtitle1","data-test-id":"mosaic-header-title",className:Mt.libraryMosaicTitle,onContextMenu:se.XT},(0,h.Iu)(v.Z.currentProduct.config.customPanelTitle||"DL_LIBRARIES_PANEL_NAME")),l.createElement("div",{className:Mt.libraryMosaicHeaderControls},this.libraryMosiacHeaderControls)))}}).contextType=ce.r,Ft.defaultProps={variant:"default"},Ft.propTypes={variant:B().oneOf(["assets-web","default"])},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Zt=Ft).prototype,"syncStatus",[c.computed],Object.getOwnPropertyDescriptor(Zt.prototype,"syncStatus"),Zt.prototype),jt=Zt))||jt;var zt=r(10206),Vt=r.n(zt),Ht=r(83377),Yt=r(28086),Wt=r(30222),$t=r(94859),Kt=r(82530);const qt=["children","className","onSelectionChange","selected","actionMenu"];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 Jt(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){Qt(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 Qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function er(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function tr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function rr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function nr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rr(o,n,i,a,s,"next",e)}function s(e){rr(o,n,i,a,s,"throw",e)}a(void 0)}))}}const ir=(0,$t.Z)(r(20731));let or;Kt.env.EXCLUDE_SWC||(or=new Yt.t(["sp-card"],nr(tr().mark((function e(){var t,n;return tr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(5987),r.e(5339)]).then(r.bind(r,73350));case 2:return t=e.sent,n=t.Card,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ar=(0,Ht.Z)({displayName:"Card",fallback:ir.Card,swcLoader:or,SWCWrapper:function(e){const t=e.children,r=e.className,n=e.onSelectionChange,i=e.selected,o=e.actionMenu,a=er(e,qt),s=(0,Wt.Co)("sp-card");return l.createElement(s,Jt(Jt(Jt({},a),(0,Wt.cd)({selected:i})),{},{onchange:n,class:r}),t,o&&l.createElement("div",{slot:"actions"},o))},tagName:"sp-card"}),sr=(0,Ht.Z)({displayName:"CardBody",fallback:ir.CardBody,swcLoader:or,SWCWrapper:function(e){const t=e.title,r=e.subtitle,n=e.description,i=t&&l.createElement("div",{slot:"heading"},t),o=r&&l.createElement("div",{slot:"subheading"},r),a=n&&l.createElement("div",{slot:"description"},n);return l.createElement(l.Fragment,null,i,o,a)},tagName:"sp-card"}),cr=(0,Ht.Z)({displayName:"CardPreview",fallback:ir.CardPreview,swcLoader:or,SWCWrapper:function(e){return e.children?l.createElement("div",{slot:"preview"},e.children):null},tagName:"sp-card"});var lr=r(21694),ur=r(36791),pr=r(39293),dr=r(1149),hr=r(51702);const fr="WKb",mr="Kig",gr="TKs",vr="LCv",yr="xMZ",br="Vlw",_r="qd-";var Er,wr,Lr=r(39611);function xr(){return xr=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},xr.apply(this,arguments)}let Sr=(0,P.Pi)(((wr=class extends l.Component{constructor(...e){super(...e),this.overlayState=new Rt.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleContextMenuClick=e=>{if(g.Z.setContextMenu){this.overlayState.toggleOverlay();const t=(0,pr.Ol)(this.props.library);ne.ZP.reportEvent("Navigation",t?"brands":"libraries","click",(t?"brand":"library")+"-contextual-menu",{},this.props.library),(0,se.au)(e,this.props.library)}}}get coverImage(){const e=this.props.library;return l.createElement(Lr.Z,{viewMode:"grid",renditionGrid:e.renditionGrid,library:e,"data-test-id":"library-grid-mosaic-view"})}get contextMenuButton(){if(!g.Z.isMobileView)return l.createElement("div",{className:ye()("gridContextMenuButton",{open:this.overlayState.isOpen})},l.createElement(hr.Z,{quiet:!0,"data-test-id":"mosaic-context-menu",onContextMenuClick:this.handleContextMenuClick}))}render(){return l.createElement("div",xr({},g.Z.contextMenuEventListeners(this.handleContextMenuClick),{className:ye()(fr,gr),"data-test-id":"mosaic-card-component"}),this.contextMenuButton,this.coverImage)}}).contextType=ce.r,wr.propTypes={library:B().instanceOf(Ue.Zu).isRequired},Er=wr))||Er;var Or=r(98405),Tr=r(6535),Ir=r(59299),Pr=r(98465),Cr=r(82530);const Ar=["className","disabled"];function kr(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 Dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(r),!0).forEach((function(t){Nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rr(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Mr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Mr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function jr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Zr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){jr(o,n,i,a,s,"next",e)}function s(e){jr(o,n,i,a,s,"throw",e)}a(void 0)}))}}let Fr;Cr.env.EXCLUDE_SWC||(Fr=new Yt.t(["sp-status-light"],Zr(Mr().mark((function e(){var t,n;return Mr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(8849)]).then(r.bind(r,35615));case 2:return t=e.sent,n=t.StatusLight,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Br=(0,Ht.Z)({displayName:"StatusLight",fallback:void 0,swcLoader:Fr,swcProps:e=>{const t=e.className,r=e.disabled;return Dr(Dr(Dr({},Rr(e,Ar)),(0,Wt.cd)({disabled:r})),{},{class:t})},tagName:"sp-status-light"}),Gr="FZG",Ur="M43",zr="gJD",Vr="m8S",Hr="eSl";var Yr=r(18580),Wr=r(82530);const $r=["children"],Kr=["className","children","icon","label","onSelect","disabled","focused","invalid","open","quiet","readonly","alignRight","placement","aria-label"];function qr(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 Xr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(r),!0).forEach((function(t){Jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qr(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function en(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */en=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function tn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function rn(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){tn(o,n,i,a,s,"next",e)}function s(e){tn(o,n,i,a,s,"throw",e)}a(void 0)}))}}const nn=r(94801).default;let on;Wr.env.EXCLUDE_SWC||(on=new Yt.t(["sp-action-menu"],rn(en().mark((function e(){var t,n;return en().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6526),r.e(1692),r.e(1478),r.e(2668)]).then(r.bind(r,99307));case 2:return t=e.sent,n=t.ActionMenu,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const an=(0,Ht.Z)({displayName:"DropdownButton",fallback:e=>{const t=e.children,r=Qr(e,$r);return nn?l.createElement(nn,Xr({},r),l.Children.map(t,(e=>l.isValidElement(e)?l.cloneElement(e,{forceFallback:!0}):e))):null},swcLoader:on,SWCWrapper:e=>{const t=(0,l.useRef)(null),r=e.className,n=e.children,i=e.icon,o=e.label,a=e.onSelect,s=e.disabled,c=e.focused,u=e.invalid,p=e.open,d=e.quiet,h=e.readonly,f=e.alignRight,m=e.placement,g=e["aria-label"],v=Qr(e,Kr),y=function(e){if(e)return l.cloneElement(e,{slot:"icon"})}(i),b=o?l.createElement("span",{slot:"label"},o):null,_=f?"bottom-end":m;(0,l.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;null==a||a(t.value)};return e&&a&&e.addEventListener("change",r),()=>{e&&a&&e.removeEventListener("change",r)}}),[a]);const E=Xr(Xr({},(0,Wt.cd)({disabled:s,focused:c,invalid:u,open:p,quiet:d,readonly:h})),{},{label:g,placement:_},v),w=(0,Wt.Co)("sp-action-menu");return l.createElement(w,Xr({ref:t,class:r},E),y,b,"string"!=typeof n&&n)},tagName:"sp-action-menu"});var sn,cn,ln=r(82038),un=r(65843);let pn=(0,P.Pi)(((cn=class extends l.Component{constructor(...e){super(...e),this._onClick=e=>{e.stopPropagation()}}render(){const e=this.props.disabled||!this.props.menuData||0===this.props.menuData.length;return l.createElement(an,{icon:this.props.icon,"data-test-id":this.props.dataTestId||"dropdown-button",quiet:this.props.quiet,placement:this.props.placement,onClick:this._onClick,disabled:e},l.createElement(un.kS,null,l.createElement(ln.Z,{source:this.props.source,menuData:this.props.menuData,iconSize:this.props.menuIconSize,hideDividers:this.props.hideDividers})))}}).contextType=ce.r,sn=cn))||sn;const dn="GdS",hn="MuV",fn="Yos",mn="wAU";var gn,vn,yn;function bn(){return bn=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},bn.apply(this,arguments)}const _n=r(42649);let En=(0,P.Pi)(((yn=class extends l.Component{constructor(...e){super(...e),this.overlayState=new Rt.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleContextMenuClick=e=>{if(g.Z.setContextMenu){this.overlayState.toggleOverlay();const t=(0,pr.Ol)(this.props.library);ne.ZP.reportEvent("Navigation",t?"brands":"libraries","click",(t?"brand":"library")+"-contextual-menu",{},this.props.library),(0,se.au)(e,this.props.library)}}}get isPublished(){return(0,pr.Hc)(this.props.library)}hashCode(e){let t=0;for(let r=0,n=e.length;r<n;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return Math.abs(t)}get coverImage(){const e=this.props.library;if(!e.assetId)return l.createElement(l.Fragment,null);const t=this.hashCode(e.assetId),r=_n(`./cover${t%20+1}.svg`);return l.createElement("img",{className:fn,src:r})}get statusBadge(){return l.createElement("div",{className:mn},this.publishedBadge)}get publishedBadge(){return l.createElement(Br,{"data-test-id":"published-status-light",variant:"positive"},(0,h.Iu)("BRAND_PUBLISHED_BADGE"))}render(){return l.createElement("div",bn({},g.Z.contextMenuEventListeners(this.handleContextMenuClick),{className:ye()(dn,hn),"data-test-id":"mosaic-card-component"}),this.coverImage,this.isPublished&&!Yr.Z.isBrandLifecycleEnabled()&&this.statusBadge)}}).contextType=ce.r,yn.propTypes={library:B().instanceOf(Ue.Zu).isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((vn=yn).prototype,"isPublished",[c.computed],Object.getOwnPropertyDescriptor(vn.prototype,"isPublished"),vn.prototype),gn=vn))||gn;var wn,Ln;let xn=(0,P.Pi)(((Ln=class extends l.Component{getGenStudioContextMenu(e){const t=v.Z.currentProduct.config.disabledLibraryContextMenuActions||[],r=this.context.brandActions.getBrandActions(e).filter((e=>!t.includes(e.id)));return l.createElement(pn,{quiet:!0,menuData:r,hideDividers:!0})}get isBrandLifecycleEnabled(){return Yr.Z.isBrandLifecycleEnabled()}get publishedBadge(){return l.createElement(Br,{"data-test-id":"published-status-light",variant:"positive"},(0,h.Iu)("BRAND_PUBLISHED_BADGE"))}get draftBadge(){return l.createElement(Br,{"data-test-id":"draft-status-light",disabled:!0},(0,h.Iu)("BRAND_DRAFT_BADGE"))}get isPublished(){return(0,pr.Hc)(this.props.brand)}getBrandSubtitle(){var e;let t;return"created"===this.context.viewState.librarySortState&&this.props.brand.created?t=`${(0,h.Iu)("DL_INFO_CREATED")} ${se.p6(this.props.brand.created)}`:this.props.brand.modified&&(t=`${(0,h.Iu)("DL_INFO_MODIFIED")} ${se.p6(this.props.brand.modified)}`),l.createElement("div",{className:Gr,style:{width:null===(e=this.props.itemRect)||void 0===e?void 0:e.width}},l.createElement("div",{className:Ur},this.isBrandLifecycleEnabled&&l.createElement("div",{"data-test-id":"brand-card-subtitle-status-badge",className:zr},this.isPublished?this.publishedBadge:this.draftBadge),t&&l.createElement("span",{"data-test-id":"brand-card-subtitle-date-string",className:Vr},t),!this.isBrandLifecycleEnabled&&l.createElement(ee.Z,{content:se.rU(this.props.brand,!0)},l.createElement("div",{"data-test-id":"brand-card-subtitle-share-icon",className:Hr},se.EU(this.props.brand)))))}render(){return Yr.Z.hasLoaded()?l.createElement(ar,{size:"L",variant:"standard","data-test-id":`library-grid-mosaic-card-${this.props.brand.id}`,allowsSelection:!1,selected:this.props.isDraggedOver,onClick:()=>this.props.handleCardPress(this.props.brand),tabIndex:"0",onKeyDown:e=>"Enter"===e.key?this.props.handleCardPress(this.props.brand):null,"aria-label":this.props.brand.name,key:se.P(this.props.brand),style:{width:"100%",height:"100%"},actionMenu:this.getGenStudioContextMenu(this.props.brand)},l.createElement(cr,null,l.createElement(En,{library:this.props.brand})),l.createElement(sr,{title:this.props.brand.name,subtitle:this.getBrandSubtitle()})):null}}).contextType=ce.r,Ln.propTypes={brand:B().instanceOf(Ue.Zu).isRequired,isDraggedOver:B().bool,handleCardPress:B().func,itemRect:B().object},wn=Ln))||wn;var Sn,On,Tn;function In(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 Pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?In(Object(r),!0).forEach((function(t){Cn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):In(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function An(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let kn=(0,P.Pi)((Tn=class extends l.Component{constructor(...e){super(...e),this.getCellHeight=e=>e+this.CELL_HEIGHT_STATIC_HEIGHT,this.ITEM_VIEWS={library:e=>this._getCard({library:e.data,itemRect:this.getItemRect(e)}),searchResultsHeader:({numResults:e})=>l.createElement("div",null,l.createElement(Ir.Z,{numResults:e})),createItem:({shortType:e,icon:t,buttonText:r,onClick:n})=>l.createElement("div",null,l.createElement(ur.Z,{shortType:e,icon:t,buttonText:(0,h.Iu)(r),onClick:n})),projectsBanner:()=>l.createElement("div",null,l.createElement(Pr.Z,{rootView:!1})),discoverLibrariesMessage:()=>l.createElement("div",null,l.createElement(Or.Z,null))},this.yourLibraryTour={componentId:"/assets/libraries",tourId:"ccd.onboarding.assets.lib.yourLibraries",version:1,tourContent:[{id:"manage.inApp.libraries",stepNumber:10,type:"coachMark",title:(0,h.Iu)("DL_COACHMARK_FIRST_HEADING"),description:(0,h.Iu)("DL_COACHMARK_FIRST_MESSAGE"),target:'[data-test-id="mosaic-view"]',confirmLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_NEXT"),cancelLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_SKIP"),domTarget:"library-personal-view",confirmAnalyticsId:"next",cancelAnalyticsId:"skip",placement:"bottom"},{id:"browse.shared.libraries",stepNumber:20,type:"coachMark",title:(0,h.Iu)("DL_COACHMARK_SECOND_HEADING"),description:(0,h.Iu)("DL_COACHMARK_SECOND_MESSAGE"),target:'[data-test-id="panel-icon-Browse"]',confirmLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_NEXT"),cancelLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_SKIP"),domTarget:"library-personal-view",confirmAnalyticsId:"next",cancelAnalyticsId:"skip",placement:"bottom"},{id:"find.more.libraries",stepNumber:30,type:"coachMark",title:(0,h.Iu)("DL_COACHMARK_THIRD_HEADING"),description:(0,h.Iu)("DL_COACHMARK_THIRD_MESSAGE"),target:'[id="tabId-CCDMarket"]',confirmLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_FINISH"),confirmAnalyticsId:"done",placement:"bottom"}]},this.getItemRect=e=>{const t=this.cellDimensions,r=t.CELL_PADDING_BOTTOM,n=t.CELL_PADDING_RIGHT,i=t.CELL_WIDTH_MIN,o=t.CELL_HEIGHT_STATIC_HEIGHT,a=t.CONTAINER_PADDING_TOP,s=t.MIN_COLUMNS||Math.max(Math.floor((this.props.width-n)/(i+n)),1),c=this.items.indexOf(e)-(this.showSearchHeader?1:0),l=(this.props.width-n)/s-n,u=l+o,p=this.showSearchHeader?Ir.Z.getHeight(e.numResults,this.props.width):0,d=n+c%s*(l+n),h=a+p+Math.floor(c/s)*(u+r);if("search-results-header"===e.key){return{height:p,width:this.props.width||0,x:0,y:a}}if("discover-libraries-message"===e.key){const e=g.Z.isMobileView?200:500,t=this.props.libraries.length?c%s==0?h:h+u:100;return{height:400,width:e,x:this.props.width/2-e/2,y:t+a}}if("projects-banner"===e.key){return{height:30,width:this.props.width-2*n||0,x:n,y:h+u+r}}return{height:u,width:l,x:d,y:h}},this.componentDidMount=()=>{this.context.viewState.setViewState("grid"),this.props.libraries.forEach((e=>{se.R3(e)&&this.context.libraryManager.fetchLibraryCollaborations(e,v.Z.FETCH_COLLABORATIONS_THROTTLE)})),this.registerYourLibraryTour()},this.registerYourLibraryTour=()=>{if(g.Z.ccdAPI){g.Z.ccdAPI.ccdContext.getOnboardingManager().registerOnboarding(this.yourLibraryTour,"CCLibs")}},this.handleCardPress=e=>{const t=e.isDocumentAssets?"select-document-assets":"select-library";ne.ZP.reportEvent("Navigation","Library Panel","click",t,null,e);const r=this.context.viewState,n=r.getSearchText();if(v.Z.currentProduct.config.reportSearchSDMEvents&&r.isSearchMode()&&n){const t=pr.Ol(e),i=(t?(0,se.l8)("brand",r.librariesInViewOrder):(0,se.l8)("notBrand",r.librariesInViewOrder)).indexOf(e)+1,o={"custom.library.type":(0,dr.$2)(e.ownership),"custom.library.filter":t?"brand":"library","ui.search_keyword":n,"custom.ui.location":t?"homes-brands-tab":"homes-libraries-tab","custom.search.rank":i,"custom.search.id":r.getSearchId()};v.Z.currentProduct.config.reportSearchSDMEvents(o)}g.Z.navigateToLibrary(e),v.Z.currentProduct.config.keepSearchOnLibraryNavigate||(r.setSearchText(""),r.setSearchType("library"))},this._getCard=e=>{const t=e.library,r=e.itemRect;return l.createElement(lr.Z,{className:mr,library:t},(e=>v.Z.currentProduct.config.showBrandCard?l.createElement(xn,{itemRect:r,isDraggedOver:e,brand:t,handleCardPress:this.handleCardPress}):l.createElement(ar,{size:g.Z.isMobileView?"S":"L",variant:v.Z.currentProduct.config.mosaicCardVariant||"standard","data-test-id":`library-grid-mosaic-card-${t.id}`,allowsSelection:!1,selected:e,onClick:()=>this.handleCardPress(t),tabIndex:"0",onKeyDown:e=>"Enter"===e.key?this.handleCardPress(t):null,"aria-selected":this.context.libraryManager.currentLibrary===t,"aria-label":t.name,key:se.P(t),style:{width:"100%",height:"100%"}},l.createElement(cr,null,l.createElement(Sr,{library:t})),l.createElement(sr,{title:t.name,subtitle:l.createElement("span",null,this.getLibraryInfo(t,r))}))))}}get cellDimensions(){return g.Z.isMobileView?{CELL_PADDING_BOTTOM:16,CELL_PADDING_RIGHT:16,CELL_WIDTH_MIN:150,CELL_HEIGHT_STATIC_HEIGHT:0,CONTAINER_PADDING_TOP:8,MIN_COLUMNS:v.Z.currentProduct.config.mobileMosaicMinColumns}:{CELL_PADDING_BOTTOM:void 0===v.Z.currentProduct.config.mosaicCellPaddingBottom?24:v.Z.currentProduct.config.mosaicCellPaddingBottom,CELL_PADDING_RIGHT:24,CELL_WIDTH_MIN:v.Z.currentProduct.config.mosaicCardWidth||150,CELL_HEIGHT_STATIC_HEIGHT:v.Z.currentProduct.config.mosaicCellHeightStatic||0,CONTAINER_PADDING_TOP:void 0===v.Z.currentProduct.config.mosaicContainerPaddingTop?24:v.Z.currentProduct.config.mosaicContainerPaddingTop}}get projectNameLoading(){return l.createElement("div",{className:"ghost-loading-wrapper"},l.createElement("div",{"data-test-id":"ghost-loading",className:"ghost-loading"}))}getLibrarySubtitle(e,t){const r=se.$_(e);let n=e.ownership?t:null;return n=Array.isArray(n)?n[0]:n,!n&&r?this.projectNameLoading:n}getLibraryInfo(e,t){const r=se.$_(e),n=se.rU(e),i=r?n[1]:null;return l.createElement("div",{className:vr,style:{width:t.width}},l.createElement(ee.Z,{content:se.rU(e,!0)},l.createElement("div",{className:br},se.EU(e),l.createElement("span",{className:yr,"data-test-id":"library-subtitle"},this.getLibrarySubtitle(e,n),r&&i&&l.createElement("span",{className:_r},i)))))}get _showDiscoverMessage(){var e,t;return null===(e=(t=v.Z.currentProduct).showDiscoverMessageInRootView)||void 0===e?void 0:e.call(t,this.props.libraries.length||0)}get _showProjectsBanner(){var e,t,r;const n=(0,pt.J2)(),i=(null===(e=this.context.libraryManager.projects)||void 0===e?void 0:e.length)>0;return(null===(t=v.Z.currentProduct.config)||void 0===t||null===(r=t.hasProjectsBanner)||void 0===r?void 0:r.call(t))&&n&&i}get showSearchHeader(){return this.props.libraries.length&&this.context.viewState.isLibraryNameSearchMode()}get items(){let e=[];this.showSearchHeader&&(e=[{key:"search-results-header",type:"searchResultsHeader",numResults:this.props.libraries.length}]);let t=[];if(this.props.libraries.length&&!this.showSearchHeader&&v.Z.currentProduct.config.enableCreateItemCards){t=[Pn({key:"create-library-card",type:"createItem"},"brand"===this.props.filterBy?{shortType:"brand",icon:"CCXCreateLogo",buttonText:"DL_CREATE_NEW_BRAND_LIBRARY",onClick:()=>{this.context.libraryActions.createBrandLibrary()}}:{shortType:"library",icon:"CCXLibraryLarge",buttonText:"DL_CREATE_DESIGN_LIBRARY",onClick:()=>this.context.dialogManager.openDialog("createLibrary")})]}const r=this._showDiscoverMessage?[{key:"discover-libraries-message",type:"discoverLibrariesMessage",x:12,y:500,height:100}]:[],n=this._showProjectsBanner?[{key:"projects-banner",type:"projectsBanner"}]:[];return[...e,...t,...this.props.libraries.map((e=>({data:e,key:se.P(e),type:"library"}))),...n,...r]}render(){const e=this.props,t=e.width,r=e.height;return l.createElement("div",{className:this.props.className,"data-test-id":"library-grid-view"},l.createElement(Vt(),{id:"library-grid",items:this.items,itemKey:e=>e.key,itemType:e=>e.type,itemRect:this.getItemRect,style:{width:t,height:r,paddingBottom:"30px"}},(e=>this.ITEM_VIEWS[e.type](e))))}},Tn.contextType=ce.r,Tn.propTypes={height:B().number,width:B().number,libraries:B().arrayOf(B().oneOfType([B().instanceOf(Ue.Zu),B().instanceOf(Tr.Z)])),className:B().string,filterBy:B().string},An((On=Tn).prototype,"cellDimensions",[c.computed],Object.getOwnPropertyDescriptor(On.prototype,"cellDimensions"),On.prototype),An(On.prototype,"showSearchHeader",[c.computed],Object.getOwnPropertyDescriptor(On.prototype,"showSearchHeader"),On.prototype),An(On.prototype,"items",[c.computed],Object.getOwnPropertyDescriptor(On.prototype,"items"),On.prototype),Sn=On))||Sn;const Dn={libraryListContainer:"z_T",libraryMosaicListItem:"Z6E",isDraggedOver:"kKg",libraryMosaicListItemContextMenuContainer:"_dK",libraryMosaicListItemContextMenu:"Xo2",libraryMosaicListItemSharedIcon:"OAi",libraryMosaicListItemMosaicTileContainer:"mv5",libraryMosaicListHeaderContainer:"RZo",libraryMosaicListItemName:"FdZ",libraryMosaicListItemIconContainer:"qof",libraryMosaicListItemModifiedContainer:"bZ-",libraryMosaicListItemNameContainer:"O6x",libraryMosaicListNameColumnContainer:"rwq",libraryMosaicListModifiedColumnContainer:"uUR",libraryMosaicListItemContainer:"n63",libraryMosaicListHeaderInnerContainer:"ehh",libraryMosaicHeaderText:"DQS",libraryMosaicItemTeamName:"i8r",libraryMosaicItemText:"G_1",libraryMosaicListItemSharingContainer:"Yfc",libraryMosaicListHeaderTitle:"Sh5"};var Nn,Rn;function Mn(){return Mn=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},Mn.apply(this,arguments)}let jn=(0,P.Pi)(((Rn=class extends l.Component{constructor(...e){super(...e),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.library)},this.handleContextMenuClick=e=>{if(g.Z.setContextMenu){const t=pr.Ol(this.props.library);ne.ZP.reportEvent("Navigation",t?"brands":"libraries","click",(t?"brand":"library")+"-contextual-menu",{},this.props.library),(0,se.au)(e,this.props.library)}}}get dataTestId(){return`library-mosaic-list-item-${this.props.library.id}`}get shareLabel(){return se.rU(this.props.library)}get shareTooltip(){return se.rU(this.props.library,!0)}get shareStatus(){const e=this.shareLabel,t=se.$_(this.props.library),r="private"!==this.props.library.ownership&&Array.isArray(e)?e[0]:e,n=t?e[1]:null,i=se.EU(this.props.library);return l.createElement(ee.Z,{className:ye()(Dn.libraryMosaicListItemContainer,Dn.libraryMosaicListItemIconContainer),content:this.shareTooltip},l.createElement("div",{"data-test-id":"library-mosaic-list-item-sharing-container",className:Dn.libraryMosaicListItemSharingContainer},i&&l.createElement("div",{"data-test-id":"icon",className:Dn.libraryMosaicListItemSharedIcon},i),e&&l.createElement("span",{"data-test-id":"sharing-label"},r),t&&n&&l.createElement("span",{"data-test-id":"org-name",className:ye()(Dn.libraryMosaicItemTeamName,Dn.libraryMosaicItemText)},n)))}get modifiedDate(){const e=(0,se.p6)(this.props.library.modified);return l.createElement("div",{className:ye()(Dn.libraryMosaicListItemContainer,Dn.libraryMosaicListItemModifiedContainer,Dn.libraryMosaicItemText),"data-test-id":"library-mosaic-list-item-modified"},e)}get contextMenu(){return l.createElement("div",{className:Dn.libraryMosaicListItemContextMenuContainer},l.createElement("div",{className:Dn.libraryMosaicListItemContextMenu},l.createElement(hr.Z,{"data-test-id":"library-mosaic-list-item-context-menu",onContextMenuClick:this.handleContextMenuClick})))}get mosaicGrid(){return l.createElement("div",{className:Dn.libraryMosaicListItemMosaicTileContainer},l.createElement(Lr.Z,{viewMode:"list",renditionGrid:this.props.library.renditionGrid,library:this.props.library,"data-test-id":"library-list-mosaic-view"}))}render(){return l.createElement(lr.Z,{library:this.props.library},(e=>{const t=ye()(Dn.libraryMosaicListItem,{isDraggedOver:e});return l.createElement("div",Mn({"data-test-id":this.dataTestId,className:t,onClick:this.handleClick},g.Z.contextMenuEventListeners(this.handleContextMenuClick),{onKeyDown:e=>"Enter"===e.key?this.handleClick():null,tabIndex:"0",role:"list","aria-selected":this.context.libraryManager.currentLibrary===this.props.library,"aria-label":`${this.props.library.name}, ${this.shareLabel}`}),this.mosaicGrid,l.createElement("div",{className:ye()(Dn.libraryMosaicListNameContainer,Dn.libraryMosaicListNameColumnContainer)},l.createElement("div",{"data-test-id":"library-mosaic-list-item-name",className:ye()(Dn.libraryMosaicListItemName,Dn.libraryMosaicItemText)},this.props.library.name)),this.modifiedDate,this.props.showSharingStatus&&this.shareStatus,this.contextMenu)}))}}).contextType=ce.r,Rn.defaultProps={showSharingStatus:!0},Rn.propTypes={library:B().oneOfType([B().instanceOf(Ue.Zu),B().instanceOf(Tr.Z)]).isRequired,onClick:B().func,showSharingStatus:B().bool},Nn=Rn))||Nn;var Zn,Fn,Bn;function Gn(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Un=(0,P.Pi)(((Bn=class extends l.Component{constructor(...e){super(...e),this.handleSortChange=e=>{this.context.viewState.librarySortState===e?this.context.viewState.setLibrarySortOrderDescendingState(!this.context.viewState.librarySortOrderDescendingState):this.context.viewState.setLibrarySortState(e)},this.handleKeyDown=(e,t)=>{"Enter"===e.key&&this.handleSortChange(t)}}get libraryList(){return l.createElement("div",{role:"listbox","aria-label":(0,h.Iu)("DL_ARIA_LIBRARY_LIST_TITLE"),"data-test-id":"library-mosaic-list-content"},this.props.libraries.map((e=>{const t=`${e.id}${"org"===e.ownerType?"-team":""}`;return l.createElement("div",{key:t,"data-test-id":"library-mosaic-list-item"},l.createElement(jn,{library:e,showSharingStatus:this.props.showSharingStatus,onClick:e=>g.Z.navigateToLibrary(e)}),l.createElement("hr",null))})))}get sortingIcon(){const e=this.context.viewState.librarySortOrderDescendingState?"ArrowUp":"ArrowDown",t=this.context.viewState.librarySortOrderDescendingState?"arrow-up":"arrow-down";return l.createElement("span",{"data-test-id":t},l.createElement(A.Z,{id:e,height:10}))}get listViewHeader(){return l.createElement("div",null,l.createElement("div",{className:Dn.libraryMosaicListHeaderContainer},l.createElement("div",{"data-test-id":"library-mosaic-list-item-header-mosaic-tile",className:Dn.libraryMosaicListItemMosaicTileContainer}),l.createElement("div",{className:ye()(Dn.libraryMosaicListNameColumnContainer,Dn.libraryMosaicListItemNameContainer,Dn.libraryMosaicListHeaderTitle),"data-test-id":"library-mosaic-list-item-header-name",onClick:()=>this.handleSortChange("name"),onKeyDown:e=>this.handleKeyDown(e,"name")},l.createElement("div",{tabIndex:"0",className:Dn.libraryMosaicListHeaderInnerContainer},l.createElement("span",{className:Dn.libraryMosaicHeaderText},(0,h.Iu)("DL_LIST_VIEW_HEADER_NAME")),"name"===this.context.viewState.librarySortState&&this.sortingIcon)),l.createElement("div",{className:ye()(Dn.libraryMosaicListItemContainer,Dn.libraryMosaicListHeaderTitle,Dn.libraryMosaicListModifiedColumnContainer),"data-test-id":"library-mosaic-list-item-header-modified",onClick:()=>this.handleSortChange("modified"),onKeyDown:e=>this.handleKeyDown(e,"modified")},l.createElement("div",{tabIndex:"0",className:Dn.libraryMosaicListHeaderInnerContainer},l.createElement("span",{className:Dn.libraryMosaicHeaderText},(0,h.Iu)("DL_LIST_VIEW_HEADER_MODIFIED")),"modified"===this.context.viewState.librarySortState&&this.sortingIcon)),this.props.showSharingStatus&&l.createElement("div",{className:ye()(Dn.libraryMosaicListItemContainer,Dn.libraryMosaicListHeaderTitle,Dn.libraryMosaicHeaderText),"data-test-id":"library-mosaic-list-item-header-sharing"},(0,h.Iu)("DL_LIST_VIEW_HEADER_SHARING"))),l.createElement("hr",null))}get contents(){return l.createElement(l.Fragment,null,this.listViewHeader,this.libraryList)}render(){return l.createElement("div",{"data-test-id":"library-mosaic-list",className:Dn.libraryListContainer},this.contents)}}).contextType=ce.r,Bn.defaultProps={showSharingStatus:!0},Bn.propTypes={libraries:B().arrayOf(B().oneOfType([B().instanceOf(Ue.Zu),B().instanceOf(Tr.Z)])),showSharingStatus:B().bool},Gn((Fn=Bn).prototype,"libraryList",[c.computed],Object.getOwnPropertyDescriptor(Fn.prototype,"libraryList"),Fn.prototype),Gn(Fn.prototype,"contents",[c.computed],Object.getOwnPropertyDescriptor(Fn.prototype,"contents"),Fn.prototype),Zn=Fn))||Zn;const zn="tNa",Vn="WdN",Hn="rsS",Yn="lXg",Wn="TQO",$n="s05";var Kn,qn,Xn,Jn=r(59157);function Qn(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ei=(0,P.Pi)(((Xn=class extends l.Component{constructor(...e){super(...e),this.getLibrariesContent=({width:e,height:t})=>this.currentViewState===v.Z.LIBRARIES_VIEW_STATES.GRID?l.createElement("div",{className:Vn},l.createElement("div",{className:Yn},l.createElement(kn,{height:t,width:e,libraries:this.libraries,filterBy:this.filterBy}))):l.createElement(Un,{height:t,width:e,libraries:this.libraries}),this.handleDrop=e=>{(0,It.pI)(null,e)}}get currentViewState(){return this.props.viewState||this.context.viewState.librariesViewState}get filterBy(){return this.props.filterBy||this.context.viewState.currentLibrariesFilter||"all"}get isSearchFiltering(){return!(!("all"!==this.context.viewState.currentLibrariesFilter)&&!this.context.viewState.getSearchText())}get libraries(){const e=this.filterBy,t=this.props.libraries||this.context.viewState.librariesInViewOrder;return(0,se.l8)(e,t)}get emptyView(){if(this.isSearchFiltering)return l.createElement(Tt.Z,{view:"personal"});if(v.Z.currentProduct.config.customEmptyRootState){const e=v.Z.currentProduct.config.customEmptyRootState;return l.createElement(e,null)}return l.createElement(_e.Z,{className:$n})}get librariesView(){const e=g.Z.AutoSizer||Ot.Z;return l.createElement(e,null,this.getLibrariesContent)}get header(){return this.props.header||l.createElement(Ut,null)}get content(){return this.libraries.length?l.createElement("div",{className:Hn},this.librariesView):this.emptyView}render(){return l.createElement("div",{"data-test-id":"panel-root-expanded-view",className:zn,onDrop:this.handleDrop,onClick:e=>{if(e.detail>=4)throw new Error("Rage Clicking")}},this.header,this.content,l.createElement(lt.Z,null),l.createElement("div",{className:Wn},l.createElement(Jn.Z,null)))}}).contextType=ce.r,Xn.propTypes={libraries:B().arrayOf(B().oneOfType([B().instanceOf(Ue.Zu),B().instanceOf(Tr.Z)])),header:B().node,filterBy:B().string,viewState:B().oneOf(["grid","list"])},Qn((qn=Xn).prototype,"isSearchFiltering",[c.computed],Object.getOwnPropertyDescriptor(qn.prototype,"isSearchFiltering"),qn.prototype),Qn(qn.prototype,"libraries",[c.computed],Object.getOwnPropertyDescriptor(qn.prototype,"libraries"),qn.prototype),Qn(qn.prototype,"emptyView",[c.computed],Object.getOwnPropertyDescriptor(qn.prototype,"emptyView"),qn.prototype),Qn(qn.prototype,"librariesView",[c.computed],Object.getOwnPropertyDescriptor(qn.prototype,"librariesView"),qn.prototype),Qn(qn.prototype,"header",[c.computed],Object.getOwnPropertyDescriptor(qn.prototype,"header"),qn.prototype),Qn(qn.prototype,"content",[c.computed],Object.getOwnPropertyDescriptor(qn.prototype,"content"),qn.prototype),Kn=qn))||Kn;var ti,ri,ni;let ii=(0,P.Pi)(((ni=class extends l.Component{componentDidUpdate({teamNames:e}){e!==this.props.teamNames&&this.context.libraryManager.refreshTeams()}get sortBy(){return"modifiedDate"===this.props.sortBy?"modified":this.props.sortBy}get libraries(){const e=this.props,t=e.sortBy,r=e.filterBy,n="asc"===this.props.sortOrder,i=this.context.viewState.getSearchText(),o=(0,se.l8)("team",this.context.libraryManager.getCCLibraries());return(0,se.zc)(o,{sortBy:t,filterBy:r,isAscending:n,searchText:i}).filter((e=>e.team.id===this.props.teamId))}render(){return l.createElement(ei,{libraries:this.libraries,viewState:this.props.viewType})}}).contextType=ce.r,ni.propTypes={filterBy:B().oneOf(["all","addedToYourLibraries","notAdded"]),sortBy:B().oneOf(["name","modifiedDate"]),sortOrder:B().oneOf(["asc","desc"]),viewType:B().oneOf(["grid","list"]),theme:B().oneOf(["light","dark"]),teamId:B().string,teamNames:B().string},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((ri=ni).prototype,"libraries",[c.computed],Object.getOwnPropertyDescriptor(ri.prototype,"libraries"),ri.prototype),ti=ri))||ti;var oi=r(89526);class ai extends O{static get observedAttributes(){return["teamnames","teamid","filterby","sortby","sortorder","viewtype","theme"]}constructor(){super(oi.createElement(ii,null),["ccd-panel-container"])}attributeChangedCallback(){const e=this.getAttribute("teamnames"),t=this.getAttribute("teamid"),r=this.getAttribute("filterby"),n=this.getAttribute("sortby"),i=this.getAttribute("sortorder"),o=this.getAttribute("viewtype"),a=this.getAttribute("theme");this.render(oi.createElement(ii,{teamNames:e,teamId:t,filterBy:r,sortBy:n,sortOrder:i,viewType:o,theme:a}))}}var si=r(89526);class ci extends S{constructor(){super(si.createElement(ei,null),["ccd-panel-container"]),g.Z.setCurrentBaseWebComponent(this)}connectedCallback(){super.connectedCallback(),g.Z.isLibrariesViewMounted=!0}disconnectedCallback(){super.disconnectedCallback(),g.Z.isLibrariesViewMounted=!1}}var li,ui,pi,di,hi,fi=r(79799);function mi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */mi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function gi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function vi(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){gi(o,n,i,a,s,"next",e)}function s(e){gi(o,n,i,a,s,"throw",e)}a(void 0)}))}}function yi(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return bi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bi(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function bi(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}class _i{constructor(e){this._initPromise=new Promise((e=>{this._markInit=()=>{this._initialized=!0,e()}})),this._loadedPromise=new Promise((e=>{this._markLoaded=e})),this._environment=e,this._initialized=!1,this._listenerCallbacks=new Set}init(e,t,r,n="en_US"){if(this._initialized)return Promise.resolve();if(!e||!r||!t)throw new Error("A Vulcan instance, theme, and context must be provided.");return this._environment.setVulcanInterface(t),(0,a.Nk)("library-list-view",he),(0,a.Nk)("library-contents-view",vt),(0,a.Nk)("library-custom-dialog-view",wt),(0,a.Nk)("library-info-view",St),(0,a.Nk)("library-personal-view",ci),(0,a.Nk)("library-teams-view",ai),(0,c.reaction)((()=>i.ZP.libraries.length),(()=>{var e,t=yi(this._listenerCallbacks);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(e){t.e(e)}finally{t.f()}})),this.ccdContext=e,this._environment.updateHostInfo(n,r).then((()=>(this._markInit(),{"/libraries/*":{components:{content:{tagName:"library-contents-view",keyBindings:{}},list:{tagName:"library-list-view",keyBindings:{}},yourlibrary:{tagName:"library-personal-view",keyBindings:{}},teamlibrary:{tagName:"library-teams-view",keyBindings:{}}}}})))}openBrowseLibs(){this._environment.openBrowseMore()}openPublicLibs(){this._environment.openPublicLibs()}createNewLibrary(e){this._environment.openCreateNewLibraryDialog(e)}updateLocale(e){this._environment.updateHostInfo(e,void 0)}updateTheme(e){this._environment.updateHostInfo(void 0,e)}waitOnInit(){return this._initPromise}getSyncState(){return i.ZP.syncStatus}sync(){return i.ZP.sync()}getDefaultElement(){if(!i.ZP.areLibrariesLoaded||0===i.ZP.libraries.length)return{libraryId:void 0,libraryCount:0};const e=i.ZP.getDefaultLibrary();var t,r=yi("group"===s.Z.viewByState?(0,Be.GI)(e).root.children:o.Z.groupElementsByType(e.elements,s.Z.elementSortState,s.Z.elementSortDescendingState));try{for(r.s();!(t=r.n()).done;){const r=t.value,n="group"===s.Z.viewByState?(0,Be.gw)(r.item,e.elements):r.children&&r.children[0];if(n)return{libraryId:e.id,id:n.id,libraryCount:i.ZP.libraries.length}}}catch(e){r.e(e)}finally{r.f()}return{libraryId:e.id,libraryCount:i.ZP.libraries.length}}getLibraryByAssetId(e){return i.ZP.getLibraryByAssetId(e)}asyncGetLibraryByAssetId(e){return vi(mi().mark((function t(){var r;return mi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.toLowerCase(),t.next=3,i.ZP.waitForLibrariesLoaded();case 3:return t.abrupt("return",i.ZP.libraries.find((e=>e.assetId&&e.assetId.toLowerCase()===r)));case 4:case"end":return t.stop()}}),t)})))()}hasLibrariesFromOtherTeams(){return Boolean(i.ZP.libraries.find((e=>e.team&&!i.ZP.platformFolders.find((t=>t.id===e.team.id)))))}addLibraryChangeListener(e){this._listenerCallbacks.add(e)}removeLibraryChangeListener(e){this._listenerCallbacks.delete(e)}isProcessRunning(){return this.ccdContext?fi.Z.isProcessRunning():Promise.reject(new Error("CCDApi is not initialized"))}isSyncingEnabled(){return this.ccdContext?fi.Z.isSyncingEnabled():Promise.reject(new Error("CCDApi is not initialized"))}setSyncingEnabled(e){if(!this.ccdContext)throw new Error("CCDApi is not initialized");fi.Z.setSyncingEnabled(e)}addSyncingEnabledChangedListener(e){if(!this.ccdContext)throw new Error("CCDApi is not initialized");fi.Z.addSyncingEnabledChangedListener(e)}removeSyncingEnabledChangedListener(e){if(!this.ccdContext)throw new Error("CCDApi is not initialized");fi.Z.removeSyncingEnabledChangedListener(e)}navigateToLibrary(e){var t=this;return vi(mi().mark((function r(){return mi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.isProcessRunning();case 3:if(r.sent){r.next=5;break}t._environment.navigateToAllLibraries();case 5:(0,c.when)((()=>i.ZP.areLibrariesLoaded),vi(mi().mark((function r(){var n;return mi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.ZP.resolveLibraryByAssetId(e);case 2:n=r.sent,t._environment.navigateToLibrary(n);case 4:case"end":return r.stop()}}),r)})))),r.next=13;break;case 8:r.prev=8,r.t0=r.catch(0),console.error("Error navigating to library:",r.t0),console.info("Navigating to all libraries..."),t._environment.navigateToAllLibraries();case 13:case"end":return r.stop()}}),r,null,[[0,8]])})))()}}function Ei(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,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Li=(0,P.Pi)(((hi=class extends l.Component{constructor(...e){super(...e),Ei(this,"height",pi,this),Ei(this,"width",di,this),this.timeout=null,this.handleResize=()=>{this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((()=>{var e,t;this.height=null===(e=this.contentBox)||void 0===e?void 0:e.clientHeight,this.width=null===(t=this.contentBox)||void 0===t?void 0:t.clientWidth}),100)}}componentDidMount(){this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.resizeObserver.observe(this.contentBox),this.handleResize()}componentWillUnmount(){this.resizeObserver.disconnect()}render(){const e=this.props.children;return l.createElement("div",{ref:e=>this.contentBox=e,style:{height:"100%",width:"100%"}},e({height:this.height,width:this.width}))}}).propTypes={children:B().func.isRequired},pi=wi((ui=hi).prototype,"height",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),di=wi(ui.prototype,"width",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),li=ui))||li;var xi=r(10387),Si=r.n(xi);const Oi="TEu",Ti="fy7";var Ii,Pi,Ci,Ai;let ki=(0,P.Pi)((Ai=class extends l.Component{constructor(...e){super(...e),function(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})}(this,"isOpen",Ci,this),this.showTooltip=()=>{this.isOpen=!0,this._visibleTimer&&clearTimeout(this._visibleTimer),this._visibleTimer=setTimeout(this.hideTooltip,7e3)},this.hideTooltip=()=>{this.isOpen=!1,this._visibleTimer&&clearTimeout(this._visibleTimer),this._visibleTimer=void 0},this.handleMouseOver=e=>{e&&e.stopPropagation(),this._visibleTimer=setTimeout(this.showTooltip,this.props.delay)}}get tooltipContent(){return this.props.content.map(((e,t)=>e&&e.divider?l.createElement("div",{key:t.toString(),className:"panel-tooltip-divider"}):l.createElement("div",{key:t.toString(),className:"tooltip-content"},e)))}render(){return l.createElement("div",{className:ye()("tooltip-wrapper-container",this.props.className,Oi),onMouseOver:this.handleMouseOver,onMouseOut:this.hideTooltip,onMouseDown:this.hideTooltip},this.props.children,!this.props.disable&&l.createElement(Si(),{className:ye()("tooltip-wrapper",Ti),placement:this.props.placement,open:this.isOpen},this.tooltipContent))}},Ai.defaultProps={content:"",delay:1e3,placement:"top"},Ai.propTypes={children:B().node,featureId:B().string,content:B().array,delay:B().number,placement:B().string,disable:B().bool,className:B().string},Ci=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((Pi=Ai).prototype,"isOpen",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ii=Pi))||Ii;var Di=r(76792),Ni=r(76325),Ri=r(7921),Mi=r(26964),ji=r(96912),Zi=r(29219);class Fi extends ji.Z{constructor(){super(),window.cep=window.cep||{encoding:{convertion:{b64_to_utf8:Zi.UL,utf8_to_b64:Zi.Hf}}}}setVulcanInterface(e){this._vulcanInterface=e}isCCLibProcessInstalled(){return this._vulcanInterface.isAppInstalledEx(this.ccLibProcessSAPCode)}isCCLibProcessRunning(){return this.isAppRunningEx(this.ccLibProcessSAPCode)}isAppRunningEx(e){return this._vulcanInterface.isAppRunningEx(e)}launchAppEx(e){return new Promise((t=>{this._vulcanInterface.launchAppEx(e,!0).then((e=>{t(e)}))}))}launchCCLibProcess(){return new Promise((e=>{this._vulcanInterface.launchAppEx(this.ccLibProcessSAPCode,!1,""),e()}))}addMessageListener(e,t){Mi.Z.log("Vulcan: Add Listener: "+e),t.wrapper=(e,r)=>{t(r,e.appId,e.appVersion)},this._vulcanInterface.addMessageListener(e,t.wrapper)}removeMessageListener(e,t){Mi.Z.log("Vulcan: Remove Listener: "+e),this._vulcanInterface.removeMessageListener(e,null==t?void 0:t.wrapper)}sendMessage(e,t,{payloadType:r="base64"}={}){Mi.Z.log("Vulcan: Send Message: "+e);const n=new Ri.u(e);"json"===r?n.data=JSON.stringify(t):"base64"===r&&n.setPayload(t),this._vulcanInterface.dispatchMessage(n)}}var Bi,Gi,Ui,zi=r(48346),Vi=r(89526);function Hi(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||Yi(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 Yi(e,t){if(e){if("string"==typeof e)return Wi(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)?Wi(e,t):void 0}}function Wi(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 $i(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 Ki(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 qi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(r),!0).forEach((function(t){Xi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ji(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ji=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function eo(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qi(o,n,i,a,s,"next",e)}function s(e){Qi(o,n,i,a,s,"throw",e)}a(void 0)}))}}function to(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}class ro{constructor(e){this._ccdApi=e}createRefEx(e){return{endpoint:e}}fetchAccessToken(e,t,r,n,o,a,s){const c=this._ccdApi.ccdContext.imsData;if(!c||!c.accessToken)return i.ZP.getAccessToken(n,t,r,a).then((e=>s(null,e)),s);c.accessToken().then((e=>s(null,{access_token:e}))).catch((e=>s(e)))}}function no(e){return e.map((e=>({id:e.id,isDivider:e.divider||!1,label:(0,h.Iu)(e.label),onClick:e.onClick,isDisabled:!1===e.enableMenu,isSelected:e.checked||e.isSelected,subMenu:e.menuItems?no(e.menuItems):void 0})))}const io=["DL_RENAME","DL_DELETE","DL_DUPLICATE_ITEM","DL_DUPLICATE_SELECTED_ITEMS"],oo=["DL_COPY_SELECTED_ITEMS","DL_COPY_ITEM","DL_MOVE_SELECTED_ITEMS","DL_MOVE_ITEM"];let ao=(Bi=class extends n.ZP{static check(){return window.navigator.userAgent.includes("CreativeCloud")}get isAnyViewMounted(){return this.isContentViewMounted||this.isLibrariesViewMounted}get isOnline(){return!!window.ccdOnline}get cloudDriverConnector(){var e=this;return eo(Ji().mark((function t(){return Ji().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e.imsEnvironment,t.next=3,e.imsProfile.accessToken();case 3:return t.t1=t.sent,t.t2=e.imsProfile.accessToken.bind(e.imsProfile),t.abrupt("return",{env:t.t0,token:t.t1,refreshAccessToken:t.t2});case 6:case"end":return t.stop()}}),t)})))}get ccLibrariesDriver(){return this._ccLibrariesDriver||(window.cep=window.cep||{encoding:{convertion:{b64_to_utf8:Zi.UL,utf8_to_b64:Zi.Hf}}},this._ccLibrariesDriver=ie.Z.getDebugValue("jsapiHybridDriver")?this.hybridDriver:new Ue.Ut((0,Ue.te)(this._rawVulcanInterface,Ri.u))),this._ccLibrariesDriver}get hybridDriver(){return new Ue.B((0,Ue.te)(this._rawVulcanInterface,Ri.u),this.cloudDriverConnector)}get imsProfile(){return this.ccdAPI.ccdContext.imsData}get imsEnvironment(){var e;return"stage"===(null===(e=this.imsProfile)||void 0===e?void 0:e.environment)?"staging":"production"}get imsUserId(){var e;return null===(e=this.imsProfile)||void 0===e?void 0:e.userId}getAppVersionFromUserAgent(){const e=/CreativeCloud\/([0-9.]+)/.exec(window.navigator.userAgent);return e&&e[1]}get _availableActions(){if(!i.ZP.currentLibrary||i.ZP.currentLibrary.isDeletedFromServer)return{actions:[],moreActions:[]};const e=[];if(s.Z.isLibraryWritable(i.ZP.currentLibrary)&&!Ce.Z.selection.length){const t=no([{id:"add",label:(0,h.Iu)("DL_UPLOAD_FILE"),onClick:()=>(0,It.fY)(i.ZP.currentLibrary,"Toolbar")},{id:"createGroup",label:(0,h.Iu)("DL_CREATE_NEW_GROUP"),onClick:()=>{const e=(0,se.sS)(i.ZP.currentLibrary,(0,h.Iu)("DL_NEW_GROUP_NAME"));s.Z.setViewByState("group"),Ce.Z.revealGroup(e),rt.Z.panel.viewManager.startRename(e)}}]);e.push({iconComponentID:"add",isCTA:!0,label:(0,h.Iu)("DL_ADD_ELEMENT"),onClick:e=>{let r=e.clientX,n=e.clientY;if(!r&&!n){const e=document.activeElement.getBoundingClientRect();r=e.x,n=e.y}s.Z.setContextMenuPositionState({x:r,y:n}),this.setContextMenu(t)}})}const t=Ce.Z.selection[0];switch(Ce.Z.selection.length){case 0:break;case 1:s.Z.isLibraryWritable(t.library)&&e.push({iconComponentID:"rename",label:(0,h.Iu)("DL_RENAME"),onClick:()=>{ne.ZP.setExtraEventMetrics("updateElement",{content:{category:"Toolbar"}}),Ce.Z.revealElement(t),rt.Z.panel.viewManager.startRename(t)}});default:if(s.Z.isLocked(i.ZP.currentLibrary))break;s.Z.isLibraryWritable(Ce.Z.selection[0].library)&&(i.ZP.currentLibrary.elements.length+Ce.Z.selection.length<=i.ZP.MAX_ELEMENTS&&e.push({iconComponentID:"duplicate",label:(0,h.Iu)("DL_DUPLICATE_ITEM"),onClick:()=>{ne.ZP.setExtraEventMetrics("copyElement",{content:{category:"Toolbar"}}),(0,se.IO)(!1,Ce.Z.selection,i.ZP.currentLibrary,void 0,!0,"Toolbar").then((()=>{ne.ZP.clearExtraEventMetrics("copyElement")}))}}),e.push({iconComponentID:"delete",label:(0,h.Iu)("DL_DELETE"),onClick:()=>{const e=Ce.Z.selection.length;ne.ZP.setExtraEventMetrics("removeElement",{content:{category:"Toolbar"}}),i.ZP.deleteElements(Ce.Z.selection),Ce.Z.setSelection(),e>0&&ne.ZP.reportEvent("Element Operations","Element","click","delete",{event:{count:e,value:"agg"},content:{category:"Toolbar"}})}}))}const r=(0,Di.vf)(Ce.Z.selection).reduce(((t,r)=>{if(r.divider&&t[t.length-1]&&t[t.length-1].divider)return t;if(oo.includes(r.label)){var n;const i=32*(e.length+1)+65+42,o=null!==(n=v.Z.currentProduct.config.copyMovePickerWidthOverride)&&void 0!==n?n:v.Z.DEFAULT_SELECT_TARGET_POPOVER_WIDTH;t.push(qi(qi({},r),{},{onClick:()=>_t.ZP.openDialog("copyOrMove",{items:Ce.Z.selection,x:this.getPanelWidth()-o-10,y:i,isMove:r.label.includes("DL_MOVE"),copyMoveAction:Di.oq})}))}else io.includes(r.label)||t.push(r);return t}),[]);return r.length&&r[r.length-1]&&r[r.length-1].divider&&r.pop(),r.length&&r[0]&&r[0].divider&&r.unshift(),{actions:e,moreActions:no(r)}}get elementDetailMode(){return s.Z.gridZoomFactor===v.Z.GRID_TYPE_LARGE?"type":void 0}constructor(e){super(e),this._hostEnvironment={appName:"ACCC",appId:"ACCC",appVersion:this.getAppVersionFromUserAgent(),appLocale:"en_US",appUILocale:"en_US"},this.Tooltip=ki,this.AutoSizer=Li,this.ProgressBar=te.Z,this.SmallSpinner=()=>Vi.createElement(te.Z,{size:"small",indeterminate:!0}),this.supportsFileSystem=!1,this.vulcanInterface=new Fi,this.type="CCD",this.ccdAPI=new _i(this),this.IMSLib=new ro(this.ccdAPI),this.excludeDocumentRoot=!0,this.responsiveLayout=!0,this.supportsNotes=!1,this.supportsExportElement=!0,this.disableGPUTooltips=!0,this.recolorLightTextElements=!1,this.canPlaceElements=!1,this.enableDragOutsideProduct=!0,this.capitalizeCreateLibraryHeader=!0,this.customCreateLibraryHeader="DL_NEW_LIBRARY",this.dialogOverrides={confirm:e=>this.showDialog("confirm",{title:e.title,confirmLabel:e.okText,cancelLabel:(0,h.Iu)("DL_CANCEL"),content:e.message,onConfirm:e.onClickOK}),dropFiles:()=>this.showDialog("confirm",{title:(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_TITLE"),varient:"error",confirmLabel:(0,h.Iu)("DL_OK"),content:(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_MESSAGE"),onConfirm:void 0,cancelLabel:void 0}),pathViewOnboarding:()=>{},rootViewOnboardingPopover:()=>{},firstEnteredLibraryOnboardingPopoverTour:()=>{},quotaWarningPopover:()=>{}},this.ElementDragId="com.adobe.cclibraries.dnd.elements",this.LibraryContentsView=zi.Z,$i(this,"isContentViewMounted",Gi,this),$i(this,"isLibrariesViewMounted",Ui,this),this._openToast=void 0,this.setContextMenuPositionEventHandler=()=>{window.addEventListener("contextmenu",(e=>{const t={x:e.clientX,y:e.clientY};s.Z.setContextMenuPositionState(t)}),!0)},this._routeHandlers=[[/^\/libraries\/sharesheet\/([^/]+)\/([^/]+)$/,(e,t)=>{const r=(n=0)=>{const o=i.ZP.getLibraryById(t);o?(i.ZP.currentLibrary=o,this.showShareSheet(o,e),this.navigateToLibrary(o)):n<10&&setTimeout((()=>r(n+1)),500)};r()}],[/^\/libraries\/([^/]+)(?:\/elements\/([^/]+))?$/,(e,t)=>{e&&i.ZP.waitForLibrariesLoaded().then((()=>{const r=i.ZP.getLibraryById(e);if(r&&(i.ZP.currentLibrary=r,t)){const e=r.getElementById(t,!0);e&&Ce.Z.revealElement(e)}}))}]],this.handleClientConnected=e=>{e||this.maintainConnectionToProcess?this.ccdAPI.ccdContext.logEvent({"event.workflow":"Debug","event.subcategory":"CC Library","event.type":e?"failure":"success","event.subtype":"log","event.error_code":"ACCC_LIBRARIES_PROCESS_CONNECTION_STATUS","event.error_type":""}):fi.Z.disconnectFromProcess()},this._window=window,window.__disable_swc__=!0,this.isViewMounted=!1,this.delayProcessLaunch=!0,(0,c.reaction)((()=>this.isAnyViewMounted),(e=>{this.setIsViewMounted(e)}))}init(){const e=this.ccdAPI.waitOnInit();return e.then((()=>{fi.Z.addSyncStateChangedListener((e=>{fi.Z.isConnected()||this.setSyncState(e)})),(0,c.reaction)((()=>this.isContentViewMounted&&i.ZP.currentLibrary&&this._availableActions),(()=>{const e=this._availableActions,t=e.actions,r=e.moreActions,n=Ce.Z.selection.length?"top":"middle";this.setHeader(),this.ccdAPI.ccdContext.setSelectionData({infoPanelComponent:"library-info-view",availableActions:t,moreActions:r,count:Ce.Z.selection.length,position:n,deselectCallback:()=>Ce.Z.setSelection()})}))})),e}debugLog(e){console.info(e)}getIsStarterKitsAvailable(){return this.ccdAPI.ccdContext.isStarterKitsAvailable()}routeToStarterKits(){this.ccdAPI.ccdContext.routeToStarterKits()}navigateToLibrary(e){e?(super.navigateToLibrary(e),this.ccdAPI.ccdContext.setRoute(`/assets/libraries/${e.id}`)):this.navigateToAllLibraries()}navigateToAllLibraries(){this.ccdAPI.ccdContext.setRoute("/assets/libraries")}openCreateNewLibraryDialog(e){let t=e?i.ZP.platformFolders.find((t=>t.id===e)):void 0;t&&!t.isWritable&&(t=void 0);_t.ZP.openDialog("createLibrary",{defaultTeam:t,onCreate:e=>this.navigateToLibrary(e)})}_waitTillAccessTokenIsAvailable(){return this.imsProfile?Promise.resolve():i.ZP.waitForCollectionsLoaded()}openBrowseMore(){this._waitTillAccessTokenIsAvailable().then((()=>(0,G.df)().then((e=>{this.showWebArticle(e,{title:(0,h.Iu)("DL_MORE_LIBRARY_BROWSE"),timeout:3e4,callbacks:{onExit:()=>{ne.ZP.reportEvent("Library","Find Team Libraries","click","done")}}})})))).catch((e=>{this.showError((0,h.Iu)("DL_TEAM_LIBRARY_BROWSE_AUTH_ERROR",{assetsSite:Ni.Z.getEnvironment().ccwebHost})),ne.ZP.reportError("Operations","Browse team libraries",e&&e.description,"ccd-menu","browse-library-error",void 0,i.ZP.currentLibrary)}))}openPublicLibs(){this.getIsStarterKitsAvailable()?(ne.ZP.reportEvent("Navigation","Library Panel","click","view-marketplace",{ui:{sequence:"root-view"}}),this.routeToStarterKits()):(ne.ZP.reportEvent("Navigation","Library Panel","click","view-public-libraries",{ui:{sequence:"root-view"}}),this.openFollowLibrary())}openFollowLibrary(){const e=Ni.Z.getEnvironment().followLibrariesGoURL+"?locale="+this.getLocale();this.showWebArticle(e,{title:(0,h.Iu)("DL_LIB_LIST_ONBOARDING_FOLLOW_LIBRARY_WEB_ARICLE_HEADING"),callbacks:{onMessage:e=>{const t=e||{},r=t.action,n=t.data;if("view-public-library"===r){const e=(n||{}).linkId;e&&(ne.ZP.reportEvent("Library","Follow Public Libraries","click","library",{event:{value:e}}),(0,G.nR)(e))}},onExit:()=>{ne.ZP.reportEvent("Library","Follow Public Libraries","click","done")}}})}handleRouteChange(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Yi(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this._routeHandlers);try{for(r.s();!(t=r.n()).done;){const r=Hi(t.value,2),n=r[0],i=r[1],o=n.exec(e);if(o){i(...o.slice(1));break}}}catch(e){r.e(e)}finally{r.f()}}setVulcanInterface(e){this._rawVulcanInterface=e,this.vulcanInterface.setVulcanInterface(e)}setContextMenu(e){this.ccdAPI.ccdContext.showContextMenu(s.Z.contextMenuPositionState,no(e))}showShareSheet(e,t){const r=!!ut.Z.get("enableProjects"),n=this.isTeamLibrary(e),i={assetData:{urn:e.assetId,name:e.name,mimeType:v.Z.LIBRARY_TYPE,enableProjectsSharesheet:n&&r,type:(0,pr.Ol)(e)?"expressBrand":"expressLibrary",libraryResourceURL:(0,G.m_)(!!(0,pr.Ol)(e),e.assetId)},shareAction:t,shareCapabilities:r?["invite","getLink"]:"share"===t?["invite"]:void 0};if(n){const t=(0,se.Uu)(e),r=t&&t.name;var o;if(r)return void this.ccdAPI.ccdContext.showShareSheet(qi(qi({},i),{},{team:{name:r,assetId:null===(o=e.project)||void 0===o?void 0:o.id}}))}this.ccdAPI.ccdContext.showShareSheet(i)}setHeader(e=!1,t){const r=["invite"],n=i.ZP.currentLibrary;if(!n)return void this.ccdAPI.ccdContext.setHeader("libraries",{});let o=rt.Z.panel.libraryActions.getLibraryActions(n,!0).filter((e=>!r.includes(e.id)));o.find((e=>"getLink"===e.id))||(o=o.filter((e=>"shareDivider"!==e.id)));const a=Boolean(!n.isWritable||n.toolkitId||n.documentId),c=Boolean(n.isWritable&&!n.toolkitId&&i.ZP.isSharingEnabled&&n.isPushedToServer)?()=>{ne.ZP.reportEvent("Library Operations","Collaboration","click","invite",{content:{category:"Header"}},n),this.showShareSheet(n,this.isTeamLibrary(n)?"share":"invite")}:void 0,l=Boolean(n.toolkitId&&!s.Z.isLocked(n));this.ccdAPI.ccdContext.setHeader("libraries",{name:n.name,subTitle:(0,se.rU)(n),onNameChange:e=>{if((e=e.trim())===n.name)return;const r=n&&i.ZP.platformFolders.find((e=>n.parentDirectoryId===e.id));e&&!a&&rt.Z.panel.libraryActions.validateLibraryName(e,r,!0)&&(ne.ZP.reportEvent("Library Operations","Library","click","rename",{content:{category:t?"Header Right Click":"Header Click"}}),n.name=e),this.setHeader()},onUserAdd:c,moreActions:no(o),editMode:e,readOnly:a,hideViewOnlyLabel:l})}showToast(e,t,r={}){const n={variant:r.variant||"success"};t&&(n.actionLabel=t.label,n.closeOnAction=!0,n.onAction=t.onClick);const i=this.ccdAPI.ccdContext.showToast(e,n);this._openToast={id:i,referenceId:r.referenceId}}hideToast(e){this._openToast&&this._openToast.referenceId===e&&(this.ccdAPI.ccdContext.toastStore.hide(this._openToast.id),this._openToast=void 0)}hideAllToasts(){this._openToast&&(this.ccdAPI.ccdContext.toastStore.hideAll(),this._toast=void 0)}setSyncState(e){const t="ok"===e.state?"synced":"error"===e.state&&"syncDisabled"===e.errorType?"paused":e.state,r={status:t,data:{totalPercentage:100===e.syncProgress?void 0:e.syncProgress,error:{errorString:"error"===t&&e.errorType?(0,Nt.sB)(e).replace("<br/> ",""):void 0,errorLink:"error"===t&&e.errorType?(0,Nt.Jf)(e):void 0,errorType:"error"===t&&e.errorType||void 0}}};this.ccdAPI.ccdContext.setSyncState&&this.ccdAPI.ccdContext.setSyncState(r)}showDialog(e,t){this.hideDialog(),this._currentDialogKey=this.ccdAPI.ccdContext.showDialog(e,t)}openCustomDialog(){return this.showDialog("customWebcomponent",{webComponent:"library-custom-dialog-view",removePadding:s.Z.getRemovePadding(),onClose:_t.ZP.closeDialog})}hideDialog(){this._currentDialogKey&&(this.ccdAPI.ccdContext.hideDialog(this._currentDialogKey),delete this._currentDialogKey)}showWebArticle(e,t){this.ccdAPI.ccdContext.showWebArticle(e,t)}setFooter(e){this.ccdAPI.ccdContext.setFooter(e)}getRootPanelElement(){return this._currentBaseWebComponent}setCurrentBaseWebComponent(e){this._currentBaseWebComponent=e}getDragFileList(){const e=this.isWindowsOS()?"\\":"/";return this.ccdAPI.ccdContext.getDraggedFilePaths().then((t=>Promise.all(t.map((t=>i.ZP.getFileSize(t).then((r=>({path:t,size:r,name:t.split(e).pop()}))))))))}getSavePath(){return new Promise((e=>this.ccdAPI.ccdContext.showFolderPicker(e,{windowTitle:(0,h.Iu)("DL_EXPORT"),promptButton:(0,h.Iu)("DL_EXPORT")})))}getFileForSaving(e){const t={windowTitle:(0,h.Iu)("DL_EXPORT_LIBRARY"),promptButton:(0,h.Iu)("DL_EXPORT")};return this.ccdAPI.ccdContext.filePickerStore.openFolderPicker(t).then((t=>{const r=t.shift();if(r){return{nativePath:r+(this.isWindowsOS()?"\\":"/")+e}}return null}))}updateHostInfo(e,t){const r=this.getHostEnvironment();return t&&(r.appSkinInfo=t,d.ZP.isInitialized&&d.ZP.updateTheme(t),this._notifyEventListeners(v.Z.THEME_COLOR_CHANGED_EVENT)),e?(r.appUILocale=n.nD.includes(e)?e:"en_US",this._loadResourceBundle(r.appUILocale).then((()=>{h.ZP.setStringMap(this._resourceBundle)}))):Promise.resolve()}shouldRenderPanel(){return!1}isLibrariesPanel(){return!0}getUserDataPath(){return null}getHostEnvironment(){return this._hostEnvironment}launchInBrowser(e){window.open(e)}showError(e){this.showToast(e,null,{variant:"warning"})}exec(e,t,r=[]){const n=`${e}.${t}`;return this.debugLog(`exec ${n} ${r}`),Promise.reject("not implemented")}dispatchEvent(){return"not implemented"}execApp(e,t){return this.exec(this._hostEnvironment.appName,e,t)}notifyProductInitialized(){b(),this.ccdAPI._markLoaded()}get exports(){return this.ccdAPI}isTeamLibrary(e){return"incoming"===e.ownership&&("org"===e.ownerType||e.project)}},Gi=to(Bi.prototype,"isContentViewMounted",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ui=to(Bi.prototype,"isLibrariesViewMounted",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),to(Bi.prototype,"isAnyViewMounted",[c.computed],Object.getOwnPropertyDescriptor(Bi.prototype,"isAnyViewMounted"),Bi.prototype),to(Bi.prototype,"_availableActions",[c.computed],Object.getOwnPropertyDescriptor(Bi.prototype,"_availableActions"),Bi.prototype),to(Bi.prototype,"elementDetailMode",[c.computed],Object.getOwnPropertyDescriptor(Bi.prototype,"elementDetailMode"),Bi.prototype),Bi)},46916:(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>O}),n._PANEL="Panel",n._MODELESS="Modeless",n._MODAL_DIALOG="ModalDialog";function i(e,t,r,n){this.type=e,this.scope=t,this.appId=r,this.extensionId=n}function o(){}function a(){}function s(e,t,r){this.menuItemLabel=e,this.enabled=t,this.checked=r}function c(e,t,r){this.menuItemID=e,this.enabled=t,this.checked=r}function l(){}i.prototype.data="",o.USER_DATA="userData",o.COMMON_FILES="commonFiles",o.MY_DOCUMENTS="myDocuments",o.APPLICATION="application",o.EXTENSION="extension",o.HOST_APPLICATION="hostApplication",a.RGB="rgb",a.GRADIENT="gradient",a.NONE="none",l.THEME_COLOR_CHANGED_EVENT="com.adobe.csxs.events.ThemeColorChanged",l.prototype.hostEnvironment=window.__adobe_cep__?JSON.parse(window.__adobe_cep__.getHostEnvironment()):"",l.prototype.getHostEnvironment=function(){return this.hostEnvironment=JSON.parse(window.__adobe_cep__.getHostEnvironment()),this.hostEnvironment},l.prototype.closeExtension=function(){window.__adobe_cep__.closeExtension()},l.prototype.getSystemPath=function(e){var t=decodeURI(window.__adobe_cep__.getSystemPath(e)),r=this.getOSInformation();return r.indexOf("Windows")>=0?t=t.replace("file:///",""):r.indexOf("Mac")>=0&&(t=t.replace("file://","")),t},l.prototype.evalScript=function(e,t){null==t&&(t=function(e){}),window.__adobe_cep__.evalScript(e,t)},l.prototype.getApplicationID=function(){return this.hostEnvironment.appId},l.prototype.getHostCapabilities=function(){return JSON.parse(window.__adobe_cep__.getHostCapabilities())},l.prototype.dispatchEvent=function(e){"object"==typeof e.data&&(e.data=JSON.stringify(e.data)),window.__adobe_cep__.dispatchEvent(e)},l.prototype.addEventListener=function(e,t,r){window.__adobe_cep__.addEventListener(e,t,r)},l.prototype.removeEventListener=function(e,t,r){window.__adobe_cep__.removeEventListener(e,t,r)},l.prototype.requestOpenExtension=function(e,t){window.__adobe_cep__.requestOpenExtension(e,t)},l.prototype.getExtensions=function(e){var t=JSON.stringify(e),r=window.__adobe_cep__.getExtensions(t);return JSON.parse(r)},l.prototype.getNetworkPreferences=function(){var e=window.__adobe_cep__.getNetworkPreferences();return JSON.parse(e)},l.prototype.initResourceBundle=function(){for(var e=JSON.parse(window.__adobe_cep__.initResourceBundle()),t=document.querySelectorAll("[data-locale]"),r=0;r<t.length;r++){var n=t[r],i=n.getAttribute("data-locale");if(i)for(var o in e)if(0===o.indexOf(i)){var a=e[o];if(o.length==i.length)n.innerHTML=a;else if("."==o.charAt(i.length)){n[o.substring(i.length+1)]=a}}}return e},l.prototype.dumpInstallationInfo=function(){return window.__adobe_cep__.dumpInstallationInfo()},l.prototype.getOSInformation=function(){var e=navigator.userAgent;if("Win32"==navigator.platform||"Windows"==navigator.platform){var t="Windows",r="";return e.indexOf("Windows")>-1&&(e.indexOf("Windows NT 5.0")>-1?t="Windows 2000":e.indexOf("Windows NT 5.1")>-1?t="Windows XP":e.indexOf("Windows NT 5.2")>-1?t="Windows Server 2003":e.indexOf("Windows NT 6.0")>-1?t="Windows Vista":e.indexOf("Windows NT 6.1")>-1?t="Windows 7":e.indexOf("Windows NT 6.2")>-1?t="Windows 8":e.indexOf("Windows NT 6.3")>-1?t="Windows 8.1":e.indexOf("Windows NT 10")>-1&&(t="Windows 10"),r=e.indexOf("WOW64")>-1?" 64-bit":" 32-bit"),t+r}if("MacIntel"==navigator.platform||"Macintosh"==navigator.platform){var n="Mac OS X";return e.indexOf("Mac OS X")>-1&&(n=(n=e.substring(e.indexOf("Mac OS X"),e.indexOf(")"))).replace(/_/g,".")),n}return"Unknown Operation System"},l.prototype.openURLInDefaultBrowser=function(e){return cep.util.openURLInDefaultBrowser(e)},l.prototype.getExtensionID=function(){return window.__adobe_cep__.getExtensionId()},l.prototype.getScaleFactor=function(){return window.__adobe_cep__.getScaleFactor()},l.prototype.setScaleFactorChangedHandler=function(e){window.__adobe_cep__.setScaleFactorChangedHandler(e)},l.prototype.getCurrentApiVersion=function(){return JSON.parse(window.__adobe_cep__.getCurrentApiVersion())},l.prototype.setPanelFlyoutMenu=function(e){"string"==typeof e&&window.__adobe_cep__.invokeSync("setPanelFlyoutMenu",e)},l.prototype.updatePanelMenuItem=function(e,t,r){var n=!1;if(this.getHostCapabilities().EXTENDED_PANEL_MENU){var i=new s(e,t,r);n=window.__adobe_cep__.invokeSync("updatePanelMenuItem",JSON.stringify(i))}return n},l.prototype.setContextMenu=function(e,t){"string"==typeof e&&window.__adobe_cep__.invokeAsync("setContextMenu",e,t)},l.prototype.setContextMenuByJSON=function(e,t){"string"==typeof e&&window.__adobe_cep__.invokeAsync("setContextMenuByJSON",e,t)},l.prototype.updateContextMenuItem=function(e,t,r){var n=new c(e,t,r);ret=window.__adobe_cep__.invokeSync("updateContextMenuItem",JSON.stringify(n))},l.prototype.isWindowVisible=function(){return window.__adobe_cep__.invokeSync("isWindowVisible","")},l.prototype.resizeContent=function(e,t){window.__adobe_cep__.resizeContent(e,t)},l.prototype.registerInvalidCertificateCallback=function(e){return window.__adobe_cep__.registerInvalidCertificateCallback(e)},l.prototype.registerKeyEventsInterest=function(e){return window.__adobe_cep__.registerKeyEventsInterest(e)},l.prototype.setWindowTitle=function(e){window.__adobe_cep__.invokeSync("setWindowTitle",e)},l.prototype.getWindowTitle=function(){return window.__adobe_cep__.invokeSync("getWindowTitle","")};var u=r(85062),p=r(7921),d=r(26964),h=r(96912);class f extends h.Z{constructor(){super(),this._ccLibProcessIdentifier=this._cepVulcanInterface.useSpecifiers?this.ccLibProcessSpecifier:this.ccLibProcessSAPCode}get _cepVulcanInterface(){return p.d}isCCLibProcessInstalled(){return this._cepVulcanInterface.isAppInstalled(this._ccLibProcessIdentifier)}isCCLibProcessRunning(){return this._cepVulcanInterface.isAppRunning(this._ccLibProcessIdentifier)}launchCCLibProcess(){return new Promise((e=>{this._cepVulcanInterface.launchApp(this._ccLibProcessIdentifier,!1,""),e()}))}addMessageListener(e,t){d.Z.log("Vulcan: Add Listener: "+e),t.wrapper=(e,...r)=>{const n=this._cepVulcanInterface.getPayload(e,...r);t(n,e.appId,e.appVersion)},this._cepVulcanInterface.addMessageListener(this._vulcanPrefix+e,t.wrapper)}removeMessageListener(e,t){d.Z.log("Vulcan: Remove Listener: "+e),this._cepVulcanInterface.removeMessageListener(this._vulcanPrefix+e,t&&t.wrapper)}sendMessage(e,t){d.Z.log("Vulcan: Send Message: "+e);const r=new p.u(this._vulcanPrefix+e);r.setPayload(t),this._cepVulcanInterface.dispatchMessage(r)}}var m=r(99386),g=r(72373),v=r(48919),y=r(30131),b=r(46903),_=r(84824),E=r(33275),w=r(76325);function L(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))}}class O extends u.ZP{static check(){return!!window.__adobe_cep__}get cloudDriverConnector(){return S(L().mark((function e(){var t,r,n,i,o;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.Z.getEnvironment(),r="Staging"===t.label?"staging":"production",e.next=4,w.Z.getCurrentUserIdHelper();case 4:return n=e.sent,i=()=>w.Z.getAccessToken(n),e.next=8,i();case 8:return o=e.sent,e.abrupt("return",{env:r,token:o,refreshAccessToken:i});case 10:case"end":return e.stop()}}),e)})))}get ccLibrariesDriver(){return g.Z.getDebugValue("jsapiHybridDriver")?this.hybridDriver:new E.Ut((0,E.Zb)(p.d,p.u),{ignoreRenditionGrids:!0})}get hybridDriver(){return new E.B((0,E.Zb)(p.d,p.u),this.cloudDriverConnector)}get supportsFileURLs(){const e=g.Z.getDebugValue("jsapiHybridDriver");return void 0===e||!e}constructor(e=window){super(e),this.type="CEP",this.vulcanInterface=new f,this.isMenuInJson=!1,this.hasManagerPersistenceBug=!0,this.flyoutMenuClickEvent="com.adobe.csxs.events.flyoutMenuClicked",this._waitForManagerInit=void 0,this._appInterface=new l,this._extensionId=this._appInterface.getExtensionID(),this._resourceBundle=this._appInterface.initResourceBundle(),window.__disable_swc__=!0}getHostEnvironment(e){return this._hostEnvironment&&!e||(this._hostEnvironment=this._appInterface.getHostEnvironment()),this._hostEnvironment}updateHostInfo(e){const t=this.getHostEnvironment();return e?(t.appUILocale=u.nD.includes(e)?e:"en_US",this._loadResourceBundle(t.appUILocale).then((()=>{_.ZP.setStringMap(this._resourceBundle)}))):Promise.resolve()}getOSInformation(){return this._appInterface.getOSInformation()}_evalScript(e,t=0){return new Promise(((r,n)=>{this._appInterface.evalScript(e,(i=>{if(0!==i.indexOf("Error")&&"EvalScript error."!==i)return r(i);this.debugLog("Tried to execute: "+e),this.debugLog("Failed with: "+i),t<2?setTimeout((()=>this._evalScript(e,t+1).then(r,n)),50):n(i)}))}))}exec(e,t,r=[]){Array.isArray(r)||(r=[r]);const n=r.map(JSON.stringify).join(", "),i=e?`$._ADBE_LIBS_${e}.`:"$.";return this._evalScript(`${i}${t}(${n})`)}execApp(e,t){return this.exec(this.getAppName(),e,t)}showError(e){return this.exec("CORE","showError",[e])}createEvent(e,t,r,n,o){const a=new i(e,t,r,n);return a.data=o,a}dispatchEvent(e){e.extensionId=this._appInterface.getExtensionID(),this._appInterface.dispatchEvent(e)}addEventListener(e,t){this._appInterface.addEventListener(e,t)}removeEventListener(e,t){this._appInterface.removeEventListener(e,t)}getPluginPath(){return this._appInterface.getSystemPath("extension")}getUserDataPath(){return this._appInterface.getSystemPath("userData")}getMyDocumentsPath(){return this._appInterface.getSystemPath("myDocuments")}setPanelFlyoutMenu(e){this._menuItems!==e&&(this._appInterface.setPanelFlyoutMenu(e),this._menuItems=e)}setContextMenu(e,t){this._appInterface.setContextMenu(e,t)}setWindowTitle(e){this._appInterface.setWindowTitle(e)}resizeContent(e,t){this._appInterface.resizeContent(e,t)}launchInBrowser(e,t=!1){return new Promise((r=>{const n=()=>{this._appInterface.openURLInDefaultBrowser(e),r()};t?n():setTimeout(n)}))}requestOpenExtension(e,t){this._appInterface.requestOpenExtension(e,t)}closeExtension(){this._appInterface.closeExtension()}getAvailableExtensions(){return this._extensionList||(this._extensionList=this._appInterface.getExtensions()),this._extensionList}getProfile(){const e=window.profile&&window.profile.getProfile();try{return JSON.parse(e)}catch(e){return{error:e}}}addManagerInitListener(){this._waitForManagerInit=new Promise((e=>{this.addEventListener(m.Z.MANAGER_CEP_EVENTS.INIT,e),this.hasManagerPersistenceBug&&this.addEventListener(m.Z.MANAGER_CEP_EVENTS.CLOSE,(()=>{this.removeEventListener(m.Z.MANAGER_CEP_EVENTS.INIT,e),this.addManagerInitListener()}))}))}openDialogInManager(e,t,r){this.openLibraryManagerWindow(),this._waitForManagerInit.then((()=>{const n=this.createEvent(m.Z.MANAGER_CEP_EVENTS.OPEN_DIALOG,"APPLICATION");n.data={name:e,params:t,onCloseCallback:r},this.dispatchEvent(n)}))}_openDialogInManager(e){const t=e.data,r=t.name,n=t.params,i=t.onCloseCallback;v.Z.libraryManager.waitForLibrariesLoaded().then((()=>{v.Z.manager.dialogManager.openDialog(r,n,i)})).catch((()=>{v.Z.manager.toastManager.openToast("message",{variant:"error",message:(0,_.Iu)("DL_GENERIC_MANAGER_DIALOG_ERROR")})}))}addOpenDialogEventListener(){this.addEventListener(m.Z.MANAGER_CEP_EVENTS.OPEN_DIALOG,this._openDialogInManager)}removeOpenDialogEventListener(){this.removeEventListener(m.Z.MANAGER_CEP_EVENTS.OPEN_DIALOG,this._openDialogInManager)}openLibraryManagerWindow(){this.requestOpenExtension(m.Z.MANAGER_EXTENSION_ID)}showShareSheet(e,t="invite"){if((0,b.u4)())return v.Z.libraryManager.openInCCD(`/assets/libraries/sharesheet/${t}/${e.id}`);(0,y.nd)(e)}_sendApplicationEvent(e,t){const r=this.createEvent(`com.adobe.DesignLibraries.events.${e}`,"APPLICATION");r.data=JSON.stringify(t),this.dispatchEvent(r)}_notifyLibraryCreated(e){this._sendApplicationEvent("CreateLibraryResponse",{success:!!e,libraryName:e?e.name:"",libraryId:e?e.id:""})}notifyElementCreated(e){this._sendApplicationEvent("ElementCreated",e)}notifyElementChosen(e){this._sendApplicationEvent(e.elementRef?"ElementChosen":"ElementChooseCancelled",e)}notifyElementUpdated(e){this._sendApplicationEvent("ElementUpdated",e)}notifyLibraryTempDir(e){this._sendApplicationEvent("TEMPDIR",{path:e})}connectProductInterface(e){const t=(t,r=!0,n)=>i=>{const o=i&&i.data;if(o||!r){const r=e[t](o);n&&n(r)}};this.disconnectProductInterface(),this._handlers={dlElementOpenForEdit:t("openElementForEdit"),dlElementReveal:t("revealElement"),dlElementChoose:t("invokeChooseElement"),dlElementChooseCancel:t("cancelChooseElement",!1),dlElementLinkCreated:t("reportElementLinkCreated"),dlElementDropped:t("reportElementDropped",!1),dlCreateLibrary:t("createLibrary",!0,(e=>this._notifyLibraryCreated(e))),dlSetCurrentLibrary:t("setCurrentLibrary"),dragStarted:t("startDragFromProduct"),dragEnded:t("endDragFromProduct",!1),"com.adobe.DesignLibraries.events.InvokeVisualSearch":t("invokeVisualSearch"),"com.adobe.DesignLibraries.events.LaunchCaptureWorkflow":t("launchCaptureWorkflow")};for(const e in this._handlers)this.addEventListener(e,this._handlers[e])}disconnectProductInterface(){if(this._handlers){for(const e in this._handlers)this.removeEventListener(e,this._handlers[e]);delete this._handlers}}isFontAvailable(e){return this.execApp("isFontAvailable",[e]).then((e=>"false"!==e))}getLayerInfo(){return this.execApp("getLayerInfo").then((e=>{try{if(!e)return;return JSON.parse(e)}catch(e){this.debugLog(e)}}))}getLayerName(){return this.execApp("getLayerName")}getCurrentDocumentState(){const e=m.Z.currentProduct.config.stateMethod||"getCurrentState";return this.execApp(e).then((e=>{if(e&&"undefined"!==e)try{return JSON.parse(e)}catch(e){return this.debugLog(e),{layerID:-1}}})).catch((e=>{this.debugLog(`Unable to getDocumentState: ${e}`)}))}isDocumentOpen(e){return this.exec("CORE","isDocumentOpen",[e]).then((e=>{if(void 0===e||"undefined"===e)return!1;try{return JSON.parse(e)}catch(e){return!1}}))}addDocumentChangeListener(e){this.removeDocumentChangeListener(e),e._handler=t=>{let r=t.data.substring(t.data.indexOf("<url>")+5,t.data.indexOf("</url>"));r=r.split("file://").join(""),m.Z.currentProduct.config.usesEscapedFilePaths&&(r=unescape(r));e({type:{documentAfterDeactivate:"deactivated",documentAfterSave:"saved"}[t.type]||t.type,path:r})},this.addEventListener("documentAfterSave",e._handler),this.addEventListener("documentAfterDeactivate",e._handler)}removeDocumentChangeListener(e){e._handler&&(this.removeEventListener("documentAfterSave",e._handler),this.removeEventListener("documentAfterDeactivate",e._handler),delete e._handler)}notifyProductInitialized(){const e=this.isLibrariesManager()?m.Z.MANAGER_CEP_EVENTS.INIT:"dlPanelInitialized";this.dispatchEvent(this.createEvent(e,"APPLICATION"))}}},41477:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(85062),i=r(22708),o=r.n(i),a=r(99386),s=r(76485),c=r(26964),l=r(96912);function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class d extends l.Z{constructor(e){super(),this.vulcanjs=e}init(){var e,t=this;return(e=u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.Z.log("Vulcan: Switching to node-vulcanjs (non-CEP environment)"),t.vulcanjs){e.next=4;break}return e.next=4,s.Z.exec("CORE","getHostEnvironment",s.Z.getExtensionID()).then((e=>{try{t.vulcanjs=window.nodeRequire(e.nodeVulcanjsPath||"node-vulcanjs"),t.vulcanjs.VulcanAdapter}catch(e){(0,c.Z)("Unable to load node-vulcanjs: "+e)}}));case 4:t._VulcanMessageLib=new t.vulcanjs.VulcanAdapter(s.Z.getAppName()+"-LIBS",s.Z.getAppVersion()),t._VulcanControlLib=new t.vulcanjs.VulcanControlAdapter,t._VulcanMessageLib.addMessageListener(((e,r,n,i)=>{e=e.replace("vulcan.SuiteMessage.",""),t._listenerManager.hasListeners(e)&&(c.Z.log("Vulcan: Receive Message: "+e),t._listenerManager.notify(e,r,n,i))})),t.launchCCLibProcess=t._VulcanControlLib.getAppDetails?t._launchCCLibProcessV2:t._launchCCLibProcessV1,t._ccLibProcessIdentifier=t._VulcanControlLib.getAppDetails?t.ccLibProcessSAPCode:t.ccLibProcessSpecifier;case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))})()}_launchCCLibProcessV1(){return new Promise((e=>{this._VulcanControlLib.launchApp(this._ccLibProcessIdentifier,!1,"",e)}))}_launchCCLibProcessV2(){return this._VulcanControlLib.launchApp(this._ccLibProcessIdentifier,!1,"")}isAppRunning(){return this.isCCLibProcessRunning()}isCCLibProcessInstalled(){return this._VulcanControlLib.isAppInstalled(this._ccLibProcessIdentifier)}isCCLibProcessRunning(){return this._VulcanControlLib.isAppRunning(this._ccLibProcessIdentifier)}addMessageListener(e,t){c.Z.log("Vulcan: Add Listener: "+e),this._listenerManager.addListener(e,t)}removeMessageListener(e,t){c.Z.log("Vulcan: Remove Listener: "+e),this._listenerManager.removeListener(e,t)}sendMessage(e,t){c.Z.log("Vulcan: Send Message: "+e),this._VulcanMessageLib.sendMessage(e,t,"","")}dispatchMessage(e){c.Z.log("Vulcan: Dispatch Message: "+e.type),this._VulcanMessageLib.sendMessage(e.type,e.message)}}var h=r(21271),f=r.n(h),m=r(33275),g=r(7921);function v(e){const t=e=>({type:e.divider?"separator":e.menuItems?"submenu":"checkbox",label:e.label,checked:!!e.checked,id:e.menuId,enabled:!1!==e.enableMenu,submenu:e.menuItems&&e.menuItems.map(t)});return e.map(t)}class y extends n.ZP{static check(){return!(!window.process||!window.process.type)}constructor(e=window){super(e),this.type="electron",this.disableCustomDragImage=!0,this.useSVGLegacyHref=!0,this._callbacks={},this._electron=e.nodeRequire("electron"),window.__disable_swc__=!0,this._extensionId="com.adobe.DesignLibraries.angular",f().ignoreEventPaths=!0,window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);const t=e.nodeRequire("fs");t.copyFile||(t.copyFile=function(e,r,n){try{const i=r+"_"+o()(),a=t.createWriteStream(i),s=t.createReadStream(e);let c=!1;s.on("end",(()=>{c||(c=!0,t.rename(i,r,(e=>{e?setTimeout((()=>{t.rename(i,r,n)}),100):n(null)})))})),s.on("error",(e=>{c=!0,n(e)})),s.pipe(a)}catch(e){n(e)}})}init(){return this._electron.ipcRenderer.on("cclibrary",((e,t)=>this._onMessage(t))),this.exec("CORE","getHostEnvironment",this.getExtensionID()).then((e=>{this._hostEnvironment=e,this.vulcanInterface=new d,this.vulcanInterface.init(),this.ccLibrariesDriver=new m.Ut((0,m.HH)(this.vulcanInterface,g.u));try{this.IMSLib=this._window.nodeRequire(e.nodeImslibPath||"node-imslib"),this.IMSLib.loadLib(e.imslibPath)}catch(e){this.debugLog("Unable to load node-imslib: "+e)}return Object.values=e=>Object.keys(e).map((t=>e[t])),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);const t=this.constructor||Promise;return this.then((r=>t.resolve(e()).then((()=>r))),(r=>t.resolve(e()).then((()=>{throw r}))))}),this._loadResourceBundle(e.appUILocale)}))}getHostEnvironment(){return this._hostEnvironment}exec(e,t,r=[]){const n=`${e}.${t}`,i=Math.random().toString(36);return new Promise(((e,t)=>{this._callbacks[i]=(r,i)=>r?t(n+": "+r):e(i),this._sendMessage({type:n,data:r,callback:i})}))}execApp(e,t){return this.exec(this._hostEnvironment.appName,e,t)}getLayerInfo(){return this.execApp("getLayerInfo").then((e=>{try{if(!e)return;return JSON.parse(e)}catch(e){this.debugLog(e)}}))}showError(e){return this.exec("CORE","showError",e).then((t=>{t||this._electron.remote.dialog.showErrorBox(e,"")}))}_sendMessage(e){this._electron.ipcRenderer.send("cclibrary",JSON.stringify(e))}_onMessage(e){try{e=JSON.parse(e)}catch(e){}if("callback"===e.type&&this._callbacks[e.id])this._callbacks[e.id](e.error,e.data),delete this._callbacks[e.id];else if("event"===e.type){"com.adobe.csxs.events.ThemeColorChanged"===e.event&&(this._hostEnvironment.appSkinInfo=e.data);const t=e,r=t.data,n=t.scope,i=t.appId,o=t.extensionId;this._notifyEventListeners(e.event,{type:e.event,data:r,scope:n,appId:i,extensionId:o})}}dispatchEvent(e){this._sendMessage({type:"event",data:e})}getPluginPath(){return this._hostEnvironment.extensionPath}getUserDataPath(){const e=this._window.process;if("darwin"!==e.platform){return e.env.USERPROFILE.replace(/\\/g,"/")+"/AppData/Roaming"}return e.env.HOME+"/Library/Application Support"}getMyDocumentsPath(){const e=this._window.process;return"darwin"===e.platform?e.env.HOME+"/Documents":e.env.USERPROFILE.replace(/\\/g,"/")+"/Documents"}setPanelFlyoutMenu(e){this.exec("CORE","setPanelFlyoutMenu",v(e))}setContextMenu(e,t){if(Array.isArray(e)&&!e.length>0)return;e=v(e);const r=e=>{e.enabled||(e.type="normal",e.submenu=void 0),e.submenu?e.submenu.forEach(r):e.click=()=>t(e.id)};e.forEach(r);const n=this._electron.remote.getCurrentWindow();this._electron.remote.Menu.buildFromTemplate(e).popup(n)}setWindowTitle(e){this.exec("CORE","setWindowTitle",e)}resizeContent(e,t){this._electron.remote.getCurrentWindow().setSize(e,t)}launchInBrowser(e){this._electron.shell.openExternal(e)}requestOpenExtension(e,t){this.exec("CORE","requestOpenExtension",{extensionId:e,params:t})}closeExtension(){this.exec("CORE","closeExtension")}notifyProductInitialized(){const e=this.isLibrariesManager()?a.Z.MANAGER_CEP_EVENTS.INIT:"dlPanelInitialized";this.dispatchEvent(this.createEvent(e,"APPLICATION"))}getAdjustedBoundingClientRect(e){if(!e)return null;const t=e.getBoundingClientRect();return t.x=t.left,t.y=t.top,t}}},36881:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(7218),i=r(28059),o=r(87876),a=r(42334),s=r(33054),c=r(73961),l=r(93028),u=r(89526);function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))}}const f=["canvasClick","com.adobe.csxs.events.flyoutMenuClicked","com.adobe.csxs.events.flyoutMenuOpened","com.adobe.csxs.events.flyoutMenuClosed","com.adobe.csxs.events.ThemeColorChanged"];class m extends n.Z{static check(){try{require("photoshop")}catch(e){return!1}return navigator.userAgent.indexOf("UXP")>-1}constructor(e=window){super(e),this.hasUXPButtonStyleBug=!0,this.hasInputZOrderBug=!0,this.hasOpacityBug=!0,this.hasUXPStockExtension=!0,this.hasUXPCaptureExtension=!0,this.additionalStockLicenseCoreModules=[{name:"photoshop",type:"module"}],this.additionalCaptureCoreModules=["photoshop"],this.type="Photoshop",this.pluginId="com.adobe.cclibrariespanel",this.closeContextMenu=()=>{this.flyoutDialogElement&&this.flyoutDialogElement.close()},this.removeContextMenu=()=>{this.flyoutDialogElement&&(this.flyoutDialogElement.remove(),this.flyoutDialogElement=void 0)};const t=window.nodeRequire("uxp").host,r=this.findLocaleMatch(t.locale);this._hostEnvironment={appName:"PHXS_UXP",appId:"PHXS",appVersion:t.version,appLocale:r,isAppOnline:!0,appUILocale:r,appSkinInfo:{panelBackgroundColor:{color:{alpha:255,green:83,blue:83,red:83}}}}}debugLog(e){return console.info(e),!0}setPanelFlyoutMenu(e){const t=window.nodeRequire("uxp").entrypoints.getPanel("ccLibrariesPanel").menuItems;let r=0;this._flyoutMenuClickHandlers={};const n=e.map((e=>e.divider?{id:"DIVIDER_"+r++,label:"-"}:(this._flyoutMenuClickHandlers[e.menuId]=e.onClick,{id:e.menuId,label:e.label,enabled:e.enableMenu,checked:e.checked})));for(let e=t.size;e>0;e--)t.removeAt(e-1);n.forEach(((e,r)=>{t.insertAt(r,e)}))}handleFlyout(e){this._flyoutMenuClickHandlers[e]&&this._flyoutMenuClickHandlers[e]()}get exports(){var e=this;return window.nodeRequire("uxp").entrypoints.setup({panels:{ccLibrariesPanel:{show:e=>{this._waitForInit.then((()=>{this._panelMountPoint=this.getMountPoint(e.node),this.renderPanel(this._panelMountPoint),this.core.suppressResizeGripper({type:"panel",target:"ccLibrariesPanel",value:!0})}))},hide:()=>{this._panelMountPoint&&(this.unmountPanel(this._panelMountPoint),this._panelMountPoint.remove(),delete this._panelMountPoint)},menuItems:[],invokeMenu:e=>{this.handleFlyout(e)}}},commands:{adobeStockLicensingPlugin:{run:(t=h(p().mark((function t(r){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.openStockLicenseExtension(JSON.parse(r.data));case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])}))),function(e){return t.apply(this,arguments)})}}});var t}getPluginPath(){return window.nodeRequire("uxp").entrypoints._pluginInfo._pluginInfo.pluginPath}getDragFileList(e){var t=this;return h(p().mark((function r(){var n,i;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.isWindowsOS()?"\\":"/",i=e.uxpEntries.map((e=>e.nativePath)),r.abrupt("return",Promise.all(i.map((e=>l.ZP.getFileSize(e).then((t=>({path:e,size:t,name:e.split(n).pop()})))))));case 3:case"end":return r.stop()}}),r)})))()}_onUXPStockDialogClosed(e){return window.nodeRequire("photoshop").cclibrariespanel.stockLicenseExtensionClosed(this._deleteUndefinedKeys(e.data)),super._onUXPStockDialogClosed(e)}onContextMenu(e){if(e.preventDefault(),this._contextMenu.length>0&&!this.flyoutDialogElement){this.flyoutDialogElement=document.createElement("popup"),document.body&&document.body.appendChild(this.flyoutDialogElement),this.flyoutDialogElement.addEventListener("close",this.removeContextMenu);const t=this._contextMenu.some((e=>e.menuItems))?4:0;c.render(u.createElement(s.Z,{clientY:e.clientY,menuItems:this._contextMenu,maxMenuItemsVisible:15,minMenuItemsVisible:t,maxWidth:200,style:{left:0,top:0},preserveMainMenuHeightForSubMenus:!0,canShowOutsidePanel:!0,close:this.closeContextMenu,className:"panel-search-types"}),this.flyoutDialogElement),this.flyoutDialogElement.showFlyout(e.currentTarget)}}get hasVideoRenderingBug(){return!!this.isWindowsOS()}exec(e,t,r=[]){return"getTempFolder"===t?new Promise((function(e){window.nodeRequire("uxp").storage.localFileSystem.getTemporaryFolder().then((t=>e(t.nativePath)))})):"getApplicationVersion"===t?new Promise((e=>{e(this._hostEnvironment.appVersion)})):super.exec(e,t,r)}execApp(e,t){return"saveAssets"===e?new Promise((function(e){a.Z.saveAssets(t[0]).then((t=>e(JSON.stringify(t))))})):"saveTextStylePreview"===e?new Promise((function(e){i.Z.saveTextStylePreview(t[0]).then((t=>e(t)))})):this.exec(this._hostEnvironment.appName,e,t)}get application(){return window.nodeRequire("photoshop").app}get core(){return window.nodeRequire("photoshop").core}_deleteUndefinedKeys(e){return Object.keys(e).forEach((t=>{e[t]&&"object"==typeof e[t]?this._deleteUndefinedKeys(e[t]):void 0===e[t]&&delete e[t]})),e}notifyElementCreated(e){e=this._deleteUndefinedKeys(e);window.nodeRequire("photoshop").cclibrariespanel.libraryElementCreated(e)}notifyElementUpdated(){window.nodeRequire("photoshop").cclibrariespanel.libraryElementUpdated()}notifyElementChosen(e){if(e.elementRef){e=this._deleteUndefinedKeys(e);window.nodeRequire("photoshop").cclibrariespanel.libraryElementChosen(e)}}_notifyLibraryCreated(e){window.nodeRequire("photoshop").cclibrariespanel.createLibraryResponse(!!e)}addEventListener(e,t){if(super.addEventListener(e,t),f.includes(e))return;window.nodeRequire("photoshop").action.addNotificationListener([e],t)}removeEventListener(e,t){if(super.removeEventListener(e,t),f.includes(e))return;window.nodeRequire("photoshop").action.removeNotificationListener([e],t)}connectProductInterface(e){const t=(t,r=!0,n)=>(i,o)=>{if(o||!r){const r=e[t](o);n&&n(r)}};this.disconnectProductInterface(),this._handlers={ElementOpenForEdit:t("openElementForEdit"),ElementReveal:t("revealElement"),ElementChoose:t("invokeChooseElement"),ElementChooseCancel:t("cancelChooseElement",!1),ElementLinkCreated:t("reportElementLinkCreated"),ElementDropped:t("reportElementDropped",!1),CreateLibrary:t("createLibrary",!0,(e=>this._notifyLibraryCreated(e))),DragStarted:t("startDragFromProduct"),DragEnded:t("endDragFromProduct",!1)};for(const e in this._handlers)this.addEventListener(e,this._handlers[e])}disconnectProductInterface(){if(this._handlers){for(const e in this._handlers)this.removeEventListener(e,this._handlers[e]);delete this._handlers}}isFontAvailable(e){return new Promise((function(t,r){i.Z.isFontAvailable(e).then((e=>t(e))).catch((()=>r("Could not get font availability from PS")))}))}getLayerInfo(){return new Promise((function(e,t){o.Z.getLayerInfo().then((t=>e(t))).catch((()=>t("Could not get layer info from PS")))}))}getLayerName(){return new Promise((function(e,t){o.Z.getActiveLayerName().then((t=>e(t))).catch((()=>t("Could not get active layer name from PS")))}))}getCurrentDocumentState(){return new Promise((function(e){const t={path:void 0,layerID:-1};o.Z.getNumberOfDocuments().then((r=>{r>0?o.Z.getActiveDocumentId().then((r=>{o.Z.getActiveLayerId(r).then((r=>{r&&(t.layerID=r),e(t)}))})):e(t)}))}))}isDocumentOpen(e){return new Promise((function(t){o.Z.isMatchingDocOpen(e).then((e=>t(e)))}))}addDocumentChangeListener(e){this.removeDocumentChangeListener(e),e._handler=(t,r)=>{let n=r.data.substring(r.data.indexOf("<url>")+5,r.data.indexOf("</url>"));n=n.split("file://").join("");e({type:{documentAfterDeactivate:"deactivated",documentAfterSave:"saved"}[t],path:n})},this.addEventListener("documentAfterSave",e._handler),this.addEventListener("documentAfterDeactivate",e._handler)}removeDocumentChangeListener(e){e._handler&&(this.removeEventListener("documentAfterSave",e._handler),this.removeEventListener("documentAfterDeactivate",e._handler),delete e._handler)}showError(e){e&&super.showError(e)}deleteFile(e){return window.nodeRequire("photoshop").cclibrariespanel.deleteTempFile(e)}}},7218:(e,t,r)=>{"use strict";r.d(t,{Z:()=>de});var n=r(85062);const i=window.atob||function(e){let t=0;const r=[];let n,i=0,o=0;if((e=e.replace(/\s/g,"")).length%4==0&&(e=e.replace(/=+$/,"")),e.length%4==1)throw Error("The string to be decoded contains invalid characters.");if(/[^+/0-9A-Za-z]/.test(e))throw Error("The string to be decoded contains invalid characters.");for(;t<e.length;)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(t)),i=i<<6|n,o+=6,24===o&&(r.push(String.fromCharCode(i>>16&255)),r.push(String.fromCharCode(i>>8&255)),r.push(String.fromCharCode(255&i)),o=0,i=0),t+=1;return 12===o?(i>>=4,r.push(String.fromCharCode(255&i))):18===o&&(i>>=2,r.push(String.fromCharCode(i>>8&255)),r.push(String.fromCharCode(255&i))),r.join("")},o=window.btoa||function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r=0;const n=[];let i,o,a,s,c,l,u;if(/[^\x00-\xFF]/.test(e))throw Error("The string to be encoded contains invalid characters.");for(;r<e.length;)i=e.charCodeAt(r++),o=e.charCodeAt(r++),a=e.charCodeAt(r++),s=i>>2,c=(3&i)<<4|o>>4,l=(15&o)<<2|a>>6,u=63&a,r===e.length+2?(l=64,u=64):r===e.length+1&&(u=64),n.push(t.charAt(s),t.charAt(c),t.charAt(l),t.charAt(u));return n.join("")};var a=r(22708),s=r.n(a);var c,l,u,p,d=r(89526),h=r(62631),f=r(3713),m=r(50265);let g=(c=m.observable.ref,(0,h.Pi)((u=class extends d.Component{constructor(...e){var t,r,n,i;super(...e),t=this,r="menuItems",i=this,(n=p)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.renderMenuItem=(e,t)=>e.divider?d.createElement("hr",{key:t}):e.menuItems&&e.enableMenu?d.createElement(d.Fragment,null,d.createElement("menu",{key:t+"sub",label:e.label},e.menuItems.map(this.renderMenuItem)),d.createElement("menuitem",{key:t,label:e.label})):d.createElement("menuitem",{key:t,label:e.label,disabled:!1===e.enableMenu,checked:!0===e.checked,onClick:e.onClick}),this.setMenuRef=e=>this._menuRef=e}showContextMenu(e,t,r){this.menuItems=e,this._menuRef&&this._menuRef.popupAt(t,r)}render(){return d.createElement("menu",{ref:this.setMenuRef},this.menuItems.map(this.renderMenuItem))}},v=u.prototype,y="menuItems",b=[c],_={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}},w={},Object.keys(_).forEach((function(e){w[e]=_[e]})),w.enumerable=!!w.enumerable,w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=b.slice().reverse().reduce((function(e,t){return t(v,y,e)||e}),w),E&&void 0!==w.initializer&&(w.value=w.initializer?w.initializer.call(E):void 0,w.initializer=void 0),void 0===w.initializer&&(Object.defineProperty(v,y,w),w=null),p=w,l=u))||l);var v,y,b,_,E,w,L;let x=(0,h.Pi)(L=class extends d.Component{constructor(...e){super(...e),this.setMenuRef=e=>this._menuRef=e}showContextMenu(e,t,r,n){this._menuRef&&this._menuRef.showContextMenu(e,t,r,n)}render(){return d.createElement("div",{id:"uxp-panel-root",className:"uxp-panel-root body",acceptsFirstPointer:"all"},d.createElement(f.Z,null),d.createElement(g,{ref:this.setMenuRef}))}})||L;var S,O,T,I,P,C=r(2652),A=r.n(C);function k(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 D(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let N=(0,h.Pi)(((P=class extends d.Component{constructor(...e){super(...e),k(this,"height",T,this),k(this,"width",I,this),this.throttled=!1,this.handleResize=()=>{this.height=this.contentBox.clientHeight,this.width=this.contentBox.clientWidth}}componentDidMount(){window.addEventListener("resize",this.handleResize),this.handleResize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const e=this.props.children;return d.createElement("div",{"data-test-id":"auto-sizer",ref:e=>this.contentBox=e,style:{height:"100%",width:"100%"}},e({height:this.height,width:this.width}))}}).propTypes={children:A().func.isRequired},T=D((O=P).prototype,"height",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),I=D(O.prototype,"width",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),S=O))||S;class R{constructor(){}disconnect(){}observe(){}}var M=r(73645),j=r(26964),Z=r(96912);class F extends Z.Z{init(){const e=window.nodeRequire("uxp").vulcan;this._dispatcher=e.dispatcher,this._control=e.control,this._message=e.message,this._ccLibProcessIdentifier=this._control.getInstalledAppsEx?this.ccLibProcessSAPCode:this.ccLibProcessSpecifier,this._getInstalledApps=this._control.getInstalledAppsEx?this._getInstalledAppsV2:this._getInstalledAppsV1}_getInstalledAppsV1(){return this._control.getInstalledApps()}_getInstalledAppsV2(){return this._control.getInstalledAppsEx()}isCCLibProcessInstalled(){return this._getInstalledApps().then((e=>!!e.find((e=>e.name===this._ccLibProcessIdentifier||e.sapCode===this._ccLibProcessIdentifier)))).catch((e=>{j.Z.log("Vulcan: isCCLibProcessInstalled check failed "+e)}))}isCCLibProcessRunning(){return this._getInstalledApps().then((e=>{const t=e.find((e=>e.name===this._ccLibProcessIdentifier||e.sapCode===this._ccLibProcessIdentifier));return!!t&&t.isRunning()})).catch((e=>{j.Z.log("Vulcan: isCCLibProcessRunning check failed "+e)}))}launchCCLibProcess(){return this._getInstalledApps().then((e=>{const t=e.find((e=>e.name===this._ccLibProcessIdentifier||e.sapCode===this._ccLibProcessIdentifier));return!!t&&t.launch()})).catch((e=>{j.Z.log("Vulcan: failed to launch CCLibProcess "+e)}))}addMessageListener(e,t){j.Z.log("Vulcan: Add Listener: "+e),this._dispatcher.addEventListener(this._vulcanPrefix+e,t)}removeMessageListener(e,t){j.Z.log("Vulcan: Remove Listener: "+e),this._dispatcher.removeEventListener(this._vulcanPrefix+e,t)}sendMessage(e,t){j.Z.log("Vulcan: Send Message: "+e),this._dispatcher.broadcastMessage(new this._message(this._vulcanPrefix+e,t))}}var B=r(81046),G=r(93028),U=r(48346),z=r(73961),V=r(99386),H=r(72373),Y=r(57806),W=r(69834),$=r(33275),K=r(48919),q=r(74379),X=r(29219),J=r(76325),Q=r(84824),ee=r(89526);const te=["element"];function re(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ne(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 ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach((function(t){oe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ae=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function se(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ce(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){se(o,n,i,a,s,"next",e)}function s(e){se(o,n,i,a,s,"throw",e)}a(void 0)}))}}const le={darwin:"Mac OS X",win10:"Windows"},ue=Object.entries?Object.assign({},...Object.entries(Y.s4).map((([e,t])=>({[t]:e})))):{};class pe{createRefEx(e){return{endpoint:e}}fetchAccessToken(e,t,r,n,i,o,a){return G.ZP.getAccessToken(n,t,r,o).then((e=>a(null,e)),a)}}class de extends n.ZP{get supportsFileURLs(){const e=H.Z.getDebugValue("jsapiHybridDriver");return void 0===e||!e}constructor(e){super(e),this.useSVGPolyfill=!0,this.hasNativeControlStyles=!0,this.supportsFileSystem=!1,this.disableCustomDragImage=!0,this.supportsImagesInButtons=!1,this.hasUXPInputClickBug=!0,this.hasUXPInputSelectionRangeBug=!0,this.hasUXPScrollWidthBug=!0,this.hasUXPSelectBlurBug=!0,this.hasUXPWindowsCTRLClickBug=!0,this.hasUXPResizeBug=!0,this.useUXPDragImage=!0,this.AutoSizer=N,this.MutationObserver=R,this.Tooltip=M.Z,this.LibraryContentsView=U.Z,this.ElementDragId="application/cc-graphic",this.supportsAnimations=!1,this.hasUXPTransformBug=!0,this.hasUXPRevealElementBug=!0,this.autoScrollNotSupported=!0,this.videoElementsSupported=!1,this.supportsCSSListItem=!1,this.maxLocalStorageLength=4e3,this.nativeIds={},this.vulcanInterface=new F,this.IMSLib=new pe,this._stockExtensionOpen=!1,this._isLoggedIn=!1,function(e){e.nodeRequire=e=>{if("fs"!==e)return require(e)};const t=Object.getOwnPropertyDescriptor(e.Element.prototype,"attributes");!e.IS_XD_TEST_ENVIRONMENT&&!e.IS_AI_TEST_ENVIRONMENT&&!e.IS_PS_TEST_ENVIRONMENT&&Object.defineProperty(e.Node.prototype,"attributes",{get(){const e=t.get.apply(this),r=[];for(let t=0;t<e.length;t++)r.push(e[t]),r[e[t].name]=e[t].value;return r}}),e.DOMParser?!e.IS_XD_TEST_ENVIRONMENT&&console.warn("UXP added window.DOMParser - can remove patch"):e.DOMParser=r(83462).a,e.btoa?!e.IS_XD_TEST_ENVIRONMENT&&!e.IS_PS_TEST_ENVIRONMENT&&console.warn("UXP added window.btoa - can remove patch"):(e.btoa=o,e.atob=i),e.document.visibilityState||(e.document.visibilityState="visible"),e.crypto=e.crypto||{},e.crypto.randomUUID||(e.crypto.randomUUID=s())}(e),this._hostEnvironment={appSkinInfo:{}},this._appInterface=window.nodeRequire("uxp").host,this._extensionId="com.adobe.cclibrariespanel",this._waitForInit=new Promise((e=>this._isReadyToRender=e))}init(){return this._appInterface.addEventListener(V.Z.THEME_COLOR_CHANGED_EVENT_UXP,(()=>{this._updateTheme().then((()=>this._notifyEventListeners(V.Z.THEME_COLOR_CHANGED_EVENT)))})),this.vulcanInterface.init(),Promise.all([this._loadResourceBundle(this._hostEnvironment.appUILocale),this._updateTheme()])}get cloudDriverConnector(){return ce(ae().mark((function e(){var t,r,n,i,o,a,s,c,l;return ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.nodeRequire("uxp"),r=t.licensing,e.next=3,r.isProductionEnv();case 3:if(!e.sent){e.next=7;break}e.t0="production",e.next=8;break;case 7:e.t0="staging";case 8:return n=e.t0,i=J.Z.getEnvironment(n),o=i.clientId,a=i.clientSecret,s=i.clientScope,c=()=>r.getAccessToken({clientId:o,clientSecret:a,clientScope:s,forceRefresh:!1}),e.next=13,c();case 13:return l=e.sent,e.abrupt("return",{env:n,token:l,refreshAccessToken:c});case 15:case"end":return e.stop()}}),e)})))}get ccLibrariesDriver(){return H.Z.getDebugValue("jsapiHybridDriver")?this.hybridDriver:new $.Ut((0,$.RX)(require("uxp").vulcan),{ignoreRenditionGrids:!0})}get hybridDriver(){return new $.B((0,$.RX)(require("uxp").vulcan),this.cloudDriverConnector)}shouldRenderPanel(){return this._isReadyToRender(),!1}renderPanel(e){z.render(ee.createElement(x,{ref:e=>this._panel=e}),e)}renderManager(e){var t=this;return ce(ae().mark((function n(){var i;return ae().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.resolve().then(r.bind(r,5425));case 2:return i=(i=n.sent).default||i,n.abrupt("return",new Promise((r=>{z.render(ee.createElement(i,{ref:e=>t._manager=e}),e,(()=>r(e)))})));case 5:case"end":return n.stop()}}),n)})))()}unmountPanel(e){z.unmountComponentAtNode(e),delete this._panel}unmountManager(e){z.unmountComponentAtNode(e),delete this._manager}getMountPoint(e,t="div"){const r=document.createElement(t);return e.appendChild(r),r}getUXPDialog(e){return this.getMountPoint(e,"dialog")}getHostEnvironment(){return this._hostEnvironment}_getClientOSName(){const e=window.nodeRequire("os");return le[e.platform()]||"Unknown Operation System"}getOSVersion(){const e=window.nodeRequire("os"),t=e.release();if(t&&"darwin"===e.platform()){return"10."+(parseInt(t.split(".")[0])-4)}return t}getFileForSaving(e){return window.nodeRequire("uxp").storage.localFileSystem.getFileForSaving(e)}getFileForOpening(e){return window.nodeRequire("uxp").storage.localFileSystem.getFileForOpening({types:e})}getDataFolder(){return new Promise(((e,t)=>{window.nodeRequire("uxp").storage.localFileSystem.getDataFolder().then((t=>e(t)),(e=>t(e)))}))}getEntryFromDataFolder(e){return new Promise(((t,r)=>{if(!e)return r("File Name is required");this.getDataFolder().then((n=>{n.getEntry(e).then((e=>t(e))).catch((()=>r("Unable to find entry")))}),(()=>r("Unable to fetch folder")))}))}getBase64DataFromImage(e){return new Promise((t=>{e?this.getEntryFromDataFolder(e.split("/").pop()).then((e=>{const r={format:window.nodeRequire("uxp").storage.formats.binary};e.read(r).then((e=>{t((0,X.mD)(e))})).catch((e=>this.debugLog.log(e)))}),(()=>t(void 0))):t(void 0)}))}openLibraryManagerWindow(){const e=window.nodeRequire("uxp").pluginManager;Array.from(e.plugins).find((e=>e.id===this.pluginId)).invokeCommand("ccLibrariesManager")}_getManager(){return this._managerInitPromise||(this._managerInitPromise=this._waitForInit.then((()=>(this._managerMountPoint=this.getUXPDialog(this._panelMountPoint.parentNode),this._managerMountPoint.addEventListener("close",(()=>K.Z.manager.reset())),this.renderManager(this._managerMountPoint))))),this._managerInitPromise}openDialogInManager(e,t,r){const n=()=>K.Z.manager.dialogManager.openDialog(e,t,r);this._getManager().then((e=>{e.addEventListener("load",n),e.addEventListener("close",(()=>e.removeEventListener("load",n))),e.showModal()}))}exec(e,t,r=[]){const n=`${e}.${t}`;return this.debugLog(`exec ${n} ${r}`),Promise.reject("not implemented")}execApp(e,t){return this.exec(this._hostEnvironment.appName,e,t)}showError(e){B.Z.openToast("message",{message:e})}dispatchEvent(){return null}getPluginPath(){return null}getUserDataPath(){const e=window.nodeRequire("os");if(this.isWindowsOS()){return e.homedir().replace(/\\/g,"/")+"/AppData/Roaming"}return`${e.homedir()}/Library/Application Support`}getMyDocumentsPath(){return null}setPanelFlyoutMenu(e){this._flyoutMenu=e}setContextMenu(e){this._contextMenu=e}onContextMenu(e){const t=this._contextMenu;t&&t.length&&this._panel.showContextMenu(t,e.clientX,e.clientY)}setWindowTitle(e){this.debugLog("TODO: Implement setWindowTitle() - is this possible?",e)}resizeContent(e,t){this.debugLog("TODO: Implement resizeContent() - is this possible?",e,t)}launchInBrowser(e){window.nodeRequire("uxp").shell.openExternal(e)}closeExtension(){this.debugLog("TODO: Implement closeExtension()")}getRootPanelElement(){return document.getElementById("uxp-panel-root")}getRootManagerElement(){return document.getElementById("manager-root")}getPanelWidth(){const e=this.getRootPanelElement()||this.getRootManagerElement();return(null==e?void 0:e.clientWidth)||0}getPanelHeight(){const e=this.getRootPanelElement()||this.getRootManagerElement();return(null==e?void 0:e.clientHeight)||0}scrollBugFix(e,t,r=0){const n=e&&e._collectionView,i=n&&n._scrollingContainer;if(!i)return;const o=n.props.cellLayoutManager.getTotalSize().height,a=Math.max(0,o-t),s=Math.max(0,Math.min(a,i.scrollTop+r));i.scrollTop!==s&&(i.scrollTop=s,n._onScroll({target:i}))}registerElementNode(e,t){t&&e&&(this.nativeIds[e.id]=t._nativeId)}getNativeIdForElement(e){return this.nativeIds[e]}_getTheme(){return this._appInterface.getTheme?this._appInterface.getTheme().then((e=>ue[e])):Promise.resolve(V.Z.currentProduct.config.defaultTheme)}_updateTheme(){return this._getTheme().then((e=>{this._hostEnvironment.appSkinInfo.panelNamedTheme=e}))}_onUXPStockDialogClosed(e){const t=e.data;return new Promise(((e,r)=>{var n;t&&t.didFinish?e(ie(ie({},t.data),{},{elementRef:t.elementRef||(null===(n=t.data)||void 0===n?void 0:n.elementRef)})):r(t&&t.data)}))}openStockLicenseExtension(e){var t=this;let r=e.element,n=re(e,te);return this._stockExtensionOpen?Promise.reject("Stock extension already open"):new Promise(((e,i)=>{this._stockExtensionOpen=!0;const o=window.nodeRequire("uxp").pluginManager,a=Array.from(o.plugins).find((e=>"com.adobe.cclibrariespanel"===e.id)).pluginPath+"extensions/stock-panel-licensing",s=o.createPlugin(a,o.PLUGIN_TYPE_FIRST_PARTY,{name:"Adobe Stock Licensing Plugin",allowDebugging:!0,enableDebugging:this._enableStockDebugging(a),allowCodeGenerationFromStrings:!0});o.addPlugin(s,!0);const c=s.runtime;c.addEventListener(o.RUNTIME_INITIALIZE,(()=>{c.registerUxpModule("vulcan",(()=>window.nodeRequire("uxp").vulcan)),c.registerUxpModule("licensing",(()=>window.nodeRequire("uxp").licensing)),c.registerUxpModule("host",(()=>window.nodeRequire("uxp").host)),c.registerCoreModule("cclibraries",(()=>new W.Z)),this.additionalStockLicenseCoreModules&&this.additionalStockLicenseCoreModules.forEach((({name:e,type:t})=>c.registerCoreModule(e,(()=>"window-global"===t?window[e]:window.nodeRequire(e)))))})),c.load();c.invokeCommand("adobeStockLicensingPlugin",(()=>{const e=ie({},n);return r&&(e.elementRef=r.getLegacyReference&&r.getLegacyReference(),e.elementType=r.type,e.elementName=r.name),e})()).then(function(){var r=ce(ae().mark((function r(n){return ae().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,c.unload();case 2:o.removePlugin(s),"reasonCanceled"===n?i(n):e(t._onUXPStockDialogClosed(n));case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())})).finally((()=>{this._stockExtensionOpen=!1}))}isWindowsOS(){return new RegExp(/^win/).test(window.nodeRequire("uxp").host.platform)}isLoggedIn(){return this._isCheckingUser||(this._isCheckingUser=!0,window.nodeRequire("uxp").licensing.checkIfUserIsValid().then((e=>{this._isCheckingUser=!1,this._isLoggedIn!==e&&(this._isLoggedIn=e,this._notifyEventListeners(V.Z.PROFILE_CHANGE_EVENT_ID))}))),this._isLoggedIn}getDragFileList(e){var t=this;return ce(ae().mark((function r(){var n,i;return ae().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.isWindowsOS()?"\\":"/",i=null==e?void 0:e.uxpEntries.map((e=>e.nativePath)),r.abrupt("return",Promise.all(i.map((e=>G.ZP.getFileSize(e).then((t=>({path:e,size:t,name:e.split(n).pop()})))))));case 3:case"end":return r.stop()}}),r)})))()}get fs(){return require("fs")}hideDebugFlyoutMenu(e){try{return!this.fs.lstatSync(`file:${this.getGlobalRoot()}${e}`).isFile()}catch(e){return this.debugLog(e),!0}}updateHostInfo(e){const t=this.getHostEnvironment();return e?(t.appUILocale=n.nD.includes(e)?e:"en_US",this._loadResourceBundle(t.appUILocale).then((()=>{Q.ZP.setStringMap(this._resourceBundle)}))):Promise.resolve()}copyContentToClipboard(e){this.canvas.writePlainTextClipboard(e.toString())}_enableStockDebugging(e){try{return this.fs.lstatSync(`file:${e}/debug.json`).isFile()}catch(e){return this.debugLog(e),!1}}findLocaleMatch(e,t={}){if(!e)return"en_US";return t[e]||this.supportedLocales.find((t=>t.startsWith(e)))||this.supportedLocales.find((t=>t.startsWith(e.substr(0,2))))||"en_US"}get colorProfile(){return q.wo.MONITOR}}},3458:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>de});var n,i,o,a,s=r(50265),c=r(7218),l=r(99386),u=r(84824),p=r(46903),d=r(26964),h=r(82490),f=r(89526),m=r(2652),g=r.n(m),v=r(62631),y=r(73645),b=r(76485);let _=(0,v.Pi)(((i=class extends f.Component{constructor(...e){super(...e),this._setTooltipNode=e=>{this._tooltipNode=e}}componentDidMount(){b.Z.registerFeatureTooltip(this.props.featureId,this._tooltipNode)}componentDidUpdate(e){e.featureId!==this.props.featureId&&(b.Z.unregisterFeatureTooltip(e.featureId,this._tooltipNode),b.Z.registerFeatureTooltip(this.props.featureId,this._tooltipNode))}componentWillUnmount(){b.Z.unregisterFeatureTooltip(this.props.featureId,this._tooltipNode)}render(){return f.createElement("div",{ref:this._setTooltipNode},this.props.children)}}).propTypes={children:g().node,featureId:g().string,className:g().string},n=i))||n,E=(0,v.Pi)(((a=class extends f.Component{render(){return this.props.featureId&&!this.props.disable&&b.Z.getAppSetting("featureTooltipsEnabled")?f.createElement(_,{featureId:this.props.featureId,className:this.props.className},this.props.children):f.createElement(y.Z,this.props)}}).propTypes={children:g().node,featureId:g().string,content:g().oneOfType([g().string,g().array]),disable:g().bool,className:g().string},o=a))||o;var w=r(89368),L=r.n(w),x=r(69377),S=r(25585),O=r(53849),T=r(93028),I=r(93443);class P{constructor(e){this._onLibraryChange=(e,t,r)=>{"assetsPanelDismissMissingFontsEditor"!==e&&"application/vnd.adobe.element.missingfont+dcx"!==r||this._reportChanged()},this._api=e,this._collapsed=!0,this._changeAtom=new s.Atom("missingFontChange",(()=>this._api.addAssetsChangeListener(this._onLibraryChange)),(()=>this._api.removeAssetsChangeListener(this._onLibraryChange)))}_reportChanged(){this._reportChangedTimeout||(this._reportChangedTimeout=setTimeout((()=>{delete this._reportChangedTimeout,this._changeAtom.reportChanged()}),2e3))}_wrapMissingFont(e){if(e)return new I.Z(e)}get missingFonts(){this._changeAtom.reportObserved();return this._api.getMissingFonts().map((e=>this._wrapMissingFont(e)))}get collapsed(){return this._changeAtom.reportObserved(),this._collapsed}toggleCollapsed(){this._collapsed=!this._collapsed,this._changeAtom.reportChanged()}}var C,A,k=r(51461),D=r(68895),N=r(16993),R=r(48919),M=r(69233),j=r(89910),Z=r.n(j),F=r(24937);let B=(0,v.Pi)(((A=class extends f.Component{render(){return f.createElement("div",{className:"application-dialog-container","data-test-id":"application-dialog-container"},f.createElement(F.o,{value:R.Z.panel,style:{fontFamily:"inherit"}},f.createElement(Z(),null,this.props.children)))}}).propTypes={children:g().node},C=A))||C;var G,U,z,V,H,Y,W=r(73961),$=r(74379),K=r(76792),q=r(89526);function X(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){Q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ee(){return ee=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},ee.apply(this,arguments)}function te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */te=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function re(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ne(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){re(o,n,i,a,s,"next",e)}function s(e){re(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ie(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oe(e,t)}(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 oe(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 ae(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 se(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const ce={"zh-Hans":"zh_CN",zu:l.Z.TEST_LOCALE},le={light:"lighter"},ue={"New Library":["create"],Library:["delete"],Group:["create","rename","delete","delete-with-assets","order"],Element:["add","add-note","add-to-group","rename","use","update-all","accept-update","order","edit-in-source-document","reveal-in-library","view-in-source-document","publish-to-source-library"],Search:["input"],Manage:["publish","unpublish","share","toggle-off","toggle-on","update"],Navigation:["browse-libraries","browse-org"],"Root View":["browse-libraries"],"Library Panel":["select-document-assets","select-library","select-search-type","root-view","deselect-filter","select-filter","expand-group","collapse-group","view-change","sort-change"],"Root Search":["input"],Toast:["publish-now"],Launch:["open-manager"]},pe={"add-to-group":["agg"],"update-all":[void 0],"accept-update":[void 0]};let de=(G=class extends c.Z{static check(){try{require("xd")}catch(e){return!1}return!0}constructor(e=window){super(e),this.type="XD",this.pluginId="CC_LIBS",this.developerMode=!1,this.disableAPILoggingByDefault=!0,this._documentChangeAtom=new s.Atom("xdDocumentChange"),this._settingsChangeAtom=new s.Atom("xdSettingsChange"),this._colorProfileChangeAtom=new s.Atom("xdColorProfileChange"),this._moduleCache={},this.Tooltip=E,this.hasUXPScrollZIndexBug=!0,ae(this,"_isCoeditorPublishing",U,this),this._updateCloudAssetId=e=>{this._cloudAssetId=e},this._updateCloudStorageWritable=e=>{this._hasWritableStorage=e},this._handleXDMigrationDetection=()=>(0,p.JT)(T.ZP.documentAssetsContainer),this._linkListeners={},this._libraryNameChangeDisposers=new Map,this._libraryListChangeDisposers=new Map,ae(this,"_cloudAssetId",z,this),ae(this,"_hasWritableStorage",V,this),ae(this,"_isPaidUser",H,this),this._updateIsPaidUser=()=>{this._isPaidUser=this._XDCCLibrariesAPIs.isPaidUser()},ae(this,"_isPreviewActive",Y,this),this._coeditorPublishingHandler=()=>{this._isCoeditorPublishing=!0,this.dismissToastMessage((0,u.Iu)("PENDING_UPDATE_TOAST_MESSAGE"),(0,u.Iu)("PENDING_UPDATE_TOAST_ACTION_LABEL"))},this._coeditorFinishPublishingHandler=()=>{if(this._isCoeditorPublishing)if(T.ZP.publishedDocumentLibrary){ie(T.ZP.syncStateCompleteListener(T.ZP.publishedDocumentLibrary,T.pA.DOWNLOADING),1)[0].then((()=>this._isCoeditorPublishing=!1))}else this._isCoeditorPublishing=!1};const t=this.application,r=t.locale,n=this.findLocaleMatch(r,ce),i=t.config.appVersion;this._hostEnvironment={appName:"SPRK",appId:"SPRK",appVersion:i,appLocale:n,isAppOnline:!0,appUILocale:n,appSkinInfo:{panelBackgroundColor:{color:{alpha:255,green:245,blue:245,red:245}}}},k.ZP.setEnvironment({productVersion:i}),this._missingFontsModel=new P(this._XDCCLibrariesAPIs),this._waitForInit.then((()=>{this._XDCCLibrariesAPIs.addCoeditorPublishStartListener(this._coeditorPublishingHandler),this._XDCCLibrariesAPIs.addCoeditorPublishEndListener(this._coeditorFinishPublishingHandler),this._isCoeditorPublishing=!!this._XDCCLibrariesAPIs.isCoeditorPublishing()}))}get colorProfile(){var e,t;return this._colorProfileChangeAtom.reportObserved(),"srgb"===(null===(e=(t=this._XDCCLibrariesAPIs).getColorProfile)||void 0===e?void 0:e.call(t))?$.wo.SRGB:$.wo.MONITOR}get screenColorProfile(){var e,t;return this._colorProfileChangeAtom.reportObserved(),null===(e=(t=this._XDCCLibrariesAPIs).getScreenColorProfile)||void 0===e?void 0:e.call(t)}_waitForXD(){var e=this;return ne(te().mark((function t(){var r;return te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._XDCCLibrariesAPIs.waitForXD();case 2:e._updateCloudAssetId(e._XDCCLibrariesAPIs.getPermanentCloudUrn()),e._updateCloudStorageWritable(e._XDCCLibrariesAPIs.isCloudStorageWritable()),e._XDCCLibrariesAPIs.addPermanentCloudUrnListener(e._updateCloudAssetId),e._XDCCLibrariesAPIs.addCloudStorageWritableListener(e._updateCloudStorageWritable),e._XDCCLibrariesAPIs.addCanvasMouseDownListener((()=>e._onCanvasClick())),e._updateIsPaidUser(),e.addIsPaidUserListener(e._updateIsPaidUser),(r=e._host.docInfo).on(r.DOC_ID_CHANGE,(()=>{d.Z.log(`Document id changed: ${r.docId}`),(0,x.ij)(),e._updateCloudAssetId(void 0),e._XDCCLibrariesAPIs.addPermanentCloudUrnListener(e._updateCloudAssetId),e._documentChangeAtom.reportChanged()})),r.on(r.USER_CHANGED_NAME,(()=>{e._documentChangeAtom.reportChanged(),T.ZP.publishedDocumentLibrary&&T.ZP.publishedDocumentLibrary.isWritable&&(T.ZP.publishedDocumentLibrary.name=e.documentName)})),e._XDCCLibrariesAPIs.registerChangeCallback&&e._XDCCLibrariesAPIs.registerChangeCallback("settingsChange",(()=>{e._settingsChangeAtom.reportChanged()})),e._XDCCLibrariesAPIs.addColorProfileChangeListener&&e._XDCCLibrariesAPIs.addColorProfileChangeListener((()=>{e._colorProfileChangeAtom.reportChanged()}));case 14:case"end":return t.stop()}}),t)})))()}notifyProductInitialized(){this._XDCCLibrariesAPIs.initLibrariesApis(this.exports.ccLibrariesAPI)}init(){return this.vulcanInterface.init(),Promise.all([super.init(),this._waitForXD()])}get exports(){return{panels:{ccLibrariesPanel:{show:e=>{this._panel||this._waitForInit.then((()=>{this._panelMountPoint=this.getMountPoint(e.node),this.renderPanel(this._panelMountPoint)}))},hide:()=>{this._panelMountPoint&&(this.unmountPanel(this._panelMountPoint),this._panelMountPoint.remove(),delete this._panelMountPoint)}},ccLibrariesManager:{show:e=>{this._manager||this._waitForInit.then((()=>{this._managerMountPoint=this.getMountPoint(e.node),this.renderManager(this._managerMountPoint)}))},hide:()=>{this._managerMountPoint&&(this.unmountManager(this._managerMountPoint),this._managerMountPoint.remove(),delete this._managerMountPoint)}}},ccLibrariesAPI:{getMultipleOrderStringsBetween:S.Tg,revealAssets:e=>this.revealAssets(e),revealDocumentAssetsView:()=>T.ZP.currentLibrary=T.ZP.documentAssetsContainer,revealRootView:()=>N.Z.showRootView(),setItemViewMode:e=>N.Z.setViewState(e),canEditElementInSource:e=>this.canEditElementInSource(e),editElementInSource:e=>this.editElementInSource(e),resolveElementReference:e=>T.ZP.resolveCachedElementReference(e),getColorOrGradientFromElement:h.D3,getTextStyleDataFromElement:h.fK,getLibraryById:e=>T.ZP.getLibraryById(e),getLibraries:()=>T.ZP.libraries,addLinkStateListener:(e,t)=>this.addLinkStateListener(e,t),removeLinkStateListener:(e,t)=>this.removeLinkStateListener(e,t),registerLibrary:(e,t)=>this.registerLibrary(e,t),addLibraryListChangedListener:e=>this.addLibraryListChangedListener(e),removeLibraryListChangedListener:e=>this.removeLibraryListChangedListener(e),hasLibrariesLoadingError:()=>T.ZP.librariesInitError,addLibraryNameChangedListener:(e,t)=>this.addLibraryNameChangedListener(e,t),removeLibraryNameChangedListener:e=>this.removeLibraryNameChangedListener(e),waitForInitialLoad:()=>T.ZP.waitForInitialLoad(),getServiceInfo:()=>T.ZP.getServiceInfo(),shouldOfferDelimitedNamesConversion:this._handleXDMigrationDetection,canRenameElements:e=>(0,K.rL)(e),renameElement:e=>{e&&(0,K.rL)([e])&&R.Z.panel.viewManager.startRename(e)},getSourceId:p.a3}}}openDialogInManager(e,t,r){this.openLibraryManagerWindow(),R.Z.manager.dialogManager.openDialog(e,t,r)}openApplicationDialog(e,t){if(this._panelMountPoint)return this._XDCCLibrariesAPIs.waitForModalDialogClosed().then((()=>{const r=this.getUXPDialog(this._panelMountPoint.parentNode);return this._renderApplicationDialog(e,r,t),r.showModal().catch((e=>{e.code===r.REJECTION_REASON_NOT_ALLOWED&&console.error("App does not allow showing dialog, e.g. may already be another dialog")}))}))}_renderApplicationDialog(e,t,r={}){const n=R.Z.panel.dialogManager.dialogs[e];t.addEventListener("close",(()=>{W.unmountComponentAtNode(t),document.body.removeChild(t)})),W.render(q.createElement(B,null,q.createElement(n,ee({},r,{close:()=>{t.close()}}))),t)}_onCanvasClick(){N.Z.clearAllSelections(),this._notifyEventListeners("canvasClick")}addLinkStateListener(e,t){if(!e||!t||!T.ZP.documentAssetsContainer||this._linkListeners[e]&&this._linkListeners[e].get(t))return;const r=T.ZP.documentAssetsContainer.getElementById(e);if(!r)return;const n=(0,s.autorun)((()=>t(r.linkState)));this._linkListeners[e]=this._linkListeners[e]||new Map,this._linkListeners[e].set(t,n)}removeLinkStateListener(e,t){if(!e||!t)return;const r=this._linkListeners[e];if(r){const n=r.get(t);r.delete(t),n&&n(),0===r.size&&delete this._linkListeners[e]}}connectProductInterface(e){this.disconnectProductInterface(),this._handlers={dlElementDropped:((t,r=!0,n)=>i=>{const o=i&&i.data;if(o||!r){const r=e[t](o);n&&n(r)}})("reportElementDropped",!1)};for(const e in this._handlers)this.addEventListener(e,this._handlers[e])}disconnectProductInterface(){if(this._handlers){for(const e in this._handlers)this.removeEventListener(e,this._handlers[e]);delete this._handlers}}registerLibrary(e,t){(0,s.when)((()=>T.ZP.initialized&&T.ZP.getLibraryById(e)),(()=>t(e)))}addLibraryNameChangedListener(e,t){if(this._libraryNameChangeDisposers.get(e))return;const r=T.ZP.getLibraryById(e);this._libraryNameChangeDisposers.set(e,(0,s.reaction)((()=>r.name),(()=>t(e)))),(0,s.when)((()=>T.ZP.initialized&&T.ZP.getLibraryById(e)),(()=>t(e)))}removeLibraryNameChangedListener(e){const t=this._libraryNameChangeDisposers.get(e);t&&(t(),this._libraryNameChangeDisposers.delete(e))}addLibraryListChangedListener(e){this._libraryListChangeDisposers.get(e)||this._libraryListChangeDisposers.set(e,(0,s.reaction)((()=>T.ZP.libraries),e))}removeLibraryListChangedListener(e){const t=this._libraryListChangeDisposers.get(e);t&&(t(),this._libraryListChangeDisposers.delete(e))}revealAssets(e){(0,s.when)((()=>T.ZP.areLibrariesLoaded),(()=>{const t=T.ZP.documentAssetsContainer;if(t){const r=e.map((e=>t.getElementById(e)));O.Z.revealElements(r)}}))}get menuItemHeight(){return 32}debugLog(e){super.debugLog(e);const t=window.nodeRequire("xd").host.log;return t.debug(t.CATEGORY_CC_LIBRARIES,e),!0}getUserDataPath(){return null}getLayerInfo(){return Promise.resolve(this.getSelection())}_xdRequire(e){if(!this._moduleCache[e]){const t=window.nodeRequire("xd").host;this._moduleCache[e]=t.require(e)}return this._moduleCache[e]}get _host(){return window.nodeRequire("xd").host}get cloudAssetId(){return this._cloudAssetId}get canSaveDocToCloud(){return this._hasWritableStorage&&this.hasAvailableStorage}get hasAvailableStorage(){const e=this._XDCCLibrariesAPIs.getCloudStorageData(),t=e.quotaTotal;return e.quotaUsed<t}waitForCloudAssetId(){return new Promise((e=>(0,s.when)((()=>this.cloudAssetId),e)))}get documentName(){return this._documentChangeAtom.reportObserved(),this._host.docInfo&&this._host.docInfo.name}get documentId(){return this._documentChangeAtom.reportObserved(),this._host.docInfo&&this._host.docInfo.docId}get _XDCCLibrariesAPIs(){return this._xdRequire("library/api/CCLibrariesApis")}get documentType(){return this._XDCCLibrariesAPIs.getDocumentMimeType()}get documentSharingRole(){return this._host.docInfo&&this._host.docInfo.cloudSharingRole}get canEditDocument(){return"owner"===this.documentSharingRole||"editor"===this.documentSharingRole}get isSavedCloudDocument(){return this._XDCCLibrariesAPIs.isCloudDocNamed()}get isSyncedCloudDocument(){return!!this.cloudAssetId}showShareSheet(e,t="share",r=[]){if("invite"===t&&(t="share"),this.openLibraryManagerWindow(),(0,p.$_)(e)){const t=(0,p.Uu)(e),n=t&&t.name;this._XDCCLibrariesAPIs.toggleShareSheet(!0,e.assetId,e.name,"share",(e=>{R.Z.manager.toastManager.openToast("message",{variant:e.state,message:(0,S.Wf)(e)})}),n,r)}else this._XDCCLibrariesAPIs.toggleShareSheet(!0,e.assetId,e.name,t,(e=>{R.Z.manager.toastManager.openToast("message",{variant:e.state,message:(0,S.Wf)(e)})}),void 0,r)}openLibraryManagerWindow(){this.isLibraryManagerWindowOpen()||k.ZP.reportEvent("Manager","Manage","render","library-manager"),this._XDCCLibrariesAPIs.toggleCCLibraryManager(!0)}isLibraryManagerWindowOpen(){return this._XDCCLibrariesAPIs.isCCLibraryManagerVisible()}getDocumentAssetsContainer(){return this._documentChangeAtom.reportObserved(),this._XDCCLibrariesAPIs.getCurrentDocumentLibrary()}getLinkedLibraryIdFromDocument(){return this._XDCCLibrariesAPIs.getPublishedDocumentLibraryId()}linkDocumentToLibrary(e){e||this.notifyPublishEnd(),this._XDCCLibrariesAPIs.setPublishedDocumentLibraryId(e)}get documentPath(){const e=window.nodeRequire("xd").host.docInfo;return e.filePath||e.name&&`orphan/${e.name}`}isLegacyDocumentLinkDeprecated(){return this._XDCCLibrariesAPIs.isDocumentLinkingDeprecated?this._XDCCLibrariesAPIs.isDocumentLinkingDeprecated():b.Z.isXDFeatureFlagEnabled("documentLinkingDeprecation")}get isPaidUser(){return this._isPaidUser}handleUpgradeButtonClicked(){this._XDCCLibrariesAPIs.handleUpgradeButtonClicked()}addIsPaidUserListener(e){this._XDCCLibrariesAPIs.addIsPaidUserListener(e)}removeIsPaidUserListener(e){this._XDCCLibrariesAPIs.removeIsPaidUserListener(e)}getOrderInGroup(e,t){return t=t._group||t,this._XDCCLibrariesAPIs.getOrderInGroup(e.id,t)}setOrderInGroup(e,t,r){t=t._group||t,this._XDCCLibrariesAPIs.setOrderInGroup(e.id,t,r);const n={name:"updateElement",library:e.library,data:{groups:[t],id:e.id},baseData:{groups:e.groups}};k.ZP.reportAPIEvent(n),k.ZP.clearExtraEventMetrics("updateElement")}_getGroupAnalyticsProperties(e){return{libraryID:e.library.id,libraryElementCount:e.library.elements.length,libraryGroupCount:e.library.getGroups().length,groupID:e.id,groupClassifierName:e.classifierName,groupLevel:(0,M.RH)(e)}}createGroup(e,t,r){const n=this._XDCCLibrariesAPIs.createGroup(e,t,r),i={name:"createGroup",data:{id:n.id},library:n.library};return k.ZP.reportAPIEvent(i),k.ZP.clearExtraEventMetrics("createGroup"),n}deleteGroup(e,t){const r={name:"removeGroup",data:{id:e.id},library:e.library},n=k.ZP.getExtraEventMetrics("removeGroup");k.ZP.setExtraEventMetrics("removeGroup",J(J({},n),{},{includeContents:t,groupLevel:(0,M.RH)(e)})),this._XDCCLibrariesAPIs.deleteGroup(e,t),k.ZP.reportAPIEvent(r),k.ZP.clearExtraEventMetrics("removeGroup")}renameGroup(e,t){this._XDCCLibrariesAPIs.renameGroup(e,t);const r={name:"updateGroup",data:{id:e.id,name:t},baseData:{name:e.name,id:e.id},library:e.library};k.ZP.reportAPIEvent(r),k.ZP.clearExtraEventMetrics("updateGroup")}reorderGroup(e,t){const r=k.ZP.getExtraEventMetrics("updateGroup");k.ZP.setExtraEventMetrics("updateGroup",J(J({},r),{},{groupLevel:(0,M.RH)(e)}));const n={name:"updateGroup",library:e.library,data:{name:e.name},baseData:{name:e.name}};this._XDCCLibrariesAPIs.reorderGroup(e,t),k.ZP.reportAPIEvent(n),k.ZP.clearExtraEventMetrics("updateGroup")}reparentGroup(e,t){this._XDCCLibrariesAPIs.reparentGroup(e,t)}beginOperation(e){this._XDCCLibrariesAPIs.beginOperation(e)}endOperation(){this._XDCCLibrariesAPIs.endOperation()}get application(){return window.nodeRequire("xd").host.app}get vulcan(){return this._xdRequire("vulcan")}get psdUtils(){return this._xdRequire("third_party/psd-lib-js/psd-lib")}get fontUtils(){return this._xdRequire("FontUtils")}reportSDMEvent(e){this._shouldReportToXDAnalytics(e)&&this._reportEventToXDAnalytics(JSON.stringify(e))}_reportEventToXDAnalytics(e){this._xdRequire("library/CCLibrariesAnalyticsUtil").reportCCLibraryActionAnalyticsEvent(e)}_shouldReportToXDAnalytics(e){if(e){const t=e["event.subcategory"],r=e["event.subtype"];if((ue[t]||[]).includes(r)){if("Element"===t){const t=pe[r];return t?t.includes(e["event.value"]):Boolean(e["content.mimetype"])}return!0}}return!1}get textEditModel(){return this._xdRequire("ui/UIModels").textEditModel}get TextPropertyUtils(){return this._xdRequire("ui/properties/TextPropertyUtils")}addTextEditListener(e){const t=this.textEditModel,r=this._xdRequire("ui/text/TextEditModel");t.addListener(r.TEXT_STYLE_UPDATE,e),t.addListener(r.TEXT_EDIT_MODE_CHANGE,e),t.addListener(r.TEXT_PROPERTY_CHANGE,e)}removeTextEditListener(e){const t=this.textEditModel,r=this._xdRequire("ui/text/TextEditModel");t.removeListener(r.TEXT_STYLE_UPDATE,e),t.removeListener(r.TEXT_EDIT_MODE_CHANGE,e),t.removeListener(r.TEXT_PROPERTY_CHANGE,e)}isCanvasTextEditInProgress(){return this.textEditModel&&this.textEditModel.editInProgress&&!this.textEditModel.isDecoration}hasTextEditSelection(){const e=this.textEditModel;return this.isCanvasTextEditInProgress()&&e.paddedSelection&&e.paddedSelection.length>0}get featureTooltipProvider(){return this._xdRequire("library/CCLibrariesFeatureTooltipProvider")}registerFeatureTooltip(e,t){this.featureTooltipProvider&&this.featureTooltipProvider.registerView(e,t)}unregisterFeatureTooltip(e,t){this.featureTooltipProvider&&this.featureTooltipProvider.unregisterView(e,t)}getAppSetting(e){if(this._settingsChangeAtom.reportObserved(),this._XDCCLibrariesAPIs.getAppSetting)return this._XDCCLibrariesAPIs.getAppSetting(e)}get renditionService(){return window.nodeRequire("xd").renditionService}get Artboard(){return this._xdRequire("Artboard")}get Color(){return this._xdRequire("Color")}get Group(){return this._xdRequire("Group")}get Line(){return this._xdRequire("Line")}get LinearGradient(){return this._xdRequire("LinearGradientFill")}get RadialGradient(){return this._xdRequire("RadialGradientFill")}get SymbolGroup(){return this._xdRequire("SymbolGroup")}get Text(){return this._xdRequire("Text")}get Rectangle(){return this._xdRequire("Rectangle")}get BitmapFill(){return this._xdRequire("BitmapFill")}get GraphicNode(){return this._xdRequire("GraphicNode")}get documentLibraryConstants(){return this._xdRequire("library/DocumentLibraryConstants")}containerTypeAllowsEditingContents(e){return this._xdRequire("artwork/SceneNodeUtil").containerTypeAllowsEditingContents(e)}isInsideRepeatGridOrSymbolGroup(e){return this._xdRequire("artwork/SceneNodeUtil").isInsideRepeatGridOrSymbolGroup(e)}isEffectivelyEmptyGroup(e){return this._xdRequire("artwork/SceneNodeUtil").isEffectivelyEmptyGroup(e)}swapNodes(e,t){const r=this._xdRequire("artwork/SceneNodeUtil");r.centerImageInMask(e,t,t.localBounds,!0),r.replaceNodePreservingInteractions(e,t)}isContainer(e){return this._xdRequire("artwork/SceneNodeUtil").isContainer(e)}get _selectionModel(){return this._xdRequire("artwork/Artwork").selectionModel}getSelection(){return this._selectionModel.selection}setSelection(e){this._selectionModel.selection=e}addSelectionListener(e){const t=this._xdRequire("artwork/SelectionModel"),r=this._xdRequire("artwork/Artwork").selectionModel;r.addListener(t.SELECTION_CHANGE,e),r.addListener(t.ARTWORK_CHANGE,e)}removeSelectionListener(e){const t=this._xdRequire("artwork/SelectionModel"),r=this._xdRequire("artwork/Artwork").selectionModel;r.removeListener(t.SELECTION_CHANGE,e),r.removeListener(t.ARTWORK_CHANGE,e)}addInviteEventListener(e){this._XDCCLibrariesAPIs.addShareSheetInviteSentListener(e)}removeInviteEventListener(e){this._XDCCLibrariesAPIs.removeShareSheetInviteSentListener(e)}get editContextModel(){return this._xdRequire("artwork/Artwork").editContextModel}findContainingArtboardsForSelection(e){return this._xdRequire("artwork/ArtboardUtil").findContainingArtboardsForSelection(e)}get progressController(){return{incrementProgressValue:()=>{},isProgressCancelRequested:()=>!1}}handleDroppedStockElement(e){return this.recordHistory("DL_ADD_IMAGE_TO_DOC_AS_LINKED",(()=>{const t=e.currentlyDraggedElement,r=e.currentlyDraggedElementPromise,n=e.asset,i={height:n.comp_height,width:n.comp_width};let o=e.dragDropEvent,a=o.x,s=o.y;a+=i.width/2,s+=i.height/2;const c={x:a,y:s};return(0,h.is)(t,r,i,c)}))}AIToNode(e){return e?this._XDCCLibrariesAPIs.tempAIToNode(this.normalizePath(e)):Promise.reject("No file given for AI conversion")}SVGToNode(e){return e?this._xdRequire("artwork/Artwork").linkedGraphicRegistry._getXDAssetDataForSVG({assetPath:this.normalizePath(e)}).then((e=>!e||e.isSVGOrAGCImportError||!e.node||this.isEffectivelyEmptyGroup(e.node)?Promise.reject("Error converting SVG into XD node"):e.node)):Promise.reject("No file given for SVG conversion")}parseAGCForImport(e,t){if(!e)return Promise.reject("No document given for AGC conversion");const r=this._xdRequire("importers/ImportUtil");return(t?r.importAGCComponentFromCCLib:r.importAGCNodeFromCCLib)(e,this.progressController).then((e=>!e||e.failedItems.length?Promise.reject("Error converting AGC Document into XD node"):{node:e.importedArt[0],metadata:e}))}assignBlurToNode(e){return this._xdRequire("library/LibraryVectorUtils").assignBlurForLoadingVector(e,e.localBounds)}normalizePath(e){return L().normalize(e)}_getTempPath(e){const t=this._xdRequire("fs");return this._tempDir&&t.existsSync(this._tempDir)||(this._tempDir=this._xdRequire("FileUtil").makeTemporaryFolder(),d.Z.log(`Created temp dir: ${this._tempDir}`)),`${this._tempDir}${e}`}_writeTextFile(e,t){const r=this._xdRequire("fs"),n=this._getTempPath(e);return r.writeFile(n,t).then((()=>n))}deleteFile(e){return this._xdRequire("fs").deleteFileOrFolderSync(e)}serializeCanonicalComponent(e,t){if(!e)return Promise.reject("No XD symbolId given for serialization");if(!t)return Promise.reject("No fileName given for serialized component");const r=b.Z.isXDFeatureFlagEnabled("newFileFormat"),n=this._XDCCLibrariesAPIs.getPrimaryRepresentationForComponent(e,!0);if(r?!n.serializedSymbol:!n.agcDocument)return Promise.reject("Error getting AGC for component");const i=r?n.serializedSymbol:JSON.stringify(n.agcDocument);return this._writeTextFile(t,i).then((e=>({filePath:e,dependentAssetIds:n.dependentAssetIds,imageData:n.imageData}))).catch((()=>Promise.reject("Error writing component Document to file")))}canonicalComponentToSVG(e,t){return e?t?this._XDCCLibrariesAPIs.getSVGRepresentationForComponent(e).then((e=>this._writeTextFile(t,e))).catch((()=>Promise.reject("Error converting XD symbolId into SVG"))):Promise.reject("No fileName given for the converted SVG"):Promise.reject("No XD symbolId given for SVG conversion")}canonicalComponentToPNG(e,t){if(!e)return Promise.reject("No XD symbolId given for PNG conversion");if(!t)return Promise.reject("No fileName given for the converted PNG");const r=this._getTempPath(t);return this._XDCCLibrariesAPIs.getPNGRepresentationForComponent(e,r).then((()=>r))}nodeGuidsToAGC(e,t){if(!e||!e.length)return Promise.reject("No XD node guids given for AGC conversion"+e);if(!t)return Promise.reject("No fileName given for the converted AGC");const r=this._XDCCLibrariesAPIs.getPrimaryRepresentationForSceneNodeGuids(e).agcDocument;return r?this._writeTextFile(t,JSON.stringify(r)).then((e=>({filePath:e}))).catch((()=>Promise.reject("Error writing component AGC Document to file"))):Promise.reject("Error getting AGC for component")}nodeGuidsToSVG(e,t){return e&&e.length?t?this._XDCCLibrariesAPIs.getSVGRepresentationForSceneNodeGuids(e).then((e=>this._writeTextFile(t,e))).catch((()=>Promise.reject("Error converting XD guids into SVG"))):Promise.reject("No fileName given for the converted SVG"):Promise.reject("No XD node guids given for SVG conversion")}nodeGuidsToPNG(e,t){if(!e||!e.length)return Promise.reject("No XD node guids given for PNG conversion");if(!t)return Promise.reject("No fileName given for the converted PNG");const r=this._getTempPath(t);return this._XDCCLibrariesAPIs.getPNGRepresentationForSceneNodeGuids(e,r).then((()=>r))}characterStyleToPNG(e,t){if(!e)return Promise.reject("No XD character style for PNG conversion");if(!t)return Promise.reject("No fileName given for the converted PNG");const r=this._getTempPath(t);return this._XDCCLibrariesAPIs.getPNGRepresentationForCharacterStyle(e,r).then((()=>r))}getContextForNode(e){return this._xdRequire("artwork/EditContextModel").getContextForNode(e)}getSizeforFile(e,t){return this._xdRequire("library/LibraryVectorUtils").getSizeForAIFile(e,t,{})}recordHistory(e,t){return new Promise((r=>{const n=(0,u.Iu)(e),i=this._xdRequire("artwork/Artwork");i.history.startRecord(n);const o=e=>(e&&d.Z.log(e),i.history.endRecord(),r()),a=t();return a?a.then(o,o):o()}))}applyColorToSelection(e,t,r){var n;r.library.isDocumentAssets?this._XDCCLibrariesAPIs.applyColorFromDocumentAsset(e,t,r.id):this._XDCCLibrariesAPIs.applyColorFromCCLibrariesElement(e,t,null===(n=r.getReference)||void 0===n?void 0:n.call(r))}applyCharacterStyleToSelection(e,t){t.library.isDocumentAssets?this._XDCCLibrariesAPIs.applyCharacterStyleFromDocumentAsset(e,t.id):this._XDCCLibrariesAPIs.applyCharacterStyleFromCCLibrariesElement(e,t.getReference())}addAudioToDocument(e,t){this._XDCCLibrariesAPIs.applyAudioFromCCLibrariesElement(e,t.getReference())}get canvas(){return window.nodeRequire("xd").host.canvas}addToCanvas(e,t=!0,r,n){const i=e.name;n=n||{};const o=Object.assign(n,{importedArt:[e]});r&&e.setPosition(r.x,r.y);const a=this._xdRequire("importers/ImportUtil").addImportedItemFromCCLib(o,this.editContextModel,!0,!r);return e.name=i,t&&this.setSelection(e),a}addComponentToCanvas(e,t){return this._XDCCLibrariesAPIs.addComponentToCanvas(t).then((()=>(0,p.vM)(e.getPrimaryRepresentation(),"placeAsset")))}addDropEventListener(e){this.canvas.on(this.canvas.DRAG_DROP,e)}removeDropEventListener(e){this.canvas.off(this.canvas.DRAG_DROP,e)}get representationTypeMap(){const e=this.documentLibraryConstants;return{[e.XD_COLOR_REPRESENTATION_TYPE]:l.Z.COLOR_REPRESENTATION_TYPE,[e.XD_LINEAR_GRADIENT_REPRESENTATION_TYPE]:l.Z.GRADIENT_REPRESENTATION_TYPE,[e.XD_RADIAL_GRADIENT_REPRESENTATION_TYPE]:l.Z.GRADIENT_REPRESENTATION_TYPE,[e.XD_ANGULAR_GRADIENT_REPRESENTATION_TYPE]:l.Z.GRADIENT_REPRESENTATION_TYPE,[e.SYMBOL_REPRESENTATION_TYPE]:l.Z.AGC_REPRESENTATION_TYPE}}_generateToastMessage(e,t=""){return`${e} [${t}|]`}openApplicationToast(e,t={}){const r=t.variant,n=t.timeout,i=t.actionLabel,o=t.onAction,a=t.onDismiss,s=this._generateToastMessage(e,i);return this._XDCCLibrariesAPIs.displayToastMessage(s,r,n,o,a)}dismissToastMessage(e,t=""){this._XDCCLibrariesAPIs.dismissToastMessage(this._generateToastMessage(e,t))}getMissingFontsCollapsed(){return this._missingFontsModel.collapsed}toggleMissingFontsCollapsed(){this._missingFontsModel.toggleCollapsed()}getMissingFonts(){return this._missingFontsModel.missingFonts}highlightOnCanvas(e){return this._XDCCLibrariesAPIs.highlightOnCanvas(e.id)}_getEditAnalyticsAction(e){return{name:"updateElementContent",data:{id:e.id}}}notifySelectionChange(e,t){var r,n;null===(r=(n=this._XDCCLibrariesAPIs).notifySelectionChange)||void 0===r||r.call(n,e,t)}editMasterComponent(e){return k.ZP.reportAPIEvent(this._getEditAnalyticsAction(e)),k.ZP.clearExtraEventMetrics("updateElementContent"),this._XDCCLibrariesAPIs.editMasterComponent(e.id)}editColor(e){const t=this.getNativeIdForElement(e.id);if(t)return k.ZP.reportAPIEvent(this._getEditAnalyticsAction(e)),k.ZP.clearExtraEventMetrics("updateElementContent"),this._XDCCLibrariesAPIs.editColor(e.id,t)}editCharacterStyle(e){const t=this.getNativeIdForElement(e.id);if(t)return k.ZP.reportAPIEvent(this._getEditAnalyticsAction(e)),k.ZP.clearExtraEventMetrics("updateElementContent"),this._XDCCLibrariesAPIs.editCharacterStyle(e.id,t)}editInSource(e){k.ZP.reportAPIEvent(this._getEditAnalyticsAction(e)),k.ZP.clearExtraEventMetrics("updateElementContent"),this._XDCCLibrariesAPIs.editInSource(e.id)}canEditElementInSource(e){const t=T.ZP.resolveCachedElementReference(e);return t&&(0,D.EZ)(t)}editElementInSource(e){(0,s.when)((()=>T.ZP.areLibrariesLoaded),ne(te().mark((function t(){var r;return te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T.ZP.resolveElementReference(e);case 2:(r=t.sent)&&(0,D.EZ)(r)&&(0,D.Fb)(r);case 4:case"end":return t.stop()}}),t)}))))}getDocumentEditActions(e){if(this._XDCCLibrariesAPIs.getDocumentEditActions){if("application/vnd.adobe.xd.cloudproject+dcx"===(e.library?e.library.documentType:e.documentType)){const t=e.library?e.library.documentId:e.documentId,r=e.sourceRef&&(0,p.a3)(e);return this._XDCCLibrariesAPIs.getDocumentEditActions(t,r)}}}replaceFont(e){const t=this.getNativeIdForElement(e.id);if(t)return this._XDCCLibrariesAPIs.replaceFont(e.id,t)}getAssetInstanceCount(e,t=!1){return this._XDCCLibrariesAPIs.getNumInstancesOfAsset(e.id,t)}updateLinkedAssets(e){return e=Array.isArray(e)?e:[e],this._XDCCLibrariesAPIs.updateLinkedAssets(e.map((e=>({linkedAssetId:e.id,newLinkedElementRef:e.newLinkedElementRef}))))}migrateLinkReferences(e=[]){const t=e.reduce(((e,t)=>(t.isLegacyCCLibrariesLink&&t.linkedElement&&t.isNormalLinkState&&e.push({linkedAssetId:t.id,newLinkedElementRef:t.linkedElement.getReference()}),e)),[]);t.length&&this._XDCCLibrariesAPIs.migrateLinkedAssets&&this._XDCCLibrariesAPIs.migrateLinkedAssets(t)}updateAndAddAllLinkedAssets(e){return e=e&&e.map((e=>({linkedAssetId:e.id,newLinkedElementRef:e.newLinkedElementRef}))),this._XDCCLibrariesAPIs.updateAndAddAllLinkedAssets(e)}canUnlinkAssets(e){return this._XDCCLibrariesAPIs.canAssetsBeMadeLocal(e.map((e=>e.id)))}canDeleteAssets(e){return this._XDCCLibrariesAPIs.canAssetsBeDeleted(e.map((e=>e.id)))}unlinkAssets(e){this._XDCCLibrariesAPIs.makeLocal(e.map((e=>e.id)))}relinkAssetsToDocument(e){e=Array.isArray(e)?e:[e],this._XDCCLibrariesAPIs.relink(e.map((e=>e.id)))}handleDocumentLinkingAssetNoLongerSupported(e){this._XDCCLibrariesAPIs.handleDocumentLinkingAssetNoLongerSupported(e.id)}get isPreviewActive(){return this._isPreviewActive}startPreview(e){return this._isPreviewActive=!0,this._XDCCLibrariesAPIs.startPreview(e.id,e.newLinkedElementRef)}commitPreview(){return this._isPreviewActive=!1,this._XDCCLibrariesAPIs.commitPreview()}cancelPreview(){return this._isPreviewActive=!1,this._XDCCLibrariesAPIs.cancelPreview()}isPreviewing(){return this._xdRequire("artwork/Artwork").previewModeController.isActive()}deleteAssets(e){k.ZP.reportEvent("Element Operations","Element","click","delete",{event:{count:e.length,value:"agg"}}),e.forEach((e=>{const t={name:"removeElement",data:{id:e.id},library:e.library};k.ZP.reportAPIEvent(t)})),this._XDCCLibrariesAPIs.deleteAssets(e.map((e=>e.id))),k.ZP.clearExtraEventMetrics("removeElements")}openSaveAs(){return this._XDCCLibrariesAPIs.toggleCCLibraryManager(!1),this._XDCCLibrariesAPIs.openSaveAsDialog().then((e=>(this._XDCCLibrariesAPIs.toggleCCLibraryManager(!0),e)))}renameAsset(e,t){const r=e.name,n={name:"updateElement",data:{name:t,id:e.id},baseData:{name:r},library:e.library};k.ZP.reportAPIEvent(n),this._XDCCLibrariesAPIs.rename(e.id,t),k.ZP.clearExtraEventMetrics("updateElement")}requestPublishStart(){return this._XDCCLibrariesAPIs.requestPublishStart()}notifyPublishEnd(){this._XDCCLibrariesAPIs.notifyPublishEnd()}get isCoeditorPublishing(){return this._isCoeditorPublishing}unlinkAssetsFromDocument(e){this._XDCCLibrariesAPIs.removeFromLibrary(e)}_getTheme(){return super._getTheme().then((e=>le[e]))}isLoggedIn(){return!0}hideDebugFlyoutMenu(){return!1}isXDFeatureFlagEnabled(e){return this._XDCCLibrariesAPIs.isFeatureFlagEnabled(e)}shouldConvertColor(){return this._colorProfileChangeAtom.reportObserved(),this.isXDFeatureFlagEnabled("colorManagement")}convertSingleColor(e){return this._XDCCLibrariesAPIs.convertSingleColor(e,this._XDCCLibrariesAPIs.getColorProfile())}get isAltKeyDown(){return this._XDCCLibrariesAPIs.isAltKeyDown()}navigateToLibrary(e){var t,r;super.navigateToLibrary(e),null===(t=(r=this._XDCCLibrariesAPIs).didNavigateToLibrary)||void 0===t||t.call(r,e)}},U=se(G.prototype,"_isCoeditorPublishing",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z=se(G.prototype,"_cloudAssetId",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=se(G.prototype,"_hasWritableStorage",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=se(G.prototype,"_isPaidUser",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=se(G.prototype,"_isPreviewActive",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G)},47696:(e,t,r)=>{"use strict";r.d(t,{Qr:()=>c,Tg:()=>l,pQ:()=>u,w0:()=>p});var n=r(99386),i=r(98218),o=r(76325),a=r(26964);function s(e,t,r,n,s){return o.Z.getAccessToken(e).then((e=>{if(!e)return Promise.reject(401);const c=`https://${o.Z.getEnvironment().invitationsHost}`+t,l={body:s?JSON.stringify(s):void 0,method:n,headers:{"x-api-key":"ProjectCentralPanel11",Authorization:"Bearer "+e,"User-Agent":i.Z.getUserAgent()}};return"POST"!==n&&"PATCH"!==n||(l.headers["Content-Type"]="application/json"),fetch(c,l).then((e=>200!==e.status?(e.text().then((e=>{a.Z.log(`Error with ${r}: result= ${e}`)})),Promise.reject(e.status)):e.json()))})).catch((e=>"LOGGED_OUT"===e?(a.Z.log("Error with getLibrariesInvitations: could not get token"),Promise.reject(401)):Promise.reject(e)))}function c(e){return s(e,n.Z.INVITATIONS_PENDING_API_PATH,"getLibrariesInvitations","GET")}function l(e,t){return s(e,`${n.Z.INVITATIONS_ACCEPT_API_PATH}/${t}`,"acceptInvitation","POST")}function u(e,t){return s(e,`${n.Z.INVITATIONS_COLLABORATIONS_API_PATH}/${t}?mode=direct_acl`,"inviteOrganization","POST",{recipients:[{canComment:!1,recipient:"orgEverybody",role:"viewer"}]})}function p(e,t){return s(e,`${n.Z.INVITATIONS_COLLABORATIONS_API_PATH}/${t}?mode=direct_acl`,"removeOrganization","PATCH",{collaborators:[{id:"orgEverybody",action:"remove"}]})}},31600:(e,t,r)=>{"use strict";r.d(t,{Tl:()=>g,W6:()=>v,WY:()=>m});var n=r(99386),i=r(76485),o=r(98218),a=r(76325),s=r(26964),c=r(51461),l=r(34038),u=r(31870),p=r(20290),d=r(16993);function h(){return"https://"+a.Z.getEnvironment().stockHost}function f(e,t,r,m,g,v=0,y=0,b){let _;return a.Z.getAccessToken(e).then((E=>{if(!E)return Promise.reject(401);let w=h()+n.Z.STOCK_SEARCH_API_PATH;if(r&&r.url){const n=`${r.url}&api_key=${a.Z.getEnvironment().clientId}&user_token=${E}`;if(r.path&&i.Z.supportsFileSystem){const i={"User-Agent":o.Z.getUserAgent()};return fetch(n,{method:"HEAD",headers:i}).then((n=>n.ok?f(e,t,{url:r.url},m,g,v,m,b):Promise.reject(n.status))).catch((()=>0===v?f(e,t,{path:r.path},m,g,v,m,b):(0,p.gw)(2e3,f.bind(null,e,t,r,m,g,v-1,m,b))))}w+="?search_parameters[similar_url]="+encodeURIComponent(n)}else r&&r.path?(_=(0,l.pJ)(r.path,"binary"),w+="?search_parameters[similar_image]=1"):r&&r.id?w+="?search_parameters[similar]="+r.id:w+="?search_parameters[words]="+encodeURIComponent(t);w+="&search_parameters[limit]="+g,w+="&search_parameters[thumbnail_size]=240",w+=`&search_parameters[order]=${d.Z.elementSearchSort}`,w+="&locale="+i.Z.getLocale();const L=n.Z.STOCK_SEARCH_OPTIONS.filter((e=>m&&m[e.id])),x=L.reduce(((e,t)=>{const r=t.param,i=t.filterKey,o=t.filterValue;if(r&&(e+="&search_parameters[filters][content_type:"+r+"]=1","template"===r&&b)){const t=n.Z.currentProduct.config.code,r=n.Z.STOCK_SEARCH_PRODUCT_TEMPLATE_ID_MAP[t];r&&(e+=r.reduce(((e,t)=>`${e}&search_parameters[filters][template_type_id][]=${t}`),""));const i=(0,u.tt)();i&&(e+=`&search_parameters[filters][mogrt_api_version]=${i}`)}return i&&(e+=`&search_parameters[filters][${i}]`,t.isArray&&(e+="[]"),e+="="+o),e}),"");if(w+=x,0===L.length){(0,u.Tu)().forEach((e=>{e.param&&(w+=`&search_parameters[filters][content_type:${e.param}]=1`)}))}w+="&result_columns[]=comp_height&result_columns[]=audio_samplerate&result_columns[]=audio_samplerate_preview&result_columns[]=comp_url&result_columns[]=comp_width&result_columns[]=comps&result_columns[]=content_type&result_columns[]=duration&result_columns[]=framerate&result_columns[]=height&result_columns[]=id&result_columns[]=is_licensed&result_columns[]=licenses&result_columns[]=media_type_id&result_columns[]=premium_level_id&result_columns[]=stock_id&result_columns[]=thumbnail_height&result_columns[]=thumbnail_url&result_columns[]=thumbnail_width&result_columns[]=title&result_columns[]=video_small_preview_url&result_columns[]=width&result_columns[]=is_premium&result_columns[]=creator_name&result_columns[]=is_illustrative";const S={method:"GET",url:w,headers:{"x-api-key":a.Z.getEnvironment().clientId,Authorization:"Bearer "+E,"User-Agent":o.Z.getUserAgent()}};_&&((e,t,r,n)=>{const i="cclibrariespanel"+Math.round(9999999*Math.random()),o="\r\n",a="--"+i+'\r\nContent-Disposition: form-data;name="'+r+'";filename="'+unescape(encodeURIComponent(n))+'"\r\nContent-Type: application/octet-stream'+o+o+t+"\r\n--"+i+o;e.method="POST",e.headers["Content-Type"]="multipart/form-data;boundary="+i,e.body=(e=>{const t=Array.prototype.map.call(e,(e=>255&e.charCodeAt(0)));return new Uint8Array(t).buffer})(a),e.transformRequest=[]})(S,_,"similar_image","similar_image.jpeg"),c.ZP.addProductHeaders(S.headers);const O=new Request(S.url,S);return fetch(O).then((e=>200!==e.status?Promise.reject(e):e.json())).then((e=>e.files)).catch((n=>401===n.status&&y>0?(a.Z.clearAccessToken(),f(e,t,r,m,g,v,y-1,b)):(n.text().then((e=>{s.Z.log(`Error ${n.status}: adobeStockRest.searchStockAssets, result=\n ${"string"==typeof e?e:JSON.stringify(e)}`)})),Promise.reject(n.status))))}),(e=>(s.Z.log(`Error getting access token: searchStockAssets, result= ${"string"==typeof e?e:JSON.stringify(e)}`),Promise.reject(401))))}function m(e,t,r,n,i,o){return f(e,t,r,n,i,3,1,o)}function g(e,t,r,i,l=0){return a.Z.getAccessToken(e).then((u=>{if(!u)return Promise.reject(401);let p=h()+n.Z.STOCK_LICENSE_PATH;p=p.replace(/ZZZZ/,t),p=p.replace(/LLLL/,r);const d={method:"POST",headers:{"x-api-key":a.Z.getEnvironment().clientId,Authorization:"Bearer "+u,"User-Agent":o.Z.getUserAgent()}};return i&&(d.data={cce_agency:i}),c.ZP.addProductHeaders(d.headers),fetch(p,d).then((n=>401===n.status&&l>0?(a.Z.clearAccessToken(),g(e,t,r,i,l-1)):200!==n.status?(n.text().then((e=>{s.Z.log(`Error with licenseAsset: result= ${e}`)})),Promise.reject(n.status)):n.json()))})).catch((e=>"LOGGED_OUT"===e?(s.Z.log("Error with licenseAsset: could not get token"),Promise.reject(401)):Promise.reject(e)))}function v(e,t){return a.Z.getAccessToken(e).then((e=>{if(!e)return Promise.reject(401);let r=h()+n.Z.STOCK_METADATA_PATH;r+=`?ids=${t}`,r+="&result_columns[]=is_editorial&result_columns[]=creator_name&result_columns[]=premium_level_id";const i={method:"GET",headers:{"x-api-key":a.Z.getEnvironment().clientId,Authorization:"Bearer "+e,"User-Agent":o.Z.getUserAgent()}};return c.ZP.addProductHeaders(i.headers),fetch(r,i).then((e=>200!==e.status?(e.text().then((e=>{s.Z.log(`Error with getStockAssetMetadata: result= ${e}`)})).catch((e=>{s.Z.log(`Error with getStockAssetMetadata: error= ${e}`)})),Promise.reject(e.status)):e.json()))})).catch((e=>"LOGGED_OUT"===e?(s.Z.log("Error with getStockAssetMetadata: could not get token"),Promise.reject(401)):Promise.reject(e)))}},7921:(e,t,r)=>{"use strict";r.d(t,{d:()=>v,u:()=>y});var n={};r.r(n),r.d(n,{VulcanInterface:()=>a,VulcanMessage:()=>s});var i={};function o(){this._version=7,this.useSpecifiers=!0}r.r(i),r.d(i,{VulcanInterface:()=>p,VulcanMessage:()=>d}),o.prototype.getTargetSpecifiers=function(){return JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetTargetSpecifiers",JSON.stringify({})))},o.prototype.launchApp=function(e,t,r){if(!c(e))return!1;var n={};return n.targetSpecifier=e,n.focus=t?"true":"false",n.cmdLine=null==r?"":r,JSON.parse(window.__adobe_cep__.invokeSync("vulcanLaunchApp",JSON.stringify(n))).result},o.prototype.isAppRunning=function(e){if(!c(e))return!1;var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppRunning",JSON.stringify(t))).result},o.prototype.isAppInstalled=function(e){if(!c(e))return!1;var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppInstalled",JSON.stringify(t))).result},o.prototype.getAppPath=function(e){if(!c(e))return"";var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetAppPath",JSON.stringify(t))).result},o.prototype.addMessageListener=function(e,t,r){if(c(e,t)&&l(e,s.TYPE_PREFIX)){var n={};n.type=e,window.__adobe_cep__.invokeAsync("vulcanAddMessageListener",JSON.stringify(n),t,r)}},o.prototype.removeMessageListener=function(e,t,r){if(c(e,t)&&l(e,s.TYPE_PREFIX)){var n={};n.type=e,window.__adobe_cep__.invokeAsync("vulcanRemoveMessageListener",JSON.stringify(n),t,r)}},o.prototype.dispatchMessage=function(e){if(c(e)&&l(e.type,s.TYPE_PREFIX)){var t={},r=new s(e.type);r.initialize(e),t.vulcanMessage=r,window.__adobe_cep__.invokeSync("vulcanDispatchMessage",JSON.stringify(t))}},o.prototype.getPayload=function(e){if(!c(e)||!l(e.type,s.TYPE_PREFIX))return null;var t=new s(e.type);return t.initialize(e),t.getPayload()};var a=new o;function s(e){this.type=e,this.scope=s.SCOPE_SUITE,this.appId=s.DEFAULT_APP_ID,this.appVersion=s.DEFAULT_APP_VERSION,this.data=s.DEFAULT_DATA}function c(){for(var e=0;e<arguments.length;e++){var t=arguments[e];if(null==t)return!1}return!0}function l(e,t){return"string"==typeof e&&0===e.indexOf(t)}function u(){this._version=11.1,this.useSpecifiers=!1}s.TYPE_PREFIX="vulcan.SuiteMessage.",s.SCOPE_SUITE="GLOBAL",s.DEFAULT_APP_ID="UNKNOWN",s.DEFAULT_APP_VERSION="UNKNOWN",s.DEFAULT_DATA="<data><payload></payload></data>",s.dataTemplate="<data>{0}</data>",s.payloadTemplate="<payload>{0}</payload>",s.prototype.initialize=function(e){this.type=e.type,this.scope=e.scope,this.appId=e.appId,this.appVersion=e.appVersion,this.data=e.data},s.prototype.xmlData=function(){if(void 0===this.data){var e="";e=String.format(s.payloadTemplate,e),this.data=String.format(s.dataTemplate,e)}return this.data},s.prototype.setPayload=function(e){var t=cep.encoding.convertion.utf8_to_b64(e);t=String.format(s.payloadTemplate,t),this.data=String.format(s.dataTemplate,t)},s.prototype.getPayload=function(){var e=function(e,t){if(window.DOMParser){var r=new window.DOMParser;try{var n=r.parseFromString(e,"text/xml").getElementsByTagName(t)[0];if(n&&n.childNodes[0])return n.childNodes[0].nodeValue}catch(e){}}return""}(this.data,"payload");return null!==e?cep.encoding.convertion.b64_to_utf8(e):null},s.prototype.toString=function(){var e="type="+this.type;return e+=", scope="+this.scope,e+=", appId="+this.appId,e+=", appVersion="+this.appVersion,e+=", data="+this.xmlData()},String.format=function(e){if(0===arguments.length)return null;var t=Array.prototype.slice.call(arguments,1);return e.replace(/\{(\d+)\}/g,(function(e,r){return t[r]}))},u.prototype.getTargetSpecifiers=function(){return JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetTargetSpecifiersEx",JSON.stringify({})))},u.prototype.getTargetSpecifiersEx=function(){return this.getTargetSpecifiers()},u.prototype.launchApp=function(e,t,r){if(!h(e))return!1;var n={};return n.productSAPCodeSpecifier=e,n.focus=t?"true":"false",n.cmdLine=h(r)?r:"",JSON.parse(window.__adobe_cep__.invokeSync("vulcanLaunchAppEx",JSON.stringify(n))).result},u.prototype.launchAppEx=function(e,t,r){return this.launchApp(e,t,r)},u.prototype.isAppRunning=function(e){if(!h(e))return!1;var t={};return t.productSAPCodeSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppRunningEx",JSON.stringify(t))).result},u.prototype.isAppRunningEx=function(e){return this.isAppRunning(e)},u.prototype.isAppInstalled=function(e){if(!h(e))return!1;const t={productSAPCodeSpecifier:e};return!!JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppInstalledEx",JSON.stringify(t))||"{}").result},u.prototype.isAppInstalledEx=function(e){return this.isAppInstalled(e)},u.prototype.getAppPath=function(e){if(!h(e))return"";var t={};return t.productSAPCodeSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetAppPathEx",JSON.stringify(t))).result},u.prototype.getAppPathEx=function(e){return this.getAppPath(e)},u.prototype.addMessageListener=function(e,t,r){if(h(e,t)&&f(e,d.TYPE_PREFIX)){var n={};n.type=e,window.__adobe_cep__.invokeAsync("vulcanAddMessageListener",JSON.stringify(n),t,r)}},u.prototype.removeMessageListener=function(e,t,r){if(h(e,t)&&f(e,d.TYPE_PREFIX)){var n={};n.type=e,window.__adobe_cep__.invokeAsync("vulcanRemoveMessageListener",JSON.stringify(n),t,r)}},u.prototype.dispatchMessage=function(e){if(h(e)&&f(e.type,d.TYPE_PREFIX)){var t={},r=new d(e.type);r.initialize(e),t.vulcanMessage=r,window.__adobe_cep__.invokeSync("vulcanDispatchMessage",JSON.stringify(t))}},u.prototype.getPayload=function(e){if(!h(e)||!f(e.type,d.TYPE_PREFIX))return null;var t=new d(e.type);return t.initialize(e),t.getPayload()},u.prototype.getEndPoints=function(){return JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetEndPoints",JSON.stringify({})))},u.prototype.getSelfEndPoint=function(){return window.__adobe_cep__.invokeSync("vulcanGetSelfEndPoint",JSON.stringify({}))};var p=new u;function d(e,t,r){this.type=e,this.scope=d.SCOPE_SUITE,this.appId=h(t)?t:d.DEFAULT_APP_ID,this.appVersion=h(r)?r:d.DEFAULT_APP_VERSION,this.data=d.DEFAULT_DATA}function h(){for(var e=0;e<arguments.length;e++){var t=arguments[e];if(null==t)return!1}return!0}function f(e,t){return"string"==typeof e&&0===e.indexOf(t)}d.TYPE_PREFIX="vulcan.SuiteMessage.",d.SCOPE_SUITE="GLOBAL",d.DEFAULT_APP_ID="UNKNOWN",d.DEFAULT_APP_VERSION="UNKNOWN",d.DEFAULT_DATA="<data><payload></payload></data>",d.dataTemplate="<data>{0}</data>",d.payloadTemplate="<payload>{0}</payload>",d.prototype.initialize=function(e){this.type=e.type,this.scope=e.scope,this.appId=e.appId,this.appVersion=e.appVersion,this.data=e.data},d.prototype.xmlData=function(){if(void 0===this.data){var e="";e=String.format(d.payloadTemplate,e),this.data=String.format(d.dataTemplate,e)}return this.data},d.prototype.setPayload=function(e){var t=cep.encoding.convertion.utf8_to_b64(e);t=String.format(d.payloadTemplate,t),this.data=String.format(d.dataTemplate,t)},d.prototype.getPayload=function(){var e=function(e,t){if(window.DOMParser){var r=new window.DOMParser;try{var n=r.parseFromString(e,"text/xml").getElementsByTagName(t)[0];if(n&&n.childNodes[0])return n.childNodes[0].nodeValue}catch(e){}}return""}(this.data,"payload");return null!==e?cep.encoding.convertion.b64_to_utf8(e):null},d.prototype.toString=function(){var e="type="+this.type;return e+=", scope="+this.scope,e+=", appId="+this.appId,e+=", appVersion="+this.appVersion,e+=", data="+this.xmlData()},String.format=function(e){if(0===arguments.length)return null;var t=Array.prototype.slice.call(arguments,1);return e.replace(/\{(\d+)\}/g,(function(e,r){return t[r]}))};var m=r(99386);let g;try{const e=JSON.parse(window.__adobe_cep__.getCurrentApiVersion())||{major:0,minor:0},t=e.major,r=e.minor;g=Number.parseFloat(`${t}.${r}`)>=m.Z.MIN_CEP_VULCAN_7_VERSION?i:n}catch(e){g=n}const v=g.VulcanInterface,y=g.VulcanMessage},78926:e=>{e.exports={SCOPES:"openid,AdobeID,creative_cloud,creative_sdk,cc_private,sao.stock,sao.cce_private,tk_platform,ab.manage",FETCH_TOKEN_EVENT:"com.adobe.csxs.events.internal.ims.FetchAccessToken",CONFIGS:{staging:{label:"Staging",clientId:"ProjectCentralPanel11",clientSecret:"73190409-b7c6-4737-85ad-1195b75fc444",storageHost:"cc-api-storage-stage.adobe.io",assetsHost:"cc-api-assets-stage.adobe.io",ccwebHost:"assets-stage.adobecc.com",ims:"ims-na1-stg1.adobelogin.com",imsServices:"adobeid-na1-stg1.services.adobe.com",stockHost:"stock-stage.adobe.io",stockWebHost:"primary.stock.stage.adobe.com",typekitHost:"cctypekit-relstage.adobe.io",linkServiceHost:"links-stage.adobecc.com",linkServiceWebHost:"shared-assets-stage.adobecc.com",ccLibraryServiceHost:"ccx-melville-stage.adobe.io",supportContactGoURL:"https://www.stage.adobe.com/go/ccl_contact",followLibrariesGoURL:"https://www.adobe.com/go/stage_cc_public_libraries",invitationsHost:"invitations-stage.adobe.io",personalizationHost:"p13n-stage.adobe.io",experienceCloudHost:"https://experience-stage.adobe.com"},production:{label:"Production",clientId:"ProjectCentralPanel11",clientSecret:"739a1266-1f2a-4b9d-8baa-2f0a506e1fc1",storageHost:"cc-api-storage.adobe.io",assetsHost:"cc-api-assets.adobe.io",ccwebHost:"assets.adobe.com",ims:"ims-na1.adobelogin.com",imsServices:"adobeid-na1.services.adobe.com",stockHost:"stock.adobe.io",stockWebHost:"stock.adobe.com",typekitHost:"cctypekit.adobe.io",linkServiceHost:"links-prod.adobecc.com",linkServiceWebHost:"shared-assets.adobe.com",ccLibraryServiceHost:"libraries.adobe.io",supportContactGoURL:"https://www.adobe.com/go/ccl_contact",followLibrariesGoURL:"https://www.adobe.com/go/cc_public_libraries",invitationsHost:"invitations.adobe.io",personalizationHost:"p13n.adobe.io",experienceCloudHost:"https://experience.adobe.com"}}}},76325:(e,t,r)=>{"use strict";function n(){}function i(){}r.d(t,{Z:()=>h}),n.prototype.addEventListener=function(e,t){window.__adobe_cep__.addEventListener(e,t)},n.prototype.removeEventListener=function(e,t){window.__adobe_cep__.removeEventListener(e,t)},n.prototype.imsConnect=function(){return window.__adobe_cep__.imsConnect()},n.prototype.imsDisconnect=function(e){window.__adobe_cep__.imsDisconnect(e)},n.prototype.imsFetchAccounts=function(e,t){return window.__adobe_cep__.imsFetchAccounts(e,t)},n.prototype.imsFetchAccessToken=function(e,t,r,n,i,o){return window.__adobe_cep__.imsFetchAccessToken(e,t,r,n,i,o)},n.prototype.imsRevokeDeviceToken=function(e,t,r,n,i){return window.__adobe_cep__.imsFetchAccessToken(e,t,r,n,i,"REVOKE")},n.prototype.imsSetProxyCredentials=function(e,t){window.__adobe_cep__.imsSetProxyCredentials(e,t)},n.prototype.showAAM=function(e,t,r,n,i,o){return window.__adobe_cep__.showAAM(e,t,r,n,i,o)},n.prototype.imsGetCurrentUserId=function(){return window.__adobe_cep__.getCurrentImsUserId()},n.prototype.imsGetCurrentUserIdHelper=function(e){var t=JSON.parse(window.__adobe_cep__.getHostEnvironment()).appName;if("ILST"===t)window.__adobe_cep__.evalScript("app.userGUID",(function(t){e(t)}));else if("IDSN"===t)window.__adobe_cep__.evalScript("app.userGuid",(function(t){e(t)}));else if("PHSP"===t||"PHXS"===t)window.__adobe_cep__.evalScript("var getUserIdPhotoshop = function() {var userId = '';try {var bhnc = app.charIDToTypeID('bhnc');var ref = new ActionReference();ref.putProperty(app.charIDToTypeID('Prpr'), bhnc);ref.putEnumerated(app.charIDToTypeID('capp'), app.charIDToTypeID('Ordn'), app.charIDToTypeID('Trgt'));var appDesc = app.executeActionGet(ref);if (appDesc.hasKey(bhnc)) {userId = appDesc.getString(bhnc);}} catch (e) {}return userId;};",(function(t){window.__adobe_cep__.evalScript("getUserIdPhotoshop()",(function(t){e(t)}))}));else{var r=window.__adobe_cep__.getCurrentImsUserId();e(r)}},n.prototype.imsConnectWithEndpoint=function(e){var t={};t.imsEndpoint=null==e||""===e?"undefined":e;const r=window.__adobe_cep__.invokeSync("imsConnectWithEndpoint",JSON.stringify(t));return r&&JSON.parse(r).result},n.prototype.imsFetchContinueToken=function(e,t,r,n,i,o,a){null==n&&(n=""),null==i&&(i=""),null==o&&(o=""),null==a&&(a="");var s={};return s.imsRef=e,s.bearerToken=t,s.targetClientId=r,s.redirectUri=n,s.scope=i,s.responseType=o,s.locale=a,JSON.parse(window.__adobe_cep__.invokeSync("imsFetchContinueToken",JSON.stringify(s))).result},n.prototype.imsLogoutUser=function(e,t,r){var n={};return n.imsRef=e,n.userAccountGuid=t,n.clientId=r,JSON.parse(window.__adobe_cep__.invokeSync("imsLogoutUser",JSON.stringify(n))).result},n.prototype.imsFetchUserProfileData=function(e,t){var r={};return r.imsRef=e,r.userAccountGuid=t,window.__adobe_cep__.invokeSync("imsFetchUserProfileData",JSON.stringify(r))},n.prototype.imsAttemptSSOJumpWorkflows=function(e,t,r,n,i,o,a,s,c,l,u){e||(e=!1),null==n&&(n=""),null==i&&(i=""),null==o&&(o=""),null==s&&(s=""),null==c&&(c=""),null==l&&(l=""),null==r&&(r=""),null==a&&(a="");var p={};return p.imsRef=r,p.openBrowser=e,p.url=t,p.clientId=n,p.clientSecret=i,p.scope=o,p.userAccountGuid=a,p.targetClientId=s,p.targetScope=c,p.targetResponseType=l,p.targetLocale=u,JSON.parse(window.__adobe_cep__.invokeSync("imsAttemptSSOJumpWorkflows",JSON.stringify(p))).result},n.events={imsFetchAccessTokenWithStatus:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchAccessToken:"com.adobe.csxs.events.internal.ims.FetchAccessToken",imsRevokeAccessToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchContinueToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsAAMIMSStatus:"vulcan.SuiteMessage.com.adobe.aam.AAMIMSStatus",imsLogoutUser:"com.adobe.csxs.events.internal.ims.LogoutUser",imsSSOStatus:"com.adobe.csxs.events.internal.ims.SSOStatus"},n.status={IMS_SUCCESS:"0",IMS_ERROR_FAILURE:"1",IMS_ERROR_INVALID_ARGUMENTS:"2",IMS_ERROR_CANCEL:"20",IMS_ERROR_TIMEOUT:"21",IMS_ERROR_HTTPFAILURE:"22",IMS_ERROR_SSLFAILURE:"23",IMS_ERROR_AUTH_PROXY_REQUIRED:"24",IMS_ERROR_AUTH_PROXY_FAILED:"25",IMS_ERROR_IN_ACCESS_IDP:"26",IMS_ERROR_ANOTHER_REQUEST_IN_PROCESS:"40",IMS_ERROR_IN_READ_USER_DATA:"60",IMS_ERROR_IN_SAVE_USER_DATA:"61",IMS_ERROR_IN_REMOVE_USER_DATA:"62",IMS_ERROR_USER_DATA_NOT_PRESENT:"63",IMS_ERROR_IN_READ_DEVICE_TOKEN:"64",IMS_ERROR_IN_SAVE_DEVICE_TOKEN:"65",IMS_ERROR_IN_REMOVE_DEVICE_TOKEN:"66",IMS_ERROR_DEVICE_TOKEN_NOT_PRESENT:"67",IMS_ERROR_INVALID_DEVICE_TOKEN:"68",IMS_ERROR_CLIENTID_NOT_PRESENT:"69",IMS_ERROR_IN_FETCH_USER_ACCOUNTS:"70",IMS_ERROR_IN_SAVE_USER_FOR_CLIENTID:"71",IMS_ERROR_DEVICE_ID_NOT_PRESENT:"72",IMS_ERROR_DEFAULT_USER_FOR_CLIENTID_NOT_PRESENT:"73",IMS_ERROR_NO_USER_RECORDS_PRESENT:"74",IMS_ERROR_ACCESS_DENIED:"80",IMS_ERROR_INVALID_REQUEST:"81",IMS_ERROR_INVALID_CLIENT:"82",IMS_ERROR_INVALID_GRANT:"83",IMS_ERROR_UNAUTHORIZED_CLIENT:"84",IMS_ERROR_UNSUPPORTED_RESPONSE_TYPE:"85",IMS_ERROR_INVALID_SCOPE:"86",IMS_ERROR_UNSUPPORTED_GRANT_TYPE:"87",IMS_ERROR_BAD_REQUEST:"88",IMS_ERROR_INVALID_CREDENTIALS:"89",IMS_ERROR_IN_GET_AUTH_DATA_FROM_IDP:"100",IMS_ERROR_IN_GET_DEVICE_TOKEN_FROM_IDP:"101",IMS_ERROR_IN_GET_REFRESH_TOKEN_FROM_IDP:"102",IMS_ERROR_IN_GET_ACCESS_TOKEN_FROM_IDP:"103",IMS_ERROR_IN_GET_PROFILE_DATA_FROM_IDP:"104",IMS_ERROR_TOU_CHANGED:"120",IMS_ERROR_IN_REVOKE_DEVICE_TOKEN:"121",IMS_ERROR_TOU_NOT_CURRENT:"122",IMS_ERROR_EVS_INVALID:"123",IMS_ERROR_ACCT_ACT_REQ:"124",IMS_ERROR_ACCT_DISABLED:"125",IMS_ERROR_SUBS_ACT_REQ:"126",IMS_ERROR_SUBS_NO_SUB:"127",IMS_ERROR_NO_BUDDY_GROUP_FOR_CLIENT:"150",IMS_ERROR_CLIENT_REGISTERED_FOR_OTHER_GROUP:"151",IMS_ERROR_GROUP_ENTRY_NOT_PRESENT:"152",IMS_ERROR_IN_SAVE_GROUP_DATA:"153",IMS_ERROR_CNAME_ENTRY_NOT_PRESENT:"154",IMS_ERROR_IN_SAVE_BACKOFF_DATA:"155",IMSMANAGER_ERROR_EXCEPTION:"3000",IMSMANAGER_ERROR_ENCODING:"3001",IMSMANAGER_SUCCESS_BROWSER_OPENED:"3002",IMSMANAGER_ERROR_BROWSER_FAILED_TO_OPEN:"3003",IMS_UNKNOWN_ERROR:"0xFFFF"},n.prototype.events=n.events,i.prototype.addEventListener=function(e,t){window.__adobe_cep__.addEventListener(e,t)},i.prototype.removeEventListener=function(e,t){window.__adobe_cep__.removeEventListener(e,t)},i.prototype.imsFetchAccessToken=function(e,t,r){return window.__adobe_cep__.nglImsFetchAccessToken(e,t,r)},i.prototype.imsFetchProfile=function(e){return window.__adobe_cep__.nglImsFetchProfile(e)},i.prototype.imsFetchContinueToken=function(e,t,r,n,i){null==r&&(r=""),null==n&&(n=""),null==i&&(i="");var o={};return o.bearerToken=e,o.targetClientId=t,o.redirectUri=r,o.scope=n,o.responseType=i,JSON.parse(window.__adobe_cep__.invokeSync("nglImsFetchContinueToken",JSON.stringify(o))).result},i.prototype.imsGetCurrentUserId=function(){return window.__adobe_cep__.getCurrentImsUserId()},i.prototype.imsGetCurrentUserIdHelper=function(e){var t=JSON.parse(window.__adobe_cep__.getHostEnvironment()).appName;if("ILST"===t)window.__adobe_cep__.evalScript("app.userGUID",(function(t){e(t)}));else if("IDSN"===t)window.__adobe_cep__.evalScript("app.userGuid",(function(t){e(t)}));else if("PHSP"===t||"PHXS"===t)window.__adobe_cep__.evalScript("var getUserIdPhotoshop = function() {var userId = '';try {var bhnc = app.charIDToTypeID('bhnc');var ref = new ActionReference();ref.putProperty(app.charIDToTypeID('Prpr'), bhnc);ref.putEnumerated(app.charIDToTypeID('capp'), app.charIDToTypeID('Ordn'), app.charIDToTypeID('Trgt'));var appDesc = app.executeActionGet(ref);if (appDesc.hasKey(bhnc)) {userId = appDesc.getString(bhnc);}} catch (e) {}return userId;};",(function(t){window.__adobe_cep__.evalScript("getUserIdPhotoshop()",(function(t){e(t)}))}));else{var r=window.__adobe_cep__.getCurrentImsUserId();e(r)}},i.prototype.showAAM=function(e,t,r,n,i,o){return window.__adobe_cep__.showAAM(e,t,r,n,i,o)},i.events={imsFetchAccessToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchContinueToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchProfile:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus"},i.status={SUCCESS:"0",RESULT_PENDING:"1",NOT_CONFIGURED:"2",ALREADY_CONFIGURED:"3",NOT_IMPLEMENTED:"4",INVALID_PARAM:"5",INVALID_CONFIG:"6",INVALID_NID:"7",INVALID_APP_ID_ERROR:"8",INVALID_APP_VERSION_ERROR:"9",INVALID_PROFILE_STATUS:"10",SIGNIN_UNAVAILABLE:"11",FEATURE_UNAVAILABLE:"12",INVALID_OPERATING_CONFIG:"13",TRANSIENT_BUILD_EXPIRED:"14",INVALID_URL:"101",NETWORK_ERROR:"102",PROXY_AUTH_REQUIRED:"103",UNAUTHORISED_SERVER_CALL:"104",HTTP_REQUEST_CANCELLED:"105",HTTP_REQUEST_TIMEDOUT:"106",HTTP_FAILURE:"107",HTTP_SSL_FAILURE:"108",HTTP_BAD_REQUEST:"109",NO_CONTENT:"110",EXCEPTION_RETRIEVING_LATEST_COP:"201",FAILED_TO_VERIFY_LATEST_COP:"202",FAILED_TO_PARSE_LATEST_COP:"203",COP_RETRIEVAL_FAILED:"204",FAILED_TO_SAVE_NGL_PROFILE_LOCALLY:"205",FAILED_TO_FETCH_PRINCIPAL:"206",FAILED_TO_FETCH_CACHED_NGL_PROFILE:"207",FAILED_TO_PARSE_CACHED_NGL_PROFILE:"208",FAILED_TO_DELETE_CACHED_NGL_PROFILE:"209",NGL_PROFILE_STORAGE_FAILURE:"210",DEVICE_ID_PRINCIPAL_MISMATCH:"211",LATEST_COP_PRINCIPAL_MISMATCH:"212",LATEST_COP_DEV_TOKEN_HASH_MISMATCH:"213",ACCESS_TOKEN_COULD_NOT_BE_FETCHED:"214",LATEST_COP_COULD_NOT_BE_SAVED_LOCALLY:"215",LATEST_COP_RUNTIME_MODE_MISMATCH:"216",LATEST_COP_APP_ID_MISMATCH:"217",PRINCIPAL_NOT_FOUND:"218",PRINCIPAL_STORAGE_FAILURE:"219",INVALID_DEVICE_TOKEN_TO_FETCH_ACCESS_TOKEN:"220",CACHED_NGL_PROFILE_PRINCIPAL_MISMATCH:"221",RUNTIME_MODE_MISMATCH_IN_CACHED_NGL_PROFILE:"222",APP_ID_MISMATCH_IN_CACHED_NGL_PROFILE:"223",ACCESS_DENIED_TO_SAVE_NGL_PROFILE:"224",ACCESS_DENIED_TO_GET_CACHED_NGL_PROFILE:"225",ACCESS_DENIED_TO_DELETE_CACHED_NGL_PROFILE:"226",ACCESS_DENIED_IN_STORING_PRINCIPAL:"227",CACHED_NGL_PROFILE_NOT_FOUND:"228",WORKFLOW_RETRIEVAL_FAILED:"229",FAILED_TO_CREATE_REQUEST_BODY:"230",FAILED_TO_FETCH_SUSI_WF:"231",FAILED_TO_FETCH_WF:"232",FAILED_FETCH_IMS_JUMP_TOKEN:"233",FAILED_TO_PARSE_WF_JSON:"234",INVALID_WF_TYPE_IN_REPSONSE:"235",PARSING_ERROR:"236",STORAGE_PARSE_ERROR:"237",STORAGE_ACCESS_DENIED:"238",STORAGE_READ_ERROR:"239",STORAGE_WRITE_ERROR:"240",STORAGE_DELETE_ERROR:"241",STORAGE_DATA_NOT_FOUND:"242",STORAGE_INSUFFICIENT_MEMORY:"243",STORAGE_INSUFFICIENT_SIZE:"244",STORAGE_DATA_CONVERSION_ERROR:"245",STORAGE_DATA_RETRIEVAL_ERROR:"246",INVALID_ASNP_FRL_FILE:"247",CANNOT_FETCH_WITH_NGLU_NOTIFIED_TOKEN_TEMPORARILY:"248",SESSION_ID_MISMATCH:"249",FAILED_TO_LOAD_DATA_FROM_STORAGE_TO_MEMORY:"250",CLOCK_ROLLED_BACK:"251",CACHELIFETIME_ELAPSED:"252",NPDID_PRINCIPAL_MISMATCH:"253",EXCEPTION_ID_MISMATCH:"254",UNLICENSED_APP_DENY_COPS_CALL_PRINCIPAL_INVALID:"255",IMS_ERROR_ACCESS_DENIED:"301",IMS_ERROR_INVALID_CLIENT:"302",IMS_ERROR_INVALID_GRANT:"303",IMS_ERROR_UNAUTHORIZED_CLIENT:"304",IMS_ERROR_UNSUPPORTED_RESPONSE_TYPE:"305",IMS_ERROR_INVALID_SCOPE:"306",IMS_ERROR_UNSUPPORTED_GRANT_TYPE:"307",IMS_ERROR_BAD_REQUEST:"308",IMS_ERROR_TOU_CHANGED:"309",IMS_ERROR_IN_REVOKE_DEVICE_TOKEN:"310",IMS_ERROR_TOU_NOT_CURRENT:"311",IMS_ERROR_EVS_INVALID:"312",IMS_ERROR_ACCT_ACT_REQ:"313",IMS_ERROR_ACCT_DISABLED:"314",IMS_ERROR_SUBS_ACT_REQ:"315",IMS_ERROR_SUBS_NO_SUB:"316",IMS_ERROR_JUMP_URL_HANDLING_REQUIRED:"317",IMS_ERROR_ACCT_PASSWORD_UPDATED:"318",IMS_ERROR_ACCT_MIGRATE:"319",IMS_ERROR_ACCT_DOB_AGE:"320",IMS_ERROR_ACCESS_DENIED_NON_T1:"321",IMS_ERROR_UNKNOWN_ERROR:"322",IMS_ERROR_ACCESS_DENIED_T1:"323",IMS_ERROR_RETRY_REQUEST:"324",WORKFLOW_REQUIRED:"401",PROFILE_EXPIRED:"402",PROFILE_UNAVAILABLE:"403",PROFILE_DENIED:"404",PROFILE_OVERACTIVATED:"405",PROFILE_LOCALE_RECONFIGURE:"406",PROFILE_SIGNIN:"407",PROFILE_SIGNOUT:"408",PROFILE_REFRESH_NEEDED:"410",INTERNAL_ERROR:"501",RUNTIME_ERROR:"502",GENERIC_FAILURE:"503",USER_ABORT:"504",IMSMANAGER_ERROR_EXCEPTION:"3000",IMSMANAGER_ERROR_ENCODING:"3001",IMSMANAGER_SUCCESS_BROWSER_OPENED:"3002",IMSMANAGER_ERROR_BROWSER_FAILED_TO_OPEN:"3003",NGLMANAGER_ERROR_EXCEPTION:"4000",NGLMANAGER_ERROR_ENCODING:"4001",IMS_UNKNOWN_ERROR:"0xFFFF"},i.prototype.events=i.events;var o=r(76485),a=r(79799),s=r(93028),c=r(26964),l=r(78926);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 p(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){d(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 d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=new class{constructor(){this._nglInterface=new i,this._imsInterface=new n}get imsRef(){if(!this._imsRefCache){const e=this.getEnvironment();this._imsRefCache=o.Z.IMSLib?o.Z.IMSLib.createRefEx(e.ims):this._imsInterface.imsConnectWithEndpoint(e.ims)}return this._imsRefCache}_getAccessTokenCEP(e,t){return new Promise(((r,n)=>{let i;const o=a=>{const s=a&&t.getToken(a);e.removeEventListener(t.eventName,o),clearTimeout(i),s?r(s):n()};e.addEventListener(t.eventName,o),e.imsFetchAccessToken(...t.funcParams),i=setTimeout((()=>{c.Z.log("IMS: Timed out fetching access token - trying process"),o()}),5e3)}))}_getAccessToken(e){if(!e)return Promise.resolve(null);const t=this.getEnvironment();if(o.Z.IMSLib)return new Promise((r=>o.Z.IMSLib.fetchAccessToken(this.imsRef,t.clientId,t.clientSecret,e,"",l.SCOPES,((e,t)=>r(e?null:t.access_token)))));let r,n;return o.Z._appInterface&&(r=o.Z._appInterface.getCurrentApiVersion()),n=r&&r.major>=11?this._getAccessTokenCEP(this._nglInterface,{funcParams:[t.clientId,t.clientSecret,l.SCOPES],eventName:this._nglInterface.events.imsFetchAccessToken,getToken:e=>e&&e.data&&e.data.details&&e.data.details.access_token}):this._getAccessTokenCEP(this._imsInterface,{funcParams:[this.imsRef,t.clientId,t.clientSecret,e,"",l.SCOPES],eventName:l.FETCH_TOKEN_EVENT,getToken:e=>e&&e.data&&e.data.access_token}),n.catch((()=>s.ZP.getAccessToken(e,t.clientId,t.clientSecret,l.SCOPES).then((e=>e&&e.access_token))))}get environmentType(){const e=a.Z.getServiceInfo(),t=e&&e.environment&&e.environment.toLowerCase(),r=o.Z.imsEnvironment;return t||r||"production"}getEnvironment(e){const t=l.CONFIGS[e||this.environmentType];return o.Z.imsClientId?Object.assign({},t,{clientId:o.Z.imsClientId,clientScope:l.SCOPES}):p(p({},t),{},{clientScope:l.SCOPES})}getAccessToken(e){return this._accessTokenCache?Promise.resolve(this._accessTokenCache):(this._getAccessTokenPromise||(c.Z.log("IMS: Fetching access token: environment is "+this.getEnvironment().label),this._getAccessTokenPromise=this._getAccessToken(e).then((e=>(delete this._getAccessTokenPromise,e?(this._accessTokenCache=e,e):Promise.reject("LOGGED_OUT"))))),this._getAccessTokenPromise)}clearAccessToken(){delete this._accessTokenCache}hasValidUser(){return window&&window.profile?window.profile.hasValidUser():o.Z.isLoggedIn()}getLoginURL(e,t){const r=l.CONFIGS[t]||this.getEnvironment();return`https://${r.ims}/ims/authorize/v1?client_id=${r.clientId}&response_type=token&scope=${l.SCOPES}&redirect_uri=${encodeURIComponent(e)}&locale=${o.Z.getLocale().replace("-","_")}`}getCurrentUserIdHelper(){return new Promise((e=>{this._nglInterface.imsGetCurrentUserIdHelper(e)}))}decodeToken(e){const t=e?e.split("."):[];if(3===t.length)try{return JSON.parse(atob(t[1]))}catch(e){return}}extractUserDataFromToken(e){const t=this.decodeToken(e);if(t)return{user:{id:t.user_id,clientId:t.client_id}}}}},51461:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>z});var n,i,o=r(50265),a=r(26077),s=r.n(a),c=r(99386),l=r(76485),u=r(76325),p=r(72373),d=r(85834),h=r(98218),f=r(4784),m=r(93028),g=r(26964),v=r(31870),y=r(16993),b=r(47320),_=r(36351),E=r(46903),w=r(39293),L=r(69233),x=r(74379),S=r(18580);function O(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 T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const P={Operations:{"Export Library":!0},"Create Library":{"Import Library":!0},Typekit:{"Sync-Font":!0,Purchase:!0,Upgrade:!0,Conditional:!0,"Update Info":!0}},C={presets:"Presets"},A="Unknown";let k;const D={init(e,t){k=new(s())(e,t)},isInitialized:()=>void 0!==k,postEvent(e){k&&k.postEvent(e)},flush(){k&&k.flush()},setEnabled(e){k&&k.enable(e)}},N="offlineTypekitEvents",R=["ResizeObserver loop completed with undelivered notifications.","ResizeObserver loop limit exceeded"];let M=(n=class{constructor(){var e,t,r,n;this.STOCK_EVENTSOURCE={SEARCH:"search",CONTEXT_MENU:"context-menu"},this.initialized=!1,e=this,t="_enabled",n=this,(r=i)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0}),this.environment={},this.extraEventMetrics={},this.extraElementMetrics={},this._recordedEvents=o.observable.array(),window.onerror=(e,t,r,n)=>{if("string"==typeof e&&R.includes(e))return;const i=`${t}#${r}:${n}: ${e}`;this.reportError("Navigation","Runtime Error",i),g.Z.log("Uncaught Error: "+i)}}_recordEvent(e,t){this._recordedEvents.push({time:(new Date).valueOf(),message:e,details:t})}get recordedEvents(){return this._recordedEvents}clearRecordedEvents(){this._recordedEvents.clear()}get productLocation(){return"libraries/"+h.Z.getPluginVersion()}get userAccountStatus(){const e=l.Z.getProfile(),t=e&&e.RelationshipProfile&&e.RelationshipProfile[0]&&e.RelationshipProfile[0].appEntitlementStatus;return t&&t.toLowerCase()||this.userData&&this.userData.accountStatus}setEnvironment(e){e.product&&(this.environment.product=e.product),e.productVersion&&(this.environment.productVersion=e.productVersion),e.version&&(this.environment.version=e.version),e.os&&(this.environment.os=e.os),void 0!==e.offline&&(this.environment.offline=e.offline),e.consumer&&(this.environment.consumer=e.consumer)}addProductHeaders(e){return e&&(e["X-Product"]=this.environment.product+"/"+this.environment.productVersion,e["X-Product-Location"]="libraries/"+this.environment.version),e}isEnabled(e=!1){return e||!this.currentUserId?this._enabled:this._enabled||Boolean(p.Z.getDebugValue(`forceEnableAnalytics#${this.currentUserId}`))}analyticsApiKey(){return c.Z.currentProduct.config.ingestApiKey||u.Z.getEnvironment().clientId}_checkEnabled(){const e=m.ZP.ANALYTICS_ENABLED;return this._enabled!==e&&D.isInitialized()&&(g.Z.log("Analytics: "+e),this._enabled=e,D.setEnabled(e),m.ZP._ccLibraries.utils.metrics.setEnabled(e)),this.isEnabled()}setForceEnableAnalytics(e){this.currentUserId&&(p.Z.setDebugValue(`forceEnableAnalytics#${this.currentUserId}`,e),this._checkEnabled())}setUserId(e){const t=this.currentUserId!==e;if(this.currentUserId=e,this._checkEnabled(),e&&t){if(!this.initialized){this.initialized=!0;const e=e=>"error"===e.state&&"network"===e.errorType;(0,o.reaction)((()=>e(m.ZP.syncStatus)),(e=>this.setEnvironment({offline:e}))),this.setEnvironment({product:c.Z.currentProduct.config.fullName,version:h.Z.getPluginVersion(),os:l.Z.getOSInformation()}),l.Z.exec("CORE","getApplicationVersion",[]).then((e=>{this.setEnvironment({productVersion:e}),m.ZP._ccLibraries.utils.metrics.product=`${c.Z.currentProduct.config.code}/${e}`})).catch((()=>{})),c.Z.currentProduct.getUserData&&c.Z.currentProduct.getUserData((e=>{this.userData=e,m.ZP._ccLibraries.utils.metrics.userAccountStatus=this.userAccountStatus})),this._initializeIngest(this.currentUserId)}if(m.ZP._ccLibraries.utils.metrics.apiKey=this.analyticsApiKey(),m.ZP._ccLibraries.utils.metrics.productLocation=this.productLocation,m.ZP._ccLibraries.utils.metrics.platform="DESKTOP",m.ZP._ccLibraries.utils.metrics.sessionGuid=u.Z.imsRef,this._checkEnabled()&&l.Z.isLibrariesPanel()){if(c.Z.currentProduct.config.reportPublishedUnpublishedCountOnInit){const e=(0,o.reaction)((()=>S.Z.hasLoaded()),(()=>{const t=m.ZP.libraries.filter((e=>(0,w.Ol)(e))),r=t.filter((e=>(0,w.Hc)(e))).length,n=t.filter((e=>(0,w.QE)(e))).length;this._reportInitializeEvent({event:{count:r,value:n}}),e()}))}else this._reportInitializeEvent();if(m.ZP.currentLibrary){const e=m.ZP.currentLibrary&&m.ZP.currentLibrary.elements.length;this.reportEvent("Navigation","Library Panel","render","load-library",{event:{count:e}})}}}}_reportInitializeEvent(e){this.reportEvent("Initialize","Init","render","view",e)}flush(){D.flush()}setExtraEventMetrics(e,t){this.extraEventMetrics[e]=t}getExtraEventMetrics(e){return this.extraEventMetrics[e]}clearExtraEventMetrics(e){delete this.extraEventMetrics[e]}_getApiReportGroup(e,t){const r=t?m.ZP.getLibraryById(t):m.ZP.currentLibrary;return r&&r.getGroupById(e)}_getApiReportElement(e,t){const r=t&&m.ZP.getLibraryById(t);return r&&r.getElementById(e)}reportStoredOfflineEvents(){let e=p.Z.getValue(N);e=e?JSON.parse(e):[],_.Z.isOnline&&e.length&&(e.forEach((function(e){e&&D&&D.postEvent(e)})),p.Z.setValue(N,JSON.stringify([])))}reportElementEvent(e,t,r,n,i,o){o=o||{};const a=this._getElementProperties(i);this.reportEvent(e,t,r,n,this._extendProperties(a,o),i&&i.library)}reportGroupEvent(e,t,r,n,i,o){o=o||{};const a=this._getGroupProperties(i);this.reportEvent(e,t,r,n,this._extendProperties(a,o),i&&i.library)}reportEvent(e,t,r,n,i,o){var a,s;if((null===(a=(s=c.Z.currentProduct.config).shouldDisableMetricsEvent)||void 0===a||!a.call(s,e,t,r,n,i,o))&&(e=`Library:${e}`,this._checkEnabled()&&(this.reportStoredOfflineEvents(),D.isInitialized()))){o=o||m.ZP.currentLibrary;const a=this._getLibraryProperties(o);i=i?this._extendProperties(i,a):a;const s=this.createBasePayload(),l={};if(l["content.action"]=i.content&&(i.content.actionUrl?i.content.actionUrl+"&guid="+s["event.guid"]:i.content.action),l["event.workflow"]=e,l["event.subcategory"]=t,l["event.type"]=r,l["event.subtype"]=n,this.updateEventPayload(i,l),g.Z.log("Analytics Event: "+JSON.stringify(l)),d.Z.get("recordMetrics")){const i=`${e}, ${t}, ${r}, ${n}`,o=`Event Payload: ${JSON.stringify(l,void 0,2)}\n\nBase Payload: ${JSON.stringify(s,void 0,2)}`;this._recordEvent(i,o)}const u=Object.assign({},s,l);if(c.Z.currentProduct.config.reportSDMEvent&&c.Z.currentProduct.config.reportSDMEvent(u),!_.Z.isOnline&&P[e]&&P[e][t]){const e=p.Z.getValue(N),t=e?JSON.parse(e):[];t.push(u),p.Z.setValue(N,JSON.stringify(t))}else D.postEvent(u)}}updateEventPayload(e,t){Object.keys(e).forEach((function(r){Object.keys(e[r]).forEach((function(n){const i=r+"."+n,o=e[r][n];t[i]||void 0===o||(t[i]=o)}))}))}reportError(e,t,r,n,i,o,a){(o=o||{}).event=o.event||{},n&&(o.event.error_code=n),i&&(o.event.error_type=i),r&&(o.event.error_desc=r),this.reportEvent(e,t,"render","error",o,a)}reportSearchEvent(e,t,r,n,i){t="Search"===t&&y.Z.isRootView()?"Root Search":t,this.reportEvent(e,t,r,n,i),"stock"===y.Z.getSearchType()&&this.reportStockEvent("Search",r,n)}reportOutgoingUrlEvent(e,t,r,n,i,o,a){let s=i+"&x-product="+(this.environment.product+"/"+this.environment.productVersion)+"&x-product-location="+("libraries/"+this.environment.version);a&&(s+="&as_channel=adobe_apps&as_campclass=brand&as_camptype=CCLibrary"),o=Object.assign({content:{actionUrl:s}},o),this.reportEvent(e,t,r,n,o)}_getAPIElementUpdateType(e){var t;const r=e.data||{},n=e.baseData||{};if(r.name!==n.name)return"rename";if(r.description!==n.description)return r.description?n.description?"edit-note":"add-note":"delete-note";if(!r.groups.length)return"ungroup";return(n.groups?null===(t=n.groups)||void 0===t?void 0:t.findIndex((({id:e})=>e===r.groups[0].id)):-1)>-1?"order":"add-to-group"}_getAPIGroupUpdateType(e){var t,r;return(null===(t=e.data)||void 0===t?void 0:t.name)!==(null===(r=e.baseData)||void 0===r?void 0:r.name)?"rename":"order"}reportAPIEvent(e){var t,r;const n="dependent"===e.name&&["moveElement"].includes(null===(t=e.link)||void 0===t?void 0:t.name)?null===(r=e.link)||void 0===r?void 0:r.name:e.name,i={},o=this.getExtraEventMetrics(n);if(o&&Object.keys(o).forEach((function(e){const t=o[e];void 0===i[e]&&null!=t&&(i[e]=t)})),i.disableReport)return;const a=i.opType,s=C[a],c=s||i.content&&i.content.category;let l="",u={};const p=(t,r,n,i,o={})=>{var a,c;const l=null===(a=e.library)||void 0===a?void 0:a.id,u=(null===(c=e.data)||void 0===c?void 0:c.id)||m.ZP.extractPathElementId(e.path);o.content=o.content||{},o.content.category=s||o.content.category;const p=this._getApiReportElement(u,l);if(p)return this.reportElementEvent(t,r,n,i,p,o);this.reportEvent(t,r,n,i,o,m.ZP.getLibraryById(l))},d=(e,t,r,n,o={})=>{const a=i.library;o.content=o.content||{},o.content.category=s||o.content.category,this.reportEvent(e,t,r,n,o,a)},h=(t,r,n,i,o={})=>{var a,c;const l=null===(a=e.library)||void 0===a?void 0:a.id,u=(null===(c=e.data)||void 0===c?void 0:c.id)||m.ZP.extractPathGroupId(e.path);o.content=o.content||{},o.content.category=s||o.content.category;const p=this._getApiReportGroup(u,l);p?setTimeout((()=>{o.content.status=o.content.status||(0,L.RH)(p),o.content.extension=o.content.extension||(0,L.Av)(p),this.reportGroupEvent(t,r,n,i,p,o)}),0):this.reportEvent(t,r,n,i,o,m.ZP.getLibraryById(l))};let f;switch(n){case"removeLibrary":u={event:{pagename:i.event&&i.event.pagename,value:null,count:null}},d("Library Operations","Library","click","delete",u);break;case"createElement":switch(a){case"addButton":l="Plus";break;case"onboarding":l="Onboarding";break;case"dragDrop":l="Bulk Upload";break;case"dragToPanel":l="Drag Drop From Layers";break;case"manualVacuum":l="Import Document";break;case"presetNameDlg":case"swatchPanelExisting":case"swatchPanelNew":case"characterStyleExisting":case"characterStyleNew":case"paragraphStyleExisting":case"paragraphStyleNew":l="Presets";break;case"Toolbar":l="Toolbar";break;case"Empty State":l="Empty State";break;case"canvasContextMenu":l="Canvas Context Menu";break;default:l=s||c}u={event:{value:"single",count:1,pagename:i.event&&i.event.pagename},content:{category:l,extension:i.extension,size:i.size},ccl:T({},i.ccl)},p("Add Assets","Element","click","add",u);break;case"copyElement":u={event:{value:"single",count:1,pagename:null},content:{category:c}},p("Add Assets","Element","click","add",u);break;case"moveElement":"insert"===e.type&&(u={event:{value:"single",count:1,pagename:null},content:{category:c||"Right Click"}},p("Element Operations","Element","click","move-to-library",u));break;case"updateElement":if(f=this._getAPIElementUpdateType(e),!f||!c&&["order","add-to-group","ungroup"].includes(f))break;u={event:{count:1,value:"single",pagename:null},content:{category:c||"Click"}},p("Element Operations","Element","click",f,u);break;case"updateElementContent":u={event:{value:"single",count:null,pagename:null},content:{category:"Right Click"}},p("Element Operations","Element","click","replace"===a?"replace":"edit",u);break;case"removeElement":u={event:{value:"single",count:null,pagename:null},content:{category:c}},p("Element Operations","Element","click","delete",u);break;case"restoreElement":u={event:{value:"single",count:null,pagename:null},content:{category:"Click"}},p("Element Operations","Element","click","undo-delete",u);break;case"createGroup":h("Create Group","Group","click","create",{content:{category:c}});break;case"updateGroup":f=this._getAPIGroupUpdateType(e),u={event:{value:null,count:null},content:{category:c||"Click"}},"order"===f&&(u.event={value:i.groupOrder,count:null,pagename:null}),h("Group Operations","Group","click",f,u);break;case"removeGroup":u={event:{value:null,count:null},content:{type:"group",status:i.groupLevel}},i.includeContents&&(u.event={count:i.numberElementsInGroup}),h("Group Operations","Group","click",i.includeContents?"delete-with-assets":"delete",u);break;case"copyGroup":i.includeContents&&(u={event:{count:i.numberElementsInGroup}}),h("Group Operations","Group","click","copy-to-library",u);break;case"moveGroup":i.includeContents&&(u={event:{count:i.numberElementsInGroup}}),h("Group Operations","Group","click","move-to-library",u)}["copyElement","moveElement","deleteElement","restoreElement","updateElement","copyGroup","moveGroup","removeGroup","updateGroup"].includes(n)||(i.library&&(i.library=i.library.data),this._reportToProduct(n,i))}reportAPIError(e){this.reportError(void 0,void 0,e)}reportUseElement(e,t){y.Z.isSearchMode()&&(this.reportEvent("Search",y.Z.isRootView()?"Root Search":"Search","click","result",{ui:{filter:y.Z.getSearchType()}}),y.Z.isStockSearchMode()&&this.reportEvent("Stock","Stock Search","click","success",{ui:{filter:"stock"}}));const r=this.getExtraEventMetrics("reportUseElement");this.clearExtraEventMetrics("reportUseElement");const n=e.element,i=r&&r.isRightClick,o=T({content:{category:"dragDrop"===t?"Drag Drop":i?"Right Click":"Click"},"env.com.name":"CC Libraries Panel"},this._getUIPayload());m.ZP._ccLibraries.utils.metrics.reportUseElement(n,o)}reportCreateLink(){this._checkEnabled()&&this.reportAPIEvent({name:"createLink"})}reportCheckoutElement(){this._checkEnabled()&&this.reportAPIEvent({name:"checkoutElement"})}reportPublishBrand(e,t){m.ZP._ccLibraries.utils.metrics.reportPublishBrand(e,t)}reportUnpublishBrand(e,t){m.ZP._ccLibraries.utils.metrics.reportUnpublishBrand(e,t)}reportStockEvent(e,t,r,n,i){if((n=n||{}).ui=n.ui||{},"Search"===e){const e=y.Z.getStockSearchOptionValuesArray();n.ui.filter=e.length?e.join(", "):"none"}if(i){if(i.library)return this.reportElementEvent("Stock",e,t,r,i,n);n.content=n.content||{},n.content.name=i.title,n.content.type=i.content_type,n.content.status=i.is_licensed?"licensed":"unlicensed"}this.reportEvent("Stock",e,t,r,n)}_reportToProduct(e,t){this._checkEnabled()&&c.Z.currentProduct.reportEvent&&c.Z.currentProduct.reportEvent(e,t)}createBasePayload(e=!1){const t={"event.guid":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})),"event.category":"DESKTOP","event.user_guid":this.currentUserId||A,"event.offline":!!this.environment.offline,"event.language":l.Z.getLocale(),"event.session_guid":u.Z.imsRef,"event.context_guid":A,"source.name":c.Z.currentProduct.config.code,"source.client_id":u.Z.getEnvironment().clientId,"source.version":this.environment.productVersion||A,"source.platform":l.Z.getOSName(),"source.os_version":l.Z.getOSVersion(),"user.service_code":"creativecloud","user.service_level":this.userAccountStatus,"env.com.name":"CC Libraries Panel","env.com.version":h.Z.getPluginVersion()};try{var r,n;t["event.org_guid"]=(null===(r=window)||void 0===r||null===(n=r.top)||void 0===n?void 0:n.corpId)||A}catch(e){t["event.org_guid"]=A}return c.Z.currentProduct.config.reportUserRoleInAnalytics&&(void 0===l.Z.rawIsBrandCreator?t["content.author"]=A:t["content.author"]=l.Z.rawIsBrandCreator?"editor":"collaborator"),e||(t["consumer.name"]=this.environment.consumer||c.Z.currentProduct.config.code,t["consumer.version"]=l.Z.getAppVersion(),t["consumer.platform"]=l.Z.getOSName(),t["consumer.os_version"]=l.Z.getOSVersion()),Object.assign(t,this._getUIPayload(e)),t}_getUIPayload(e=!1){const t={};return e||(t["ui.view_type"]=y.Z.viewState,t["ui.sort_order"]=y.Z.elementSortState+(y.Z.elementSortDescendingState?"-descending":""),l.Z.isLibraryManagerWindowOpen()||(y.Z.isRootView()?t["event.pagename"]="Root View":y.Z.isOneUpMode()?(t["event.pagename"]="1Up View",m.ZP.currentLibrary&&(t["event.pagetype"]=m.ZP.currentLibrary.documentId?"published":"traditional")):m.ZP.currentLibrary.isDocumentAssets?t["event.pagename"]="Document Assets View":(t["event.pagename"]="Library View",t["event.pagetype"]=m.ZP.currentLibrary.documentId?"published":"traditional")),y.Z.isSearchMode()||("type"===y.Z.viewByState?t["ui.filter"]=`by-${y.Z.viewByState}`:t["ui.filter"]=`by-group-${y.Z.viewByGroupMode}`)),c.Z.currentProduct.isExpandedView&&(t["event.pagetype"]=c.Z.currentProduct.isExpandedView()?"expanded-view":"editor-view"),t["ccl.is_mobile_view"]=!!l.Z.isMobileView,t}_initializeIngest(e){D.init({log(e){d.Z.get("logIngestAPI")&&g.Z.log(e)},getAccessToken(t){u.Z.getAccessToken(e).then((e=>{t(null,e)}),(function(e){t(e)}))},clearAccessToken(){u.Z.clearAccessToken()}},{ENVIRONMENT:"Staging"===u.Z.getEnvironment().label?"stage":"prod",ANALYTICS_ENABLED:this.isEnabled(),ANALYTICS_API_KEY:this.analyticsApiKey(),ANALYTICS_X_PRODUCT:this.environment.product+"/"+this.environment.productVersion,ANALYTICS_X_PRODUCT_LOCATION:this.productLocation,ANALYTICS_USER_AGENT:window.navigator.userAgent,ANALYTICS_PROJECT:c.Z.ANALYTICS_PROJECT,ANALYTICS_INGEST_TYPE:c.Z.ANALYTICS_INGEST_TYPE,ANALYTICS_MAX_QUEUED_EVENTS:c.Z.ANALYTICS_MAX_QUEUED_EVENTS,ANALYTICS_DEBOUNCE:c.Z.ANALYTICS_DEBOUNCE})}_getLibraryProperties(e){if(!e)return{};let t="private";(0,E.D3)(e)?t="follow":e.collaboration&&(t="outgoing"===e.collaboration?"owner":e.isWritable?"edit":"view"),t=e.toolkitId?"presets":t;return T(T({},c.Z.currentProduct.config.reportUserRoleInAnalytics?{}:{content:{author:t}}),{},{event:{context_guid:e.id},ccl:{library_storage_type:this._libraryStorageType(e)},"custom.library":{filter:(0,w.Ol)(e)?"brands":"libraries"}})}_getElementProperties(e){var t;if(!e)return{};const r=e.getPrimaryRepresentation(),n=r&&r.getValue(c.Z.STOCK_NAMESPACE,c.Z.STOCK_DATA_KEY),i=this._getLibraryProperties(e.library);i.ccl=i.ccl||{library_storage_type:null},n&&(i.ccl.tracking_data=JSON.stringify(n));const o={isLinked:!1};if(e.isLinked){const t=e.linkedElement,r=t&&t.library;o.isLinked=e.isLinked,o.linkedLibraryType=r&&r.documentId?"published":"traditional"}i.ccl.asset_linked_data=JSON.stringify(o),i.content=i.content||{author:null},i.content.id=e.id,i.content.action=e.getValue&&e.getValue("capture","data")?null===(t=e.getValue("capture","data").app)||void 0===t?void 0:t.split("-")[0]:e.createdContext&&e.createdContext.app,i.content.mimetype=e.type,i.content.type=b.Z.getShortType(e.type),i.content.size=f.Z.getSize(e),i.content.extension=b.Z.getBadgeText(e),v.Jw(e)&&(i.content.status=v.kv(e)?"licensed":"unlicensed");const a=this._getElementMetaData(e);return this._extendProperties(i,a),i}_getGroupProperties(e){if(!e)return{};const t=this._getLibraryProperties(e.library);return t.content=t.content||{author:null},t.content.id=e.id,t.content.type="group",t}_extendProperties(e,t){return Object.keys(t).forEach((r=>{e[r]=Object.assign(e[r]||{},t[r])})),e}_getElementMetaData(e){const t={"custom.library":{asset_role:b.Z.getElementRole(e)||"none",asset_priority:b.Z.getElementPriority(e)||"none"}};let r;switch(b.Z.getShortType(e.type)){case"color":r=this._getColorElementMetaData(e);break;case"font":r=this._getFontElementMetaData(e);break;case"image":r=this._getImageElementMetaData(e);break;default:r={}}return T(T({},t),r)}_getColorElementMetaData(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("color","data");if(null!=r&&r.value){const e=r.value,t=e.r,n=e.g,i=e.b;return{"custom.content":{name:(0,x.vq)(t,n,i)}}}return{}}_getFontElementMetaData(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("font","data");return r?{"custom.content":{name:r.postScriptName,status:r.isPremium?"premium":"free"}}:{}}_getImageElementMetaData(e){return{"custom.content":{name:e.name||""}}}_libraryStorageType(e){return(0,E.$_)(e)?"business":"user"}},j=n.prototype,Z="_enabled",F=[o.observable],B={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},U={},Object.keys(B).forEach((function(e){U[e]=B[e]})),U.enumerable=!!U.enumerable,U.configurable=!!U.configurable,("value"in U||U.initializer)&&(U.writable=!0),U=F.slice().reverse().reduce((function(e,t){return t(j,Z,e)||e}),U),G&&void 0!==U.initializer&&(U.value=U.initializer?U.initializer.call(G):void 0,U.initializer=void 0),void 0===U.initializer&&(Object.defineProperty(j,Z,U),U=null),i=U,n);var j,Z,F,B,G,U;const z=new M},8502:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>E});var n=r(26077),i=r.n(n),o=r(51461),a=r(26964),s=r(76325),c=r(99386),l=r(10470);const u="create",p="update",d="delete",h="move",f="copy",m="duplicate",g="publish",v="Creation",y="Element",b="Library",_="success";const E=new class{constructor(){this.operationalIngestClient=void 0}initializeOperationalMetrics(e){this.operationalIngestClient=new(i())({log(e){a.Z.log(e)},getAccessToken(t){s.Z.getAccessToken(e).then((e=>{t(null,e)}),(function(e){t(e)}))},clearAccessToken(){s.Z.clearAccessToken()}},{ENVIRONMENT:"Staging"===s.Z.getEnvironment().label?"stage":"prod",ANALYTICS_API_KEY:o.ZP.analyticsApiKey(),ANALYTICS_X_PRODUCT:o.ZP.environment.product+"/"+o.ZP.environment.productVersion,ANALYTICS_X_PRODUCT_LOCATION:"libraries/"+o.ZP.environment.version,ANALYTICS_USER_AGENT:window.navigator.userAgent,ANALYTICS_PROJECT:c.Z.ANALYTICS_PROJECT,ANALYTICS_INGEST_TYPE:c.Z.ANALYTICS_INGEST_TYPE,ANALYTICS_MAX_QUEUED_EVENTS:c.Z.ANALYTICS_MAX_QUEUED_EVENTS,ANALYTICS_DEBOUNCE:c.Z.ANALYTICS_DEBOUNCE}),this.operationalIngestClient.enable(!0)}getElementPayload(e){const t={};return o.ZP.updateEventPayload(o.ZP._getElementProperties(e),t),Object.assign({},o.ZP.createBasePayload(!0),t)}getLibraryPayload(e){const t={};return o.ZP.updateEventPayload(o.ZP._getLibraryProperties(e),t),Object.assign({},o.ZP.createBasePayload(!0),t)}addExtraMetrics(e,t){return t.event&&Object.keys(t.event).forEach((r=>e[`event.${r}`]=t.event[r])),t.ccl&&Object.keys(t.ccl).forEach((r=>e[`ccl.${r}`]=t.ccl[r])),e}sendCreateLibraryEvent(e,t={}){const r={"event.workflow":v,"event.subcategory":b,"event.type":_,"event.subtype":u};return this.sendLibraryEvent(r,e,t)}sendCopyElementEvent(e){const t={"event.workflow":v,"event.subcategory":y,"event.type":_,"event.subtype":f};return this.sendElementEvent(t,e)}sendCreateElementEvent(e,t={}){const r={"event.workflow":v,"event.subcategory":y,"event.type":_,"event.subtype":u};return this.sendElementEvent(r,e,t)}sendDeleteElementEvent(e){const t={"event.workflow":v,"event.subcategory":y,"event.type":_,"event.subtype":d};return this.sendElementEvent(t,e)}sendDeleteLibraryEvent(e){const t={"event.workflow":v,"event.subcategory":b,"event.type":_,"event.subtype":d};return this.sendLibraryEvent(t,e)}sendDuplicateElementEvent(e){const t={"event.workflow":v,"event.subcategory":y,"event.type":_,"event.subtype":m};return this.sendElementEvent(t,e)}sendMoveElementEvent(e){const t={"event.workflow":v,"event.subcategory":y,"event.type":_,"event.subtype":h};return this.sendElementEvent(t,e)}sendMoveLibraryEvent(e){const t={"event.workflow":v,"event.subcategory":b,"event.type":_,"event.subtype":h};return this.sendLibraryEvent(t,e)}sendPublishLibraryEvent(e){const t={"event.workflow":v,"event.subcategory":b,"event.type":_,"event.subtype":g};return this.sendLibraryEvent(t,e)}sendUpdateElementEvent(e){const t={"event.workflow":v,"event.subcategory":y,"event.type":_,"event.subtype":p};return this.sendElementEvent(t,e)}sendElementEvent(e,t,r={}){var n;return null===(n=t.committed)||void 0===n?void 0:n.then((()=>{const n=Object.assign({},this.getElementPayload(t),e);0!==Object.keys(r).length&&this.addExtraMetrics(n,r),this.sendEvent(n)})).catch((()=>{}))}sendLibraryEvent(e,t,r={}){var n;return null===(n=t.committed)||void 0===n?void 0:n.then((()=>{const n=Object.assign({},this.getLibraryPayload(t),e);0!==Object.keys(r).length&&this.addExtraMetrics(n,r),this.sendEvent(n)})).catch((()=>{}))}sendEvent(e){try{a.Z.log("Operational Event: "+JSON.stringify(e)),this.operationalIngestClient.postEvent(e)}catch(e){l.Tb(e),a.Z.log("Error sending Operational Event: "+e)}}}},15909:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n=r(99386),i=r(47320),o=r(50777),a=r(53849),s=r(93028),c=r(84074),l=r(76485),u=r(51461),p=r(86351),d=r(16993),h=r(31870),f=r(46903),m=r(84824);class g{constructor(){this._editRequestRefs={},this._chooseRequestRef=void 0}setEditRequestRef(e,t){e&&(this._editRequestRefs[e]=t)}getEditRequestRef(e){return this._editRequestRefs[e]}clearEditRequestRef(e){delete this._editRequestRefs[e]}setChooseRequestRef(e){this._chooseRequestRef=e}getChooseRequestRef(){return this._chooseRequestRef}}function v(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 y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */b=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function _(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){_(o,n,i,a,s,"next",e)}function s(e){_(o,n,i,a,s,"throw",e)}a(void 0)}))}}function w(e){const t=i.Z.findUsableRepresentation(e);return t?t.getContentPath():e.getThumbnailPath()}const L=new class{constructor(){this._appRequestManager=new g,this._listenerManager=(0,p.N)(this,["elementDropped"])}invokeChooseElement({requestRef:e,elementRef:t,elementName:r,operation:i,elementType:o}){var c=this;return E(b().mark((function l(){var u,p,h;return b().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(c._appRequestManager.setChooseRequestRef(e),!t){l.next=6;break}return l.next=4,s.ZP.resolveElementReference(t);case 4:u=l.sent,r=r||u&&u.name;case 6:p=n.Z.currentProduct.customOverlayMessage&&n.Z.currentProduct.customOverlayMessage(i,o),"place"===i?d.Z.setRelinkLayerMode({message:(0,m.Iu)("DL_RELINK_PLACE_MESSAGE"),actionMessage:(0,m.Iu)("DL_PLACE"),missing:!1,overlayMessage:p||(0,m.Iu)("DL_RELINK_PLACE_OVERLAY_MESSAGE")},o):d.Z.setRelinkLayerMode({message:(0,m.Iu)("DL_RELINK_"+i.toUpperCase()+"_MESSAGE",{elementName:r}),actionMessage:(0,m.Iu)("DL_RELINK"),missing:t&&!u,overlayMessage:p||(0,m.Iu)("DL_RELINK_RELINK_OVERLAY_MESSAGE")},o),((h=a.Z.selection).length>1||h[0]&&h[0].type!==n.Z.IMAGE_ELEMENT_TYPE)&&a.Z.clearSelection();case 10:case"end":return l.stop()}}),l)})))()}cancelChooseElement(){d.Z.resetMode()}openElementForEdit({elementRef:e,requestRef:t}){var r=this;return E(b().mark((function n(){var o,c;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.ZP.resolveElementReference(e);case 2:if((o=n.sent)&&(0,f.ix)(o)){n.next=5;break}return n.abrupt("return");case 5:r._appRequestManager.setEditRequestRef(e,t),(c=i.Z.getEditOperations(o).find((e=>e.onEditItem)))&&(u.ZP.reportElementEvent("Operations","Edit","click","start",o),a.Z.revealElement(o),c.apply());case 8:case"end":return n.stop()}}),n)})))()}revealElement({elementRef:e}){return E(b().mark((function t(){var r;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.ZP.resolveElementReference(e);case 2:r=t.sent,a.Z.revealElement(r);case 4:case"end":return t.stop()}}),t)})))()}reportElementLinkCreated({elementRef:e,cause:t}){return E(b().mark((function r(){var n;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.ZP.resolveElementReference(e);case 2:(n=r.sent)&&u.ZP.reportCreateLink(n,t||"createElement");case 4:case"end":return r.stop()}}),r)})))()}reportElementDropped({elementRef:e,details:t,linked:r,x:n,y:o}={}){var a=this;return E(b().mark((function c(){var l,p;return b().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return a._listenerManager.notify("elementDropped",{elementRef:e,details:t,linked:r,x:n,y:o}),c.next=3,s.ZP.resolveElementReference(e);case 3:if(l=c.sent,p=l&&i.Z.findUsableRepresentation(l)){c.next=7;break}return c.abrupt("return");case 7:u.ZP.reportUseElement(p,"dragDrop",t),("string"==typeof r?"true"===r.toLowerCase():r)&&u.ZP.reportCreateLink(l,"dragDrop");case 10:case"end":return c.stop()}}),c)})))()}createLibrary({name:e,enforceUniqueName:t,makeCurrent:r}){let n=e||(0,m.Iu)("DL_DEFAULT_LIBRARY_NAME");if(t){const e=s.ZP.libraries.filter((e=>!e.isDeletedFromServer)).map((e=>e.name)),t=n;let r=2;for(;e.includes(n);)n=t+" "+r++}const i=s.ZP.createLibrary(n);return i&&r&&(c.ZP.closeDialog(),d.Z.resetMode(),s.ZP.currentLibrary=i),i}setCurrentLibrary({libraryId:e}){s.ZP.waitForInitialLoad().then((()=>{const t=s.ZP.getLibraryById(e);t&&(d.Z.resetMode(),s.ZP.currentLibrary=t)}))}invokeVisualSearch({imagePath:e,deleteFileAfterUse:t}){d.Z.setFindSimilarSearchMode(void 0,void 0,e,t)}launchCaptureWorkflow({assetType:e,imageUriList:t}){d.Z.resetMode(),o.x3(e,t)}startDragFromProduct(e){d.Z.startDragFromProduct(e)}endDragFromProduct(){d.Z.endDragFromProduct()}_getElementEventData(e,t,r){const n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({elementRef:e.getLegacyReference(),name:e.name,libraryName:e.library.name,modifiedTime:(0,f.RW)(e),creationTime:e.created,data:[t]},r);return h.Jw(e)&&(n.adobeStock={id:h.wq(e),license:h.kv(e)}),n}startListening(){l.Z.connectProductInterface(this)}stopListening(){l.Z.disconnectProductInterface()}sendElementCreated(e,t){l.Z.notifyElementCreated&&w(e).then((r=>{const n=t||{},i=n.documentId,o=n.layerIds,a=this._getElementEventData(e,r,{appMetadata:t,documentId:i,layerIds:o});l.Z.notifyElementCreated(a)}))}sendElementChosen(e){if(!l.Z.notifyElementChosen)return;const t=this._appRequestManager.getChooseRequestRef();e?w(e).then((r=>{const n=this._getElementEventData(e,r,{requestRef:t});l.Z.notifyElementChosen(n)})):l.Z.notifyElementChosen({requestRef:t})}sendElementUpdated(e){if(!e||!l.Z.notifyElementUpdated)return;const t=e.element,r=t.getLegacyReference(),n=this._appRequestManager.getEditRequestRef(r);e.getContentPath().then((e=>{const r=this._getElementEventData(t,e,{requestRef:n});l.Z.notifyElementUpdated(r)}))}elementEditCompleted(e){u.ZP.reportElementEvent("Operations","Edit","render","success",e);const t=e.getLegacyReference();this._appRequestManager.clearEditRequestRef(t)}}},96912:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(86351);const i="vulcan.SuiteMessage.";class o{constructor(){this._listenerManager=(0,n.N)()}init(){}get _vulcanPrefix(){return i}get ccLibProcessSpecifier(){return"cclibraries"}get ccLibProcessSAPCode(){return"LIBS"}handlePortDiscoveryCall(e,t,r,n){let o;e=e.replace(i,""),r=r.replace(i,"");const a=e=>{this.removeMessageListener(r,a),clearTimeout(o),n(e?e.payload?e.payload:e:"NO_VULCAN_MESSAGE")};this.addMessageListener(r,a),o=setTimeout(a,3e3),this.sendMessage(e,t)}call({requestType:e,responseType:t,payload:r="",timeout:n=3e3}){return new Promise(((i,o)=>{let a=null;const s=(e,r)=>{if(a){if(this.removeMessageListener(t,s),clearTimeout(a),a=null,r)return o(new Error("timed-out"));i(e)}};this.addMessageListener(t,s),a=setTimeout((()=>s(null,!0)),n),this.sendMessage(e,r)}))}}},84074:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>m,aS:()=>f});var n,i,o,a,s,c=r(50265),l=r(76485),u=r(89526);function p(){return p=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},p.apply(this,arguments)}function d(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 h(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let f=(n=c.observable.ref,o=h((i=class{constructor(){this._dialogs={},d(this,"_currentDialog",o,this),d(this,"_openDialog",a,this),d(this,"_closeDialog",s,this),this.openDialog=(e,t,r)=>{this._openDialog(e,t,r)},this.closeDialog=()=>{this._closeDialog()}}init(e){e.forEach((e=>e&&this.register(e)))}register(e){this._dialogs[e.dialogName]=e}get dialog(){const e=this._currentDialog;if(e&&(null===l.Z||void 0===l.Z||!l.Z.dialogOverrides||!l.Z.dialogOverrides[e.name])){const t=this._dialogs[e.name];return!t.canDisplay||t.canDisplay()?u.createElement(t,p({},e.params||{},{close:this.closeDialog})):void 0}}get isDialogAlwaysInline(){const e=this._currentDialog,t=e&&this._dialogs[e.name];if(t)return t.isAlwaysInline}get isTour(){const e=this._currentDialog,t=e&&this._dialogs[e.name];if(t)return t.isTour}get dialogName(){if(this._currentDialog)return this._currentDialog.name}get dialogs(){return this._dialogs}}).prototype,"_currentDialog",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=h(i.prototype,"_openDialog",[c.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t,r)=>{var n;if(null===(n=l.Z.hideDialog)||void 0===n||n.call(l.Z),!this._dialogs[e])throw new Error(`Open Dialog: Dialog of type ${e} does not exist.`);if(l.Z.dialogOverrides&&l.Z.dialogOverrides[e])return this._currentDialog={name:e,params:t},l.Z.dialogOverrides[e](t,{close:[()=>{this._currentDialog=void 0}]});this._currentDialog={name:e,params:t},this._onCloseCallback=r}}}),s=h(i.prototype,"_closeDialog",[c.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this._currentDialog=void 0,this._onCloseCallback&&this._onCloseCallback(),this._onCloseCallback=void 0}}}),h(i.prototype,"dialog",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"dialog"),i.prototype),h(i.prototype,"isDialogAlwaysInline",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"isDialogAlwaysInline"),i.prototype),h(i.prototype,"isTour",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"isTour"),i.prototype),i);const m=new class extends f{constructor(...e){super(...e),this.openDialog=(e,t,r)=>{super._openDialog(e,t,r),l.Z.addEventListener("canvasClick",this.closeDialog)},this.closeDialog=()=>{super._closeDialog(),l.Z.removeEventListener("canvasClick",this.closeDialog)}}}},80804:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(76485),i=r(34038);const o=new RegExp(/^.*_([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}).*$/);const a=new class{constructor(){this._nextListenerId=0,this._listenerMap={},this._onDocumentStateChangeEvent=({type:e,path:t})=>{Object.keys(this._listenerMap).forEach((r=>{const i=this._listenerMap[r],o=i.tempFileId||i.fileName;t.includes(o)&&("deactivated"===e?n.Z.isDocumentOpen(i.path).then((e=>!e&&i.callback("closed"))):"closed"===e?i.callback("closed"):"saved"===e&&this._updateModifiedTimestamp(i)&&i.callback("saved"))}))}}_getNewListenerId(){return"documentListener"+this._nextListenerId++}_updateModifiedTimestamp(e){let t;if(e.path){const r=i.g5(e.path);t=r&&r.mtime}const r=!e.mtime||!t||e.mtime.getTime()!==t.getTime();return e.mtime=t,r}_ensureListener(){if(!n.Z.addDocumentChangeListener)return;const e=Object.keys(this._listenerMap).length;1===e?n.Z.addDocumentChangeListener(this._onDocumentStateChangeEvent):0===e&&n.Z.removeDocumentChangeListener(this._onDocumentStateChangeEvent)}startListening(e,t,r){if(Object.keys(this._listenerMap).some((e=>this._listenerMap[e].path===t)))return;const n=o.exec(t),i=n&&n[1],a={fileName:e,path:t,tempFileId:i,callback:r},s=this._getNewListenerId();return this._updateModifiedTimestamp(a),this._listenerMap[s]=a,this._ensureListener(),s}stopListening(e){this._listenerMap[e]&&(delete this._listenerMap[e],this._ensureListener())}}},69923:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(48919),i=r(91854);class o{constructor(e){this._activate=()=>{i.Z.handleHoldDragStart(this)},this._groupActivateTimeout=null,this._dropTarget=e}get x(){return this._dropTarget.x}get y(){return this._dropTarget.y}get width(){return this._dropTarget.width}get height(){return this._dropTarget.height}get group(){return this._dropTarget.group}get mainDropTarget(){return this._dropTarget.mainDropTarget}get viewState(){return n.Z.panel.viewState}get isHoldingDrag(){var e;return i.Z.isHoldingDragOverGroup(this.group)||(null===(e=this.mainDropTarget)||void 0===e?void 0:e.isHoldingDrag)}onDrop(){throw"You need to implement this in the subclass."}onActivate(){this.group&&this.group.id&&(this._groupActivateTimeout=setTimeout(this._activate,1e3))}onDeactivate(){clearTimeout(this._groupActivateTimeout),i.Z.handleHoldDragEnd()}}},99987:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(69923),i=r(46903),o=r(51461),a=r(93028),s=r(48919),c=r(69233),l=r(99386);class u extends n.Z{constructor(...e){super(...e),this._groupPopoverTrigger=0}get type(){return"element"}get beforeElement(){return this._dropTarget.beforeElement}get afterElement(){return this._dropTarget.afterElement}get isRowEnd(){return this._dropTarget.isRowEnd}isValidDropTarget(e){const t=e&&e.length>0&&[...new Set(e.map((e=>e.getGroups&&e.getGroups()[0])))],r=e&&Array.isArray(e)&&e.find((e=>e.library&&e.library.isDocumentAssets)),n=l.Z.currentProduct.config.readOnlyGroups;return!(r&&!(0,c.mB)(t,this.group)||n)&&(e.length>1||e[0]!==this._dropTarget.afterElement&&e[0]!==this._dropTarget.beforeElement)}onDrop(e,t,r=!1){t&&t.altKey?(0,i.IO)(!1,e,a.ZP.currentLibrary).then((e=>{this._dropElements(e)})):this._dropElements(e,r)}_dropElements(e,t=!1){if(!e||0===e.length)return;if(!this.group)return this._handleDropOnType(t);if("*"===this.group.id){if(e.every((e=>0===e.getGroups().length)))return;return o.ZP.reportEvent("Element Operations","Element","click","ungroup",{event:{value:"agg",count:e.length},content:{category:"Drag Drop"}},a.ZP.currentLibrary),o.ZP.setExtraEventMetrics("updateElement",{subtype:"ungroup",content:{category:"Drag Drop"}}),void(0,i.c_)(e)}const r=e.every((e=>!!e.getOrderInGroup(this.group)))?"order":"add-to-group";o.ZP.reportEvent("Element Operations","Element","click",r,{event:{value:"agg",count:e.length},content:{category:"Drag Drop"}},a.ZP.currentLibrary),o.ZP.setExtraEventMetrics("updateElement",{subtype:r,content:{category:"Drag Drop"}});const n="order"!==s.Z.panel.viewState.elementSortState;!this.afterElement&&!this.beforeElement||n?(n&&(e=e.filter((e=>!e.getOrderInGroup(this.group)))),(0,i.c_)(e,this.group)):(0,i.l)(e,this.afterElement,this.beforeElement),this.onDeactivate()}_handleDropOnType(e=!1){if(this._groupPopoverTrigger++,!(this._groupPopoverTrigger<l.Z.DRAG_COUNT_TRIGGER_MAX))return e||l.Z.currentProduct.config.showCustomGroupViewPopover?void(l.Z.currentProduct.config.showCustomGroupViewPopover&&(this._groupPopoverTrigger=0,l.Z.currentProduct.config.showCustomGroupViewPopover())):(this._groupPopoverTrigger=0,s.Z.panel.dialogManager.openDialog("viewByGroupPopover"))}}},91854:(e,t,r)=>{"use strict";r.d(t,{Z:()=>F});var n=r(50265),i=r(16993),o=r(99386),a=r(31870),s=r(6739),c=r(93028),l=r(84074),u=r(84824),p=r(76485),d=r(4784),h=r(47320),f=r(46753),m=r(15909),g=r(98218),v=r(48919);function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class _{constructor(e){this._handleElementDropped=e=>{const t=this.dragEndState||this._dragManager.dragData;t.dragDropEvent=e,t.elementDroppedEventReceived=!0,m.Z.removeListener("elementDropped",this._handleElementDropped)},this._dragManager=e}_validateCreateElementPreconditions(e){const t=i.Z.stockSearchState.isOnLine;if(""!==e.is_licensed&&!t){const t=a.BG(e.media_type_id,e.content_type);return p.Z.showError((0,u.Iu)(`DL_STOCK_PURCHASE_OFFLINE_ERROR${a.Y8({type:t})}`)),!1}return!1===c.ZP.currentLibrary.isWritable?(p.Z.showError((0,u.Iu)("DL_STOCK_DRAGDROP_READONLY_LIB_MSG")),!1):!!d.Z.canAddElements(c.ZP.currentLibrary)||(p.Z.showError((0,u.Iu)("DL_DESIGN_LIBRARY_HAS_LIMIT")),!1)}_getLicenseType(e){const t=a.BG(e.media_type_id,e.content_type);return h.Z.isStockMultiLicense(t,e.is_premium,e.is_editorial)?a.ST(e)[0].field:o.Z.STOCK_LICENSE_TYPE_STANDARD}_createElement(e,t){const r=c.ZP.currentLibrary,n=a.BG(e.media_type_id,e.content_type);if(!this._validateCreateElementPreconditions(e))return{};const i=o.Z.currentProduct.config.stockDragFormat||"png",s=a.u$(e);let u={},d={};p.Z.supportsFileSystem&&(u=(0,f.b)(t,c.ZP.tempDir),d=(0,f.b)(t,c.ZP.tempDir,s,i));const m=a.Qj({library:r,elementType:n,asset:e,thumbnailDetails:u,licenseType:this._getLicenseType(e)}),g=m.promise,v=m.element;g.catch((()=>{l.ZP.openDialog("stockError",{title:"DL_STOCK_SAVE_UNKNOWN_ERROR_TITLE",message:"DL_STOCK_SAVE_UNKNOWN_ERROR"})}));const y=h.Z.getStockDragData(v,e,d);return this._dragManager.dragData.didCreateElement=!0,{promise:g,element:v,draggedData:y}}handleDragStart(e){var t,r=this;return(t=y().mark((function t(){var n,i,l,u,d,f,b,_,E,w,L,x;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.dragStartEvent,i=e.asset,l=e.imageElement,u=i.is_licensed&&""!==i.is_licensed,d=a.BG(i.media_type_id,i.content_type),h.Z.isStockAssetDraggable(d)){t.next=5;break}return t.abrupt("return");case 5:if((f=a.tX(i.id,c.ZP.currentLibrary))?(_=h.Z.getDragData(f))&&delete _.usedRepresentationForAnalytics:(E=r._createElement(i,l),_=E.draggedData,f=E.element,b=E.promise,e.didCreateElement=!0,e.currentlyDraggedElementPromise=b),f){t.next=9;break}return t.abrupt("return");case 9:if(e.currentlyDraggedElement=f,f.type===o.Z.VIDEO_ELEMENT_TYPE){t.next=14;break}return null===(w=n.persist)||void 0===w||w.call(n),t.next=14,f.committed;case 14:_&&(_.path=_.data[0]),u&&f&&(L=v.Z.libraryManager.userId,(0,s.c)(L,i)),m.Z.addListener("elementDropped",r._handleElementDropped),x={source:o.Z.DRAGDROP_SOURCE,version:g.Z.getPluginVersion(),assetList:[_]},n.dataTransfer.setData(p.Z.ElementDragId,JSON.stringify(x));case 19:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))})()}cleanup(){m.Z.removeListener("elementDropped",this._handleElementDropped),delete this.dragEndState}handleDragEnd(e){this.dragEndState=e;const t=this.dragEndState.dragEndEvent;if(!this.dragEndState.didCreateElement)return void this.cleanup();const r=t.clientX<0||t.clientX>p.Z.getPanelWidth()||t.clientY<0||t.clientY>p.Z.getPanelHeight(),n=()=>{this.dragEndState.currentlyDraggedElement.library.removeElement(this.dragEndState.currentlyDraggedElement,!0),this.cleanup()},i=()=>{p.Z.handleDroppedStockElement&&p.Z.handleDroppedStockElement(this.dragEndState).then((()=>{this.cleanup()}))};o.Z.currentProduct.config.useMouseEventToDetectDrop?r||p.Z.isWindowsOS()?i():n():setTimeout((()=>{this.dragEndState.elementDroppedEventReceived?i():n()}),this.dragEndState.elementDroppedEventReceived?0:1e3)}dispose(){m.Z.removeListener("elementDropped",this._handleElementDropped)}}var E,w,L,x,S,O,T,I,P,C=r(26981),A=r(74149),k=r(25585),D=r(46903),N=r(26964);function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}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 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 Z(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const F=new(E=n.observable.ref,w=n.observable.ref,L=n.observable.ref,x=n.observable.ref,O=Z((S=class{constructor(){j(this,"_dragData",O,this),j(this,"_dragType",T,this),j(this,"_activeDropTarget",I,this),j(this,"_holdingDropTarget",P,this),this._hooks={},this._handleGlobalDrop=()=>{this._reportAppliedElement(),this.handleDragEnd()},this._handleDragOver=e=>{const t=e.clientX,r=e.clientY;if(0===t&&0===r)this._dragClone&&(this._dragClone.style.visibility="hidden"),this.setActiveDropTarget();else if(this._dragClone){const e=this._dragClone.parentNode&&this._dragClone.parentNode.getBoundingClientRect()||{},n=e.x||e.left||0,o=e.y||e.top||0,a="list"===i.Z.viewState||"group"===this._dragType?25:this._dragClone.clientWidth/2+n,s=this._dragClone.clientHeight/2+o;this._dragClone.style.visibility="visible",this._dragClone.style.left=t-a+"px",this._dragClone.style.top=r-s+"px"}},this.registerHook("stock",new _(this))}get dragData(){return this._dragData}get dragType(){return this._dragType}get activeDropTarget(){return this._activeDropTarget}get holdingDropTarget(){return this._holdingDropTarget}isHoldingDragOverGroup(e){if(this._holdingDropTarget)return e===this._holdingDropTarget.group}registerHook(e,t){this._hooks[e]=t}dispose(){Object.keys(this._hooks).forEach((e=>this._hooks[e].dispose()))}handleDragStart(e,t,r){if(this._dragType=e,this._dragData=t,r){const e=document.createElement("div");e.setAttribute("data-test-id","panel-ghost-clone"),e.id="panel-ghost-clone",e.style.position="absolute",e.style.visibility="hidden",e.style.pointerEvents="none",r(e),this._dragClone=e.getRootNode().querySelector("#panel-ghost-clone"),document.body.addEventListener("dragover",this._handleDragOver),document.body.addEventListener("dragleave",this._handleDragOver)}document.addEventListener("drop",this._handleGlobalDrop),this._hooks[e]&&this._hooks[e].handleDragStart(t)}handleDrop(e){const t=this._activeDropTarget,r=this._dragData;if(this.handleDragEnd(),!t||!t.isValidDropTarget(r))return;const n=r&&r[0]&&r[0].data||{};if((0,C.SF)(n)){if(!(n.assetList&&n.assetList.length>0))return;const r=(({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n})=>({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n}))(e);return void(o.Z.currentProduct.dropHandler?o.Z.currentProduct.dropHandler(n,r):Promise.reject()).catch((()=>(0,C.rr)(n,c.ZP.currentLibrary))).then((e=>{t.onDrop(Array.isArray(e)?e:[e],void 0,!0)}))}const i=e&&e.dataTransfer&&e.dataTransfer.types||[];if(!(0,C.gc)(i))return void t.onDrop(r);e.preventDefault();(p.Z.getDragFileList?p.Z.getDragFileList.bind(p.Z,e.dataTransfer):()=>Promise.resolve(e.dataTransfer.files))().then((e=>{e=Array.from(e);const r=t&&t.group;if(r){const n=t.afterElement&&t.afterElement.getOrderInGroup(r),i=t.beforeElement&&t.beforeElement.getOrderInGroup(r),o=(0,k.Tg)(e.length,i,n);e.forEach(((e,t)=>e.group={id:r.id,order:o[t]}))}(0,A.Bq)(c.ZP.currentLibrary,e)})).catch((e=>N.Z.log(e)))}handleDragEnd(e){e&&Object.assign(this._dragData,e),this._hooks[this._dragType]&&this._hooks[this._dragType].handleDragEnd(this._dragData),this._dragClone&&this._dragClone.remove(),this._dragData=null,this._dragType="",this.setActiveDropTarget(),this.handleHoldDragEnd(),document.removeEventListener("drop",this._handleGlobalDrop),document.body.removeEventListener("dragover",this._handleDragOver),document.body.removeEventListener("dragleave",this._handleDragOver)}handleHoldDragStart(e){const t=e.group;i.Z.isGroupCollapsed(t.id)&&i.Z.setGroupCollapsed(t.id,!1),e!==this._holdingDropTarget&&this._setHoldingDropTarget(e)}handleHoldDragEnd(){this._setHoldingDropTarget(null)}_setHoldingDropTarget(e){this._holdingDropTarget=e}setActiveDropTarget(e){if(this._activeDropTarget!==e){var t,r,n,i;if(this._activeDropTarget&&(!this._activeDropTarget.isHoldingDrag||!e))null===(t=(r=this._activeDropTarget).onDeactivate)||void 0===t||t.call(r);if(this._activeDropTarget=e,this._activeDropTarget&&!this._activeDropTarget.isHoldingDrag)null===(n=(i=this._activeDropTarget).onActivate)||void 0===n||n.call(i)}}_reportAppliedElement(){if("element"===this.dragType){var e,t=R(this.dragData);try{for(t.s();!(e=t.n()).done;){const t=e.value,r=h.Z.findUsableRepresentation(t),n=r||t.getPrimaryRepresentation();(0,D.vM)(n,"dragDrop")}}catch(e){t.e(e)}finally{t.f()}}}}).prototype,"_dragData",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=Z(S.prototype,"_dragType",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),I=Z(S.prototype,"_activeDropTarget",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=Z(S.prototype,"_holdingDropTarget",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z(S.prototype,"handleDragStart",[n.action],Object.getOwnPropertyDescriptor(S.prototype,"handleDragStart"),S.prototype),Z(S.prototype,"handleDrop",[n.action],Object.getOwnPropertyDescriptor(S.prototype,"handleDrop"),S.prototype),Z(S.prototype,"handleDragEnd",[n.action],Object.getOwnPropertyDescriptor(S.prototype,"handleDragEnd"),S.prototype),Z(S.prototype,"handleHoldDragStart",[n.action],Object.getOwnPropertyDescriptor(S.prototype,"handleHoldDragStart"),S.prototype),Z(S.prototype,"handleHoldDragEnd",[n.action],Object.getOwnPropertyDescriptor(S.prototype,"handleHoldDragEnd"),S.prototype),Z(S.prototype,"setActiveDropTarget",[n.action],Object.getOwnPropertyDescriptor(S.prototype,"setActiveDropTarget"),S.prototype),S)},18580:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n=r(99386),i=r(98218),o=r(76325),a=r(26964),s=r(30131);function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(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 h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function l(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){l(o,n,i,a,s,"next",e)}function s(e){l(o,n,i,a,s,"throw",e)}a(void 0)}))}}function p(e,t,r,n){return d.apply(this,arguments)}function d(){return(d=u(c().mark((function e(t,r,n,l){var u,p,d,h,f,m,g,v,y,b;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.Z.getAccessToken(t);case 3:if(h=e.sent){e.next=6;break}throw new Error("Invalid Token");case 6:return f=null==l?void 0:l.email,m=null==l||null===(u=l.projectedProductContext)||void 0===u||null===(p=u[0])||void 0===p||null===(d=p.prodCtx)||void 0===d?void 0:d.owningEntity,g=(0,s._y)(r,f,m),v={method:n,headers:{"x-api-key":o.Z.getEnvironment().clientId,"Content-Type":"application/json",Authorization:`Bearer ${h}`,"User-Agent":i.Z.getUserAgent()}},e.next=12,fetch(g,v);case 12:if(200===(y=e.sent).status){e.next=19;break}return e.next=16,y.text();case 16:throw b=e.sent,a.Z.log(`Error: Response from Floodgate= ${b}`),new Error("Unable to fetch data");case 19:return e.abrupt("return",y.json());case 22:return e.prev=22,e.t0=e.catch(0),a.Z.log(`[FloodgateRest._fetchFloodgateService] ${e.t0}`),e.abrupt("return",{});case 26:case"end":return e.stop()}}),e,null,[[0,22]])})))).apply(this,arguments)}function h(e,t,r){return f.apply(this,arguments)}function f(){return(f=u(c().mark((function e(t,r,n){var i,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(t,r,"GET",n);case 2:return i=e.sent,o=i.releases,e.abrupt("return",Array.isArray(o)?o.map((e=>e?e.features:e)).flat():[]);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var m,g,v,y=r(50265),b=r(76485);function _(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function E(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function w(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 L(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const x=new(g=L((m=class{constructor(){w(this,"_featuresSet",g,this),this._currentUserId=void 0,this._initialized=!1,w(this,"_loaded",v,this)}init(e){var t,r=this;return(t=_().mark((function t(){var i,o,s;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:if(i=r._currentUserId!==e,!r._initialized||i){t.next=5;break}return t.abrupt("return");case 5:if(r._currentUserId=e,r._initialized=!0,t.prev=7,!b.Z.getIMSProfile){t.next=14;break}return t.next=11,b.Z.getIMSProfile();case 11:t.t0=t.sent,t.next=15;break;case 14:t.t0={};case 15:return o=t.t0,t.next=18,Promise.all([h(r._currentUserId,n.Z.FLOODGATE_CLIENT_ID,o),h(r._currentUserId,n.Z.FLOODGATE_LIBRARIES_CLIENT_ID,o),h(r._currentUserId,n.Z.FLOODGATE_BRANDS_CLIENT_ID,o)]).then((e=>e.reduce(((e,t)=>e.concat(t)),[])));case 18:return s=t.sent,r._featuresSet=new Set(s),r._loaded=!0,t.abrupt("return",r._featuresSet);case 24:t.prev=24,t.t1=t.catch(7),r._initialized=!1,r._loaded=!0,a.Z.log(`[FloodgateManager.init] ${t.t1}`);case 29:case"end":return t.stop()}}),t,null,[[7,24]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){E(o,n,i,a,s,"next",e)}function s(e){E(o,n,i,a,s,"throw",e)}a(void 0)}))})()}hasLoaded(){return this._loaded}hasFeature(e){var t;return null===(t=this._featuresSet)||void 0===t?void 0:t.has(e)}isStyleguideEnabled(){return this.hasFeature("cc_styleguides")}isBrandLifecycleEnabled(){return this.hasFeature("ubs.brand_lifecycle")}}).prototype,"_featuresSet",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=L(m.prototype,"_loaded",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m)},8733:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,i,o,a,s=r(99386),c=r(76485),l=r(86351),u=r(50265);function p(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 d(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const h=new(n=u.observable.ref,o=d((i=class{constructor(){p(this,"_layerInfo",o,this),this._listening=!1,this._lastSelectionChange=0,this._currentDocumentPath=void 0,p(this,"_hasCurrentDocument",a,this),this.stopListening=function(){this._listening=!1},this.getLayerInfo=function(){return this._layerInfo},this._listenerManager=(0,l.N)(this,["layerSelectionChanged"])}updateLayerInfo(){return this._updatingPromise||(this._updatingPromise=c.Z.getLayerInfo().then((e=>(delete this._updatingPromise,this._layerInfo=e,this._listenerManager.notify("layerSelectionChanged",this._layerInfo),this._layerInfo)),(()=>{delete this._updatingPromise}))),this._updatingPromise}_getDocumentState(){c.Z.getCurrentDocumentState().then((e=>{this._currentDocumentPath=void 0,this._hasCurrentDocument=!1,e&&(this._currentDocumentPath=e.path,this._hasCurrentDocument=-1!==e.layerID,this.updateLayerInfo())}))}handleSelectionChange(){this._listening&&(clearTimeout(this._selectionChangeTimeout),this._selectionChangeTimeout=setTimeout((()=>this._getDocumentState()),s.Z.SELECTION_CHANGE_THROTTLE))}startListening(){this._listening=!0,this._getDocumentState()}getLayerName(){return c.Z.getLayerName()}getCurrentDocumentName(){if(this._currentDocumentPath&&this._currentDocumentPath.length>0)return this._currentDocumentPath.indexOf("/")>-1?this._currentDocumentPath.substring(this._currentDocumentPath.lastIndexOf("/")+1):this._currentDocumentPath.substring(this._currentDocumentPath.lastIndexOf("\\")+1)}getCurrentDocumentPath(){return this._currentDocumentPath}hasDocumentOpen(){return this._hasCurrentDocument}}).prototype,"_layerInfo",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=d(i.prototype,"_hasCurrentDocument",[u.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i)},93028:(e,t,r)=>{"use strict";r.d(t,{pA:()=>ot,ZP:()=>at});var n=r(10470),i=r(50265),o=r(69377);class a{constructor(e){this._onChange=()=>{this._changeAtom.reportChanged()},this._progressiveLoader=e,this._changeAtom=new i.Atom("change",(()=>{var e,t;return null===(e=(t=this._progressiveLoader).on)||void 0===e?void 0:e.call(t,"change",this._onChange)}),(()=>{var e,t;return null===(e=(t=this._progressiveLoader).off)||void 0===e?void 0:e.call(t,"change",this._onChange)}))}get results(){return this._changeAtom.reportObserved(),this._progressiveLoader.results}get isComplete(){return this._changeAtom.reportObserved(),this._progressiveLoader.isComplete}abort(){this._progressiveLoader.abort()}}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.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,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(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 h(){}function f(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,a,"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,f):(e.__proto__=f,c(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,a,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))}}var u,p,d,h,f,m=r(76325),g=r(72373),v=r(85834),y=r(99386),b=r(47320),_=r(17179),E=r(26964),w=r(51461),L=r(84074),x=r(81046),S=r(4784),O=r(76485),T=r(84824),I=r(79799),P=r(25585),C=r(46903);function A(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 k(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let D=(u=class{constructor(e){A(this,"_processState",p,this),A(this,"_isWorking",d,this),A(this,"_isLoadingCollections",h,this),A(this,"_retryInvalidator",f,this),this._libraryManager=e}_launchProcess(){I.Z.launchCCLibraryProcess()}_setProcessState(e){this._processState=e}reset(){this._setProcessState("loading"),clearTimeout(this._loadingTimeout),this._loadingTimeout=null,clearTimeout(this._loginTimeout),this._loginTimeout=null}establishConnectionWithProcess(){this._startProcessTimeout()}_startProcessTimeout(){this._launchProcess(),this._setProcessState("loading"),this._loadingTimeout=this._loadingTimeout||setTimeout((()=>{this._setProcessState(I.Z.isConnected()?"connected":"error"),delete this._loadingTimeout}),3e3)}get _isLoggedIn(){return this._libraryManager.isAppLoggedIn&&this._libraryManager.areLibrariesLoaded?"yes":this._libraryManager.areLibrariesLoading?"loading":"no"}get _connectionState(){if(I.Z.isConnected())return;const e={state:"error"};if(!I.Z.isProcessInstalled())return e.errorType="noService",e;const t=I.Z.getServiceInfo()||{};if("client"===t.updateRequired)return e.errorType="updateClient",e;if("server"===t.updateRequired)return e.errorType="updateServer",e;if("SIMPLE_HOSTNAME_GOING_TO_PROXY"===t.portDiagnosis){if(O.Z.isWindowsOS()){e.errorType="excludeHostnameWin10";const t=O.Z.getOSInformation();return-1===t.indexOf("Windows 7")&&-1===t.indexOf("Windows 8")||(e.errorType="excludeHostnameWin"),e}return e.errorType="excludeHostnameOSX",e}return"DNS_RESOLUTION_FAILED"===t.portDiagnosis?(e.errorType="verifyDnsSettings",e):"COULD_NOT_CONNECT_SOCKET"===t.portDiagnosis?(e.errorType="verifySocketConnection",e.showTestUrl=Boolean(t.connectionPort),e):("error"===this._libraryManager._ccLibraries.connectionState?e.errorType="serviceError":e.state="loading",e)}get _loginState(){return"no"===this._isLoggedIn?{state:"error",errorType:"loggedOut"}:"loading"===this._isLoggedIn?{state:"loading"}:void 0}get _secondsToRetry(){this._retryInvalidator;const e=this._libraryManager.retryTime-Date.now(),t=e>0&&(0,P.q8)(e);return t&&setTimeout((()=>this._retryInvalidator++),1e3),t}get _syncState(){const e={syncingLibraries:[]};return(()=>{if(this._libraryManager.commitError)return e.state="error",void(e.errorType="fs");if(!this._libraryManager.syncingEnabled())return e.state="error",void(e.errorType="syncDisabled");if(e.state=this._libraryManager.syncState||"syncing",e.syncProgress=this._libraryManager.syncProgress,delete e.errorType,"syncing"===e.state)return this._libraryManager.getNewLibrarySyncProgress().forEach((t=>{e.syncingLibraries.push({state:"downloading",progress:t.progress})})),void this._libraryManager.libraries.forEach((t=>{t.syncState&&e.syncingLibraries.push({state:t.syncState,progress:t.syncProgress,truncatedName:(0,P.aS)(t.name,15)})}));if("error"===e.state){const t=this._libraryManager.getPrimarySyncError(),r=this._libraryManager.getLibraryById(null==t?void 0:t.libraryId);if(t){if(e.errorType=(0,C.Y3)(t.code,this._libraryManager.errors,["incoming","team"].includes(null==r?void 0:r.ownership)),"general"!==e.errorType)return;if(r)return e.errorType="library",void(e.library=r)}e.retryDuration=this._secondsToRetry}})(),this._isWorking&&"syncing"!==e.state?{state:"working"}:e}get _accessState(){var e;return(null===(e=this._libraryManager.getPrimarySyncError())||void 0===e?void 0:e.code)===this._libraryManager.errors.ACCESS_DENIED?{state:"error",errorType:"noAccess"}:void 0}get _initialState(){if(!this._libraryManager.initialized)return!1===this._libraryManager.isAppLoggedIn?{state:"error",errorType:"appLoggedOut"}:{state:"loading"}}init(){(0,i.reaction)((()=>this.status),(e=>{"working"!==e.state&&(this._isWorking=!1),"connected"!==this._processState||I.Z.isConnected()?"error"===this._processState&&I.Z.isConnected()&&this._setProcessState("connected"):this._startProcessTimeout()})),this._startProcessTimeout()}get status(){return this._initialState||this._accessState||this._connectionState||this._loginState||this._syncState}showSyncSpinner(){this._libraryManager.syncingEnabled()&&(this._isWorking=!0)}get shutdownWarning(){var e;if("syncing"!==(null===(e=this.status)||void 0===e?void 0:e.state))return;return this.status.syncingLibraries.filter((e=>"uploading"===e.state)).length?(0,T.Iu)("DL_NAVIGATION_WARNING_SYNCING_IN_PROGRESS"):void 0}},p=k(u.prototype,"_processState",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"loading"}}),d=k(u.prototype,"_isWorking",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=k(u.prototype,"_isLoadingCollections",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),k(u.prototype,"_launchProcess",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"_launchProcess"),u.prototype),k(u.prototype,"_setProcessState",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"_setProcessState"),u.prototype),f=k(u.prototype,"_retryInvalidator",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),k(u.prototype,"_secondsToRetry",[i.computed],Object.getOwnPropertyDescriptor(u.prototype,"_secondsToRetry"),u.prototype),k(u.prototype,"status",[i.computed],Object.getOwnPropertyDescriptor(u.prototype,"status"),u.prototype),k(u.prototype,"shutdownWarning",[i.computed],Object.getOwnPropertyDescriptor(u.prototype,"shutdownWarning"),u.prototype),u);var N=r(69233),R=r(44914);function M(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(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 j(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}const Z=e=>{const t=e.getGroups().map((e=>({name:e.name})));return JSON.stringify(t)};function F(e,t,r,n){return new U(e,t,r,n)}function B(e,t){return new z(e,t)}class G{constructor(e,t,r,n){this._targetItems=e,this._sourceItems=t,this._sourceGroupTree=r,this._targetGroupTree=n,this._sourceMap=t.reduce(((e,t)=>(e[t.id]={source:t},e)),{}),this._newItems=[],this._unchangedItems=[],this._itemsToUpdate=[],this._itemsToDelete=[],this._itemsToDiff=[],this._computeDiff()}get newItems(){return this._newItems.sort(((e,t)=>this._sourceDepthMap.get(e.id)<this._sourceDepthMap.get(t.id)?-1:1))}get unchangedItems(){return this._unchangedItems}get itemsToUpdate(){return this._itemsToUpdate}get itemsToDelete(){return this._itemsToDelete}get hasChanges(){return!![this.newItems,this.itemsToUpdate,this.itemsToDelete].find((e=>e.length))}toString(){const e=t=>({name:t.name,type:t.type||"Group",id:t.id,groups:t.isElement&&t.getGroups().map(e)});return JSON.stringify({create:this.newItems.map(e),update:this.itemsToUpdate.map((t=>e(t.source))),delete:this.itemsToDelete.map(e)},null,2)}_visitItem(e){const t={},r=(0,C.a3)(e);let n,i;this._sourceMap[r]&&(n=this._sourceMap[r].source,i=this._sourceMap[r].visited),this._isDeleted(e,n,i)?this._itemsToDelete.push(e):n&&(t.target=e,t.source=n,this._ignore(e,n,i)||this._itemsToDiff.push({target:e,source:n}),this._sourceMap[n.id].visited=!0)}_computeDiff(){this._targetItems.forEach((e=>this._visitItem(e))),this._sourceItems.forEach((e=>{const t=this._sourceMap[e.id],r=t.source,n=t.target;t.visited||this._ignore(n,r)||this._newItems.push(e)}));const e=M(this._createOrderAndDepthMap(this._targetGroupTree,C.a3),1)[0],t=M(this._createOrderAndDepthMap(this._sourceGroupTree,(e=>e.id)),2),r=t[0],n=t[1];this._targetOrderMap=e,this._sourceOrderMap=r,this._sourceDepthMap=n,this._itemsToDiff.forEach((e=>{const t=e.source,r=e.target,n=this._diff(r,t);n||r.removed?(e.diff=n,this._itemsToUpdate.push(e)):this._unchangedItems.push(e)}))}_createOrderAndDepthMap(e,t){const r=new Map,n=new Map,i=e.branches,o=e.root;return i.root=o,Object.values(i).forEach((e=>{(e.children||[]).filter((({item:e})=>{const r=t(e),n=this._sourceMap[r];if(n){const e=n.source,t=n.target,r=n.visited;return!this._ignore(t,e,r)}return!e.removed})).forEach((({item:e},t)=>{r.set(e.id,t),n.set(e.id,i[e.id].depth)}))})),[r,n]}}class U extends G{constructor(e,t,r,n){super(e,t,(0,N.GI)(n),(0,N.GI)(r))}_diff(e,t){return t.instanceId!==(0,R.ss)(e)||t.name!==e.name?y.Z.ELEMENT_CHANGE_TYPE.CONTENT:Z(t)!==Z(e)||this._targetOrderMap.get(e.id)!==this._sourceOrderMap.get(t.id)?y.Z.ELEMENT_CHANGE_TYPE.GROUP:void 0}_assetTypeChanged(e,t){return t&&t.type!==e.type}_isDeleted(e,t,r){return!e.removed&&(!t||r||this._assetTypeChanged(e,t))}_ignore(e,t,r){if(e&&t)return e.removed&&(this._assetTypeChanged(e,t)||r)}}class z extends G{constructor(e,t){super(e,t,(0,N.Oi)([],t),(0,N.Oi)([],e))}_diff(e,t){if(t.name!==e.name)return y.Z.GROUP_CHANGE_TYPE.CONTENT;if(this._targetOrderMap.get(e.id)!==this._sourceOrderMap.get(t.id))return y.Z.GROUP_CHANGE_TYPE.GROUP;const r=t.parent||{},n=e.parent||{};return(0,C.a3)(n)!==r.id?y.Z.GROUP_CHANGE_TYPE.GROUP:void 0}_isDeleted(e,t){return!t||this._ignore(e,t)}_ignore(e,t){return t.isAppControlled&&(0,N.tl)(t)&&!t.parent}}var V;let H=(V=class{constructor(e){this._libraryManager=e}get status(){const e=this._assetsContainer,t=this._publishedLibrary,r=this._libraryManager.isPublishing,n=e=>v.Z.get("publishDiffLogging")&&E.Z.log(e);if(!e)return;if(this._isCoeditorPublishing)return this.states.COEDITOR_PUBLISHING;if(!t)return e.linkedLibraryId?this.states.NOT_FOUND:this.states.NOT_PUBLISHED;if(!t.areElementsLoaded)return this.states.LOADING;if(r)return this.states.PUBLISHING;if(e.elementCount!==t.elementCount)return n(`Element Count Mismatch: Document Library Element Count: ${e.elementCount}. Published Library Element Count: ${t.elementCount}.`),this.states.UNPUBLISHED_CHANGES;if(e.publishableGroupCount!==t.getGroupCount())return n(`Group Count Mismatch: Document Library Group Count: ${e.publishableGroupCount}. Published Library Group Count: ${t.getGroupCount()}.`),this.states.UNPUBLISHED_CHANGES;const i=B(t.getGroups(),e.getGroups());if(i.hasChanges)return n(`Group Mismatch: ${i}`),this.states.UNPUBLISHED_CHANGES;const o=F([...t.elements,...t.removedElements],e.elements,t,e);return o.hasChanges?(n(`Element Mismatch: ${o}`),this.states.UNPUBLISHED_CHANGES):this.states.PUBLISHED}get states(){return y.Z.DOCUMENT_LIBRARY_STATES}get _publishedLibrary(){return this._libraryManager.publishedDocumentLibrary}get _assetsContainer(){return this._libraryManager.documentAssetsContainer}get syncError(){if(this._publishedLibrary)return this._libraryManager.syncErrors.find((e=>e.libraryId===this._publishedLibrary.id))}get isPublished(){return[this.states.PUBLISHED,this.states.UNPUBLISHED_CHANGES].includes(this.status)}get isPublishedLibraryNotFound(){return this.status===this.states.NOT_FOUND}get isPendingUpdate(){return this.status===this.states.UNPUBLISHED_CHANGES}get isPublishing(){const e=this.status===this.states.PUBLISHING;return!this.syncError&&(e||this.isPublished&&!1===this._publishedLibrary.isPushedToServer)}get _isCoeditorPublishing(){return O.Z.isCoeditorPublishing}get isLoading(){return this.status===this.states.LOADING}get _canSaveDocToCloud(){return O.Z.isSavedCloudDocument||O.Z.canSaveDocToCloud}get _hasLibraryAccess(){return!this._publishedLibrary||this._publishedLibrary.isWritable}get _hasDocumentAccess(){return!O.Z.isSavedCloudDocument||O.Z.canEditDocument}get _isPaidUser(){return O.Z.isPaidUser}get _documentAssetsCount(){return this._libraryManager.documentAssetsContainer.elementCount}get _hasPublishableContent(){return this._documentAssetsCount>0||this.isPublished}get _isOversizedDocument(){return this._documentAssetsCount>this._libraryManager.MAX_ELEMENTS}get canPublish(){return!this._isOversizedDocument&&this._canSaveDocToCloud&&this._libraryManager.isOnline&&this._hasPublishableContent&&this._hasDocumentAccess&&this._hasLibraryAccess&&!this._isCoeditorPublishing&&!this.isPublishing}get canUpgrade(){return!this._isPaidUser&&this._canSaveDocToCloud&&this._libraryManager.isOnline&&this._hasDocumentAccess&&this._hasLibraryAccess}get disabledStatus(){if(this.canPublish&&this._isPaidUser)return;const e=y.Z.DISABLED_PUBLISH_STATES;return this._libraryManager.isOnline?this._hasDocumentAccess&&this._hasLibraryAccess?O.Z.hasAvailableStorage?this._canSaveDocToCloud?this._hasPublishableContent?this._isPaidUser?this._isCoeditorPublishing?e.COEDITOR_PUBLISHING:this._isOversizedDocument?e.MAX_ELEMENTS:void 0:e.UPGRADE:e.EMPTY:e.MISSING_STORAGE:e.QUOTA:e.READ_ONLY:e.OFFLINE}},Y=V.prototype,W="status",$=[i.computed],K=Object.getOwnPropertyDescriptor(V.prototype,"status"),q=V.prototype,X={},Object.keys(K).forEach((function(e){X[e]=K[e]})),X.enumerable=!!X.enumerable,X.configurable=!!X.configurable,("value"in X||X.initializer)&&(X.writable=!0),X=$.slice().reverse().reduce((function(e,t){return t(Y,W,e)||e}),X),q&&void 0!==X.initializer&&(X.value=X.initializer?X.initializer.call(q):void 0,X.initializer=void 0),void 0===X.initializer&&(Object.defineProperty(Y,W,X),X=null),V);var Y,W,$,K,q,X,J=r(97536),Q=r(30131),ee=r(16993),te=r(30460),re=r(36351),ne=r(47696),ie=r(10441),oe=r(87694),ae=r(87544),se=r(20290),ce=r(33275),le=r(48919),ue=r(18580),pe=r(98218);function de(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(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 he(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}const fe={sync:["POST",()=>`${me()}/v1/selections?locale=${O.Z.getLocale()}`],unsync:["DELETE",e=>`${me()}/v1/selections/${e}`],entitlements:["GET",e=>`${me()}/v1/variations/${e}/entitlement_workflows?purpose=sync&locale=${O.Z.getLocale()}`]};function me(){return"https://"+m.Z.getEnvironment().typekitHost}function ge(e,t,r){const n=de(fe[e],2),i=n[0],o=(0,n[1])(t,r);return function(e,t,r){const n=at.userId;return m.Z.getAccessToken(n).then((n=>{const i={Authorization:"Bearer "+n,"Content-Type":"application/json","X-Api-Key":m.Z.getEnvironment().clientId,Accept:"application/json"};O.Z.disableUserAgentHeaders||(i["User-Agent"]=pe.Z.getUserAgent());const o={method:e,url:t,headers:i};return"POST"===e&&(o.body=JSON.stringify(r)),E.Z.log("Typekit Font request - url: "+t+" data: "+r),o})).catch((e=>(E.Z.log("Error getting access token: TypekitUtils , result="+JSON.stringify(e)),Promise.reject(e))))}(i,o,[t]).then((e=>fetch(new Request(o,e)))).then((e=>{if(200!==e.status){if(204===e.status&&"DELETE"===i)return;return e.json().then((e=>Promise.reject(e)))}return e.json()}))}var ve,ye,be,_e,Ee;function we(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 Le(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let xe=(ve=i.observable.ref,be=Le((ye=class{constructor(e,t){we(this,"_fontSyncing",be,this),we(this,"_variationDetails",_e,this),we(this,"_isLoading",Ee,this),this._postScriptName=e,this._getFontDataFromProcess=t,this.refresh()}_getFontData(e){return e().catch((e=>{E.Z.log("Error fetching font data: "+e)}))}get postScriptName(){return this._postScriptName}get variation(){return this._variationDetails}get fontId(){return this.variation&&this.variation.font&&this.variation.font.sync&&this.variation.font.sync.font_id}get fontActions(){return this.variation&&this.variation.font&&this.variation.font.sync&&this.variation.font.sync.required_action}get isLoading(){return this._isLoading}get isFontSyncing(){return this._fontSyncing}get isFontAvailable(){if(at.fontManager)return at.fontManager.getCachedSystemFontAvailability(this._postScriptName)}refresh(){this._getFontData(this._getFontDataFromProcess).then((e=>{this._isLoading=!1,this._variationDetails=e}))}sync(e,t,r){const n="context"===t?"context-start":"start";w.ZP.reportElementEvent("Typekit","Sync-Font","click",n,r),E.Z.log("Syncing Typekit Font: "+this.fontId),this._fontSyncing=!0;const o=(e,t)=>{w.ZP.reportElementEvent("Typekit","Sync-Font","render","error",r,{event:{error_code:t,error_desc:e}}),E.Z.log(e),this._fontSyncing=!1};return ge("sync",this.fontId).then((e=>{if(e&&e[0]&&e[0].variation)w.ZP.reportElementEvent("Typekit","Sync-Font","render","success",r),E.Z.log("Font Sync request sent successfully: "+JSON.stringify(e)),(0,i.when)((()=>this.isFontAvailable),(()=>this._fontSyncing=!1));else{const t="Font sync could not complete: "+JSON.stringify(e);o(t,200)}})).catch((e=>{o("Font sync error "+e,e)}))}unsync(e,t,r){const n="context"===t?"context-start":"start";w.ZP.reportElementEvent("Typekit","Sync-Font","click",n,r),E.Z.log("Unsyncing Typekit Font: "+this.fontId),this._fontSyncing=!0;const o=e=>{E.Z.log(e),this._fontSyncing=!1};return ge("unsync",this.fontId).then((e=>{if(e){const t="Font unsync could not complete: "+JSON.stringify(e);o(t)}else E.Z.log("Font Unsync request sent successfully"),(0,i.when)((()=>!this.isFontAvailable),(()=>this._fontSyncing=!1))})).catch((e=>{o("Font unsync error "+e)}))}upgrade(e,t){const r="context"===e?"context-start":"start";return ge("entitlements",this.fontId).then((e=>{const n=e.upgrade&&e.upgrade[0]&&e.upgrade[0].url;w.ZP.reportElementEvent("Typekit","Upgrade","click",r,t,{content:{action:n}}),O.Z.launchInBrowser(n)})).catch((e=>{E.Z.log("Error occurred during upgrade: "+JSON.stringify(e))}))}}).prototype,"_fontSyncing",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Le(ye.prototype,"_variationDetails",[ve],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Le(ye.prototype,"_isLoading",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ye);class Se{constructor(e){this._fontMap={},this._fontAvailableMap={},this._hasFetchedFontAvailability={},this._hasRefreshedFontData={},this._pendingFontAvailabilityPromises={},this._onChange=()=>{this._changeAtom.reportChanged()},this._fontManager=e,this._changeAtom=new i.Atom("fontManagerChange",(()=>this._fontManager.on("change",this._onChange)),(()=>this._fontManager.off("change",this._onChange))),this._fontManager.on("change",(()=>{this._hasRefreshedFontData={},this._hasFetchedFontAvailability={}}))}getFontData(e){return this._changeAtom.reportObserved(),this._fontMap[e]&&!this._hasRefreshedFontData[e]?this._fontMap[e].refresh():this._fontMap[e]||(this._fontMap[e]=new xe(e,(()=>this._getFontDataFromProcess(e)))),this._hasRefreshedFontData[e]=!0,this._fontMap[e]}isSystemFontAvailable(e,t){const r=e+(t?":family":"");let n=this.getCachedSystemFontAvailability(e,t);return this._hasFetchedFontAvailability[r]||(n=void 0===n||n),n}getCachedSystemFontAvailability(e,t){this._changeAtom.reportObserved();const r=e+(t?":family":""),n=this._fontAvailableMap[r];return this._hasFetchedFontAvailability[r]||this._pendingFontAvailabilityPromises[r]||(this._pendingFontAvailabilityPromises[r]=this._getSystemFontAvailabilityFromProcess(e,t).then((e=>{delete this._pendingFontAvailabilityPromises[r],this._fontAvailableMap[r]=e,this._hasFetchedFontAvailability[r]=!0,this._onChange()}),(()=>{delete this._pendingFontAvailabilityPromises[r]}))),n}_getSystemFontAvailabilityFromProcess(e,t){return this._fontManager.isSystemFontAvailable(e,t)}_getFontDataFromProcess(e){return this._fontManager.getFontData(e).then((e=>e.variation))}}var Oe,Te,Ie,Pe,Ce,Ae,ke,De,Ne,Re,Me,je,Ze,Fe,Be,Ge=r(8502);r(11437),r(27299),r(75623),r(44853),r(90459),r(30949);function Ue(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ze(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ze(e,t)}(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 ze(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 Ve(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ve=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function He(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ye(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){He(o,n,i,a,s,"next",e)}function s(e){He(o,n,i,a,s,"throw",e)}a(void 0)}))}}function We(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?We(Object(r),!0).forEach((function(t){Ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qe(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 Xe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function Je(e){return function(){return new Qe(e.apply(this,arguments))}}function Qe(e){var t,r;function n(t,r){try{var o=e[t](r),a=o.value,s=a instanceof et;Promise.resolve(s?a.wrapped:a).then((function(e){s?n("return"===t?"return":"next",e):i(o.done?"return":"normal",e)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function et(e){this.wrapped=e}Qe.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Qe.prototype.next=function(e){return this._invoke("next",e)},Qe.prototype.throw=function(e){return this._invoke("throw",e)},Qe.prototype.return=function(e){return this._invoke("return",e)};const tt={libraries:[],isSyncingEnabled:()=>!1,isConnected:()=>!1,getServiceInfo:()=>{},getOption:()=>{},getLocalSetting:()=>{},resolveLibraryReference:()=>Promise.resolve(void 0),resolveCachedLibraryReference:()=>{},resolveElementReferenceToLibrary:()=>Promise.resolve(void 0),resolveElementReference:()=>Promise.resolve(void 0),resolveCachedElementReferenceToLibrary:()=>{},resolveCachedElementReference:()=>{},getPrimarySyncError:()=>{},on:()=>{}},rt="owned",nt="shared",it=["library","libraries"],ot={UPLOADING:"uploading",DOWNLOADING:"downloading",DONE:void 0};const at=new(Oe=i.observable.ref,Te=i.observable.ref,Ie=i.observable.ref,Be=class e{constructor(e){qe(this,"isOnline",Ce,this),qe(this,"_ccLibraries",Ae,this),qe(this,"_tempDir",ke,this),this._syncState=new D(this),this.publishState=new H(this),this._restorePreviousCurrentLibrary=()=>{if(y.Z.currentProduct.config.defaultToDocumentAssets)this.currentLibrary=this.documentAssetsContainer;else if(!y.Z.currentProduct.config.disableRestorePreviousCurrentLibrary){const e=g.Z.getValue(this._getCurrentLibraryIdKey()),t=(0,J.Kf)()?null:e||g.Z.getValue(this.userId+"#currentLibraryId")||g.Z.getValue("currentDesignLibraryId"),r=this.getLibraryById(t)||this._findNextCurrentLibrary();O.Z.navigateToLibrary(r)}},this._onLibrariesConnectionChange=()=>{Ge.ZP.initializeOperationalMetrics(),m.Z.clearAccessToken(),w.ZP.setUserId(this.userId),ue.Z.init(this.userId).then((e=>{if(!g.Z.getDebugValue("jsapiHybridDriver")&&O.Z.hybridDriver&&e&&e.has("cc_libraries_managed_sync")&&this._ccLibraries.changeDriver(O.Z.hybridDriver),e&&!e.has("ubs.brand_lifecycle")&&"GenStudio"===y.Z.currentProduct.config.code){const e=$e($e({},this._ccLibraries.options),{},{enableBrandLifecycleManagement:!1,includeApprovedBrandsInLibraries:!0}),t=this._ccLibraries.cloudDriver;t&&(t.updateOptions(e),this._ccLibraries=new ce.ZP(t,e))}})),(0,n.av)({id:this.userId}),Ge.ZP.initializeOperationalMetrics(this.userId)},this._onAreLibrariesLoadedChange=()=>{this.areLibrariesLoaded?(this._initLegacyActiveLibrariesMap(),(0,J.jh)()):this.currentLibrary=void 0},qe(this,"_isPublishing",De,this),qe(this,"_currentLibrary",Ne,this),this.createLibrary=function(e,t={}){if(!this._ccLibraries.isConnected())return;ee.Z.resetCurrentLibrariesFilter();const r=this.areLibrariesLoaded&&!this.libraries.length,n=this._ccLibraries.createLibrary(e,t);return Ge.ZP.sendCreateLibraryEvent(n,{ccl:{is_creating_first_library:r}}),this.setLibraryActiveState(n,!0),n},this.createTeamLibrary=function(e,t,r={}){const n=this.platformFolders.find((t=>t.id===e));if(n){ee.Z.resetCurrentLibrariesFilter(),r.team=n;const e=this._ccLibraries.createLibrary(t,r);return Ge.ZP.sendCreateLibraryEvent(e),this.setLibraryActiveState(e,!0),e}},this._collaborationData=i.observable.map(),this._invitationsData=i.observable.map(),this._teamLibrariesData=i.observable.map(),qe(this,"_relinkableAssetsData",Re,this),this.fetchLibraryCollaborations=(e,t=0)=>{if(t=Math.max(t,3e5),!e||!C.R3(e)&&!C.$_(e))return Promise.resolve();const r=this._collaborationData.get(e.id);(!r||r.timestamp<Date.now()-t)&&e.loadCollaborators().then((()=>{this._collaborationData.set(e.id,{timestamp:Date.now()})})).catch((e=>{E.Z.log(`Could not get library collab data: ${e}`)}))},this._getInvites=()=>this.loaded?(0,ne.Qr)(this.userId).then((e=>{this.invitationsData.clear(),e.forEach((e=>{"application/vnd.adobe.library+dcx"===e.resourceType&&this.invitationsData.set(e.resourceURN,e)}))})).catch((e=>{E.Z.log(`Could not get libraries invitation data: ${e}`)})):new Promise((e=>(0,i.when)((()=>this.loaded),(()=>e(this._getInvites()))))),this._throttledFetchInvitations=(0,se.P2)(this._getInvites,y.Z.FETCH_INVITATIONS_THROTTLE),qe(this,"_recentlyActiveLibraries",Me,this),this._secondsConsideredRecent=2e3,qe(this,"_initialized",je,this),qe(this,"_isLoadingAppLoggedInState",Ze,this),qe(this,"_isAppLoggedIn",Fe,this),this._ccLibraries=e||tt,window.addEventListener("online",(()=>{this.isOnline=!0})),window.addEventListener("offline",(()=>{this.isOnline=!1})),this._tempDirDisposer=(0,i.reaction)((()=>this._tempDir),(()=>{var e;return null===(e=O.Z.notifyLibraryTempDir)||void 0===e?void 0:e.call(O.Z,this._tempDir)}))}_onSyncStateChange(){if(O.Z.setSyncState&&O.Z.setSyncState(this.syncStatus),this.librariesInitError&&w.ZP.reportError("Initialize","Init","initialize-error",null,this.syncStatus.errorType),y.Z.currentProduct.config.mustHaveCurrentLibrary){if("ok"===this.syncStatus.state&&this.areLibrariesLoaded&&this.libraries.length>0&&!this.currentLibrary)return void(this.currentLibrary=this._findNextCurrentLibrary());this.currentLibrary||ee.Z.resetMode()}else this.isAppLoggedIn||ee.Z.resetMode()}_detectBrokenLinksAndOfferResolution(){var e=this;return Ye(Ve().mark((function t(){var r,n,i;return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(r=e.documentAssetsContainer.missingLinks)&&void 0!==r&&r.length){t.next=2;break}return t.abrupt("return");case 2:return n=()=>{const t=[];let r=!1;return e.documentAssetsContainer.missingLinks.forEach((n=>{n.isMissingLibrary&&n.cachedLinkedLibraryAssetId&&t.push(e.fetchTeamLibraryData(n.cachedLinkedLibraryAssetId)),n.isMissingLibraryLink&&(r=!0)})),r&&t.push(e.fetchLibraryInvitations()),Promise.all(t)},t.next=5,n();case 5:e.documentAssetsContainer.resolvableMissingLinks.length&&(null===(i=O.Z.openApplicationDialog)||void 0===i||i.call(O.Z,"resolveBrokenLinks",{fetchInvitations:!1}));case 6:case"end":return t.stop()}}),t)})))()}_migrateLinkReferences(){var e;null===(e=O.Z.migrateLinkReferences)||void 0===e||e.call(O.Z,this.documentAssetsContainer.elements)}get syncStatus(){return this._syncState.status}get publishStatus(){return this.publishState.status}get librariesInitError(){return"error"===this.syncStatus.state&&!this.areLibrariesLoaded}get isSharingEnabled(){return!!this.isOnline&&("error"!==this.syncStatus.state||"network"!==this.syncStatus.errorType&&"noAccess"!==this.syncStatus.errorType)}get isRestrictedAccount(){return this.syncStatus.errorType&&"noAccess"===this.syncStatus.errorType}get isStarterPlanUser(){return!this.publishState._isPaidUser}showSyncSpinner(){this._syncState.showSyncSpinner()}get shutdownWarning(){return this._syncState.shutdownWarning}getAccessToken(e,t,r,n){return this._ccLibraries.getAccessToken(e,t,r,n)}dangerouslyAccessCCLibraries(){return this._ccLibraries}_initLegacyActiveLibrariesMap(){this._legacyActiveLibraries={},this.libraries.forEach((e=>{this._legacyActiveLibraries[e.id]=I.Z.getLocalMachineSetting(this._legacyGetLibraryActiveKey(e))}))}get tempDir(){return this._tempDir}getSearchResults(e,t,r,n){const i=Je(Ve().mark((function t(){var r,i,o,a,s;return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.currentLibrary,i=n.isDocumentSearchType(),!(0,ie.fs)(e)||!(i||r&&!n.isSearchMode())){t.next=5;break}return o=i?this.documentAssetsContainer:r,t.abrupt("return",o.elements);case 5:return a=(n.isLibrariesSearchMode()?this.searchableLibraries.filter((e=>!e.isDocumentAssets)):[r]).filter((e=>e)),s=(0,ie.OX)(e,a),t.next=9,s;case 9:case"end":return t.stop()}}),t,this)}))).bind(this),o=!this.disableCCLibraries&&it.includes(n.getSearchType())?this._ccLibraries.getSearchResults(e,t,r):new ce.Lr(i);return new a(o)}get platformFolders(){return this._ccLibraries.projects||[]}get userQuota(){const e=this._ccLibraries.userQuota;if(e){const t=Math.pow(y.Z.BYTE_MULTIPLIER,3);return{storage_quota:e.storage_quota*t,storage_used:e.storage_used*t,storage_available:e.storage_available*t}}}refreshTeams(){return this._ccLibraries.refreshTeams()}get documentAssetsContainer(){var e,t;return null===(e=(t=y.Z.currentProduct).getDocumentAssetsContainer)||void 0===e?void 0:e.call(t)}get publishedDocumentLibrary(){if(!this.documentAssetsContainer)return;const e=this.documentAssetsContainer.linkedLibraryId;return this.libraries.find((t=>t.documentId===O.Z.cloudAssetId&&t.id===e))}_localizeGroup(e,t){if(!e.nameLocalizationKey)return Promise.resolve();this._cachedLocalizedNames=this._cachedLocalizedNames||{};let r=O.Z.supportedLocales;const n=O.Z.getLocale(!0);if(r=r.reduce(((e,t)=>(t!==n&&e.push(t),e)),[n]),!this._cachedLocalizedNames[e.nameLocalizationKey]){this._cachedLocalizedNames[e.nameLocalizationKey]={};return(()=>{const e={},t=r.map((t=>O.Z.fetchResourceBundle(t).then((r=>{e[t]=r}))));return Promise.all(t).then((()=>e))})().then((n=>{r.forEach((r=>{const i=n[r][e.nameLocalizationKey];this._cachedLocalizedNames[e.nameLocalizationKey][r]=i,t.setLocalizedName(r,i)}))}))}return r.forEach((r=>{if(this._cachedLocalizedNames[e.nameLocalizationKey]&&this._cachedLocalizedNames[e.nameLocalizationKey][r]){const n=this._cachedLocalizedNames[e.nameLocalizationKey][r];t.setLocalizedName(r,n)}})),Promise.resolve()}_updateGroupParents(e,t){e.forEach((({documentGroup:e,group:r})=>{const n=e.parent,i=n&&t[n.id];r.parent=i}))}_publishGroup(e,t,r,n){if(n)return n.name=e.name,n.order=e.order,r[e.id]=n,Promise.resolve({documentGroup:e,group:n});w.ZP.setExtraEventMetrics("createGroup",{disableReport:!0});const i=t.createGroup(e.name,e.order);return r[e.id]=i,i.sourceRef=e.getReference(),this._localizeGroup(e,i).then((()=>({group:i,documentGroup:e})))}_publishGroups(e,t){const r=e.getGroups(),n=B(t.getGroups(),r),i=n.newItems,o=n.itemsToDelete,a=n.itemsToUpdate,s=n.unchangedItems,c=[],l=s.reduce(((e,{source:t,target:r})=>(e[t.id]=r,e)),{});return w.ZP.setExtraEventMetrics("removeGroup",{disableReport:!0}),this.deleteGroups(o,{checkForDependents:!1,showUndoToast:!1,hasSeenWarning:!0}),i.forEach((e=>{c.push(this._publishGroup(e,t,l))})),a.forEach((({target:e,source:r})=>{c.push(this._publishGroup(r,t,l,e))})),Promise.all(c).then((e=>(this._updateGroupParents(e,l),l)))}_updateGroupsMetadata(e,t,r){if(r){t.getGroups().forEach((n=>{const i=r[n.id],o=t.getOrderInGroup(n);w.ZP.setExtraEventMetrics("updateElement",{disableReport:!0}),e.setOrderInGroup(i,o)}))}}_publishElement(e,t,r,n,i){if(!e||!t||!r)return Promise.resolve();if(n&&n.removed&&t.restoreElement(n),n&&!i)return this._updateGroupsMetadata(n,e,r),n.sourceRefString!==e.getReferenceString()&&(n.sourceRef=e.getReference()),Promise.resolve({element:n});const o=b.Z._getConfiguration(e.type);return o&&o.createOrUpdateElementFromAsset?(w.ZP.setExtraEventMetrics("updateElement",{disableReport:!0}),o.createOrUpdateElementFromAsset(e,t,"publish",n).then((({element:t,dependentAssetIds:n})=>(this._updateGroupsMetadata(t,e,r),t.sourceRef=e.getReference(),Promise.resolve({element:t,dependentAssetIds:n}))))):void 0}_updateElementDependencies(e){let t;const r=this.publishedDocumentLibrary,n=[];return e.forEach((({element:e,dependentAssetIds:i})=>{if(!e||!i)return;const o=C.a3(e),a=i.filter((e=>e!==o));if(e.hasMissingDependencies||e.dependencies.length!==a.length||!e.dependencies.every(((e,t)=>C.a3(e)===a[t]))){t||(t=new Map,r.elements.forEach((e=>{t.set(C.a3(e),e)})));try{e.dependencies=a.map((e=>t.get(e)))}catch(r){n.push(e);const i="Error updating dependencies: "+r,o=a.filter((e=>!t.has(e)));o.length,E.Z.log(i)}}})),n}syncStateCompleteListener(e,t,r=(e=>{})){let n;return[new Promise((o=>{let a;E.Z.log(`waiting for '${t}' sync state`),n=()=>{r(`Clearing wait for sync state ${t}`),clearTimeout(s),c(),o()};const s=setTimeout(n,6e4),c=(0,i.reaction)((()=>e.syncState),(e=>{r(`Sync state update: ${e}`),e===t&&(r(`State '${t}' hit for published library.`),clearTimeout(s),a=!0),void 0===e&&a&&(r(`${t} complete`),n())}),{fireImmediately:!0})})),n]}_requestPublish(e=!1){var t=this;return Ye(Ve().mark((function r(){var n,i;return Ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,null===(n=(i=y.Z.currentProduct.config).requestPublish)||void 0===n?void 0:n.call(i);case 3:return r.abrupt("return",r.sent);case 6:throw r.prev=6,r.t0=r.catch(0),e&&t.unpublish(t.publishedDocumentLibrary),le.Z.manager.toastManager.openToast("message",{variant:"error",message:(0,T.Iu)("DL_PUBLISH_GENERAL_ERROR_TOAST")}),r.t0;case 11:case"end":return r.stop()}}),r,null,[[0,6]])})))()}publish(e,t,r={}){var n=this;return Ye(Ve().mark((function o(){var a,s,c,l,u,p,d,h,f,m,g,b,_;return Ve().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e&&O.Z.cloudAssetId){o.next=2;break}return o.abrupt("return",Promise.reject("Missing documentLibrary or cloudAssetId"));case 2:if(!n._isPublishing){o.next=4;break}return o.abrupt("return",Promise.reject());case 4:return n._isPublishing=!0,n._clearPublishQuotaErrorListener(),a=n.publishedDocumentLibrary||n.relinkableLibrary,(s=!a)&&(r.team=t,a=n._ccLibraries.createLibrary(O.Z.documentName,r),Ge.ZP.sendCreateLibraryEvent(a),a.linkToDocument(O.Z.cloudAssetId,O.Z.documentType),O.Z.linkDocumentToLibrary(a.id),n._publishedLibraryIdDisposer=(0,i.reaction)((()=>a.previousPlaceHolderId),(()=>{O.Z.linkDocumentToLibrary(a.id)}),{fireImmediately:!0})),a===n.relinkableLibrary&&a.linkToDocument(O.Z.cloudAssetId,O.Z.documentType),c=(e,t)=>{if(t.beginOperation(),s)return n._publishGroups(e,t).then((r=>{const i=e.elements.map((e=>n._publishElement(e,t,r)));return Promise.all(i)}));{O.Z.documentName!==t.name&&(t.name=O.Z.documentName);const r=F([...t.elements,...t.removedElements],e.elements,t,e),i=r.newItems,o=r.itemsToDelete,a=r.itemsToUpdate,s=r.unchangedItems;return n._publishGroups(e,t).then((e=>{const r=[];return a.forEach((i=>{const o=i.target,a=i.source,s=i.diff;r.push(n._publishElement(a,t,e,o,s===y.Z.ELEMENT_CHANGE_TYPE.CONTENT))})),s.forEach((i=>{const o=i.target,a=i.source;r.push(n._publishElement(a,t,e,o,!1))})),n.deleteElements(o,!0,!1,!1),i.forEach((i=>{r.push(n._publishElement(i,t,e))})),Promise.all(r)}))}},l=E.Z.progress(y.Z.PROGRESS_LOG.PUBLISHING),E.Z.log("Publishing document library..."),O.Z.disableAPILoggingByDefault&&!v.Z.get("apiLogging")&&E.Z.disable(),o.prev=14,o.next=17,n._requestPublish(s);case 17:return u=o.sent,d=n.syncStateCompleteListener(a,ot.UPLOADING,l.log),h=Ue(d,2),f=h[0],m=h[1],p=m,f.then((()=>{var e,t;l.log("Sync state listener for published library upload resolved"),l.end(),null===(e=(t=y.Z.currentProduct.config).notifyPublishEnd)||void 0===e||e.call(t)})),o.next=23,c(e,a);case 23:return g=o.sent,Ge.ZP.sendPublishLibraryEvent(a),E.Z.enable(),l.log("Created elements"),n._updateElementDependencies(g),l.log("Updated dependencies"),a.endOperation(),l.log("Committed"),n._startPublishQuotaErrorListener(),o.abrupt("return",a);case 35:throw o.prev=35,o.t0=o.catch(14),E.Z.enable(),l.log(`Error: ${o.t0}`),l.end(),null===(b=p)||void 0===b||b(),o.t0;case 42:return o.prev=42,l.log("Setting isPublishing false and updating environment"),n._isPublishing=!1,null===(_=u)||void 0===_||_(),o.finish(42);case 47:case"end":return o.stop()}}),o,null,[[14,35,42,47]])})))()}unpublish(e){if(e&&O.Z.linkDocumentToLibrary)return O.Z.linkDocumentToLibrary(),this._clearPublishQuotaErrorListener(),this.deleteLibrary(e)}get isPublishing(){return this._isPublishing}get relinkableLibrary(){if(this.publishState.isPublishedLibraryNotFound){const e=this.documentAssetsContainer.linkedLibraryId;return this.libraries.find((t=>t.id===e))}}get orphanedLibraries(){const e=this.documentAssetsContainer.linkedLibraryId;return this.libraries.filter((t=>t.documentId===O.Z.cloudAssetId&&t.documentType===O.Z.documentType&&t.isWritable&&t.id!==e))}getCCLibraries(e=!1){return this._ccLibraries.isConnected()||O.Z.maintainConnectionToProcess?this._ccLibraries.libraries.filter((t=>!(!v.Z.get("showToolkitLibraries")&&t.toolkitId)&&!(!e&&!t.isLibraryLoaded))):[]}get activeLibraries(){return this.libraries.filter((e=>this.publishedDocumentLibrary?this.isLibraryActive(e)&&e.id!==this.publishedDocumentLibrary.id:this.isLibraryActive(e)))}get partiallyLoadedLibraries(){return(this.getCCLibraries(!0)||[]).filter((e=>!e.isLibraryLoaded))}get searchableLibraries(){return[...this.documentAssetsContainer?[this.documentAssetsContainer,...this.activeLibraries]:this.activeLibraries,...this.partiallyLoadedLibraries]}get libraries(){const e=this.getCCLibraries();return _.Z.sortByName(e),e}get recentLibraries(){const e=this.getCCLibraries(),t=this.libraries.length>y.Z.RECENTS_LIST_LIBRARY_MIN?y.Z.RECENTS_LIST_LIMIT:e.length;return e.sort(((e,t)=>{const r=this.getLastAccess(e),n=this.getLastAccess(t);return r>n?-1:r<n?1:0})).slice(0,t)}getLibraryById(e){return this.documentAssetsContainer&&this.documentAssetsContainer.id===e?this.documentAssetsContainer:this._ccLibraries.getLibraryById(e)}getLibraryByAssetId(e){return this.libraries.find((t=>t.assetId&&t.assetId.toLowerCase()===e.toLowerCase()))}getLibraryByToolkitId(e){return this._ccLibraries.getLibraryByToolkitId(e)}get currentLibrary(){return this._currentLibrary}set currentLibrary(e){if(this._currentLibrary===e||!this.currentLibrary&&!e)return;const t=le.Z.panel.viewState;if(t.setCurrentSection(null),this._currentLibrary=e,t.clearAllSelections(),t.setSearchText(""),t.librariesSearchState.clearFilters(),this._clearDeletionListener(),this._clearElementLoadCheckListener(),this._clearDocumentChangeListener(),this._clearAssetIdChangeListener(),e){if(t.setSearchType("library"),C.w_(e),e===this.documentAssetsContainer&&this.publishedDocumentLibrary&&C.w_(this.publishedDocumentLibrary),this.areLibrariesLoaded){const t=this._getCurrentLibraryIdKey()+e.id;g.Z.setValue(this._getCurrentLibraryIdKey(),e.id),g.Z.setValue(t,Date.now())}if(this.isLibraryActive(e)||this.setLibraryActiveState(e,!0),this._elementLoadCheckListener=(0,i.when)((()=>e.areElementsLoaded),(()=>{C.JT(e)&&L.ZP.openDialog("migrateLibraryWithSlashes",{library:e})})),!e.isTransient&&e!==this.documentAssetsContainer){const t=()=>this.libraries.includes(e);this._deletionListener=(0,i.when)((()=>!t()),(()=>{const e=this.areLibrariesLoaded&&this._findNextCurrentLibrary();e&&O.Z.isViewMounted?O.Z.navigateToLibrary(e):O.Z.navigateToLibrary(null)})),this._assetIdChangeListener=(0,i.reaction)((()=>e.assetId),(()=>{O.Z.navigateToLibrary(e)}))}if(e===this.documentAssetsContainer){const t=e.id;this._documentChangeListener=(0,i.reaction)((()=>O.Z.documentId),(e=>{t!==e&&O.Z.navigateToLibrary(this._findNextCurrentLibrary())}))}(0,J.k3)(),this._ccLibraries.getTempDir(e).then((e=>this._tempDir=e)).catch((e=>{E.Z.log(`Could not fetch temp directory: ${e}`),this._tempDir=null}))}else{var r;L.ZP.closeDialog(),t.setSearchType(null!==(r=y.Z.currentProduct.config.rootViewSearchType)&&void 0!==r?r:"libraries"),t.isBrandKitMode()&&t.setBrandKitMode(!1),this.areLibrariesLoaded&&g.Z.setValue(this._getCurrentLibraryIdKey(),null),this._tempDir=null}}_findNextCurrentLibrary(){if(this.documentAssetsContainer&&y.Z.currentProduct.config.defaultToDocumentAssets)return this.documentAssetsContainer;if(!y.Z.currentProduct.config.mustHaveCurrentLibrary)return null;let e,t;return this.libraries.filter((e=>!(!v.Z.get("showToolkitLibraries")&&e.toolkitId))).forEach((r=>{const n=this.getLastAccess(r);(!t||n>t)&&(e=r,t=n)})),e}loadLibraryByAssetId(e){return this._ccLibraries.loadLibraryByAssetId(e)}unfollowLibrary(e){if(e&&!C.Wv(e))return this._ccLibraries.unfollowLibrary(e)}followLibrary(e,t){return this._ccLibraries.followLibrary(e,t)}deleteLibrary(e){if(!e||C.D3(e)||e.isDeletedLocally)return;ee.Z.lockToolkit(e),O.Z.isLibraryManagerWindowOpen()||w.ZP.setExtraEventMetrics("removeLibrary",{library:e,event:{pagename:(ee.Z.isRootView()?"Root View":this.currentLibrary&&this.currentLibrary.isDocumentAssets&&"Document Assets View")||"Library View"}});const t=this._ccLibraries.removeLibrary(e);return Ge.ZP.sendDeleteLibraryEvent(e),t}moveLibrary(e,t,r){const n=this._ccLibraries.moveLibrary(e,t,r);return Ge.ZP.sendMoveLibraryEvent(e),n}copyLibrary(e,t,r){return this._ccLibraries.copyLibrary(e,$e({team:t},r))}importLibrary(e,t){return this._ccLibraries.importLibrary(e,t)}exportLibrary(e,t,r){return this._ccLibraries.exportLibrary(e,t,r)}publishBrand(e){return this._ccLibraries.publishBrand(e)}unpublishBrand(e){return this._ccLibraries.unpublishBrand(e)}_getCurrentLibraryIdKey(){return`${this.userId}#currentLibraryId`}deleteElements(e,t=!1,r=!0,n=!0){if(!e||0===e.length)return;if(r&&C.fR(e))return void C.cC("delete",e.length>1?"elements":"element",(()=>this.deleteElements(e,t,!1)));if(!t&&e.length>this.MAX_REMOVED_ELEMENTS)return void C.cL(e,(()=>this.deleteElements(e,!0)));const i=new te.T("Delete Elements"),o={},a=[];if(e.forEach((e=>{var r;r=e.library,o[r.id]||(r.beginOperation(),o[r.id]=r);const n=t||e.library.disableNonPermanentDelete;n||a.push(e),e.library.removeElement(e,n),Ge.ZP.sendDeleteElementEvent(e)})),Object.keys(o).forEach((e=>o[e].endOperation())),a.length&&n&&!y.Z.currentProduct.config.showElementActionToasts&&x.Z.openToast("undoDeleteElements",{elements:a}),y.Z.currentProduct.config.showElementActionToasts){let t;t=1===e.length?(0,T.Iu)("DL_DELETE_SUCCESS_TOAST"):(0,T.Iu)("DL_DELETE_SUCCESS_TOAST_PLURAL",{num:e.length}),x.Z.openToast("message",{message:t,variant:"success"})}i.done()}deleteGroups(e,t){const r=t=Object.assign({deleteContents:!1,permanentlyDelete:!1,checkForDependents:!0,hasSeenWarning:!1,deleteEmptyAncestors:!1,showUndoToast:!0},t),n=r.deleteContents,i=r.permanentlyDelete,o=r.checkForDependents,a=r.hasSeenWarning,s=r.deleteEmptyAncestors,c=r.showUndoToast;if(!e||!e.length)return;e.find((e=>ee.Z.currentSection===e.id))&&ee.Z.setCurrentSection();const l=e[0].library,u=[],p=ee.Z.elementSortState,d=N.GI(l,{sortBy:p}),h=d.branches,f=n?e.reduce(((e,t)=>e.concat(N.xF(t))),[]):[],m=s?e.reduce(((e,t)=>e.concat(N._y(t).filter((e=>!e.disableEditing&&1===h[e.id].children.length)))),[]):[];if((e=[...new Set([...e,...f,...m])]).forEach((e=>{h[e.id].children.forEach((e=>{e.item.isGroup||u.push(e.item)}))})),o&&n&&C.fR(u))C.cC("delete","group",(()=>this.deleteGroups(e,{deleteContents:!0,permanentlyDelete:i,checkForDependents:!1})));else{if(!n){ee.Z.clearAllSelections();const t=N.Q_(e);return l.beginOperation(),t&&C.c_(u,t),e.forEach((e=>{e.children&&e.children.forEach((e=>{t&&e.isGroup&&(e.parent=t)})),l.removeGroup(e,!1)})),l.endOperation(),void(c&&x.Z.openToast("undoDeleteGroup",{groupsTree:d,elements:u,ungroup:!0}))}if(i||!(u.length>this.MAX_REMOVED_ELEMENTS))return i?(l.beginOperation(),e.forEach((e=>l.removeGroup(e,!1))),u.forEach((e=>{l.removeElement(e,!0),Ge.ZP.sendDeleteElementEvent(e)})),void l.endOperation()):void(a||!(0,J.g9)()?(ee.Z.clearAllSelections(),l.beginOperation(),e.forEach((e=>{l.removeGroup(e,!0)})),l.endOperation(),!l.isDocumentAssets&&c&&x.Z.openToast("undoDeleteGroup",{groupsTree:d,elements:u})):(0,J.Lp)(e));C.cL(u,(()=>this.deleteGroups(e,{deleteContents:!0,permanentlyDelete:!0,checkForDependents:!1,hasSeenWarning:!0})))}}restoreElements(e,t={}){const r={},n={};t.children&&t.children.forEach((e=>{e.item.isGroup||(n[e.item.id]=e.order)})),e.forEach((e=>{if(!e.isDeletedLocally&&e.removed)if(e.library.isWritable)if(S.Z.canAddElements(e.library)){i=e.library,r[i.id]||(i.beginOperation(),r[i.id]=i),e.library.restoreElement(e);const o=n[e.id];o&&e.setOrderInGroup(t.item,o)}else w.ZP.setExtraEventMetrics("moveElement",{content:{category:"Undo Delete"}}),e.library.moveElement(e,this.getOverflowLibrary(e.library.name));else w.ZP.setExtraEventMetrics("copyElement",{content:{category:"Undo Delete"}}),e.library.copyElement(e,this.getRecoveryLibrary(e.library.name));var i})),Object.keys(r).forEach((e=>r[e].endOperation()))}get invitationsData(){return this._invitationsData}get teamLibrariesData(){return this._teamLibrariesData}get relinkableAssetsData(){return this._relinkableAssetsData}fetchLibraryInvitations(e){return e?this._getInvites():this._throttledFetchInvitations()}acceptAllLibraryInvitations(){const e=[];return this.invitationsData.forEach((t=>{const r=(0,ne.Tg)(this.userId,t.invitationId).catch((e=>{E.Z.log(`Could not accept library invitation: ${e}`)}));e.push(r)})),Promise.all(e).finally((()=>this.fetchLibraryInvitations(!0)))}fetchTeamLibraryData(e){var t=this;return Ye(Ve().mark((function r(){var n,i;return Ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,t.teamLibrariesData.clear(),r.next=4,ae.Z.getAssetWithCloudID(e);case 4:if((i=r.sent)&&!i.isDiscarded){r.next=7;break}return r.abrupt("return",t.teamLibrariesData.set(e,!1));case 7:if(i.appMetadata.isLoaded){r.next=10;break}return r.next=10,i.appMetadata.load();case 10:t.teamLibrariesData.set(e,null===(n=i.appMetadata.data["cc:inherited"])||void 0===n?void 0:n["cc:team"]),r.next=17;break;case 13:r.prev=13,r.t0=r.catch(0),E.Z.log(`[libraryManager.fetchTeamLibraryData] ${r.t0}`),t.teamLibrariesData.set(e,!1);case 17:case"end":return r.stop()}}),r,null,[[0,13]])})))()}resolveElementReference(e,t=!1){return this._ccLibraries.resolveElementReference(e,t)}resolveCachedElementReference(e,t=!1){return this._ccLibraries.resolveCachedElementReference(e,t)}resolveElementReferenceToLibrary(e){return this._ccLibraries.resolveElementReferenceToLibrary(e)}resolveCachedElementReferenceToLibrary(e){return this._ccLibraries.resolveCachedElementReferenceToLibrary(e)}resolveLibraryReference(e){return this._ccLibraries.resolveLibraryReference(e)}resolveCachedLibraryReference(e){return this._ccLibraries.resolveCachedLibraryReference(e)}resolveLibraryById(e){return this._ccLibraries.resolveLibraryById(e)}resolveLibraryByAssetId(e){return this._ccLibraries.resolveLibraryByAssetId(e)}getRelinkableAssets(){return new Promise((e=>{const t=new Map,r=new Map,n=new Map;let i=!1;this.documentAssetsContainer.missingLinks.forEach((e=>{if(e.canRelinkToLibrary){n.set(e.id,[]);const r=(0,R.UI)(e),o=!r&&(0,oe.lJ)(e);o&&(i=!0),t.set(r||o,e)}})),this.libraries.forEach((e=>{e.documentId&&e.getFilteredElements((a=>{const s=(0,R.LR)(a);let c=t.has(s)&&s;if(!c&&i){const e=(0,oe.lJ)(a);c=t.has(e)&&e}if(c){const i=(0,o.Z0)(a),s=t.get(c),l={asset:s,element:i};n.get(s.id).push(l),r.has(e.id)||r.set(e.id,[]),r.get(i.library.id).push(l)}}))}));const a={assets:n,libraries:r};return this._relinkableAssetsData=a,e(a)}))}syncingEnabled(){return this._ccLibraries.isSyncingEnabled()}getServiceInfo(){return this._ccLibraries.processInfo}getSNISettings(){return ce.P6.getSNISettings()}sync(e,t){if(this.disableCCLibraries)return;const r="error"===this.syncState&&!this.retryTime;(!e||t&&r||!t&&!r)&&"syncing"!==this.syncState&&this._ccLibraries.syncState.sync()}enableSyncing(){var e=this;return Ye(Ve().mark((function t(){return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve(e._ccLibraries.enableSyncing());case 2:e.sync();case 3:case"end":return t.stop()}}),t)})))()}disableSyncing(){this._ccLibraries.disableSyncing(!0)}get _activeLibraries(){return I.Z.getLocalMachineSetting(this._activeLibrariesKey)||this._legacyActiveLibraries||{}}_legacyGetLibraryActiveKey(e){return`activeLibrary#${e.id}-${y.Z.currentProduct.config.code}`}get _activeLibrariesKey(){return`activeLibraries-${y.Z.currentProduct.config.code}`}isLibraryActive(e){if(e.isDocumentAssets)return!y.Z.currentProduct.config.disableDocumentAssetsView;const t=this._activeLibraries;return e&&!1!==t[e.id]}isLibraryRecentlyActive(e){return!!this._recentlyActiveLibraries.get(e.id)}_updateRecentlyActiveLibraries(e,t){if(t){const t=setTimeout((()=>{this._recentlyActiveLibraries.delete(e.id)}),this._secondsConsideredRecent);this._recentlyActiveLibraries.set(e.id,t)}else{const t=this._recentlyActiveLibraries.get(e.id);t&&(clearTimeout(t),this._recentlyActiveLibraries.delete(e.id))}}setLibraryActiveState(e,t){const r=this._activeLibraries;r[e.id]=t,I.Z.setLocalMachineSetting(this._activeLibrariesKey,r),this._updateRecentlyActiveLibraries(e,t)}setLibrariesActiveState(e,t){const r=this._activeLibraries;e.forEach((e=>{r[e.id]=t})),I.Z.setLocalMachineSetting(this._activeLibrariesKey,r)}get isAppLoggedIn(){if(!this._isLoadingAppLoggedInState||this._isAppLoggedIn)return this._isAppLoggedIn}get initialized(){return this._initialized}get loaded(){return Boolean(this.areLibrariesLoaded)}waitForInitialLoad(){return new Promise((e=>{(0,i.when)((()=>this.loaded),(()=>e()))}))}init(){if(this._isAppLoggedIn=m.Z.hasValidUser(),this._initialized)return;if(class{static registerDependencies(e){this._dependencies=e}static _getDependency(e){var t;return null===(t=this._dependencies)||void 0===t?void 0:t[e]}constructor(e){this._onLibrariesChanged=()=>{this._librariesAtom.reportChanged(),(0,o.fs)()},this._onLocalSettings=()=>{this._localSettingsAtom.reportChanged()},this._onSync=()=>{this._syncAtom.reportChanged()},(0,o.LK)(),this._ccLibraries=e,this._librariesAtom=new i.Atom("libraries",(()=>this._ccLibraries.on("change",this._onLibrariesChanged)),(()=>this._ccLibraries.off("change",this._onLibrariesChanged))),this._localSettingsAtom=new i.Atom("localSettings",(()=>this._ccLibraries.on("configurationChange",this._onLocalSettings)),(()=>this._ccLibraries.off("configurationChange",this._onLocalSettings))),this._syncAtom=new i.Atom("sync",(()=>this._ccLibraries.on("sync",this._onSync)),(()=>this._ccLibraries.off("sync",this._onSync)));const t=this._removeAllListeners.bind(this);this.DANGEROUS={removeAllListeners:t}}on(e,t){this._ccLibraries.on(e,t)}off(e,t){this._ccLibraries.off(e,t)}_removeAllListeners(){this._ccLibraries.DANGEROUS.removeAllListeners()}get utils(){return this._ccLibraries.utils}get errors(){return this._ccLibraries.errors}resolveElementReference(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.Z0,r.next=3,t._ccLibraries.resolveElementReference(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}resolveCachedElementReference(e){this._librariesAtom.reportObserved(),this._syncAtom.reportObserved();const t=this._ccLibraries.resolveCachedElementReference(e);return t?(0,o.Z0)(t):t}resolveElementReferenceToLibrary(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.resolveElementReferenceToLibrary(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}resolveCachedElementReferenceToLibrary(e){this._librariesAtom.reportObserved(),this._syncAtom.reportObserved();const t=this._ccLibraries.resolveCachedElementReferenceToLibrary(e);return t?(0,o.mK)(t):t}resolveCachedLibraryReference(e){this._librariesAtom.reportObserved(),this._syncAtom.reportObserved();const t=this._ccLibraries.resolveCachedLibraryReference(e);return t?(0,o.mK)(t):t}resolveLibraryReference(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.resolveLibraryReference(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}resolveLibraryById(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.resolveLibraryById(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}resolveLibraryByAssetId(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.resolveLibraryByAssetId(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}refreshTeams(){return this._ccLibraries.refreshTeams()}getOption(e){return this._ccLibraries.getOption(e)}setOption(e,t){this._ccLibraries.setOption(e,t)}getLocalSetting(e){return this._localSettingsAtom.reportObserved(),this._ccLibraries.getLocalSetting(e)}setLocalSetting(e,t){this._ccLibraries.setLocalSetting(e,t)}getRootDir(){return this._ccLibraries.getRootDir()}getLocale(){return this._ccLibraries.getLocale()}isConnected(){return this._ccLibraries.isConnected()}get connectionState(){return this._ccLibraries.connectionState}reconnect(){this._ccLibraries.reconnect()}get connected(){return this._syncAtom.reportObserved(),this._ccLibraries.isConnected()}get processInfo(){return this._ccLibraries.processInfo}disconnect(){var e,t;null===(e=(t=this._ccLibraries).disconnect)||void 0===e||e.call(t)}getServiceInfo(){return this._ccLibraries.getServiceInfo()}isSyncingEnabled(){return this._syncAtom.reportObserved(),this._ccLibraries.isSyncingEnabled()}enableSyncing(){return this._ccLibraries.enableSyncing()}disableSyncing(){this._ccLibraries.disableSyncing()}getAccessToken(e,t,r,n){return this._ccLibraries.getAccessToken(e,t,r,n)}openInCCD(e){return this._ccLibraries.openInCCD(e)}getDefaultLibrary(){var e,t;const r=null===(e=(t=this._ccLibraries).getDefaultLibrary)||void 0===e?void 0:e.call(t);if(r)return(0,o.mK)(r)}setDefaultLibrary(e){this._ccLibraries.setDefaultLibrary(e)}getSearchResults(e,t,r){const n=this._ccLibraries.getSearchResults&&this._ccLibraries.getSearchResults(e,t,r);return new a(n)}get canAccessLocalProcess(){var e;return null===(e=this._ccLibraries.canAccessLocalProcess)||void 0===e||e}getLibraryById(e){const t=this._ccLibraries.getLibraryById(e);return t&&(0,o.mK)(t)}getLibraryByToolkitId(e){const t=this._ccLibraries.getLibraryByToolkitId(e);return t&&(0,o.mK)(t)}get libraries(){return this._librariesAtom.reportObserved(),this._ccLibraries.libraries.map(o.mK)}get userQuota(){return this._librariesAtom.reportObserved(),this._syncAtom.reportObserved(),this._ccLibraries.userQuota}get storageUsed(){return this._ccLibraries.storageUsed}loadLibraryByAssetId(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.loadLibraryByAssetId(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}createLibrary(e,t={}){return(0,o.mK)(this._ccLibraries.createLibrary(e,t))}copyLibrary(e,t){return(0,o.mK)(this._ccLibraries.copyLibrary(e._library,t))}moveLibrary(e,t,r){var n=this;return l(s().mark((function i(){return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=o.mK,i.next=3,n._ccLibraries.moveLibrary(e._library,t,r);case 3:return i.t1=i.sent,i.abrupt("return",(0,i.t0)(i.t1));case 5:case"end":return i.stop()}}),i)})))()}importLibrary(e,t){return this._ccLibraries.importLibrary(e,((e,r)=>t(e,(0,o.mK)(r))))}exportLibrary(e,t,r){return this._ccLibraries.exportLibrary(e._library,t,r)}removeLibrary(e){return this._ccLibraries.removeLibrary(e._library)}followLibrary(e,t){return this._ccLibraries.followLibrary(e,t)}unfollowLibrary(e){return this._ccLibraries.unfollowLibrary(e._library)}get areLibrariesLoaded(){return this._librariesAtom.reportObserved(),this._syncAtom.reportObserved(),this._ccLibraries.areLibrariesLoaded}get areLibrariesLoading(){return this._syncAtom.reportObserved(),this._ccLibraries.areLibrariesLoading}get fontManager(){return this._ccLibraries.fontManager}get userId(){return this._ccLibraries.userId}get syncState(){return this._syncAtom.reportObserved(),this._ccLibraries.syncState}get retryTime(){return this._syncAtom.reportObserved(),this._ccLibraries.retryTime}sync(){return this._ccLibraries.syncState.sync()}getTempDir(){var e=this;return l(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._ccLibraries.getTempDir());case 1:case"end":return t.stop()}}),t)})))()}get teams(){return this._librariesAtom.reportObserved(),this._ccLibraries.teams}get projects(){return this._librariesAtom.reportObserved(),this._ccLibraries.projects}changeDriver(e){return this._ccLibraries.changeDriver(e)}}.registerDependencies({getFileSize:e=>this.getFileSize(e),getInstalledVersion:e=>this.getInstalledVersion(e)}),this._vulcanInterface=O.Z.vulcanInterface,!this._isAppLoggedIn)return void(this._nglEventListener||(setTimeout((()=>this._isLoadingAppLoggedInState=!1),1e3),this._nglEventListener=()=>this.init(),O.Z.addEventListener(y.Z.PROFILE_CHANGE_EVENT_ID,this._nglEventListener)));var t;(this._nglEventListener&&(O.Z.removeEventListener(y.Z.PROFILE_CHANGE_EVENT_ID,this._nglEventListener),this._nglEventListener=void 0),this._ccLibraries!==tt||this.disableCCLibraries)||(null!==(t=O.Z.libraryContext)&&void 0!==t&&t.ccLibraries?this._ccLibraries=O.Z.libraryContext.ccLibraries:this._ccLibraries=new ce.ZP(O.Z.ccLibrariesDriver,{elementTypes:["elements"],readOnly:y.Z.currentProduct.config.readOnlyCCLibraries,locale:O.Z.getLocale(),disableLocalFallthrough:y.Z.currentProduct.config.disableProcessInCloudMode,disablePreemptiveLibraryLoad:y.Z.currentProduct.config.disablePreemptiveLibraryLoad,disableFallbackDefaultLibrary:y.Z.currentProduct.config.disableFallbackDefaultLibrary,enableBrandLifecycleManagement:y.Z.currentProduct.config.enableBrandLifecycleManagement,includeApprovedBrandsInLibraries:y.Z.currentProduct.config.includeApprovedBrandsInLibraries,skipConnectingOnInit:O.Z.supportsProcessConnection&&!O.Z.canLaunchProcess,featureFlags:{enableProjects:v.Z.get("enableProjects"),enableGenStudioAPIs:!0},mobXCreateAtom:(e,t,r)=>new i.Atom(e,t,r),mobXTransaction:i.transaction,cloudDriver:O.Z.cloudDriverConnector?new ce.Si(O.Z.cloudDriverConnector):void 0,fileSystemCache:O.Z.fs?{fs:O.Z.fs,dir:O.Z.getLocalRoot()}:void 0,renditionSizes:b.Z.getThumbnailSizes(),fullRenditionConfig:b.Z.getFullRenditionConfig()}),O.Z.exec("CORE","getApplicationVersion",[]).then((e=>{this._ccLibraries.utils.metrics.apiKey=w.ZP.analyticsApiKey(),this._ccLibraries.utils.metrics.product=`${y.Z.currentProduct.config.code}/${e}`,this._ccLibraries.utils.metrics.productLocation=w.ZP.productLocation})).catch((()=>{})));this._ccLibraries.fontManager&&(this._fontManager=new Se(this._ccLibraries.fontManager)),this._initialized=!0;this._ccLibraries.on("report",((...e)=>{(e=>{const t=[];e.forEach((e=>{"commit"===e.type&&(w.ZP.reportAPIEvent(e.action),t.includes(e.action.name)||t.push(e.action.name))})),t.forEach((e=>{w.ZP.clearExtraEventMetrics(e)}))})(e)})),y.Z.currentProduct.config.defaultToDocumentAssets&&this.disableCCLibraries&&(0,i.when)((()=>this.documentAssetsContainer),(()=>{this.currentLibrary=this.documentAssetsContainer})),this.disableCCLibraries||(this._syncState.init(),(0,i.observe)(this,"areLibrariesLoaded",(()=>this._onAreLibrariesLoadedChange())),this._isConnected&&this._onLibrariesConnectionChange(),(0,i.observe)(this,"_isConnected",(()=>this._onLibrariesConnectionChange())),this._ccLibraries.on("restore",this._restorePreviousCurrentLibrary),(0,i.reaction)((()=>this.syncStatus),(()=>this._onSyncStateChange())),(0,i.reaction)((()=>O.Z.maintainConnectionToProcess),(t=>{t?(this._disconnectTimeout&&clearTimeout(this._disconnectTimeout),this._disconnectTimeout=void 0,this._syncState.establishConnectionWithProcess(),I.Z.isConnected()||I.Z.reconnectToProcess()):this._disconnectTimeout=setTimeout((()=>{I.Z.disconnectFromProcess(),this._syncState.reset(),this._disconnectTimeout=void 0}),e.disconnectTimeoutDuration)})),(0,i.when)((()=>this.loaded&&this.documentAssetsContainer),(()=>{this._detectBrokenLinksAndOfferResolution(),this._migrateLinkReferences()})))}get storageUsed(){return this._ccLibraries.storageUsed||0}_clearDeletionListener(){var e;null===(e=this._deletionListener)||void 0===e||e.call(this),this._deletionListener=void 0}_clearElementLoadCheckListener(){var e;null===(e=this._elementLoadCheckListener)||void 0===e||e.call(this),this._elementLoadCheckListener=void 0}_clearDocumentChangeListener(){var e;null===(e=this._documentChangeListener)||void 0===e||e.call(this),this._documentChangeListener=void 0}_clearAssetIdChangeListener(){var e;null===(e=this._assetIdChangeListener)||void 0===e||e.call(this),this._assetIdChangeListener=void 0}_startPublishQuotaErrorListener(){this._publishQuotaErrorListener=(0,i.when)((()=>this.publishedDocumentLibrary&&this.publishedDocumentLibrary.syncError),(()=>{const e=!this.publishedDocumentLibrary.isPushedToServer,t=this.publishedDocumentLibrary.syncError,r=le.Z.manager,n=r.dialogManager,i=r.toastManager;if(t.code===this.errors.EXCEEDS_QUOTA){const t=C.wP(this.publishedDocumentLibrary)||C.$_(this.publishedDocumentLibrary)?nt:rt;n.openDialog("publishQuotaError",{isFirstTimePublishing:e,errorType:t})}else{const t=(0,T.Iu)(e?"DL_PUBLISH_GENERAL_ERROR_TOAST":"DL_PUBLISH_UPDATES_GENERAL_ERROR_TOAST");i.openToast("message",{variant:"error",message:t})}e&&this.unpublish(this.publishedDocumentLibrary)}))}_clearPublishQuotaErrorListener(){this._publishQuotaErrorListener&&(this._publishQuotaErrorListener(),this._publishQuotaErrorListener=void 0)}_clearPublishedLibraryListener(){var e;null===(e=this._publishedLibraryIdDisposer)||void 0===e||e.call(this),this._publishedLibraryIdDisposer=void 0}_clearTempDirListener(){var e;null===(e=this._tempDirDisposer)||void 0===e||e.call(this),this._tempDirDisposer=void 0}dispose(){this._clearDeletionListener(),this._clearPublishQuotaErrorListener(),this._clearElementLoadCheckListener(),this._clearAssetIdChangeListener(),this._clearPublishedLibraryListener(),this._clearTempDirListener(),this._ccLibraries.DANGEROUS.removeAllListeners()}isFontAvailable(e){if(!e)return!0;const t=e.adbeFont||{};if(!(t.postScriptName||e.fontFamily||t.family))return!0;if(y.Z.currentProduct.fontManager){const t=y.Z.currentProduct.fontManager.isFontAvailable(e);if(t)return t}if(this.fontManager){const r=t.postScriptName,n=e.fontFamily||t.family;return this.fontManager.isSystemFontAvailable(r||n,!r)}}getTypekitFontData(e){var t;return null===(t=this.fontManager)||void 0===t?void 0:t.getFontData(e)}get MAX_ELEMENTS(){return this._ccLibraries.getOption("MAX_ELEMENTS")}get MAX_REMOVED_ELEMENTS(){return this._ccLibraries.getOption("MAX_REMOVED_ELEMENTS")}get MAX_COMPONENT_SIZE(){return this._ccLibraries.getOption("MAX_COMPONENT_SIZE")}get ANALYTICS_ENABLED(){return this._ccLibraries.getOption("ANALYTICS_ENABLED")}get DEVICE_DESCRIPTION(){return this._ccLibraries.getOption("DEVICE_DESCRIPTION")}get errors(){return{ACCESS_DENIED:"ACCESS_DENIED",RETRYABLE_SERVER_ERROR:"RETRYABLE_SERVER_ERROR",NETWORK_ERROR:"NETWORK_ERROR",LOGGED_OUT:"LOGGED_OUT",FS_ERROR:"FS_ERROR",EXCEEDS_QUOTA:"EXCEEDS_QUOTA",REQUEST_FAILED:"REQUEST_FAILED"}}getLastAccess(e){if(!e||!this.areLibrariesLoaded)return;if(e===this.currentLibrary)return(new Date).valueOf();const t=this._getCurrentLibraryIdKey()+e.id,r=g.Z.getValue(t)||0;return Math.max(e.modified,r)}getDefaultLibrary(){if(!this.currentLibrary){const e=this._ccLibraries.getDefaultLibrary();return y.Z.currentProduct.config.disableFallbackDefaultLibrary?e:e||this.createLibrary((0,T.Iu)("DL_DEFAULT_LIBRARY_NAME"))}return this.currentLibrary}setDefaultLibrary(e){this._ccLibraries.setDefaultLibrary(e)}get defaultLibrary(){return this.getDefaultLibrary()}_getLibraryWithName(e){if(!e)return;return this.libraries.find((t=>t.name===e&&t.isWritable&&"incoming"!==t.ownership&&S.Z.canAddElements(t)))||this._ccLibraries.createLibrary(e)}getRecoveryLibrary(e){const t=(0,T.Iu)("DL_RECOVERED_LIBRARY_NAME",{name:e});return this._getLibraryWithName(t)}getOverflowLibrary(e){const t=(0,T.Iu)("DL_OVERFLOW_LIBRARY_NAME",{name:e});return this._getLibraryWithName(t)}copyFile(e,t,r=!1){return this._ccLibraries.utils.copyFile(e,t,r)}getFileSize(e){return this._ccLibraries.utils.getFileSize(e)}extractPathElementId(e){return this._ccLibraries.utils.extractElementId(e)}extractPathGroupId(e){return this._ccLibraries.utils.extractGroupId(e)}getInstalledVersion(e){try{return this._ccLibraries.utils.getInstalledVersion(e)}catch(e){}}addListener(e,t){const r=(...e)=>{t.apply(this,e)};return"libraryList"===e?(0,i.reaction)((()=>this.libraries.reduce(((e,t,r)=>e+`${0===r?"":";"}${t.name},${t.isDeletedFromServer},${t.isWritable}`),"")),r):"currentLibrary"===e?(0,i.reaction)((()=>this.currentLibrary),r):"libraryStatus"===e?(0,i.reaction)((()=>this.syncState),t):void 0}openInCCD(e){return this._ccLibraries.openInCCD(e)}openBrowseAll(){var e=this;return Ye(Ve().mark((function t(){return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._ccLibraries.canAccessLocalProcess){t.next=2;break}return t.abrupt("return",e.openInCCD("/assets/libraries/teamLibs"));case 2:return t.abrupt("return",(0,Q.BF)());case 3:case"end":return t.stop()}}),t)})))()}openMarketplace(){var e=this;return Ye(Ve().mark((function t(){return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._ccLibraries.canAccessLocalProcess){t.next=2;break}return t.abrupt("return",e.openInCCD("/assets/libraries/publicLibs"));case 2:return t.abrupt("return",(0,Q.NA)());case 3:case"end":return t.stop()}}),t)})))()}openCCWebMarketplace(){return Ye(Ve().mark((function e(){return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,Q.rT)());case 1:case"end":return e.stop()}}),e)})))()}waitForLibrariesLoaded(e=5e3){return this._ccLibraries.libraries,new Promise(((t,r)=>{let n;const o=(0,i.when)((()=>this.areLibrariesLoaded),(()=>{clearTimeout(n),t()}));n=setTimeout((()=>{o(),r()}),e)}))}get disableCCLibraries(){var e;return(null===(e=y.Z.currentProduct)||void 0===e?void 0:e.config.disableCCLibraries)&&!v.Z.get("forceEnableCCLibraries")}get userId(){return this.disableCCLibraries?O.Z.imsUserId:this._ccLibraries.userId||O.Z.imsUserId}getUserId(){var e=this;return Ye(Ve().mark((function t(){return Ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.disableCCLibraries||y.Z.currentProduct.config.disablePreemptiveLibraryLoad){t.next=3;break}return t.next=3,e.waitForInitialLoad();case 3:return t.abrupt("return",e.userId);case 4:case"end":return t.stop()}}),t)})))()}get _isConnected(){return this._ccLibraries.connected}get connectionState(){return this._ccLibraries.connectionState}get areLibrariesLoaded(){return this._ccLibraries.areLibrariesLoaded}get areLibrariesLoading(){return this._ccLibraries.areLibrariesLoading}get fontManager(){return this._fontManager}get projects(){return this._ccLibraries.projects}getPrimarySyncError(){var e;return null===(e=this._ccLibraries.syncState)||void 0===e?void 0:e.primaryError}getNewLibrarySyncProgress(){return this._ccLibraries.syncState.transientProgress}get syncState(){var e;return null===(e=this._ccLibraries.syncState)||void 0===e?void 0:e.status}get syncProgress(){return this._ccLibraries.syncState.progress}get syncErrors(){return this._ccLibraries.syncState.errors}get commitError(){return this._ccLibraries.syncState.commitError}get retryTime(){return this._ccLibraries.retryTime}},Be.disconnectTimeoutDuration=12e4,Ce=Xe((Pe=Be).prototype,"isOnline",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return re.Z.isOnline}}),Ae=Xe(Pe.prototype,"_ccLibraries",[Oe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Xe(Pe.prototype,"_tempDir",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Xe(Pe.prototype,"isSharingEnabled",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"isSharingEnabled"),Pe.prototype),Xe(Pe.prototype,"isRestrictedAccount",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"isRestrictedAccount"),Pe.prototype),Xe(Pe.prototype,"isStarterPlanUser",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"isStarterPlanUser"),Pe.prototype),Xe(Pe.prototype,"shutdownWarning",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"shutdownWarning"),Pe.prototype),Xe(Pe.prototype,"platformFolders",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"platformFolders"),Pe.prototype),Xe(Pe.prototype,"userQuota",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"userQuota"),Pe.prototype),Xe(Pe.prototype,"documentAssetsContainer",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"documentAssetsContainer"),Pe.prototype),Xe(Pe.prototype,"publish",[i.action],Object.getOwnPropertyDescriptor(Pe.prototype,"publish"),Pe.prototype),Xe(Pe.prototype,"unpublish",[i.action],Object.getOwnPropertyDescriptor(Pe.prototype,"unpublish"),Pe.prototype),De=Xe(Pe.prototype,"_isPublishing",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe(Pe.prototype,"relinkableLibrary",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"relinkableLibrary"),Pe.prototype),Xe(Pe.prototype,"orphanedLibraries",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"orphanedLibraries"),Pe.prototype),Xe(Pe.prototype,"activeLibraries",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"activeLibraries"),Pe.prototype),Xe(Pe.prototype,"partiallyLoadedLibraries",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"partiallyLoadedLibraries"),Pe.prototype),Xe(Pe.prototype,"searchableLibraries",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"searchableLibraries"),Pe.prototype),Xe(Pe.prototype,"libraries",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"libraries"),Pe.prototype),Xe(Pe.prototype,"recentLibraries",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"recentLibraries"),Pe.prototype),Ne=Xe(Pe.prototype,"_currentLibrary",[Te],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe(Pe.prototype,"deleteElements",[i.action],Object.getOwnPropertyDescriptor(Pe.prototype,"deleteElements"),Pe.prototype),Xe(Pe.prototype,"deleteGroups",[i.action],Object.getOwnPropertyDescriptor(Pe.prototype,"deleteGroups"),Pe.prototype),Xe(Pe.prototype,"restoreElements",[i.action],Object.getOwnPropertyDescriptor(Pe.prototype,"restoreElements"),Pe.prototype),Re=Xe(Pe.prototype,"_relinkableAssetsData",[Ie],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Me=Xe(Pe.prototype,"_recentlyActiveLibraries",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),je=Xe(Pe.prototype,"_initialized",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ze=Xe(Pe.prototype,"_isLoadingAppLoggedInState",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Fe=Xe(Pe.prototype,"_isAppLoggedIn",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe(Pe.prototype,"loaded",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"loaded"),Pe.prototype),Xe(Pe.prototype,"storageUsed",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"storageUsed"),Pe.prototype),Xe(Pe.prototype,"_isConnected",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"_isConnected"),Pe.prototype),Xe(Pe.prototype,"connectionState",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"connectionState"),Pe.prototype),Xe(Pe.prototype,"areLibrariesLoaded",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"areLibrariesLoaded"),Pe.prototype),Xe(Pe.prototype,"areLibrariesLoading",[i.computed],Object.getOwnPropertyDescriptor(Pe.prototype,"areLibrariesLoading"),Pe.prototype),Pe)},79799:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(26964),i=r(93028),o=r(76485),a=r(46903);function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.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,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(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 h(){}function f(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,a,"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,f):(e.__proto__=f,c(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,a,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))}}const u="cclibraries.service.QuerySyncingEnabledRequest",p="cclibraries.service.QuerySyncingEnabledResponse",d="cclibraries.service.SetSyncingEnabledRequest",h="cclibraries.service.SyncingEnabledChanged",f="cclibraries.service.SyncStateChanged";class m{constructor(){this._cclibraryProcessLaunchPending=!1}get _ccLibraries(){return i.ZP.dangerouslyAccessCCLibraries()}get _vulcanInterface(){return o.Z.vulcanInterface}getServiceInfo(){return o.Z.canLaunchProcess?this._ccLibraries.processInfo:void 0}isProcessInstalled(){return this._vulcanInterface.isCCLibProcessInstalled()}isProcessRunning(){return this._vulcanInterface.isCCLibProcessRunning()}isConnected(){return this._ccLibraries.isConnected()}disconnectFromProcess(){var e,t;null===(e=(t=this._ccLibraries).disconnect)||void 0===e||e.call(t),this._clearAndResetProcessConnectionPolling(),this._clearAndResetProcessLaunchPolling()}_clearAndResetProcessLaunchPolling(){this._cclibraryProcessLaunchPolling&&(clearInterval(this._cclibraryProcessLaunchPolling),this._cclibraryProcessLaunchPolling=null)}_clearAndResetProcessConnectionPolling(){this._cclibraryProcessConnectionPolling&&(clearTimeout(this._cclibraryProcessConnectionPolling),this._cclibraryProcessConnectionPolling=null)}launchCCLibraryProcess(){if(!o.Z.canLaunchProcess||this._cclibraryProcessLaunchPolling)return;const e=()=>{this._clearAndResetProcessLaunchPolling(),this.reconnectToProcess(),this._vulcanInterface.removeMessageListener("cclibraries.service.Initialized",e),o.Z.maintainConnectionToProcess?this._cclibraryProcessConnectionPolling=setTimeout((()=>{this._cclibraryProcessConnectionPolling=null,this.isConnected()||this.launchCCLibraryProcess()}),1e4):this._clearAndResetProcessConnectionPolling()},t=()=>{n.Z.log("Launching CCLibrary Process"),this._vulcanInterface.launchCCLibProcess()},r=()=>{if(this.isConnected())return void e();!(this.getServiceInfo()||{}).updateRequired&&this.isProcessInstalled()&&Promise.resolve(this.isProcessRunning()).then((e=>{e?(this._clearAndResetProcessLaunchPolling(),this.reconnectToProcess()):t()}))};this._vulcanInterface.addMessageListener("cclibraries.service.Initialized",e),this.reconnectToProcess(),this._cclibraryProcessLaunchPolling=setInterval(r,5e3),r()}reconnectToProcess(){return o.Z.maintainConnectionToProcess&&this._ccLibraries.reconnect()}getLocalMachineSetting(e){return this._ccLibraries.getLocalSetting(e)}setLocalMachineSetting(e,t){var r=this;return l(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._ccLibraries.setLocalSetting(e,t);case 2:case"end":return n.stop()}}),n)})))()}isSyncingEnabled(){var e=this;return l(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isConnected()){t.next=2;break}return t.abrupt("return",e._ccLibraries.isSyncingEnabled());case 2:return t.t0=JSON,t.next=5,e._vulcanInterface.call({requestType:u,responseType:p,timeout:1e3});case 5:return t.t1=t.sent,t.abrupt("return",t.t0.parse.call(t.t0,t.t1).syncingEnabled);case 7:case"end":return t.stop()}}),t)})))()}setSyncingEnabled(e){if(this.isConnected())return e?this._ccLibraries.enableSyncing():this._ccLibraries.disableSyncing();this._vulcanInterface.sendMessage(d,{syncingEnabled:e},{payloadType:"json"})}addSyncingEnabledChangedListener(e){e.syncingEnabledChangedListener=t=>{try{e(JSON.parse(t).syncingEnabled)}catch(e){n.Z.log("Error parsing JSON response from SyncingEnabledBroadcast",e)}},this._vulcanInterface.addMessageListener(h,e.syncingEnabledChangedListener)}removeSyncingEnabledChangedListener(e){e.syncingEnabledChangedListener&&this._vulcanInterface.removeMessageListener(h,e.syncingEnabledChangedListener)}static transformSyncState(e,t){var r;if(!1===e.syncingEnabled)return{state:"error",errorType:"syncDisabled"};const n=e.state;return"error"===n?{state:n,errorType:(0,a.Y3)(null===(r=e.error)||void 0===r?void 0:r.code,t,!1)}:{state:n}}addSyncStateChangedListener(e){e.syncStateChangedListener=t=>{try{e(m.transformSyncState(JSON.parse(t),i.ZP.errors))}catch(e){n.Z.log("Error parsing JSON response from SyncStateChangedBroadcast",e)}},this._vulcanInterface.addMessageListener(f,e.syncStateChangedListener)}removeSyncStateChangedListener(e){e.syncStateChangedListener&&this._vulcanInterface.removeMessageListener(f,e.syncStateChangedListener)}}const g=new m},4784:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(93028),i=r(62061),o=r(30949);const a=new class{constructor(){this._pendingElementsMap={}}incrementPendingElements(e){e&&(this._pendingElementsMap[e.id]=this._pendingElementsMap[e.id]||0,this._pendingElementsMap[e.id]++)}decrementPendingElements(e){e&&this._pendingElementsMap[e.id]>0&&this._pendingElementsMap[e.id]--}canAddElements(e,t=1){if(!e)return!1;const r=this._pendingElementsMap[e.id]||0,i=e instanceof o.Z?e.elementCount:e.elements.length;return n.ZP.MAX_ELEMENTS-i-r>=t}getSize(e){return e?Array.isArray(e)?e.reduce(((e,t)=>e+this.getSize(t)),0):e.elements?e.elements.reduce(((e,t)=>e+this.getSize(t)),0):e.representations?e.representations.reduce(((e,t)=>e+(t.contentLength||0)),0):0:0}getSizeAsString(e){return(0,i.d3)(this.getSize(e))}}},87544:(e,t,r)=>{"use strict";r.d(t,{Z:()=>j});var n,i=r(50265),o=r(85878),a=r(33275),s=r(76325),c=r(26964),l=r(72373),u=r(99049),p=r(99386),d=r(47320),h=r(44914),f=r(48919);function m(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(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 g(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(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let y=(v((n=class extends u.Z{constructor(e){super(e),this._disposeLinkChangeListener=(0,i.reaction)((()=>this.linkStatus),(()=>this.emit("change")))}dispose(){super.dispose(),this._disposeLinkChangeListener()}getLocalData(){const e=this.linkedElement,t=this.linkedAsset,r=e&&t&&{"repo:assetId":t.cloudID,"repo:repositoryId":t.repositoryID,resource:this._resource,name:e.name,linkReference:this.getNewLinkRef(),permission:this.permission,_links:this._links,_embedded:this._embedded};return{linkState:this.linkStatus,linkedAsset:r}}getRenditionURL(e){var t;return null===(t=this.linkedElement)||void 0===t?void 0:t.getThumbnailURL(e)}get primaryContentURL(){var e,t;return null===(e=this._links)||void 0===e||null===(t=e["http://ns.adobe.com/adobecloud/rel/primary"])||void 0===t?void 0:t.href}get primaryContent(){var e;return null===(e=this._embedded)||void 0===e?void 0:e["http://ns.adobe.com/adobecloud/rel/primary"]}get _links(){const e={};return this._linkedPrimary&&(e["http://ns.adobe.com/adobecloud/rel/primary"]={href:this._linkedPrimary.getContentURL()}),this._linkedRendition&&(e["http://ns.adobe.com/adobecloud/rel/rendition"]={href:this._linkedRendition,templated:!0}),e}get _embedded(){const e={},t=d.Z.getEmbeddedData(this.linkedElement),r=t.primary,n=t.rendition;return r&&(e["http://ns.adobe.com/adobecloud/rel/primary"]=r),n&&(e["http://ns.adobe.com/adobecloud/rel/rendition"]=n),e}get _resource(){return this._linkedPrimary?{reltype:"http://ns.adobe.com/adobecloud/rel/component",component_id:this._linkedPrimary.id}:null}get _linkedPrimary(){var e;const t=null===(e=this.linkedElement)||void 0===e?void 0:e.getPrimaryRepresentation();if(null!=t&&t.getContentURL())return t}get _linkedRendition(){return this.getRenditionURL(p.Z.IMAGE_THUMBNAIL_SIZE)}get linkedLibrary(){return f.Z.libraryManager.resolveCachedElementReferenceToLibrary(this.linkReference)}get linkedElement(){return f.Z.libraryManager.resolveCachedElementReference(this.linkReference)}get alternativeLinkedElement(){if(this.linkedLibrary&&!this.linkedElement&&this.sourceRef){return m(this.linkedLibrary.getFilteredElements((e=>(0,h.LR)(e)===(0,h.LR)(this))),1)[0]}}get _isLinkStatusLoading(){return[this.linkedElement,this.linkedLibrary].includes(void 0)}get isSyncing(){var e;return!f.Z.libraryManager.loaded&&!p.Z.currentProduct.config.disablePreemptiveLibraryLoad||this._isLinkStatusLoading||"downloading"===(null===(e=this.linkedLibrary)||void 0===e?void 0:e.syncState)}get isNormalLinkState(){return super.isNormalLinkState&&!this.isPendingFollow}get isMissingLink(){return super.isMissingLink||this.isPendingFollow}get isMissingLibrary(){return this.linkStatus===p.Z.SAM_LINK_STATES.BROKEN&&!this.linkedLibrary}get isMissingElement(){return!(this.linkStatus!==p.Z.SAM_LINK_STATES.BROKEN||this.linkedElement)}get isPendingFollow(){return!(this.linkedLibrary||this.linkStatus!==p.Z.SAM_LINK_STATES.NORMAL||!f.Z.libraryManager.teamLibrariesData.get(this.assetId))}get isPendingInvite(){return!(this.linkStatus!==p.Z.SAM_LINK_STATES.RESTRICTED||!f.Z.libraryManager.invitationsData.has(this.assetId))}get isMissingLibraryLink(){return this.isMissingLibrary||this.isPendingFollow||this.isPendingInvite}get linkStatus(){return this.isSyncing?p.Z.SAM_LINK_STATES.NORMAL:this.linkedLibrary?this.linkedElement?this.fragmentInstanceId&&this._resource?this.linkedElement.instanceId!==this.fragmentInstanceId?p.Z.SAM_LINK_STATES.PENDING_UPDATE:this.linkedElement.name!==this.fragmentName?p.Z.SAM_LINK_STATES.PENDING_METADATA_UPDATE:p.Z.SAM_LINK_STATES.NORMAL:p.Z.SAM_LINK_STATES.NORMAL:this.alternativeLinkedElement?p.Z.SAM_LINK_STATES.PENDING_UPDATE:p.Z.SAM_LINK_STATES.BROKEN:super.linkStatus}_getNewLinkRef(){var e,t;return(null===(e=this.linkedElement)||void 0===e?void 0:e.getReference())||(null===(t=this.alternativeLinkedElement)||void 0===t?void 0:t.getReference())}}).prototype,"_links",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"_links"),n.prototype),v(n.prototype,"_embedded",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"_embedded"),n.prototype),v(n.prototype,"_linkedRendition",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"_linkedRendition"),n.prototype),v(n.prototype,"linkedLibrary",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"linkedLibrary"),n.prototype),v(n.prototype,"linkedElement",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"linkedElement"),n.prototype),v(n.prototype,"alternativeLinkedElement",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"alternativeLinkedElement"),n.prototype),n);var b,_,E,w=r(76485);function L(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x(e,t)}(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){(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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */S=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function O(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function T(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){O(o,n,i,a,s,"next",e)}function s(e){O(o,n,i,a,s,"throw",e)}a(void 0)}))}}const I=0,P=1;let C=(b=i.observable.ref,_=class{constructor(){var e,t,r,n;e=this,t="_linkList",n=this,(r=E)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0}),this._waitForInit=new Promise((e=>this._completeInit=e))}get areLogsEnabled(){return l.Z.getDebugValue("enableSAMLogs")}init(){var e=this;return T(S().mark((function t(){var r,n,a,l,u,p,d;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=w.Z.imsUserId,a=w.Z.getHostEnvironment(),l=a.appId,u=a.appVersion,p={CLIENT_ID:(null===(r=s.Z.getEnvironment())||void 0===r?void 0:r.clientId)||w.Z.imsClientId,ENVIRONMENT:"staging"===(w.Z.imsEnvironment||s.Z.environmentType)?I:P,USER_ID:n,HOST_PRODUCT_DATA:{PRODUCT_ID:`${l}/${u}`,PRODUCT_LOCATION:"CCLibrariesPanel"}},d={refreshAccessToken:function(){var e=T(S().mark((function e(){return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=w.Z.imsUserId,e.prev=1,e.next=4,s.Z.getAccessToken(n);case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(1),c.Z.log(`[refreshAccessToken] ${e.t0}`);case 10:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},t.prev=4,t.next=7,(0,o.jz)(p,d);case 7:e._assetModel=t.sent,e._assetModel.on(o.Hf,e._handleSAMLogEvent),e._linkManager=e._assetModel.assetLinkManager,e._linkList=e._linkManager.createList(),e._assetModel.makeObservable(((...e)=>new i.Atom(...e))),e._completeInit(),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(4),c.Z.log(`[LinkManager.init] ${t.t0}`);case 18:case"end":return t.stop()}}),t,null,[[4,15]])})))()}_handleSAMLogEvent(e){this.areLogsEnabled&&c.Z.log(`[SAM.js] ${e.message}`)}get linkList(){return this._linkList&&this._linkList.links}_addLink(e){var t=this;return T(S().mark((function r(){var n,i,o;return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e=a.P6.parseLinkReference(e)){r.next=3;break}return r.abrupt("return");case 3:return r.next=5,t._linkList.add([e]);case 5:if(n=r.sent,i=L(n,1),o=i[0],!(0,h.dP)(e)){r.next=10;break}return r.abrupt("return",new y(o));case 10:return r.abrupt("return",new u.Z(o));case 11:case"end":return r.stop()}}),r)})))()}addLink(e){var t=this;return T(S().mark((function r(){var n;return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._waitForInit;case 2:if(e){r.next=4;break}return r.abrupt("return");case 4:return r.next=6,t._addLink(e);case 6:return n=r.sent,r.abrupt("return",n);case 8:case"end":return r.stop()}}),r)})))()}removeLink(e){var t;e&&(e.dispose(),null===(t=this._linkList)||void 0===t||t.remove(e._link))}getAssetWithCloudID(e){var t=this;return T(S().mark((function r(){var n,i;return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._waitForInit;case 2:return r.prev=2,n=t._assetModel.hostAssetContext,r.next=6,n.getAssetWithCloudID(e);case 6:return i=r.sent,r.abrupt("return",i);case 10:r.prev=10,r.t0=r.catch(2),!t.areLogsEnabled&&r.t0.message.includes("NOT_FOUND")||c.Z.log(`[LinkManager.getAssetWithCloudID] ${r.t0}`);case 13:case"end":return r.stop()}}),r,null,[[2,10]])})))()}resolveProjectByName(e){var t=this;return T(S().mark((function r(){var n,i;return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._waitForInit;case 2:return r.prev=2,n=t._assetModel.projectContext,r.next=6,n.resolveProjectByName(e);case 6:return i=r.sent,r.abrupt("return",i);case 10:r.prev=10,r.t0=r.catch(2),c.Z.log(`[LinkManager.resolveProjectByName] ${r.t0}`);case 13:case"end":return r.stop()}}),r,null,[[2,10]])})))()}},A=_.prototype,k="_linkList",D=[b],N={configurable:!0,enumerable:!0,writable:!0,initializer:null},M={},Object.keys(N).forEach((function(e){M[e]=N[e]})),M.enumerable=!!M.enumerable,M.configurable=!!M.configurable,("value"in M||M.initializer)&&(M.writable=!0),M=D.slice().reverse().reduce((function(e,t){return t(A,k,e)||e}),M),R&&void 0!==M.initializer&&(M.value=M.initializer?M.initializer.call(R):void 0,M.initializer=void 0),void 0===M.initializer&&(Object.defineProperty(A,k,M),M=null),E=M,_);var A,k,D,N,R,M;const j=new C},9494:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{constructor(){this._locks={}}obtainLock(e,t,r){let n=this._locks[e];n||(n={pendingContinuations:[],isLocked:!1},this._locks[e]=n),n.isLocked?n.pendingContinuations.push({continuation:t,thisObject:r}):(n.isLocked=!0,t.apply(r,[null]))}releaseLock(e){const t=this._locks[e];if(t)if(t.pendingContinuations.length>0){const e=t.pendingContinuations.shift();setTimeout((function(){e.continuation.apply(e.thisObject,[null])}))}else delete this._locks[e]}}},99409:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(76485),i=r(51461),o=r(86351),a=r(84824),s=r(50265),c=r(73675);const l=e=>e.map((e=>{if(e.divider)return'<MenuItem Label="---"/>';const t=(0,a.Iu)(e.label,e.translationData).replace(new RegExp("&","g"),"&").replace(new RegExp('"',"g"),""").replace(new RegExp("'","g"),"'").replace(new RegExp("<","g"),"<").replace(new RegExp(">","g"),">");return r={Id:e.menuId,Label:t,Checkable:!0,Checked:e.checked,Enabled:!Object.prototype.hasOwnProperty.call(e,"enableMenu")||e.enableMenu},n=e.menuItems,`<MenuItem ${Object.keys(r).filter((e=>void 0!==r[e])).map((e=>`${e}="${r[e]}"`)).join(" ")}>${n?l(n):""}</MenuItem>`;var r,n})).join(""),u=e=>{e.label=e.label&&(0,a.Iu)(e.label,e.translationData),e.menuItems&&e.menuItems.forEach(u)},p=e=>n.Z.isMenuInJson?(e.forEach(u),e):`<Menu>${l(e)}</Menu>`,d=(e,t="MENU")=>{const r={};return e.forEach(((e,n)=>{const i=t+"_"+n;e.menuId=i,r[i]=e,e.menuItems&&Object.assign(r,d(e.menuItems,i))})),r};const h=new class{getFlyoutMenu(e){return this._getFlyoutMenu(e)}get contextMenu(){return this._contextMenu}constructor(e=c.rY){this._onFlyoutMenuClicked=e=>{const t=e&&e.data&&e.data.menuId;t&&this._flyoutMenuMapping&&this._flyoutMenuMapping[t]&&this._flyoutMenuMapping[t].onClick&&this._flyoutMenuMapping[t].onClick(),this._listenerManager.notify("flyoutMenuClicked",e)},this._onFlyoutMenuOpened=e=>{this.flyoutMenuOpen=!0,i.ZP.reportEvent("Navigation","Library Panel","click","flyout-menu"),this._listenerManager.notify("flyoutMenuOpened",e)},this._onFlyoutMenuClosed=()=>{this.flyoutMenuOpen=!1,this._pendingFlyoutMenuItems&&(this._setFlyoutMenu(this._pendingFlyoutMenuItems),delete this._pendingFlyoutMenuItems)},this._getFlyoutMenu=e,this._listenerManager=(0,o.N)(this,["flyoutMenuClicked","flyoutMenuOpened"])}init(){(0,s.reaction)((()=>this.getFlyoutMenu()),(e=>this._setFlyoutMenu(e)),{fireImmediately:!0}),n.Z.addEventListener("com.adobe.csxs.events.flyoutMenuClicked",this._onFlyoutMenuClicked),n.Z.addEventListener("com.adobe.csxs.events.flyoutMenuOpened",this._onFlyoutMenuOpened),n.Z.addEventListener("com.adobe.csxs.events.flyoutMenuClosed",this._onFlyoutMenuClosed),window.oncontextmenu=e=>{this.setContextMenu([]),n.Z.onContextMenu(e)}}dispose(){n.Z.removeEventListener("com.adobe.csxs.events.flyoutMenuClicked",this._onFlyoutMenuClicked),n.Z.removeEventListener("com.adobe.csxs.events.flyoutMenuOpened",this._onFlyoutMenuOpened),n.Z.removeEventListener("com.adobe.csxs.events.flyoutMenuClosed",this._onFlyoutMenuClosed),window.oncontextmenu=void 0}setContextMenu(e,t){const r=d(e);this._contextMenu=e,t&&Object.values(r).forEach((e=>{const r=e.onClick;e.onClick=()=>{r&&r(),t()}})),n.Z.setContextMenu(p(e),(e=>{r[e]&&r[e].onClick&&r[e].onClick()}))}_setFlyoutMenu(e){this.flyoutMenuOpen?this._pendingFlyoutMenuItems=e:(this._flyoutMenuMapping=d(e),n.Z.setPanelFlyoutMenu&&n.Z.setPanelFlyoutMenu(p(e)))}openContextMenu(e,t){this.setContextMenu(e),n.Z.onContextMenu(t)}closeContextMenu(){n.Z.closeContextMenu&&n.Z.closeContextMenu()}}},92098:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,i=r(99386),o=r(93028),a=r(34038),s=r(50265);function c(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const l=new(c((n=class{constructor(){this._tempFileMap={},this._getFilePath=(e,t)=>{let r=i.Z.strTempFolder+"/";i.Z.currentProduct.config.tempFolder&&(r=i.Z.currentProduct.config.tempFolder());const n=e.split("/").pop(),o="."+a.MZ(n),s=i.Z.currentProduct.config.includeGuidInTempFileName,c=256-r.length-o.length-(s?36:0);let l=a.mI(t).substring(0,c);return s&&(l=`${l}_${a.Rl()}`),`${r}${l}${o}`},this._copyToTempLocation=(e,t)=>{const r=this._getFilePath(e,t);return o.ZP.copyFile(e,r).then((()=>r))}}getTempFile(e){const t=e.element;return e.getContentPath().then((e=>{const r=t.getLegacyReference();return this._tempFileMap[r]&&this._tempFileMap[r].path===e?this._tempFileMap[r].tempPath:this._copyToTempLocation(e,t.name).then((t=>(this._tempFileMap[r]={path:e,tempPath:t},t)))}))}updateTempFile(e,t){const r=e.element;return e.getContentPath().then((e=>{const n=r.getLegacyReference();this._tempFileMap[n]={path:e,tempPath:t},Object.keys(this._tempFileMap).forEach((e=>{e!==n&&this._tempFileMap[e].tempPath===t&&delete this._tempFileMap[e]}))}))}deleteTempFile(e){a._I(e),Object.keys(this._tempFileMap).forEach((t=>{this._tempFileMap[t].tempPath===e&&delete this._tempFileMap[t]}))}}).prototype,"getTempFile",[s.action],Object.getOwnPropertyDescriptor(n.prototype,"getTempFile"),n.prototype),c(n.prototype,"updateTempFile",[s.action],Object.getOwnPropertyDescriptor(n.prototype,"updateTempFile"),n.prototype),c(n.prototype,"deleteTempFile",[s.action],Object.getOwnPropertyDescriptor(n.prototype,"deleteTempFile"),n.prototype),n)},64705:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(99409),i=r(93028),o=r(17552),a=r(76485),s=r(8733),c=r(53849);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const p=new class{init(){window.__test__=this}getFlyoutMenu(){return n.Z.getFlyoutMenu()}getContextMenu(){return n.Z.contextMenu}getCurrentLibraryInfo(){const e=i.ZP.currentLibrary;if(e)return{id:e.id,numElements:e.elements.length}}setFilePath(e){this._filePath=e}getFilePath(){return this._filePath}getFilesToImport(){return this._files}setFilesToImport(e){this._files=e?e.map((e=>{const t=new Uint8Array(e.content.data),r=new Blob([t],{type:e.type});return new File([r],e.name,{type:e.type,lastModified:e.lastModified})})):void 0}importLibrary(){o.Lg(this._filePath,((e,t)=>{t&&(i.ZP.currentLibrary=t)}))}isLibraryManagerWindowOpen(){return a.Z.isLibraryManagerWindowOpen()}enableAddElementMenu(e){a.Z.setLayerInfo(e),s.Z.updateLayerInfo()}selectElements(e=[]){const t=i.ZP.currentLibrary.elements.filter((t=>e.includes(t.name)));t.length?c.Z.setSelection(t,!0):c.Z.clearSelection()}disableSync(){i.ZP.disableSyncing()}enableSync(){return(e=l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.ZP.enableSyncing();case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))})();var e}isSyncingEnabled(){return i.ZP.syncingEnabled()}}},57806:(e,t,r)=>{"use strict";r.d(t,{s4:()=>y,ZP:()=>b});var n,i,o=r(50265),a=r(99386),s=r(76485),c=r(20290);function l(){l=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,i){var o=new RegExp(e,n);return t.set(o,i||t.get(e)),p(o,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce((function(t,r){return t[r]=e[n[r]],t}),Object.create(null))}return u(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,r,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,r,i)},l.apply(this,arguments)}function u(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)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function h(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function m(e){if(!e.styleSheets)return!0;for(let t=e.styleSheets.length-1;t>=0;t--)try{const r=e.styleSheets[t].rules||e.styleSheets[t].cssRules;for(let e=0;e<r.length;e++)if(".color-theme-background"===r[e].selectorText)return!0}catch(e){}}const g=(e,t)=>e&&e.use(t.querySelector("head")),v=(e,t)=>e&&e.unuse(t.querySelector("head")),y={light:"light",dark:"dark",lighter:"lightest",darker:"darkest"};const b=new(i=f((n=class{constructor(){var e,t,r,n;e=this,t="themeName",n=this,(r=i)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0}),this._roots=[],this._onAppThemeColorChanged=()=>{this.updateTheme(s.Z.getHostEnvironment(!0).appSkinInfo)}}_fetchStyles(){const e=`${r.p}styles.css`,t=new XMLHttpRequest;return new Promise(((r,n)=>{t.open("GET",e,!0),t.onload=()=>r(t.response),t.onerror=n,t.send()}))}init(){if(s.Z.addEventListener(a.Z.THEME_COLOR_CHANGED_EVENT,this._onAppThemeColorChanged),s.Z.excludeDocumentRoot||this._roots.push(document),this._globalStyleTag=this._fetchStyles().then((e=>{const t=document.createElement("style");return t.setAttribute("type","text/css"),t.setAttribute("data-cc-libraries-global-css",""),t.appendChild(document.createTextNode(e)),t})),!s.Z.excludeDocumentRoot){Array(document.head.children).some((e=>"LINK"===e.tagName&&"stylesheet"===e.rel&&e.href.endsWith("/styles.css")))||this._addGlobalCSSAsStyleTag(document)}return this.updateTheme(s.Z.getHostEnvironment().appSkinInfo).finally((()=>this._finishedInitialization=!0))}_addGlobalCSSAsStyleTag(e,t){var r,n=this;return(r=d().mark((function r(){var i,o,a,s;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=e.querySelector("head"),!(o=i.querySelector("[data-cc-libraries-global-css]"))||t){r.next=4;break}return r.abrupt("return");case 4:if(n._globalStyleTag){r.next=6;break}return r.abrupt("return");case 6:return r.next=8,n._globalStyleTag;case 8:a=r.sent,(s=a.cloneNode(!0)).removeAttribute("media"),o?i.replaceChild(s,o):i.insertBefore(s,i.firstChild);case 12:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){h(o,n,i,a,s,"next",e)}function s(e){h(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get reactSpectrumTheme(){return y[this.themeName]||"light"}get themeSystem(){var e;return(null===(e=a.Z.currentProduct)||void 0===e?void 0:e.config.themeSystem)||"spectrum"}get appCode(){return a.Z.currentProduct.config.code}get isInitialized(){return!!this._finishedInitialization}addRoot(e,t=!1){return this._roots.includes(e)||(this._roots.push(e),this._addGlobalCSSAsStyleTag(e),t||g(this._theme,e)),t?Promise.resolve():this._waitForBackgroundColor()}removeRoot(e){const t=this._roots.indexOf(e);-1!==t&&(this._roots.splice(t,1),v(this._theme,e))}_waitForBackgroundColor(){return this._roots.every(m)?Promise.resolve():(0,c.gw)(10,(()=>this._waitForBackgroundColor()))}_replaceTheme(e){const t=this._theme;e!==t&&(this._theme=e,this._roots.forEach((t=>{t!==document&&this._addGlobalCSSAsStyleTag(t),g(e,t)})),setTimeout((()=>this._roots.forEach((e=>v(t,e)))),20))}_validateAppSkinInfo(e={}){var t,r,n,i,o,a;return(null===(t=e.panelBackgroundColor)||void 0===t||null===(r=t.color)||void 0===r?void 0:r.red)&&(null===(n=e.panelBackgroundColor)||void 0===n||null===(i=n.color)||void 0===i?void 0:i.green)&&(null===(o=e.panelBackgroundColor)||void 0===o||null===(a=o.color)||void 0===a?void 0:a.blue)}_updateTheme(e={}){var t;const r=a.Z.currentProduct.config.themes,n=null===(t=e.panelBackgroundColor)||void 0===t?void 0:t.color;let i=e.panelNamedTheme||r[function(e,t){const r=(e,t=0)=>{const r=Math.round(Math.max(0,Math.min(255,e+t))).toString(16);return(1===r.length?"0":"")+r};return e?r(e.red,t)+r(e.green,t)+r(e.blue,t):""}(n)];if(!i&&this._validateAppSkinInfo(e)){let e;Object.keys(r).map((t=>{const o=l(/([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i,{red:1,green:2,blue:3}).exec(t);if(!o)return;const a=o.groups,s=Math.sqrt(Math.pow(parseInt(a.red,16)-n.red,2)+Math.pow(parseInt(a.green,16)-n.green,2)+Math.pow(parseInt(a.blue,16)-n.blue,2));(!e||e>s)&&(e=s,i=r[t])}))}this.themeName=i||a.Z.currentProduct.config.defaultTheme}updateTheme(e){this._updateTheme(e);const t=function(e,t){try{return r(13050)("./"+e+"/css/"+t+"/main.scss")}catch(r){return console.error("Theme not found: "+e+"/"+t),Promise.reject()}}(a.Z.currentProduct.config.code,this.themeName).then((e=>{this._loadingPromise===t&&(this._replaceTheme(e),delete this._loadingPromise)})).then((()=>this._waitForBackgroundColor()));return this._loadingPromise=t,t}}).prototype,"themeName",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return a.Z.currentProduct.config.defaultTheme}}),f(n.prototype,"reactSpectrumTheme",[o.computed],Object.getOwnPropertyDescriptor(n.prototype,"reactSpectrumTheme"),n.prototype),f(n.prototype,"_updateTheme",[o.action],Object.getOwnPropertyDescriptor(n.prototype,"_updateTheme"),n.prototype),n)},61357:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n,i,o=r(50265),a=r(47320),s=r(26964),c=r(76485),l=r(99386);function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))}}let h=(n=class{constructor(e,t){var r,n,o,a;this._fetchId=0,this._blobCache=new Map,r=this,n="_url",a=this,(o=i)&&Object.defineProperty(r,n,{enumerable:o.enumerable,configurable:o.configurable,writable:o.writable,value:o.initializer?o.initializer.call(a):void 0}),this._element=e,this._isLarge=t}dispose(){this._blobCache.forEach((e=>URL.revokeObjectURL(e)))}get _elementModified(){return this._element.changeCount||this._element.modified}get url(){return(e=>{if(e.removed){const t=6e5;return(new Date).valueOf()-e.removed>=t}return!1})(this._element)?null:(this._elementModified!==this._modified&&this._update(),this._url)}_update(){const e=++this._fetchId,t=this._modified=this._elementModified,r=setTimeout((()=>{e===this._fetchId&&(this._url=void 0)}),300),n=n=>{if(clearTimeout(r),e===this._fetchId){var i;if(this._elementModified!==t)return void this._update();n||null!==(i=this._element.getPrimaryRepresentation())&&void 0!==i&&i.isCommitted?this._url=n||null:this._url=void 0}};this._getThumbnailUrl().then(n).catch((e=>{s.Z.log("Error getting thumbnail URL: "+e),n()}))}_getThumbnailUrl(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.Z.getLocalThumbnailURL(e._element,e._isLarge);case 2:if(r=t.sent,!c.Z.supportsFileURLs){t.next=5;break}return t.abrupt("return",r);case 5:return t.abrupt("return",e._getThumbnailBlobUrl(r));case 6:case"end":return t.stop()}}),t)})))()}_getThumbnailBlobUrl(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return",void 0);case 2:if(n=`${e}#${t._element.instanceId}`,!(i=t._blobCache.get(n))){r.next=6;break}return r.abrupt("return",i);case 6:return r.next=8,fetch(e);case 8:if(!(o=r.sent).ok){r.next=19;break}return r.t0=URL,r.next=13,o.blob();case 13:return r.t1=r.sent,a=r.t0.createObjectURL.call(r.t0,r.t1),t._blobCache.set(n,a),r.abrupt("return",a);case 19:throw new Error(`could not load thumbnail for element: ${t._element.id}`);case 20:case"end":return r.stop()}}),r)})))()}},f=n.prototype,m="_url",g=[o.observable],v={configurable:!0,enumerable:!0,writable:!0,initializer:null},b={},Object.keys(v).forEach((function(e){b[e]=v[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=g.slice().reverse().reduce((function(e,t){return t(f,m,e)||e}),b),y&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(y):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(f,m,b),b=null),i=b,n);var f,m,g,v,y,b;const _=new class{constructor(){this._thumbnailCache=new Map,this._deletionListeners=new Map,this._clearThumbnailData=e=>{const t=this._thumbnailCache.get(e);null==t||t.dispose(),this._thumbnailCache.delete(e)},this._addDeletionEventListener=e=>{this._deletionListeners.has(e.library.id)||(this._deletionListeners.set(e.library.id,(()=>{e.library.off("remove",this._deletionListeners.get(e.library.id)),this._deletionListeners.delete(e.library.id),this._thumbnailCache.forEach(((t,r)=>{r.startsWith(`${e.library.id}#`)&&this._clearThumbnailData(r)}))})),e.library.on("remove",this._deletionListeners.get(e.library.id)))}}_getThumbnailData(e,t){const r=`${e.library.id}#${e.id}`+(t?"--large":"--normal"),n=setTimeout((()=>this._clearThumbnailData(r)),l.Z.THUMBNAIL_CACHE_KEEPALIVE_TIME),i=this._thumbnailCache.get(r);return i?(clearTimeout(i.timeout),i.timeout=n,i):(i&&i._element===e||(this._thumbnailCache.set(r,new h(e,t)),this._addDeletionEventListener(e)),this._thumbnailCache.get(r))}getLocalThumbnailURL(e,t=!1){return this._getThumbnailData(e,t).url}isThumbnailLoading(e,t=!1){return void 0===this._getThumbnailData(e,t).url}clearCache(){this._thumbnailCache.forEach((e=>e.dispose())),this._thumbnailCache.clear()}}},81046:(e,t,r)=>{"use strict";r.d(t,{y:()=>ve,Z:()=>ye});var n,i,o,a,s=r(50265),c=r(76485),l=r(62631),u=r(2652),p=r.n(u),d=r(89526),h=r(64403),f=r.n(h),m=r(85080),g=r(99386),v=r(27611);let y=(0,l.Pi)((a=class extends d.Component{constructor(e){var t,r,n,i;super(e),t=this,r="isFadingOut",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this.overlayState=new m.Z({ignoreAllEvents:!e.closable,ignoreScrollEvents:!0,ignoreFocus:c.Z.ignoreFocusOutsideToast})}componentDidMount(){if(this.overlayState.toggleOverlay(),0!==this.props.duration){const e=this.props.duration||g.Z.DEFAULT_TOAST_TIMEOUT;let t=setTimeout((()=>{this.isFadingOut=!0,t=setTimeout(this.props.close,g.Z.TOAST_FADEOUT)}),e);(0,s.when)((()=>!this.overlayState.isOpen),(()=>{clearTimeout(t),this.props.close()}))}}render(){return d.createElement("div",{"data-test-id":"toast",className:f()("panel-toast",`panel-toast--variant-${this.props.variant}`,{fadeout:this.isFadingOut}),ref:this.overlayState.setParentElement},d.createElement("span",{className:"panel-toast-text"},this.props.children),this.props.closable&&d.createElement("div",{className:"panel-toast-action panel-toast-close","data-test-id":"panel-toast-close",onClick:this.props.close},d.createElement(v.Z,{id:"Close",height:18})))}},a.propTypes={children:p().node,duration:p().number,close:p().func.isRequired,closable:p().bool,variant:p().oneOf(["error","warning","success","info"])},a.defaultProps={variant:"info",closable:!0},b=(i=a).prototype,_="isFadingOut",E=[s.observable],w={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},x={},Object.keys(w).forEach((function(e){x[e]=w[e]})),x.enumerable=!!x.enumerable,x.configurable=!!x.configurable,("value"in x||x.initializer)&&(x.writable=!0),x=E.slice().reverse().reduce((function(e,t){return t(b,_,e)||e}),x),L&&void 0!==x.initializer&&(x.value=x.initializer?x.initializer.call(L):void 0,x.initializer=void 0),void 0===x.initializer&&(Object.defineProperty(b,_,x),x=null),o=x,n=i))||n;var b,_,E,w,L,x,S,O,T=r(84824);let I=(0,l.Pi)(((O=class extends d.Component{render(){return d.createElement(y,{close:this.props.close,duration:g.Z.UNDO_TOAST_TIMEOUT},d.createElement("span",{"data-test-id":"toast-message"},this.props.message),d.createElement("span",{"data-test-id":"toast-undo-action",className:"panel-toast-action",onClick:this.props.undo},(0,T.Iu)("DL_UNDO_DELETE")))}}).propTypes={message:p().string.isRequired,undo:p().func.isRequired,close:p().func.isRequired},S=O))||S;var P,C,A=r(44853),k=r(93028),D=r(51461),N=r(25585);function R(e){return 1===e.length?(0,T.Iu)("DL_UNDO_DELETE_ITEM",{name:(0,N.aS)(e[0].name,25)}):(0,T.Iu)("DL_UNDO_DELETE_ITEMS",{num:e.length})}function M(e,t){k.ZP.restoreElements(e,t),D.ZP.reportEvent("Element Operations","Element","click","undo-delete",{event:{value:"agg",count:e.length},content:{category:"Click"}})}let j=(0,l.Pi)(((C=class extends d.Component{constructor(...e){super(...e),this.undoDelete=()=>{M(this.props.elements,this.props.groupInfo),this.props.close()}}static getMessage(e){return R(e.elements)}static getAction(e){return{label:(0,T.Iu)("DL_UNDO_DELETE"),onClick:()=>M(e.elements,e.groupInfo)}}get message(){return R(this.props.elements)}render(){return d.createElement(I,{undo:this.undoDelete,close:this.props.close,message:this.message})}}).propTypes={elements:p().arrayOf(p().instanceOf(A.Z)).isRequired,groupInfo:p().object,close:p().func.isRequired},C.toastName="undoDeleteElements",P=C))||P;var Z,F,B=r(24937),G=r(69233);function U(e,t){const r=Object.values(e.branches),n=r.find((e=>e.item.library)).item.library,i=r.filter((e=>e.item.isGroup&&e.item!==g.Z.UNGROUPED_GROUP)).length-n.getGroupCount();return i>1?t?(0,T.Iu)("DL_UNDO_UNGROUPED_GROUP_PLURAL",{num:i}):(0,T.Iu)("DL_UNDO_DELETED_GROUP_PLURAL",{num:i}):t?(0,T.Iu)("DL_UNDO_UNGROUPED_GROUP_SINGULAR"):(0,T.Iu)("DL_UNDO_DELETED_GROUP_SINGULAR")}function z(e){(0,G.r5)(e)}let V=(0,l.Pi)(((F=class extends d.Component{constructor(...e){super(...e),this.undoDelete=()=>{z(this.props.groupsTree),this.props.close()}}static getMessage(e){return U(e.groupsTree,e.ungroup)}static getAction(e){return{label:(0,T.Iu)("DL_UNDO_DELETE"),onClick:()=>z(e.groupsTree)}}get message(){return U(this.props.groupsTree,this.props.ungroup)}render(){return d.createElement(I,{undo:this.undoDelete,close:this.props.close,message:this.message})}}).propTypes={groupsTree:p().object.isRequired,close:p().func.isRequired,ungroup:p().bool},F.contextType=B.r,F.toastName="undoDeleteGroup",Z=F))||Z;var H,Y;function W(e,t){D.ZP.setExtraEventMetrics("updateElement",{subtype:"undo-delete-note",content:{category:"Click"}}),e.description=t}let $=(0,l.Pi)(((Y=class extends d.Component{constructor(...e){super(...e),this.undoDelete=()=>{W(this.props.element,this.props.description),this.props.close()}}static getMessage(){return(0,T.Iu)("DL_UNDO_DELETE_DESCRIPTION")}get message(){return(0,T.Iu)("DL_UNDO_DELETE_DESCRIPTION")}static getAction(e){return{label:(0,T.Iu)("DL_UNDO_DELETE"),onClick:()=>W(e.element,e.description)}}render(){return d.createElement(I,{undo:this.undoDelete,close:this.props.close,message:this.message})}}).propTypes={element:p().instanceOf(A.Z).isRequired,description:p().string.isRequired,close:p().func.isRequired},Y.toastName="undoDeleteDescription",H=Y))||H;var K,q;let X=(0,l.Pi)(((q=class extends d.Component{static getMessage(e){return e.message}get duration(){var e;return null!==(e=this.props.duration)&&void 0!==e?e:(0,N.E4)(this.props.message)}render(){return d.createElement(y,{close:this.props.close,variant:this.props.variant,duration:this.duration,closable:this.props.closable},d.createElement("span",{"data-test-id":"toast-message"},this.props.message))}}).propTypes={close:p().func.isRequired,message:p().oneOfType([p().string,p().node]).isRequired,variant:p().oneOf(["error","warning","success","info"]),duration:p().number,closable:p().bool},q.toastName="message",K=q))||K;var J,Q;let ee=(0,l.Pi)(((Q=class extends d.Component{constructor(...e){super(...e),this.onClick=()=>{this.props.action.onClick(),this.props.close()}}static getMessage(e){return e.message}static getAction(e){return e.action}get duration(){return(0,N.E4)(this.props.message)}render(){return d.createElement(y,{close:this.props.close,duration:this.duration,variant:this.props.variant},d.createElement("span",{"data-test-id":"toast-message"},this.props.message),d.createElement("span",{"data-test-id":"toast-action",className:"panel-toast-action",onClick:this.onClick},this.props.action.label))}}).propTypes={action:p().shape({label:p().string.isRequired,onClick:p().func.isRequired}).isRequired,close:p().func.isRequired,message:p().oneOfType([p().string,p().node]).isRequired,variant:p().oneOf(["error","warning","success","info"])},Q.toastName="action",J=Q))||J;var te,re;function ne(e){e.undo()}let ie=(0,l.Pi)(((re=class extends d.Component{constructor(...e){super(...e),this.undo=()=>{ne(this.props),this.props.close()}}static getMessage(){return(0,T.Iu)("DL_GROUPS_MERGED_TOAST")}static getAction(e){return{label:(0,T.Iu)("DL_UNDO_DELETE"),onClick:()=>ne(e)}}get message(){return(0,T.Iu)("DL_GROUPS_MERGED_TOAST")}render(){return d.createElement(I,{undo:this.undo,close:this.props.close,message:this.message})}}).propTypes={undo:p().func.isRequired,close:p().func.isRequired},re.contextType=B.r,re.toastName="undoMergeGroups",te=re))||te;var oe,ae,se;let ce=(0,l.Pi)(((se=class extends d.Component{get syncStatus(){return this.context.libraryManager.syncStatus}componentDidMount(){this.dispose=(0,s.when)((()=>!["working","syncing"].includes(this.syncStatus.state)),(()=>{this.props.close()}))}componentWillUnmount(){this.dispose()}get message(){return(0,T.Iu)("DL_SYNC_PROGRESS_PERCENT",{percent:this.syncStatus.syncProgress||0})}render(){return d.createElement(y,{variant:"info",close:this.props.close,duration:0},d.createElement("div",{className:"panel-toast-sync-progress"},d.createElement(v.Z,{id:"SyncingSpinner",height:18,className:"sync-progress-icon","data-test-id":"sync-progress-icon"}),d.createElement("span",{"data-test-id":"toast-message"},this.message)))}}).contextType=B.r,se.propTypes={close:p().func.isRequired},se.toastName="syncProgress",function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((ae=se).prototype,"message",[s.computed],Object.getOwnPropertyDescriptor(ae.prototype,"message"),ae.prototype),oe=ae))||oe;var le,ue,pe,de,he=r(89526);function fe(){return fe=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},fe.apply(this,arguments)}function me(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 ge(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ve=(le=s.observable.ref,pe=ge((ue=class{constructor(){this._toasts={},me(this,"_openToast",pe,this),this.closeToast=e=>{var t;if(c.Z.hideToast)return void c.Z.hideToast(e);const r=this._openToast,n=null==r||null===(t=r.data)||void 0===t?void 0:t.referenceId;r&&n===e&&this._forceClose()},me(this,"_forceClose",de,this),this.register(j),this.register(V),this.register($),this.register(X),this.register(ee),this.register(ie),this.register(ce)}register(e){this._toasts[e.toastName]=e}openToast(e,t){const r=this._toasts[e];if(!r)throw new Error(`Open Toast: Toast of type ${e} does not exist.`);if(c.Z.showToast)return c.Z.showToast(r.getMessage(t),r.getAction&&r.getAction(t),t);this._openToast={name:e,data:t}}get toast(){const e=this._openToast;if(e){const t=this._toasts[e.name];return he.createElement(t,fe({},e.data,{close:this._forceClose}))}}get toastData(){return this._openToast&&this._openToast.data}get toastName(){return this._openToast&&this._openToast.name}}).prototype,"_openToast",[le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge(ue.prototype,"openToast",[s.action],Object.getOwnPropertyDescriptor(ue.prototype,"openToast"),ue.prototype),de=ge(ue.prototype,"_forceClose",[s.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{c.Z.hideAllToasts&&c.Z.hideAllToasts(),this._openToast=void 0}}}),ge(ue.prototype,"toast",[s.computed],Object.getOwnPropertyDescriptor(ue.prototype,"toast"),ue.prototype),ue);const ye=new ve},84824:(e,t,r)=>{"use strict";r.d(t,{Iu:()=>y,SU:()=>_,ZP:()=>v,zt:()=>b});var n,i,o,a,s,c=r(50265),l=r(76485),u=r(99386),p=r(85834);function d(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 h(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const f="_PROJECTS",m=["DL_TEAM_LIBRARY_PROMOTE_TITLE","DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION1","DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION1","DL_PANEL_TEAM_LIBRARY_ONBOARDING_TITLE2","DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION2","DL_TEAM_LIBRARY_ONBOARDING_HEADING","DL_TEAM_LIBRARY_ONBOARDING_FIRST_MESSAGE","DL_TEAM_LIBRARY_ONBOARDING_SECOND_MESSAGE","DL_EXPORT_BROWSE_DEFAULT","DL_INFO_TEAM","DL_PERMISSION_TITLE","DL_PROMOTE_TEAM_MESSAGE","DL_EXISTING_USER_PANEL_ONBOARDING_DESCRIPTION1","DL_EXISTING_USER_PANEL_ONBOARDING_TITLE2","DL_EXISTING_USER_PANEL_ONBOARDING_DESCRIPTION2","DL_TEAM_LIBRARY_ONBOARDING_THIRD_MESSAGE","DL_TEAM_LIBRARY_PROMOTE_TITLE","DL_TEAM_LIBRARY_HELP","DL_PROMOTE_TEAM_MESSAGE","DL_TEAM_LIBRARY_ONBOARDING_THIRD_MESSAGE","DL_TEAM_LIBRARY_MOVING_TOAST","DL_TEAM_LIBRARY_SAVED_TOAST","DL_LIBRARY_LIST_FILTER_TEAM","DL_TEAM_LIBRARIES_CREATE_DIALOG_DESCRIPTION"].reduce(((e,t)=>(e[t]=`${t}_PROJECTS`,e)),{});const g=new(n=c.observable.ref,i=c.observable.ref,a=h((o=class{constructor(){d(this,"_stringMap",a,this),d(this,"__testStringMap",s,this),this._formatters={}}get _testStringMap(){return this.__testStringMap||(this.__testStringMap={},l.Z.fetchResourceBundle(u.Z.TEST_LOCALE).then((e=>{this.__testStringMap=e}))),this.__testStringMap}setStringMap(e){this._stringMap=e,this._formatters={}}translate(e,t){var r;const n=null===(r=u.Z.currentProduct)||void 0===r?void 0:r.config.translationOverrides;n&&n[e]&&(e=n[e]),p.Z.get("enableProjects")&&m[e]&&this._stringMap[e+f]&&(e+=f);const i=p.Z.get("localeDebug");let o;return"test"===i?o=this._testStringMap[e]:"keys"!==i&&(o=this._stringMap[e]),o=o||e,t&&Object.keys(t).forEach((e=>{let r=t[e];const n=new RegExp("[{]{2}"+e+"[}]{2}","g");r="number"==typeof r?this.getLocalizedNumber(r):r,o=o.replace(n,r)})),o}getLocalizedDate(e,t){const r=new Date(e),n={dateStyle:"short"};return t||(n.timeStyle="short"),this._formatters.date=this._formatters.date||new Intl.DateTimeFormat(l.Z.getLocale(),n),isNaN(r.valueOf())?"":this._formatters.date.format(r)}getLocalizedNumber(e){return this._formatters.number=this._formatters.number||new Intl.NumberFormat(l.Z.getLocale()),this._formatters.number.format(e)}}).prototype,"_stringMap",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=h(o.prototype,"__testStringMap",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o),v=g;function y(e,t){return g.translate(e,t)}function b(e,t){return g.getLocalizedDate(e,t)}function _(e){return g.getLocalizedNumber(e)}},57613:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(50265),i=r(76485);class o{constructor(){this._fontAvailableMap=n.observable.map(),this._pendingPromises={}}isFontAvailable(e){const t=e.fontFamily+":"+JSON.stringify(e.adbeFont),r=this._fontAvailableMap.get(t);return void 0!==r||this._pendingPromises[t]||(this._pendingPromises[t]=i.Z.isFontAvailable(e).then((e=>{delete this._pendingPromises[t],this._fontAvailableMap.set(t,e)}))),r}invalidateFontList(){this._fontAvailableMap.clear()}}},98218:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(76485),i=r(34038);const o=new class{constructor(){this.pluginVersion=null}getPluginVersion(){if(!this.pluginVersion)try{const e=n.Z.getPluginPath()+"/CSXS/manifest.xml",t=i.pJ(e,"utf8"),r=new DOMParser,o=r.parseFromString(t,"text/xml").getElementsByTagName("ExtensionManifest")[0];this.pluginVersion=o&&o.getAttribute("ExtensionBundleVersion")}catch(e){try{this.pluginVersion="4.8.170"}catch(e){this.pluginVersion="UNKNOWN"}}return this.pluginVersion}getUserAgent(){return`CCLibrariesPanel/${this.getPluginVersion()}`}}},76792:(e,t,r)=>{"use strict";r.d(t,{rL:()=>J,oq:()=>K,vf:()=>Q,pT:()=>ee});var n=r(10536),i=r.n(n),o=r(99386),a=r(93028),s=r(53849),c=r(99409),l=r(84074),u=r(47320),p=r(51461),d=r(4784),h=r(31870),f=r(16993),m=r(26964),g=r(46903),v=r(68370),y=r(84824),b=r(17179),_=r(81046),E=r(76485),w=r(30131),L=r(74149),x=r(34038),S=r(69233);function O(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */O=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function T(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}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 P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function C(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}const A="desktop.interop.AppReady",k="vulcan.SuiteMessage.desktop.interop.ImportResource",D=["sbsar","exr","obj","fbx","usdz"],N={SBSTA:{appId:"SBSTA",label:"Substance 3D Sampler",install:{label:"Substance 3D Sampler",route:"/apps/all/desktop/pdp/SBSTA"}},SBSTP:{appId:"SBSTP",label:"Substance 3D Painter",install:{label:"Substance 3D Painter",route:"/apps/all/desktop/pdp/SBSTP"}}},R={"application/vnd.adobe.mdl.material+zip":[],"application/vnd.adobe.sbsar+zip":["SBSTA","SBSTP"],"application/vnd.adobe.exr.light+zip":["SBSTA","SBSTP"],"application/vnd.adobe.obj.3d+zip":["SBSTA","SBSTP"],"3d/vnd.adobe.dn+dcxucf":["SBSTP"],"model/gltf-binary":["SBSTP"],"model/gltf+json":["SBSTP"],"model/vnd.usdz+zip":["SBSTP"],"application/vnd.adobe.fbx.3d+zip":["SBSTP"],"application/photoshop.large":["SBSTA","SBSTP"],"image/svg+xml":["SBSTP"]};function M(e,t){if(!e||!t)return;return e.getPrimaryRepresentation().getContentPath().then((e=>{let r=e.split("/").pop();D.forEach((e=>r=r.match(`\\.${e}`)?r.split(`.${e}`)[0]:r));const n={name:r,path:e,take_file_ownership:!1},i={type:"desktop.interop.ImportResource",appId:t,data:JSON.stringify(n)};E.Z.vulcanInterface.sendMessage(i.type,i.data,i.appId)}))}function j(e,t){return Z.apply(this,arguments)}function Z(){return(Z=C(O().mark((function e(t,r){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.isAppRunningEx(r).then((e=>e?"1":t.launchAppEx(r))).then((e=>{if("1"!==e)throw new Error("Failed to launch")})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,t){let r,n,i;return new Promise(((o,a)=>{i=function(e){e&&e.indexOf(k)>=0&&o()},e.addMessageListener(A,i);const s={type:"desktop.interop.AppReadyRequest",appId:t,data:k};n=setInterval((()=>{e.sendMessage(s.type,s.data,s.appId)}),1e3),r=setTimeout((()=>{a()}),3e4)})).finally((()=>{clearTimeout(r),clearInterval(n),e.removeMessageListener(A,i)}))}function B(e){const t=[],r=new Map,n=Object.keys(R);var i,o=T(e);try{for(o.s();!(i=o.n()).done;){const e=i.value.getPrimaryRepresentation().type||"";if(!n.includes(e))return;const t=R[e];t.length>0&&t.forEach((e=>{const t=r.get(e)||0;r.set(e,t+1)}))}}catch(e){o.e(e)}finally{o.f()}if(r.forEach(((r,n)=>{const i=N[n],o=r===e.length;if(a.ZP.getInstalledVersion(n))t.push({label:i.label,enableMenu:o,onClick:(c=C(O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.length>10)){t.next=4;break}_.Z.openToast("message",{message:(0,y.Iu)("DL_OPEN_IN_APP_THREE_D_LIMIT_MESSAGE",{maxItemLimit:10}),variant:"info"}),t.next=15;break;case 4:return t.prev=4,t.next=7,j(E.Z.vulcanInterface,n);case 7:return t.next=9,F(E.Z.vulcanInterface,n);case 9:Object.values(N).find((e=>e.appId===n))&&e.forEach((e=>{M(e,n)})),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),_.Z.openToast("message",{message:(0,y.Iu)("DL_THREE_D_APP_LAUNCH_FAILURE_TITLE",{name:i.label}),variant:"info"});case 15:case"end":return t.stop()}}),t,null,[[4,12]])}))),function(){return c.apply(this,arguments)})});else{const e=(s=i.install.label,(0,y.Iu)("DL_OPEN_IN_APP_GET_APP",{name:s}));t.push({label:e,enableMenu:o,onClick:()=>{a.ZP.openInCCD(i.install.route)}})}var s,c})),t.length)return{label:(0,y.Iu)("DL_OPEN_IN_APP_MENU_ITEM"),displayInMenu:!0,menuItems:t}}var G=r(48919),U=r(85834),z=r(8502);function V(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */V=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function H(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Y(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){H(o,n,i,a,s,"next",e)}function s(e){H(o,n,i,a,s,"throw",e)}a(void 0)}))}}function W(e,t){const r=f.Z.isLibrariesSearchMode()||f.Z.isStockSearchMode();return f.Z.isLibraryWritable(e,t,r)}function $(e,t){var r,n,c,d;const b=[];(f.Z.isLibrariesSearchMode()||f.Z.isOneUpMode()&&"search"===f.Z.getState().modeParams.previousMode)&&(0,v.s)(b,[{label:"DL_REVEAL_ITEM",id:"reveal",onClick:()=>s.Z.revealElement(e)}]),(0,v.s)(b,function(e){const t=[],r=e.type===o.Z.AUDIO_ELEMENT_TYPE,n=!a.ZP.isRestrictedAccount;var i;return n&&h.Jw(e)&&!h.kv(e)&&t.push({label:"DL_STOCK_LICENSE_MENU"+h.Y8(e),id:"licenseImage",onClick:()=>{p.ZP.reportStockEvent("License","click","start",{ui:{sequence:"context-menu"}},e),h.q$()?h.Zg(e).then((()=>{p.ZP.reportStockEvent("License","render","success",{ui:{sequence:"context-menu"}},e)})).catch((()=>{p.ZP.reportStockEvent("License","render","error",{ui:{sequence:"context-menu"}},e)})):w.WS(h.wq(e),e.type)}}),o.Z.currentProduct.config.disableStockSearch||o.Z.currentProduct.config.disableFindSimilar||!u.Z.canFindSimilar(e)||!n||r||t.push({label:"DL_STOCK_FIND_SIMILAR_MENU",onClick:(i=Y(V().mark((function t(){var r,n,i;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!h.Jw(e)){t.next=4;break}return p.ZP.reportStockEvent("Find Similar","click","find",{ui:{sequence:"context-menu"}},e),f.Z.setFindSimilarSearchMode(h.wq(e)),t.abrupt("return");case 4:return r=function(){var t=Y(V().mark((function t(){var r;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getAuthenticatedThumbnailURL(o.Z.STOCK_SIMILARITY_THUMBNAIL_SIZE);case 3:return(r=t.sent)&&(r+=(r.includes("?")?"&":"?")+"accept=image/jpeg"),t.abrupt("return",r);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return");case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),t.next=7,r();case 7:return n=t.sent,t.next=10,e.getThumbnailPath(o.Z.IMAGE_THUMBNAIL_SIZE);case 10:i=t.sent,f.Z.setFindSimilarSearchMode(void 0,n,i);case 12:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),enableMenu:!0}),t}(e)),u.Z.isDisabled(e)||(0,v.s)(b,function(e){var t;const r=u.Z.getShortType(e.type),n=u.Z.findUsableRepresentation(e,`application/vnd.adobe.${r}+json`),i=n&&n.getValue(r,"data"),o=null!=i&&i.adbeFont?i:{adbeFont:i},s=null==o||null===(t=o.adbeFont)||void 0===t?void 0:t.postScriptName;if(!i||!s)return[];const c=a.ZP.getTypekitFontData(s),l=a.ZP.isFontAvailable(o);return c&&c.fontId&&c.fontActions?l?0===c.fontActions.length?[{label:"DL_TYPEKIT_UNSYNC_TOOLTIP",id:"disableFont",onClick:()=>c.unsync(o,"context",e)}]:[]:0===c.fontActions.length?[{label:"DL_TYPEKIT_SYNC_TOOLTIP",id:"activateFont",onClick:()=>c.sync(o,"context",e)}]:[c.fontActions.includes("upgrade")&&{label:"DL_TYPEKIT_UPGRADE_TOOLTIP",id:"subscribeToActivateFont",onClick:()=>c.upgrade("context",e)}]:[]}(e)),(0,v.s)(b,function(e,t){let r=u.Z.getApplyOperations(e,t).filter((e=>e.displayInMenu)).map((e=>({label:e.name,id:"applyColor",onClick:()=>{p.ZP.setExtraEventMetrics("reportUseElement",{isRightClick:!0}),e.apply()}})));const n=u.Z.getEditOperations(e);return W(e.library,!0)&&(r=r.concat(n.map((e=>!e.disabled&&{label:e.name,id:"edit",onClick:()=>{e.apply()}})))),r}(e,t));const S=o.Z.currentProduct.config.enableReplaceGraphic&&W(e.library)&&u.Z.getReplaceableExtensions(e)||[];if(S.length){var O;const t=null===(O=e.roles)||void 0===O?void 0:O.some((e=>e.usage===o.Z.ROLE_LOGO)),r={logo:{success:(0,y.Iu)("DL_REPLACE_LOGO_SUCCESS"),error:(0,y.Iu)("DL_REPLACE_LOGO_ERROR"),replaceTypeError:(0,y.Iu)("DL_FILE_REPLACE_LOGO_UNSUPPORTED")},graphic:{success:(0,y.Iu)("DL_REPLACE_GRAPHIC_SUCCESS"),error:(0,y.Iu)("DL_REPLACE_GRAPHIC_ERROR"),replaceTypeError:(0,y.Iu)("DL_FILE_REPLACE_GRAPHIC_UNSUPPORTED")}};b.push({label:t?(0,y.Iu)("DL_REPLACE_LOGO"):(0,y.Iu)("DL_REPLACE_GRAPHIC"),id:"replace",enableMenu:!0,onClick:()=>function(e,t,r){return(0,x.fz)({multiple:!1,fileTypes:t}).then((n=>{const i=(0,x._2)(n[0].name);return!!t.find((e=>e===i))?(0,L.RO)(n[0],e,(0,y.Iu)(r.success)):E.Z.showError(r.replaceTypeError)}),(()=>{p.ZP.reportEvent("Replace Graphic","Element","click","replace-cancel")})).catch((()=>E.Z.showError((0,y.Iu)(r.error))))}(e,S,r[t?"logo":"graphic"])})}e.additionalMenuItems&&b.push(...e.additionalMenuItems);const T=null===(r=(n=o.Z.currentProduct).getAdditionalMenuItems)||void 0===r?void 0:r.call(n,e);if(T&&(0,v.s)(b,T),E.Z.supportsNotes&&!e.library.isDocumentAssets&&W(e.library)){const t=(e,t)=>{if(z.ZP.sendUpdateElementEvent(t),p.ZP.setExtraEventMetrics("updateElementMetadata",{subtype:`${e}-note`,content:{category:"Right Click"}}),"delete"===e)return _.Z.openToast("undoDeleteDescription",{element:t,description:t.description}),void(t.description="");f.Z.isOneUpMode()?G.Z.panel.viewManager.startEditDescription(t):l.ZP.openDialog("addNote",{element:t})};(0,v.s)(b,[!e.description&&{label:"DL_ADD_NOTE",onClick:()=>t("add",e),id:"addDescription"},e.description&&{label:"DL_EDIT_NOTE",onClick:()=>t("edit",e),id:"editDescription"},e.description&&{label:"DL_DELETE_NOTE",onClick:()=>t("delete",e),id:"deleteDescription"}])}if(!o.Z.currentProduct.config.readOnlyPanelUI&&E.Z.supportsExportElement&&o.Z.EXPORTABLE_ELEMENT_TYPES.includes(e.type)){e.getPrimaryRepresentation()&&u.Z.getRepresentationForExport(e)&&(0,v.s)(b,[{label:"DL_EXPORT_A_COPY",enableMenu:!u.Z.isDownloadInProgress(e),onClick:()=>{p.ZP.reportElementEvent("Element Operations","Element","click","export",e),function(e){if(E.Z.supportsExportElement){const t=E.Z.isWindowsOS()?"\\":"/";E.Z.getSavePath().then((([r])=>{if(!r)return;const n=u.Z.getRepresentationForExport(e),o=(0,g.__)(n),s=i()(e.name).replace(/^\./,"")||"Untitled",c=`${r}${t}${s}.${o}`;n?n.getContentPath().then((e=>a.ZP.copyFile(e,c).then((()=>{_.Z.openToast("message",{message:(0,y.Iu)("DL_ELEMENT_EXPORTED"),variant:"success"})})).catch((e=>{m.Z.log(`Failed to export element: ${e}`),_.Z.openToast("message",{message:(0,y.Iu)("DL_ELEMENT_EXPORT_FAILED"),variant:"error"})})))):_.Z.openToast("message",{message:(0,y.Iu)("DL_ELEMENT_EXPORT_FAILED"),variant:"error"})}))}}(e)}}])}const I=!(o.Z.currentProduct.config.disableOneUpMode||e.library.isDocumentAssets||f.Z.isOneUpMode()||null!==(c=(d=o.Z.currentProduct).isExpandedView)&&void 0!==c&&c.call(d));return(0,v.s)(b,[I&&{label:"DL_GET_INFO",id:"details",onClick:()=>f.Z.setOneUpMode(e)}]),b}function K(e,t,r,n,i){const c=r===t[0].library&&n===t[0].getGroups()[0];if(!e||!c){if(t.length>o.Z.SLOW_COPY_MOVE_THRESHOLD){const n=c?"DL_DUPLICATING_ITEMS":"DL_COPYING_ITEMS",i=(0,y.Iu)(e?"DL_MOVING_ITEMS":n,{numberElements:t.length,libraryName:r.name});_.Z.openToast("message",{message:i})}(0,g.IO)(e,t,r,n,c||i).then((l=>{if(function(t){t.forEach((t=>{c?z.ZP.sendDuplicateElementEvent(t):e?z.ZP.sendMoveElementEvent(t):z.ZP.sendCopyElementEvent(t)}))}(t),l.length&&(f.Z.isSearchMode()||c))s.Z.setSelection(l);else if(e&&!f.Z.isLibrariesSearchMode()&&(s.Z.clearSelection(t),o.Z.currentProduct.config.showElementActionToasts)){const e=t.length>1?(0,y.Iu)("DL_MOVE_SUCCESS_TOAST_PLURAL",{libraryName:r.name,num:t.length}):(0,y.Iu)("DL_MOVE_SUCCESS_TOAST",{libraryName:r.name});G.Z.panel.toastManager.openToast("message",{message:e,variant:"success"})}if(c){const e=n?"existing-group":i?"preserve-group":"ungrouped";p.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:l.length},content:{category:"Duplicate",status:e}},a.ZP.currentLibrary),p.ZP.setExtraEventMetrics("copyElement",{content:{category:"Duplicate"}}),o.Z.currentProduct.config.showElementActionToasts&&_.Z.openToast("message",{message:(0,y.Iu)("DL_DUPLICATE_SUCCESS_TOAST"),variant:"success"})}})).catch((t=>{e?p.ZP.reportError("Element Operations","Element",t&&t.description,"context-menu","move-elements-error",{content:{category:"Right Click"}},a.ZP.currentLibrary):(p.ZP.clearExtraEventMetrics("copyElement"),p.ZP.reportError("Add Assets","Element",t&&t.description,"context-menu","copy-elements-error",void 0,a.ZP.currentLibrary))}))}}function q(e){if(!e.every((e=>e.isLinked)))return[];const t=[],r=[],n=[],i=[];e.forEach((e=>{e.canRelinkToLibrary?r.push(e):e.canRelinkToDocument?n.push(e):i.push(e)}));const o=!i.length,a=!(r.length&&n.length),s=!r.length||1===r.length;o&&a&&s&&t.push({label:"DL_RELINK_ASSET",onClick:()=>(e=>e[0].canRelinkToLibrary?G.Z.panel.documentActions.relinkAssetToLibrary(e[0]):E.Z.relinkAssetsToDocument(e))(e)});E.Z.canUnlinkAssets&&E.Z.canUnlinkAssets(e)&&t.push({label:"DL_UNLINK_ASSET",onClick:()=>{p.ZP.reportEvent("Element Operations","element","click","make-local",{event:{value:"agg",count:e.length},content:{category:"Right Click"}}),e.forEach((e=>{p.ZP.reportElementEvent("Element Operations","element","click","make-local",e,{event:{value:"single",count:1},content:{category:"Right Click"}})})),E.Z.unlinkAssets(e)}});return e.every((e=>e.isPendingUpdate))&&t.unshift({label:"DL_UPDATE_ASSET",onClick:()=>E.Z.updateLinkedAssets(e)}),t}function X(e){if(o.Z.currentProduct.config.readOnlyPanelUI)return[];const t={};e.forEach((e=>t[e.library.id]=e.library));const r=[];Object.keys(t).forEach((n=>{r.push(...t[n].getElementsAndDependencies(e))}));const n=e[0].library.isDocumentAssets,i=!n,a=e.every((e=>W(e.library))),s=!o.Z.currentProduct.config.disableDuplicateElements&&e.every((t=>t.library===e[0].library))&&W(e[0].library)&&d.Z.canAddElements(e[0].library,e.length),c=function(e,t,r,n){const i=[];if(o.Z.currentProduct.config.disableCopyMoveTo||o.Z.currentProduct.config.disableCopyMoveToMobile&&E.Z.isMobileView)return[];if(t[0].library.isDocumentAssets&&t.length>1&&t[0].getGroups()[0]&&!(0,S.mB)(t,t[0].getGroups()[0]))return[];const a=f.Z.contextMenuPositionState,s=a.x,c=a.y;if(e.length>t.length)i.push(r&&{label:"DL_COPY_ITEM_AND_DEPENDENCIES",id:"copyTo",enableMenu:!0,onClick:()=>l.ZP.openDialog("copyOrMove",{items:e,x:s,y:c,isMove:!1,copyMoveAction:K})},n&&{label:"DL_MOVE_ITEM_AND_DEPENDENCIES",id:"moveTo",enableMenu:!0,onClick:()=>l.ZP.openDialog("copyOrMove",{items:e,x:s,y:c,isMove:!0,copyMoveAction:K}),icon:"S_MoveTo_18_N",hideIcon:!o.Z.currentProduct.config.showLibraryActionMenuIcons});else{const e=o.Z.currentProduct.config.overrideMoveContextMenuText||(t.length>1?"DL_MOVE_SELECTED_ITEMS":"DL_MOVE_ITEM");i.push(r&&{label:t.length>1?"DL_COPY_SELECTED_ITEMS":"DL_COPY_ITEM",id:"copyTo",enableMenu:!0,onClick:()=>{t.forEach((e=>{p.ZP.reportElementEvent("Element Operations","Element","open","copy",e)})),l.ZP.openDialog("copyOrMove",{items:t,x:s,y:c,isMove:!1,copyMoveAction:K})}},n&&{label:e,id:"moveTo",enableMenu:!0,onClick:()=>{t.forEach((e=>{p.ZP.reportElementEvent("Element Operations","Element","open","move",e)})),l.ZP.openDialog("copyOrMove",{items:t,x:s,y:c,isMove:!0,copyMoveAction:K})},icon:"S_MoveTo_18_N",hideIcon:!o.Z.currentProduct.config.showLibraryActionMenuIcons})}return i}(r,e,i,a);return[s&&!n&&{label:e.length>1?"DL_DUPLICATE_SELECTED_ITEMS":"DL_DUPLICATE_ITEM",id:"duplicate",enableMenu:!0,onClick:()=>K(!1,e,e[0].library,e[0].getGroups()[0]),icon:"Duplicate",hideIcon:!o.Z.currentProduct.config.showLibraryActionMenuIcons},...c]}function J(e){return!("grid"===f.Z.viewState&&o.Z.currentProduct.config.hideNamesInGridView)&&1===e.length&&e.every((e=>!e.isLinked&&!e.disableRename&&f.Z.isLibraryWritable(e.library)))}function Q(e,t){if(0===e.length)return[];const r=1===e.length?$(e[0],t):function(e){return u.Z.getMultiApplyOperations(e).filter((e=>e.displayInMenu)).map((e=>({label:e.name,onClick:()=>{e.apply()}})))}(e),n=U.Z.get("enableOpenInAppMenu")&&o.Z.currentProduct.config.showOpenInAppMenu&&B(e);n&&r.unshift(n);o.Z.currentProduct.config.readOnlyGroups||(0,v.s)(r,function(e){if(f.Z.isLibrariesSearchMode()||a.ZP.disableCCLibraries||o.Z.currentProduct.config.readOnlyPanelUI)return[];const t=e.every((e=>0===e.getGroups().length)),r=!e[0].library.isDocumentAssets&&!t,n=[];if(e[0].library.isDocumentAssets)return(!(e.length>1)||(0,S.mB)(e,e[0].getGroups()[0]))&&(0,v.s)(n,[{label:e.length>1?"DL_GROUP_TOGETHER":"DL_GROUP_SINGLE_ELEMENT",enableMenu:!0,onClick:()=>{p.ZP.setExtraEventMetrics("createGroup",{content:{category:"Right Click Element"}}),G.Z.panel.groupActions.createGroupFromSet(e)}}]),n;const i=t=>e.every((e=>e.getGroups()[0]===t)),s=b.Z.sortByName(e[0].library.getGroups()).map((r=>({label:r.name,enableMenu:t||!i(r),checked:!t&&i(r),onClick:()=>{(0,g.c_)(e,r),p.ZP.reportEvent("Element Operations","Element","click","add-to-group",{event:{value:"agg",count:e.length},content:{category:"Right Click"}},a.ZP.currentLibrary),p.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Right Click"}}),e.forEach((e=>{z.ZP.sendUpdateElementEvent(e)})),f.Z.setViewByState("group"),f.Z.resetMode()}}))),c=e.every((e=>W(e.library)));return(0,v.s)([],s),c&&(0,v.s)(n,[{label:e.length>1?"DL_GROUP_TOGETHER":"DL_GROUP_SINGLE_ELEMENT",enableMenu:c,onClick:()=>{p.ZP.setExtraEventMetrics("createGroup",{content:{category:"Right Click Element"}}),G.Z.panel.groupActions.createGroupFromSet(e)}},r&&{label:1===e.length?"DL_UNGROUP":"DL_UNGROUP_SELECTED_ITEMS",enableMenu:c,onClick:()=>{p.ZP.reportEvent("Element Operations","Element","click","ungroup",{event:{value:"agg",count:e.length},content:{category:"Right Click"}},a.ZP.currentLibrary),p.ZP.setExtraEventMetrics("updateElement",{subtype:"ungroup",content:{category:"Right Click"}}),(0,g.c_)(e)}}]),n}(e)),(0,v.s)(r,X(e));const i=o.Z.currentProduct.config.disableDelete&&o.Z.currentProduct.config.disableDelete(e);return(0,v.s)(r,[J(e)&&{label:"DL_RENAME",id:"rename",icon:"Rename",hideIcon:!o.Z.currentProduct.config.showElementActionMenuIcons,enableMenu:!0,onClick:()=>{e.forEach((e=>{p.ZP.reportElementEvent("Element Operations","Element","open","rename",e)})),p.ZP.setExtraEventMetrics("updateElement",{content:{category:"Right Click"}}),z.ZP.sendUpdateElementEvent(e[0]),o.Z.currentProduct.config.showRenameDialogOnElementAction?l.ZP.openDialog("renameLibrary",{library:e[0],isElement:!0}):(s.Z.setSelection(e[0]),G.Z.panel.viewManager.startRename(e[0]))}},!i&&e.every((e=>W(e.library)))&&{label:"DL_DELETE",id:"delete",icon:"Delete",hideIcon:!o.Z.currentProduct.config.showElementActionMenuIcons,destructive:!o.Z.currentProduct.config.showActionAsNonDestructive,enableMenu:!0,onClick:()=>{f.Z.isOneUpMode()&&f.Z.setStateBeforeOneUpMode(),s.Z.clearSelection(e),p.ZP.reportEvent("Element Operations","Element","click","delete",{event:{value:"agg",count:e.length},content:{category:"Right Click"}},a.ZP.currentLibrary),p.ZP.setExtraEventMetrics("removeElement",{content:{category:"Right Click"}}),a.ZP.deleteElements(e)}},1===e.length&&!(0,g.Wv)(e[0].library)&&!o.Z.currentProduct.config.disableReportAbuse&&{label:"DL_REPORT_ABUSE",id:"reportAbuse",icon:"Flag",hideIcon:!o.Z.currentProduct.config.showElementActionMenuIcons,destructive:!o.Z.currentProduct.config.showActionAsNonDestructive,onClick:()=>w.Nn(e[0])}]),(0,v.s)(r,q(e)),r}function ee(e,t){if(!f.Z.isContextMenuEnabled())return void c.Z.setContextMenu([]);let r=Q(s.Z.isSelected(e)?s.Z.selection.slice():[e],t);if(o.Z.currentProduct.config.elementContextMenuOrder){const e=r.reduce(((e,t)=>(e[t.id]=t,e)),{});r=o.Z.currentProduct.config.elementContextMenuOrder.map((t=>"divider"!==t||E.Z.isMobileView?e[t]:{divider:!0})),r=r.filter((e=>e))}c.Z.setContextMenu(r,(()=>s.Z.ensureSelection(e)))}},73675:(e,t,r)=>{"use strict";r.d(t,{I0:()=>V,rY:()=>H,nN:()=>U});var n=r(99386),i=r(93028),o=r(53849),a=r(79799),s=r(81046),c=r(84074),l=r(72373),u=r(85834),p=r(76485),d=r(98218),h=r(51461),f=r(16993),m=r(68895),g=r(25585),v=r(84824),y=r(30131),b=r(47320),_=r(4784),E=r(26964),w=r(46903),L=r(76325);function x(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function S(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function O(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 T(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){T(o,n,i,a,s,"next",e)}function s(e){T(o,n,i,a,s,"throw",e)}a(void 0)}))}}const P=()=>window.nodeRequire("fs");function C(e){if(p.Z.isWindowsOS())return window.cep.process.createProcess("start",e.replace(/\//g,"\\")),void alert((e===E.Z.getLogFolder()?"Folder is ":"Information saved to ")+e);window.cep.process.createProcess("/usr/bin/open",e)}function A(e){const t=new Date(e);return t.getMonth()+1+"-"+t.getDate()+"-"+t.getFullYear()}function k(e){const t=new Date(e),r=t.getMinutes();return t.getHours()+":"+(r<=9?"0":"")+r}function D(){return(D=I(x().mark((function e(){var t,r,n,o,a,s,c,l,u,p,d,h;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=L.Z.getEnvironment(),e.next=3,L.Z.getAccessToken(i.ZP.userId);case 3:r=e.sent,n={Authorization:`Bearer ${r}`,"x-api-key":t.clientId,"Content-Type":"application/json"},o=`https://${t.invitationsHost}/api/v3/resources?orderBy=-sharedate`;case 6:if(!o){e.next=38;break}return e.next=9,fetch(o,{headers:n});case 9:return a=e.sent,e.next=12,a.json();case 12:if(s=e.sent,!(c=s&&s._embedded&&s._embedded.resources)){e.next=35;break}l=S(c),e.prev=16,l.s();case 18:if((u=l.n()).done){e.next=27;break}if(p=u.value,(d=p._links&&p._links["http://ns.adobe.com/ccapi/path"])&&"application/vnd.adobe.library+dcx"===p.resourceType){e.next=23;break}return e.abrupt("continue",25);case 23:h=d.href.split("/").pop(),i.ZP.followLibrary(p.resourceUrn,h,{role:p.role});case 25:e.next=18;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(16),l.e(e.t0);case 32:return e.prev=32,l.f(),e.finish(32);case 35:o=s&&s._links&&s._links.next&&s._links.next.href,e.next=6;break;case 38:case"end":return e.stop()}}),e,null,[[16,29,32,35]])})))).apply(this,arguments)}var N=r(39293),R=r(68370),M=r(97536),j=r(50265);const Z=Object.freeze({EDIT_TUTORIAL:"brand_edit_tutorial_seen",DRAFT_TUTORIAL_STEP_1:"draft_tutorial_step_1_seen",DRAFT_TUTORIAL_STEP_2:"draft_tutorial_step_2_seen",DRAFT_TUTORIAL_SKIPPED:"draft_tutorial_skipped",PUBLISH_CHANGES_TUTORIAL:"brand_publish_changes_tutorial_seen"});const F=new class{constructor(){this._state=j.observable.map()}get state(){return this._state}init(){for(const e in Z){const t=Z[e];this._state.set(t,p.Z.localStorage.getItem(t))}}clearAll(){this._state.keys().forEach((e=>{p.Z.localStorage.setItem(e,"")})),this._state=j.observable.map()}setOnboardingState(e,t){t||(t=""),t=String(t),this._state.set(e,t),p.Z.localStorage.setItem(e,t)}getOnboardingState(e){const t=this._state.get(e),r=p.Z.localStorage.getItem(e);return t||r}};var B=r(48919);function G(){var e;const t=i.ZP.currentLibrary,r=!!t&&t.isDeletedFromServer,o=!f.Z.isImportExportInProgress;if(!t)return[];const a=t.isPushedToServer&&!t.toolkitId&&!w.$_(t)&&!r&&t.isWritable&&!i.ZP.isRestrictedAccount,s=w.hp(t),l=w.W(t)&&!r,u=!w.$_(t)&&w.pN(t),d=!w.$_(t)&&w.GL(t),v=p.Z.supportsFilePicker&&t.elements.length>0&&!r&&!n.Z.currentProduct.config.readOnlyPanelUI,y=f.Z.isLibraryWritable(t)&&!r&&t.elements.length>0&&0===(null===(e=t.getGroups())||void 0===e?void 0:e.length),b={libraryName:(0,g.aS)(t.name,15)},_=function(e,t,r){const n=w.IA()&&!w.$_(e)&&e.isPushedToServer&&!t&&e.isWritable&&!e.toolkitId&&w.Wv(e)&&i.ZP.isOnline,o=w.$_(e)&&e.isPushedToServer&&!t,a=w.$_(e)&&w.GL(e);return[w.$_(e)&&!t&&{label:"DL_FLYOUT_PERSONAL_COPY_LIB",enableMenu:!f.Z.isImportExportInProgress,translationData:r,onClick:()=>{h.ZP.reportEvent("Operations","Personal Copy Team Library","click","start"),B.Z.panel.libraryActions.makeTeamPersonalCopy(e)}},n&&{label:"DL_FLYOUT_PROMOTE_LIB",enableMenu:!f.Z.isImportExportInProgress,translationData:r,onClick:()=>{h.ZP.reportEvent("Operations","Promote Team Library","click","start"),B.Z.panel.libraryActions.promote(e)}},o&&{label:(0,N.Ol)(e)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES",enableMenu:!f.Z.isImportExportInProgress,translationData:r,onClick:()=>{h.ZP.reportEvent("Operations","Unfollow Team Library","click","start"),c.ZP.openDialog("deleteTeamLibrary",{library:e,leave:!0})}},a&&{label:"DL_FLYOUT_REMOVE_LIB",translationData:r,enableMenu:!f.Z.isImportExportInProgress,onClick(){h.ZP.reportEvent("Operations","Delete Library","click","start"),c.ZP.openDialog("deleteTeamLibrary",{library:e,leave:!1})}}]}(t,r,b)||[];return[v&&{label:"DL_EXPORT_LIBRARY_FLYOUT",enableMenu:o,translationData:b,onClick:()=>{c.ZP.openDialog("importExportLibrary",{library:t,mode:"export"}),h.ZP.reportEvent("Library Operations","Export Library","click","start",null,t)}},s&&{label:"DL_FLYOUT_COLLABORATE",enableMenu:!0,onClick:()=>B.Z.panel.libraryActions.invite(t,!1)},a&&{label:"DL_FLYOUT_SHARE_LINK",enableMenu:!0,onClick(){h.ZP.reportEvent("Collaboration","Share Library Link","click","start",null,t),B.Z.panel.libraryActions.getLink(t,!1)}},..._,l&&{label:"DL_FLYOUT_RENAME_LIB",enableMenu:o,translationData:b,onClick:()=>c.ZP.openDialog("renameLibrary",{library:t})},(0,m.EZ)(t)&&{label:"DL_EDIT_IN_SOURCE",enableMenu:o,onClick:()=>(0,m.Fb)(t)},u&&{label:w.D3(t)?(0,N.Ol)(t)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES":"DL_FLYOUT_LEAVE_LIB",translationData:b,enableMenu:!t.toolkitId&&!r&&!f.Z.isImportExportInProgress,onClick(){h.ZP.reportEvent("Operations","Unfollow Library","click","start"),c.ZP.openDialog("deleteLibrary",{library:t})}},d&&{label:"DL_FLYOUT_REMOVE_LIB",translationData:b,enableMenu:o,onClick(){h.ZP.reportEvent("Operations","Delete Library","click","start"),c.ZP.openDialog("deleteLibrary",{library:t})}},y&&{label:"DL_FLYOUT_AUTOGENERATE_GROUPS",translationData:b,enableMenu:o,onClick:()=>B.Z.panel.libraryActions.autogenerateEmptyLibraryGroups(t)}].filter((e=>e))}function U(e,t={dialogManager:c.ZP}){const r=!!e&&e.isDeletedFromServer,n=e&&e.isPushedToServer&&!r&&!w.$_(i.ZP.currentLibrary)&&!i.ZP.isRestrictedAccount,o=i.ZP.areLibrariesLoaded&&!i.ZP.isRestrictedAccount,a=!i.ZP.isRestrictedAccount;return[n&&{id:"viewOnline",label:"DL_FLYOUT_VIEW_ON_WEBSITE",enableMenu:!f.Z.isTourInProgress,onClick:()=>y.yO(e)},o&&{id:"viewOnlineArchive",label:"DL_FLYOUT_VIEW_ARCHIVE_ON_WEBSITE",enableMenu:!f.Z.isTourInProgress,onClick:()=>y.uF(e)},{id:"learn",label:"DL_FLYOUT_HOW_TO_USE",enableMenu:!f.Z.isTourInProgress,onClick:()=>y.I0(!0)},{id:"whatsNew",label:"DL_FLYOUT_WHATS_NEW",enableMenu:!f.Z.isTourInProgress,onClick(){h.ZP.reportEvent("Navigation","Flyout Menu","click","whats-new"),t.dialogManager.openDialog("whatsNew")}},a&&{id:"feedback",label:"DL_FLYOUT_FEEDBACK",enableMenu:!f.Z.isTourInProgress,onClick:()=>y.Bx()}].filter((e=>e))}function z(){return[{label:"v"+d.Z.getPluginVersion(),enableMenu:!1},{label:"Panel Information",onClick:()=>p.Z.showError(["Panel Information",`Path: ${p.Z.getPluginPath()}`,"Analytics State: "+(h.ZP.isEnabled()?"Enabled":"Disabled"),`User Agent: ${navigator.userAgent}`].join("\n\n"))},{label:"View Library Info",enableMenu:void 0!==i.ZP.currentLibrary,onClick:()=>function(){const e=i.ZP.currentLibrary;let t="";b.Z.getElementTypes().forEach((r=>{const n=(0,v.Iu)(b.Z.getTypeName(r)),i=e.elements.filter((e=>e.type===r));i.length>0&&(t+="\n "+n+": "+i.length+" ("+_.Z.getSizeAsString(i)+")")}));const r=e.elements.length+" ("+_.Z.getSizeAsString(e)+")",n=`Current Library Information\nName: ${e.name}\nElements: ${r}${t}`;p.Z.showError(n)}()},{label:"View Element Info",enableMenu:void 0!==i.ZP.currentLibrary,onClick:()=>function(){const e=i.ZP.currentLibrary,t=Date.now();let r="";b.Z.groupElementsByType(e.elements,"name").forEach((e=>{e.children.forEach((e=>{const t=(0,v.Iu)(b.Z.getTypeName(e.type)),n=(0,w.vo)(e),i=A(e.modified);r+=`\n <tr>\n <td class='elementType'>${t}</td>\n <td class='elementName'>${n}</td>\n <td class='elementTime'>${i}</td>\n <td class='elementId'>${e.id}</td>\n </tr>`}))}));const n=`\n <HTML>\n <HEAD style="font-family:sans-serif;"><TITLE>Contents of "${e.name}"</TITLE></HEAD>\n <body style="font-family:sans-serif">\n <H1 class='libraryName'>Contents of "${e.name}"</H1>\n <p class='libraryDescription'>${e.elements.length+" elements, "+A(t)+" "+k(t)}</p>\n <table BORDER=1 CELLPADDING=4 CELLSPACING=1 RULES=ROWS FRAME=HSIDES BORDERCOLOR="#EEEEEE" style="font-size:small">\n <tr><th>Type</th><th>Name</th><th>Last modified</th><th>ID</th></tr>\n ${r}\n </table>\n </body>\n </HTML>`,o=p.Z.getMyDocumentsPath()+"/"+g.BJ(e.name,"Library contents")+".html";try{P().writeFileSync(o,n),C(o)}catch(e){throw alert("Failed to create element info debug file\n\nCould not write to "+o+"\n\n"+e.toString()),e}}()},{label:"View All Libraries Info",enableMenu:void 0!==i.ZP.currentLibrary,onClick:()=>function(){const e=i.ZP.libraries,t=Date.now(),r=e.map((e=>`\n <tr>\n <td class='libraryName'>${g.CI(e.name)}</td>\n <td class='libraryElementCount'>${e.elements.length}</td>\n <td class='librarySize'>${_.Z.getSizeAsString(e)}</td>\n <td class='libraryDate'>${A(e.modified)}</td>\n <td class='libraryCollab'>${e.ownership||" "}</td>\n <td class='libraryId'>${e.id}</td>\n </tr>\n `)).join(""),n=`\n <HTML><HEAD style="font-family:sans-serif;"><TITLE>My CC Libraries</TITLE></HEAD>\n <body style="font-family:sans-serif">\n <H1>My CC Libraries</H1>\n <p>${e.length+" libraries, "+A(t)+" "+k(t)}</p>\n <table BORDER=1 CELLPADDING=4 CELLSPACING=1 RULES=ROWS FRAME=HSIDES BORDERCOLOR="#EEEEEE" style="font-size:small">\n <tr>\n <th> </th>\n <th>Elements</th>\n <th>Data size</th>\n <th>Last modified</th>\n <th>Collaboration</th>\n <th>ID</th>\n </tr>\n ${r}\n </table></body></HTML>\n `,o=p.Z.getMyDocumentsPath()+"/AllLibrariesInfo.html";try{P().writeFileSync(o,n),C(o)}catch(e){throw alert("Failed to create libraries info debug file\n\nCould not write to "+o+"\n\n"+e.toString()),e}}()},{label:"Show Logs Folder",enableMenu:!0,onClick:()=>{C(E.Z.getLogFolder())}},{label:"Follow All Incoming Libraries",enableMenu:!0,onClick:()=>function(){return D.apply(this,arguments)}()}]}function V(){const e=[],t=a.Z.getServiceInfo(),r=t&&t.codeVersion+(t.buildNumber?"-"+t.buildNumber:"");return(0,R.s)(e,z()),(0,R.s)(e,[{label:"Force open warning syncing in progress toast",enableMenu:!0,onClick:()=>s.Z.openToast("message",{undefined:void 0,message:(0,v.Iu)("DL_NAVIGATION_WARNING_SYNCING_IN_PROGRESS"),variant:"error",duration:0})},{label:"Show Deleted Items in Panel",enableMenu:void 0!==i.ZP.currentLibrary,onClick:()=>f.Z.setRemovedElementsMode()},{label:"Change Theme and Locale",enableMenu:!0,onClick:()=>c.ZP.openDialog("appThemeDebug")},{label:"Show Analytics in Panel",enableMenu:!0,onClick:()=>c.ZP.openDialog("analytics")},{label:"Show Relink Layer Mode",enableMenu:void 0!==i.ZP.currentLibrary,onClick(){f.Z.setRelinkLayerMode({message:"This relink mode was shown by the debug menu item",actionMessage:(0,v.Iu)("DL_RELINK"),missing:!1,overlayMessage:(0,v.Iu)("DL_RELINK_RELINK_OVERLAY_MESSAGE")})}},{label:"Show Groups Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("pathViewOnboarding")},{label:"Show Team Libraries One up view Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("panelTeamLibraryOneUpOnboardingPopover")},{label:"Show Capture Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("captureOnboardingPopover")},{label:"Show Root View Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("rootViewOnboardingPopover")},{label:"Show New User Library View Tour Onboarding",enableMenu:!0,onClick:()=>{f.Z.setTourInProgress(!0),c.ZP.openDialog("firstEnteredLibraryOnboardingPopoverTour",{isNewUserTour:!0})}},{label:"Show Returning User Library View Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("firstEnteredLibraryOnboardingPopoverTour")},{label:"Show Manager Onboarding",enableMenu:n.Z.currentProduct.config.hasLibraryManager,onClick:()=>{(0,M.V1)(),!p.Z.isLibraryManagerWindowOpen()&&p.Z.openLibraryManagerWindow()}},{label:"Enable quota warning onboarding",enableMenu:!0,checked:l.Z.getDebugValue("enableQuotaWarningOnboarding"),onClick:()=>l.Z.setDebugValue("enableQuotaWarningOnboarding",!l.Z.getDebugValue("enableQuotaWarningOnboarding"))}]),(0,R.s)(e,function(){let e=l.Z.getDebugValue("stockSimulationTargetAppCode");return e||(e=n.Z.currentProduct.config.code,l.Z.setDebugValue("stockSimulationTargetAppCode",e)),[...u.Z.getMenuItems(),{label:"Set Stock Simulation Target App ["+e+"]...",onClick:()=>{const e=prompt("Please enter code for target app, e.g.:\n\nPHXS for Photoshop\nILST for Illustrator\nIDSN for InDesign",l.Z.getDebugValue("stockSimulationTargetAppCode"));l.Z.setDebugValue("stockSimulationTargetAppCode",e)}},{label:"Copy Selected ElementRef",onClick(){const e=o.Z.selection.map((function(e){return e.getReferenceString()})).join("\n");try{const t=window.nodeRequire("child_process").exec;p.Z.isWindowsOS()?t("echo '"+e+"' | clip"):t("echo '"+e+"' | pbcopy")}catch(t){p.Z.canvas.writePlainTextClipboard(e)}}},{label:"Reset Onboarding State (takes effect on restart)",enableMenu:!0,onClick:()=>(0,M.iy)()},n.Z.currentProduct.config.useBrandsOnboarding&&{label:"Reset Brands Onboarding State [GenStudio]",enableMenu:!0,onClick:()=>F.clearAll()},{label:"Enable SAM.js logs",enableMenu:n.Z.currentProduct.config.enableSAM,onClick:()=>{l.Z.setDebugValue("enableSAMLogs",!l.Z.getDebugValue("enableSAMLogs"))}},{label:"Reset collapsed state to default",enableMenu:!0,onClick:()=>f.Z.resetCollapsedTypes()},{label:"Reset view states to default",enableMenu:!0,onClick:()=>f.Z.resetViewStates()}]}()),(0,R.s)(e,function(){if(!i.ZP.areLibrariesLoaded)return[];const e=i.ZP.libraries.filter((e=>e.toolkitId));return[{label:"Lock all toolkit libraries",enableMenu:!!e.length,onClick:()=>e.forEach((e=>f.Z.lockToolkit(e)))},{label:"Ensure all toolkit libraries",enableMenu:!0,onClick:()=>{n.Z.TOOLKIT_TYPES.forEach((e=>i.ZP.getLibraryByToolkitId(`${e}`)))}},{label:"Delete all toolkit libraries",enableMenu:!!e.length,onClick:()=>e.forEach((e=>i.ZP.deleteLibrary(e)))}]}()),(0,R.s)(e,[{label:"Enable JSAPI Hybrid Mode",checked:l.Z.getDebugValue("jsapiHybridDriver"),enableMenu:!0,onClick:()=>{l.Z.setDebugValue("jsapiHybridDriver",!l.Z.getDebugValue("jsapiHybridDriver")),window.location.reload()}},{label:"Open JS API 2.0 Debug Dashboard",enableMenu:!0,onClick:()=>c.ZP.openDialog("jsApi2Dashboard")},{label:"Load library by asset ID",enableMenu:!0,onClick:()=>{c.ZP.openDialog("loadLibraryByAssetId")}},{label:"Load Version History (in console)",enableMenu:!0,onClick:()=>{const e=i.ZP.currentLibrary;e.loadVersionHistory().then((e=>{const t=e.map((e=>e.load()));return Promise.all(t).then((()=>e))})).then((t=>{console.log("Current library name:",e.name),console.log("Current library id:",e.id),console.log("Current library asset id:",e.assetId,"\n\n"),t.forEach((e=>{console.log(`Version ${e.id}:`,e);const t=e._libraryVersion;console.log(`Version ${e.id} Library model:`,t);const r=new Date(t.modified).toLocaleString();console.log(`Version ${e.id} Library modified: ${r}\n\n`)}))}))}}]),(0,R.s)(e,function(){const e=a.Z.getServiceInfo(),t=e&&e.environment;return[{label:"Production",checked:"Production"===t,enableMenu:!1},{label:"Staging",checked:"Staging"===t,enableMenu:!1}]}()),(0,R.s)(e,[{label:a.Z.isConnected()?"Connected To: v"+r:"Not Connected",enableMenu:!1}]),e}function H(e){const t=[],r=i.ZP.currentLibrary;(0,R.s)(t,function(){if(n.Z.currentProduct.config.readOnlyPanelUI)return[];const e=i.ZP.areLibrariesLoaded,t=p.Z.supportsFilePicker&&e,r=n.Z.currentProduct.config.hasLibraryManager;if(!e)return[];const o=(...e)=>r?p.Z.openDialogInManager(...e):c.ZP.openDialog(...e);return[{label:"DL_MENU_CREATE_LIB",enableMenu:e&&!f.Z.isImportExportInProgress&&!f.Z.isTourInProgress,onClick:()=>o("createLibrary")},t&&{label:"DL_IMPORT_LIBRARY",enableMenu:!f.Z.isImportExportInProgress&&!f.Z.isTourInProgress,onClick:()=>{h.ZP.reportEvent("Library Operations","Import Library","click","start",{content:{category:"Flyout Menu"}}),o("importExportLibrary",{library:i.ZP.currentLibrary,mode:"import"})}}]}());const o=n.Z.currentProduct.getFlyoutMenuItems;if(o){const e=o().map((e=>(e.enableMenu=e.enableMenu&&!f.Z.isTourInProgress,e)));(0,R.s)(t,e)}return(0,R.s)(t,G().map((e=>(e.enableMenu=e.enableMenu&&!f.Z.isTourInProgress,e)))),(0,R.s)(t,function(){if(f.Z.isRootView())return[];const e=i.ZP.areLibrariesLoaded;return[f.Z.viewByState===n.Z.VIEW_BY_MODES.GROUP&&{label:"DL_COLLAPSE_ALL",enableMenu:e&&!f.Z.isTourInProgress,onClick:()=>{i.ZP.currentLibrary.getGroups().forEach((e=>f.Z.setGroupCollapsed(e.id,!0))),h.ZP.reportEvent("Navigation","Library Panel","click","collapse-groups")}},{label:"DL_SHOW_NAMES_ALWAYS",enableMenu:e&&!f.Z.isTourInProgress,checked:"always"===f.Z.nameVisibility,onClick:()=>{const e="always"===f.Z.nameVisibility?"elementHover":"always";f.Z.setNameVisibility(e),h.ZP.reportEvent("Navigation","Library Panel","click","name-visibility",{event:{value:e}})}},{label:"DL_SHOW_TRANSPARENCY_GRID",enableMenu:e&&!f.Z.isTourInProgress,checked:f.Z.elementBackgroundPattern===n.Z.ELEMENT_BACKGROUNDS.CHECKERED,onClick:()=>{const e=f.Z.elementBackgroundPattern===n.Z.ELEMENT_BACKGROUNDS.SOLID?n.Z.ELEMENT_BACKGROUNDS.CHECKERED:n.Z.ELEMENT_BACKGROUNDS.SOLID;f.Z.setElementBackgroundPattern(e),h.ZP.reportEvent("Navigation","Library Panel","click","element-background",{event:{value:e}})}}]}()),(0,R.s)(t,U(r,{dialogManager:c.ZP})),(0,R.s)(t,p.Z.flyoutMenuItems||[]),!1!==e&&l.Z.showDebugMenu()&&(0,R.s)(t,V()),t}},48003:(e,t,r)=>{"use strict";r.d(t,{M:()=>f});var n=r(93028),i=(r(99409),r(46903)),o=r(68370),a=r(84074),s=r(16993),c=r(51461),l=r(10440),u=r(99386),p=r(48919);function d(e){const t=(0,o.o)((t=>{(0,i.c_)(t,e)}));return t.length?[{label:"DL_ADD_ELEMENTS_TO_GROUP",enableMenu:!0,menuItems:t}]:[]}function h(e){c.ZP.setExtraEventMetrics("createGroup",{content:{category:"Right Click Group"}}),p.Z.panel.groupActions.createSubgroup(e)}function f(e,t){const r=[],f=l.Z.groupSelection,m=f.length>1&&l.Z.getSelectionCommonAncestor(),g=e.library.isDocumentAssets,v="path"===s.Z.viewByGroupMode,y=!(g&&!m)&&!v&&f.length&&f.length>1,b=!g&&s.Z.isLibraryWritable(e.library)&&(!f.length||1===f.length);if(e.disableEditing)return(0,o.s)(r,[{label:"DL_CREATE_SUBGROUP",enableMenu:!0,onClick:()=>{h(e)}}]),r;if(b&&(0,o.s)(r,[...d(e)]),s.Z.isLibraryWritable(e.library)&&(0,o.s)(r,[{label:"DL_CREATE_SUBGROUP",enableMenu:!0,onClick:()=>{h(e)}},y&&{label:"DL_GROUP_TOGETHER",enableMenu:!0,onClick:()=>p.Z.panel.groupActions.createGroupFromSet(f)}]),(0,o.s)(r,function(e){const t=e.library.isDocumentAssets,r=e.library.elements.filter((t=>t.getOrderInGroup(e))),o=(0,i.jT)(r.length);o[e.library.id]=!1;const c=n.ZP.libraries.some((e=>o[e.id])),l=c&&!t,u=c&&s.Z.isLibraryWritable(e.library),p=s.Z.contextMenuPositionState,d=p.x,h=p.y;return[l&&{label:"DL_COPY_ITEM",enableMenu:!0,onClick:()=>a.ZP.openDialog("copyOrMove",{items:[e],x:d,y:h,isMove:!1,copyMoveAction:i.yD})},u&&{label:"DL_MOVE_ITEM",enableMenu:!0,onClick:()=>a.ZP.openDialog("copyOrMove",{items:[e],x:d,y:h,isMove:!0,copyMoveAction:i.yD})}]}(e),!g),s.Z.isLibraryWritable(e.library)){const i=!f.length||1===f.length,a={label:"DL_RENAME_GROUP",enableMenu:!0,onClick:()=>{c.ZP.setExtraEventMetrics("updateGroup",{content:{category:t}}),u.Z.currentProduct.config.disableEditPathOperation?(p.Z.panel.viewManager.startRename(e),p.Z.panel.viewManager.setRenameValue(e.name)):p.Z.panel.viewManager.startEditPath(e)}},s={label:"DL_EDIT_PATH",enableMenu:!0,onClick:()=>{p.Z.panel.viewManager.startEditPath(e)}},l=v&&!u.Z.currentProduct.config.disableEditPathOperation?s:a;(0,o.s)(r,[i&&l,{label:"DL_UNGROUP_NESTED_GROUPS",enableMenu:!0,onClick:()=>{c.ZP.setExtraEventMetrics("removeGroup",{content:{category:t}}),n.ZP.deleteGroups([e])}},{label:"DL_DELETE_NESTED_GROUPS",enableMenu:!0,onClick:()=>{n.ZP.deleteGroups(f.length>0?f:[e],{deleteContents:!0,deleteEmptyAncestors:v&&!u.Z.currentProduct.config.disableDeleteEmptyAncestors})}}],!g)}return r}},64662:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(){this.isElement=!0}}},68169:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n,i,o=r(50265);let a=(n=o.action.bound,s=(i=class{constructor(e){this.isGroup=!0,this._group=e,this._changeAtom=new o.Atom("groupChange",(()=>{var e,t;return!this._group.isDeletedLocally&&(null===(e=(t=this._group).on)||void 0===e?void 0:e.call(t,"change",this._onChange))}),(()=>{var e,t;return null===(e=(t=this._group).off)||void 0===e?void 0:e.call(t,"change",this._onChange)}))}_onChange(){this._changeAtom.reportChanged()}get id(){return this._group.id}get classifierName(){return this._group.classifierName}get name(){return this._changeAtom.reportObserved(),this._group.name}set name(e){this._group.name=e}get order(){return this._changeAtom.reportObserved(),String(this._group.order)}set order(e){this._group.order=e}get modified(){return this._changeAtom.reportObserved(),this._group.modified}get modifiedBy(){return this._changeAtom.reportObserved(),this._group.modifiedBy}get modifiedContext(){return this._changeAtom.reportObserved(),this._group.modifiedContext}get wasModifiedLocally(){return this._changeAtom.reportObserved(),this._group.wasModifiedLocally}get created(){return this._changeAtom.reportObserved(),this._group.created}get createdBy(){return this._changeAtom.reportObserved(),this._group.createdBy}get createdContext(){return this._changeAtom.reportObserved(),this._group.createdContext}get wasCreatedLocally(){return this._changeAtom.reportObserved(),this._group.wasCreatedLocally}get isDeletedLocally(){return this._changeAtom.reportObserved(),this._group.isDeletedLocally}}).prototype,c="_onChange",l=[n],u=Object.getOwnPropertyDescriptor(i.prototype,"_onChange"),p=i.prototype,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=l.slice().reverse().reduce((function(e,t){return t(s,c,e)||e}),d),p&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(p):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,c,d),d=null),i);var s,c,l,u,p,d},72150:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(){this.isLibrary=!0}loadElements(){}get removedElements(){return[]}get areElementsLoaded(){return!0}}},44853:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(50265),i=r(69377),o=r(64662);class a extends o.Z{constructor(e){super(),this._changeAtom=void 0,this._element=e}get id(){return this._element.id}get type(){return this._element.type}get modified(){return this._changeAtom.reportObserved(),this._element.modified}get created(){return this._changeAtom.reportObserved(),this._element.created}}var s,c,l=r(34038),u=r(48919);let p=(s=n.action.bound,d=(c=class extends a{constructor(e){super(e),this._waitForSetThumbnailCache=Promise.resolve(),this._copyThumbnailPromises=[],this._changeAtom=new n.Atom("elementChange",(()=>!e.isDeletedLocally&&e.on("change",this._onChange)),(()=>e.off("change",this._onChange)))}_onChange(){this.library._pushPendingElementChanged(this._changeAtom),(0,i.zF)(this._element)}getReference(){return this._element.getReference()}getReferenceString(){return this._element.getReferenceString()}getLegacyReference(){return this._element.getLegacyReference()}get name(){return this._changeAtom.reportObserved(),this._element.name}set name(e){this._element.name=e}get isAutoNamed(){return this._changeAtom.reportObserved(),this._element.isAutoNamed}get isCommitted(){return this._changeAtom.reportObserved(),this._element.isCommitted}get committed(){return new Promise((e=>(0,n.when)((()=>this.isCommitted),e)))}getLocalizedName(e){return this._changeAtom.reportObserved(),this._element.getLocalizedName(e)}setLocalizedName(e,t){this._element.setLocalizedName(e,t)}get library(){return(0,i.mK)(this._element.library)}get isWritable(){return this._changeAtom.reportObserved(),this._element.isWritable}get tags(){return this._changeAtom.reportObserved(),this._element.tags}set tags(e){this._element.tags=e}get dependencies(){return this._changeAtom.reportObserved(),this._element.dependencies.map(i.Z0)}set dependencies(e){this._element.dependencies=e.map((e=>e._element))}get hasMissingDependencies(){return this._changeAtom.reportObserved(),this._element.hasMissingDependencies}getGroups(e){return this._changeAtom.reportObserved(),this._element.getGroups(e).map(i.Lj)}getOrderInGroup(e){return this._changeAtom.reportObserved(),this._element.getOrderInGroup(e._group)}setOrderInGroup(e,t,r){this._element.setOrderInGroup(e._group,t,r)}get description(){return this._changeAtom.reportObserved(),this._element.description}set description(e){this._element.description=e}get descriptionModified(){return this._changeAtom.reportObserved(),this._element.descriptionModified}get descriptionModifiedBy(){return this._changeAtom.reportObserved(),this._element.descriptionModifiedBy}get descriptionModifiedContext(){return this._changeAtom.reportObserved(),this._element.descriptionModifiedContext}get wasDescriptionModifiedLocally(){return this._changeAtom.reportObserved(),this._element.wasDescriptionModifiedLocally}get modifiedBy(){return this._changeAtom.reportObserved(),this._element.modifiedBy}get modifiedContext(){return this._changeAtom.reportObserved(),this._element.modifiedContext}get wasModifiedLocally(){return this._changeAtom.reportObserved(),this._element.wasModifiedLocally}get createdBy(){return this._changeAtom.reportObserved(),this._element.createdBy}get createdContext(){return this._changeAtom.reportObserved(),this._element.createdContext}get wasCreatedLocally(){return this._changeAtom.reportObserved(),this._element.wasCreatedLocally}get removed(){return this._changeAtom.reportObserved(),this._element.removed}get removedBy(){return this._changeAtom.reportObserved(),this._element.removedBy}get removedContext(){return this._changeAtom.reportObserved(),this._element.removedContext}get wasRemovedLocally(){return this._changeAtom.reportObserved(),this._element.wasRemovedLocally}get isDeletedLocally(){return this._changeAtom.reportObserved(),this._element.isDeletedLocally}get sourceRef(){return this._changeAtom.reportObserved(),this._element.sourceRef}set sourceRef(e){this._element.sourceRef=e}get sourceRefString(){return this._changeAtom.reportObserved(),this._element.sourceRefString}set sourceRefString(e){this._element.sourceRefString=e}get instanceId(){return this._changeAtom.reportObserved(),this._element.instanceId}get roles(){return this._changeAtom.reportObserved(),this._element.roles}set roles(e){this._element.roles=e}beginOperation(){this._element.beginOperation()}endOperation(){return Promise.all(this._copyThumbnailPromises).then((()=>new Promise((e=>{this._element.endOperation(e)}))))}get representations(){return this._changeAtom.reportObserved(),this._element.representations.map(i.$H)}getPrimaryRepresentation(){return this._changeAtom.reportObserved(),(0,i.$H)(this._element.getPrimaryRepresentation())}getRepresentationById(e){return this._changeAtom.reportObserved(),(0,i.$H)(this._element.getRepresentationById(e))}createRepresentation(e,t,r,n){return(0,i.$H)(this._element.createRepresentation(e,t,r,n))}removeRepresentation(e){this._element.removeRepresentation(e._representation),(0,i.uf)(e)}removeAllRepresentations(){this._element.removeAllRepresentations(),(0,i.V8)(this._element)}getValue(e,t){return this._changeAtom.reportObserved(),this._element.getValue(e,t)}getValues(){return this._changeAtom.reportObserved(),this._element.getValues()}setValue(e,t,r){this._element.setValue(e,t,r)}getThumbnailURL(e){return this._element.getThumbnailURL(e)}getThumbnailPath(e){return this._waitForSetThumbnailCache.then((()=>this._element.getThumbnailPath(e)))}getThumbnailContent(e){return this._waitForSetThumbnailCache.then((()=>this._element.getThumbnailContent(e)))}getCachedThumbnailPath(e){return this._changeAtom.reportObserved(),this._element.getCachedThumbnailPath(e)}_copyThumbnailToTempDir(e){const t=window.nodeRequire("fs"),r=window.nodeRequire("path"),n=u.Z.libraryManager.tempDir;if(!(t&&r&&t.copyFile&&n))return Promise.resolve(e);const i=(0,l.rD)(r.basename(e)),o=r.join(n,i);if(e.startsWith(n))return Promise.resolve(e);const a=new Promise((r=>{t.copyFile(e,o,(t=>r(t?e:o)))}));return this._copyThumbnailPromises.push(a),a.then((()=>{const e=this._copyThumbnailPromises.indexOf(a);-1!==e&&this._copyThumbnailPromises.splice(e,1)})),a}_removeCopiedPath(e){const t=window.nodeRequire("fs");t&&t.unlink(e,(()=>{}))}setThumbnailCache(e,t){let r;return this._waitForSetThumbnailCache=new Promise((e=>r=e)),this._copyThumbnailToTempDir(t).then((n=>new Promise(((i,o)=>{this._element.setThumbnailCache(e,n,((e,a)=>{e?o(e):i(a),r(),t!==n&&this._removeCopiedPath(n)}))}))))}supportsVectorThumbnail(){return this._changeAtom.reportObserved(),this._element.supportsVectorThumbnail()}getActions(e){return this._changeAtom.reportObserved(),this._element.getActions(e)}getAuthenticatedThumbnailURL(e){return this._element.getAuthenticatedThumbnailURL(e)}}).prototype,h="_onChange",f=[s],m=Object.getOwnPropertyDescriptor(c.prototype,"_onChange"),g=c.prototype,v={},Object.keys(m).forEach((function(e){v[e]=m[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=f.slice().reverse().reduce((function(e,t){return t(d,h,e)||e}),v),g&&void 0!==v.initializer&&(v.value=v.initializer?v.initializer.call(g):void 0,v.initializer=void 0),void 0===v.initializer&&(Object.defineProperty(d,h,v),v=null),c);var d,h,f,m,g,v},90459:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(69377),i=r(68169);class o extends i.Z{get library(){return(0,n.mK)(this._group.library)}getLocalizedName(e){return this._changeAtom.reportObserved(),this._group.getLocalizedName(e)}getLocalizedNames(){return this._changeAtom.reportObserved(),this._group.getLocalizedNames()}setLocalizedName(e,t){this._group.setLocalizedName(e,t)}get sourceRef(){return this._changeAtom.reportObserved(),this._group.sourceRef}set sourceRef(e){this._group.sourceRef=e}get sourceRefString(){return this._changeAtom.reportObserved(),this._group.sourceRefString}set sourceRefString(e){this._group.sourceRefString=e}get parent(){const e=this._group.parent;if(e)return(0,n.Lj)(e)}set parent(e){this._group.parent=e&&e._group}get children(){const e=this._group.children;if(e)return e.map((e=>(0,n.Lj)(e)))}getFilteredChildren(e){return this._changeAtom.reportObserved(),this._group.getFilteredChildren(e).map(n.Lj)}createChild(e,t){return(0,n.Lj)(this._group.createChild(e,t))}}},30949:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(50265),i=r(69377),o=r(72150);class a extends o.Z{constructor(e){super(),this._changeAtom=void 0,this._library=e}get elementCount(){return this._changeAtom.reportObserved(),this._library.elements.length}getGroupCount(e="$default"){return this._changeAtom.reportObserved(),this._library.getGroupCount(e)}}var s,c,l,u=r(46903),p=r(48919);function d(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let h=(s=n.action.bound,c=n.action.bound,d((l=class extends a{constructor(e){super(e),this._changeAtom=new n.Atom("libraryChange",(()=>!this._library.isDeletedLocally&&this._library.on("change",this._onChange)),(()=>this._library.off("change",this._onChange)));const t=p.Z.libraryManager.dangerouslyAccessCCLibraries();this._syncAtom=t._syncAtom}on(e,t){this._library.on(e,t)}off(e,t){this._library.off(e,t)}emit(e){this._library.emit(e)}_pushPendingElementChanged(e){this._pendingElementChangeAtoms||(this._pendingElementChangeAtoms=[],this._library.on("change",this._onChangeElements)),this._pendingElementChangeAtoms.push(e)}_onChangeElements(){const e=this._pendingElementChangeAtoms;delete this._pendingElementChangeAtoms,this._library.off("change",this._onChangeElements),e.forEach((e=>e.reportChanged()))}_onChange(){this._changeAtom.reportChanged(),(0,i.ZS)(this._library),(0,i.z9)(this._library)}getFilteredElements(e){return this._changeAtom.reportObserved(),this._library.getFilteredElements(e).map(i.Z0)}getFilteredGroups(e="$default",t){return this._changeAtom.reportObserved(),this._library.getFilteredGroups(e,t).map(i.Lj)}get id(){return this._library.id}get previousPlaceHolderId(){return this._changeAtom.reportObserved(),this._library.previousPlaceHolderId}get publicLinkId(){if((0,u.D3)(this)){const e=this._library._dcxComposite,t=e&&e.href,r=t&&t.split("/");return r&&r[r.length-1]}}get resourceId(){const e=this._library._dcxComposite;return e&&e.href}getReference(){return this._library.getReference()}getReferenceString(){return this._library.getReferenceString()}get name(){return this._changeAtom.reportObserved(),this._library.name}set name(e){this._library.name=e}get roles(){return this._changeAtom.reportObserved(),this._library.roles}set roles(e){this._library.roles=e}getLocalizedName(e){return this._changeAtom.reportObserved(),this._library.getLocalizedName(e)}setLocalizedName(e,t){this._library.setLocalizedName(e,t)}get isCommitted(){return this._changeAtom.reportObserved(),this._library.isCommitted}get committed(){return new Promise((e=>(0,n.when)((()=>this.isCommitted),e)))}get created(){return this._changeAtom.reportObserved(),this._library.created}get createdBy(){return this._changeAtom.reportObserved(),this._library.createdBy}get bookmark(){return this._changeAtom.reportObserved(),this._library.bookmark}get assetId(){return this._changeAtom.reportObserved(),this._library.assetId}get toolkitId(){return this._changeAtom.reportObserved(),this._library.toolkitId}get documentId(){return this._changeAtom.reportObserved(),this._library.documentId}get documentType(){return this._changeAtom.reportObserved(),this._library.documentType}get modified(){return this._changeAtom.reportObserved(),this._library.modified}get modifiedBy(){return this._changeAtom.reportObserved(),this._library.modifiedBy}get collaboration(){return this._changeAtom.reportObserved(),this._library.collaboration}get collaborators(){return this._changeAtom.reportObserved(),this._library.collaborators}get visibleCollaborators(){return this._changeAtom.reportObserved(),this._library.visibleCollaborators}loadCollaborators(){return this._changeAtom.reportObserved(),this._library.loadCollaborators()}get ownership(){return this._changeAtom.reportObserved(),this._library.ownership}get team(){return this._changeAtom.reportObserved(),this._library.team}get project(){return this._changeAtom.reportObserved(),this._library.team}get isWritable(){return this._changeAtom.reportObserved(),this._library.isWritable}get isParentWritable(){return this._changeAtom.reportObserved(),this._library.isParentWritable}get isTransient(){return this._changeAtom.reportObserved(),this._library.isTransient}get owner(){return this._changeAtom.reportObserved(),this._library.owner}get ownerType(){return this._changeAtom.reportObserved(),this._library.ownerType}get parentDirectoryId(){return this._changeAtom.reportObserved(),this._library.parentDirectoryId}get isDeletedFromServer(){return this._changeAtom.reportObserved(),this._library.isDeletedFromServer}get isDeletedLocally(){return this._changeAtom.reportObserved(),this._library.isDeletedLocally}get isQuotaExceeded(){return this._changeAtom.reportObserved(),this._library.isQuotaExceeded}get storageUsed(){return this._changeAtom.reportObserved(),this._library.storageUsed}get renditionGrid(){return this._library.renditionGrid}get syncState(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._library.syncState}get syncProgress(){return this._syncAtom.reportObserved(),this._library.syncProgress}get syncError(){this._syncAtom.reportObserved();const e=p.Z.libraryManager.syncErrors;if(e)return e.find((e=>e.libraryId===this.id))}get isPushedToServer(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.isPushedToServer}get publishedFrom(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.publishedFrom}get publishedTo(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.publishedTo}get lastPublishedVersion(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.lastPublishedVersion}get version(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.version}get extractedFrom(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.extractedFrom}beginOperation(){this._library.beginOperation()}endOperation(){return new Promise((e=>this._library.endOperation(e)))}loadElements(e){if("function"==typeof this._library.loadElements)return this._library.loadElements(e)}get areElementsLoaded(){return this._changeAtom.reportObserved(),void 0===this._library.areElementsLoaded||this._library.areElementsLoaded}get elements(){return this._changeAtom.reportObserved(),this._library.elements.map(i.Z0)}get elementCount(){return this._changeAtom.reportObserved(),this._library.elementCount}get isLibraryLoaded(){return this._changeAtom.reportObserved(),void 0===this._library.isLibraryLoaded||this._library.isLibraryLoaded}get removedElements(){return this._changeAtom.reportObserved(),this._library.removedElements.map(i.Z0)}get removedElementCount(){return this._changeAtom.reportObserved(),this._library.removedElementCount}get documentationElements(){return this._changeAtom.reportObserved(),this._library.documentationElements.map(i.Z0)}get documentationElementCount(){return this._changeAtom.reportObserved(),this._library.documentationElementCount}getElementById(e,t){return this._changeAtom.reportObserved(),(0,i.Z0)(this._library.getElementById(e,t))}createElement(e,t){return(0,i.Z0)(this._library.createElement(e,t))}removeElement(e,t){this._library.removeElement(e._element,t),(0,i.R6)(e)}restoreElement(e){return(0,i.Z0)(this._library.restoreElement(e._element))}copyElement(e,t){return this._library.copyElement(e._element,t._library).then((e=>(0,i.Z0)(e)))}moveElement(e,t){return this._library.moveElement(e._element,t._library).then((t=>((0,i.R6)(e),(0,i.Z0)(t))))}getGroups(e){return this._changeAtom.reportObserved(),this._library.getGroups(e).map(i.Lj)}getGroupById(e){this._changeAtom.reportObserved();const t=this._library.getGroupById(e);if(t)return(0,i.Lj)(t)}createGroup(e,t,r){return(0,i.Lj)(this._library.createGroup(e,t,r))}removeGroup(e,t){this._library.removeGroup(e._group,t),(0,i.r1)(e)}copyGroup(e,t,r){return this._library.copyGroup(e._group,t._library,r).then((e=>(0,i.Lj)(e)))}moveGroup(e,t,r){return this._library.moveGroup(e._group,t._library,r).then((e=>(0,i.Lj)(e)))}getRenditionURL(e){return this._changeAtom.reportObserved(),this._library.getRenditionURL(e)}getRenditionPath(e){return this._changeAtom.reportObserved(),new Promise(((t,r)=>{this._library.getRenditionPath(e,((e,n)=>{e?r(e):t(n)}))}))}getAuthenticatedRenditionURL(e){return this._changeAtom.reportObserved(),new Promise(((t,r)=>{this._library.getAuthenticatedRenditionURL(e,((e,n)=>{e?r(e):t(n)}))}))}setRendition(e,t,r,n){return new Promise(((i,o)=>{this._library.setRendition(e,t,r,n,(e=>e?o(e):i()))}))}removeRendition(e){return this._library.removeRendition(e)}setRenditionFromPath(e,t,r){return new Promise(((n,i)=>{this._library.setRenditionFromPath(e,t,r,(e=>e?i(e):n()))}))}rebindToServer(){return new Promise(((e,t)=>{this._library.rebindToServer((r=>r?t(r):e()))}))}sync(){return new Promise(((e,t)=>{this._library.sync((r=>r?t(r):e()))}))}getValue(e,t){return this._changeAtom.reportObserved(),this._library.getValue(e,t)}setValue(e,t,r,n){return this._library.setValue(e,t,r,n)}linkToDocument(e,t){this._library.linkToDocument(e,t)}getElementsAndDependencies(e){return this._changeAtom.reportObserved(),this._library.getElementsAndDependencies(e.map((e=>e._element))).map(i.Z0)}getActions(e){return this._changeAtom.reportObserved(),this._library.getActions(e)}stageRepresentationForCommit(e){return this._library.stageRepresentationForCommit(e)}load(){return this._library.load()}}).prototype,"_onChangeElements",[s],Object.getOwnPropertyDescriptor(l.prototype,"_onChangeElements"),l.prototype),d(l.prototype,"_onChange",[c],Object.getOwnPropertyDescriptor(l.prototype,"_onChange"),l.prototype),l)},6535:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n,i,o,a,s=r(76485),c=r(50265),l=r(84824),u=r(72150),p=r(80091),d=r(87544),h=r(99386);function f(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let m=(n=c.observable.shallow,i=c.action.bound,o=class extends u.Z{constructor(e){var t,r,n,i;super(),this.isLibraryLoaded=!0,this.isDocumentAssets=!0,this.isWritable=!1,this.disableNonPermanentDelete=!0,this.hideUngroupedSection=!0,this.hideSyncStateFooter=!0,t=this,r="_elements",i=this,(n=a)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this._pendingChanges={},this._operationCount=0,this._data=e,e.elements&&(this._update(e.elements),delete e.elements)}_update(e=[],t=[],r=[]){if(t.forEach((r=>{const n=this.getElementById(r.id);n?n._update(r):e.push(t)})),e.forEach((e=>{const t=this.getElementById(e.id);t?t._update(e):this._elements.push(new p.Z(e,this))})),r.length){const e={};r.forEach((t=>{e[t.id]=!0}));(t=>{let r=0;for(let n=0;n<t.length;n++){const i=t[n];e[i.id]?d.Z.removeLink(i._link):t[r++]=i}t.length=r})(this._elements)}}_sendPendingChanges(){var e;const t={};Object.values(this._pendingChanges).forEach((({type:e,data:r})=>{t[e]=t[e]||[],t[e].push(r)})),this._pendingChanges={},null===(e=s.Z.sendMessage)||void 0===e||e.call(s.Z,h.Z.DOCUMENT_ASSETS_MESSAGES.SEND_UPDATE,t)}_sendChange(e,t){this._pendingChanges[t.id]={type:e,data:t},0===this._operationCount&&this._sendPendingChanges()}get id(){return this._data.id}get name(){return(0,l.Iu)("DOCUMENT_ASSETS")}get ownership(){return"private"}get elements(){return this._elements}getElementById(e){return this._elements.find((t=>t.id===e))}get elementCount(){return this._elements.length}getFilteredElements(e){return this.elements.filter(e)}getElementsAndDependencies(e){return e}getGroups(){return[]}getGroupCount(){return 0}get gatedUpdates(){return this.elements.filter((e=>e.isPendingUpdate))}updateLinkedAssets(){s.Z.updateLinkedAssets(this.gatedUpdates)}get missingLinks(){return this.elements.filter((e=>{var t;return null===(t=e.link)||void 0===t?void 0:t.isMissingLink}))}get resolvableMissingLinks(){return this.missingLinks.filter((e=>{var t,r;return(null===(t=e.link)||void 0===t?void 0:t.isPendingInvite)||(null===(r=e.link)||void 0===r?void 0:r.isPendingFollow)}))}beginOperation(){this._operationCount++}endOperation(){this._operationCount--,0===this._operationCount&&this._sendPendingChanges()}},a=f(o.prototype,"_elements",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f(o.prototype,"_update",[i],Object.getOwnPropertyDescriptor(o.prototype,"_update"),o.prototype),f(o.prototype,"elements",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"elements"),o.prototype),f(o.prototype,"elementCount",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"elementCount"),o.prototype),f(o.prototype,"gatedUpdates",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"gatedUpdates"),o.prototype),f(o.prototype,"missingLinks",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"missingLinks"),o.prototype),f(o.prototype,"resolvableMissingLinks",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"resolvableMissingLinks"),o.prototype),o)},80091:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(50265),i=r(76485),o=r(99386),a=r(47320);class s{constructor(e,t){this._element=t,this._representation=e}get id(){return this._representation.id}get element(){return this._element}get type(){return this._representation.type}get relationship(){return this._representation.relationship}get width(){return this._representation.width}get height(){return this._representation.height}getValues(){return[]}getValue(){}isCompatibleType(e){return this.type===e}getExternalLinkDownloadProgress(){}getCachedContentPath(){}}var c,l,u,p,d,h,f,m,g,v=r(64662),y=r(87544),b=r(51461),_=r(99049);function E(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(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 w(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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))}}function O(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 T(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let I=(c=n.observable.ref,l=n.observable.ref,u=n.observable.ref,p=n.action.bound,d=class extends v.Z{constructor(e,t){super(),O(this,"_data",h,this),O(this,"_link",f,this),O(this,"_representations",m,this),O(this,"_changeCount",g,this),this._isDirty=!1,this._onLinkChange=()=>{try{const e=0===i.Z.apiVersion?JSON.parse(this.linkReference):this.linkReference,t=Object.keys(e);if(1===t.length&&"repo:assetId"===t[0]&&this._link.linkedAsset)return void this.updateLink(!0)}catch(e){}const e=Object.assign({},this._isDirty?this._data:{id:this.id},{$local:this._link.getLocalData()});this._library._sendChange("update",e)},this._library=t,this._update(e)}_updateRepresentations(e){this._representations=e.representations.map((e=>new s(e,this)))}_update(e,t=!1){var r=this;return S(L().mark((function n(){var i,o;return L().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.representations=e.representations||[],i=r._data.linkReference,r._data=e,r._updateRepresentations(e),r._changeCount++,r._isDirty=t,!r._updateLock){n.next=9;break}return n.next=9,r._updateLock;case 9:if(o=function(){var e=S(L().mark((function e(t){var n;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r._updateLock=new Promise((e=>n=e)),e.next=4,t();case 4:return e.abrupt("return",e.sent);case 5:return e.prev=5,delete r._updateLock,n(),e.finish(5);case 9:case"end":return e.stop()}}),e,null,[[0,,5,9]])})));return function(t){return e.apply(this,arguments)}}(),i||!e.linkReference){n.next=16;break}return r._link={linkStatus:"UpToDate",isNormalLinkState:!0,linkReference:e.linkReference},n.next=14,o(S(L().mark((function t(){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,y.Z.addLink(e.linkReference);case 2:r._link=t.sent,r._link.on("change",r._onLinkChange),r._onLinkChange();case 5:case"end":return t.stop()}}),t)}))));case 14:n.next=25;break;case 16:if(!i||e.linkReference){n.next=22;break}y.Z.removeLink(r._link),r._link.off("change",r._onLinkChange),r._link=void 0,n.next=25;break;case 22:if(_.Z.areReferencesEqual(e.linkReference,i)){n.next=25;break}return n.next=25,o((()=>r._link.update(e.linkReference)));case 25:case"end":return n.stop()}}),n)})))()}get id(){return this._data.id}get type(){return this._data.type}get changeCount(){return i.Z.previewingAsset===this?-1:this._changeCount}get modified(){return this._data.modified}get created(){return this._data.created}get name(){return this._data.name}get library(){return this._library}get dependencies(){return[]}get disableRename(){return this.isLinked}getGroups(){return[]}get representations(){return this._representations}getPrimaryRepresentation(){return this._representations.find((e=>"primary"===e.relationship))}_getLinkedAssetRenditionURL(e){const t=this.linkedAsset;if(t)return this._link.getRenditionURL(e)+`&cb=${encodeURIComponent(t.etag)}`}getThumbnailURL(e){var t=this;return S(L().mark((function r(){return L().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i.Z.previewingAsset!==t){r.next=2;break}return r.abrupt("return",t._getLinkedAssetRenditionURL(e));case 2:return r.abrupt("return",new Promise(((e,r)=>{const i=setTimeout((()=>{o(),r("timeout")}),2e3),o=(0,n.when)((()=>t._data.renditionURL),(()=>{clearTimeout(i),e(t._data.renditionURL)}))})));case 3:case"end":return r.stop()}}),r)})))()}get linkReference(){return this._data.linkReference}get link(){return this._link}get isLinked(){return!!this._link}get linkType(){var e;return null===(e=this._link)||void 0===e?void 0:e.type}get linkState(){var e;return this.isSyncing?o.Z.ASSET_LINK_STATES.SYNCING:null===(e=this._link)||void 0===e?void 0:e.linkStatus}get isNormalLinkState(){var e;return null===(e=this._link)||void 0===e?void 0:e.isNormalLinkState}get isPendingUpdate(){var e;return null===(e=this._link)||void 0===e?void 0:e.isPendingUpdate}get isMissingLink(){var e;return null===(e=this._link)||void 0===e?void 0:e.isMissingLink}get isRestricted(){var e;return null===(e=this._link)||void 0===e?void 0:e.isRestricted}get isSyncing(){var e;return!!this._data.isSyncing||(null===(e=this._link)||void 0===e?void 0:e.isSyncing)}get linkedAsset(){var e;return null===(e=this._link)||void 0===e?void 0:e.linkedAsset}relinkToDocument(){}get canRelink(){return!1}getReference(){return this.getLegacyReference()}getLegacyReference(){return`${i.Z.cloudAssetId||this.library.id}#id=${this.id}`}getActions(){return[]}get additionalMenuItems(){return this._data.actions&&this._data.actions.length?this._data.actions.map((e=>({label:e.name,enableMenu:!e.disabled,onClick:()=>{b.ZP.reportElementEvent("Element Operations","Element","click",e.id,this,{event:{value:"single",count:1},content:{category:"Right Click"}}),i.Z.sendMessage(e.messageType,e.messagePayload)}}))):[]}updateLink(e=!1){var t=this;return S(L().mark((function r(){var n,i,o,s,c,l,u,p;return L().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.isPendingUpdate){r.next=2;break}return r.abrupt("return");case 2:n=t._link.getLocalData(),i=n.linkedAsset,o=/^(.*?)(?:\.\w+)?$/.exec(i.name)||[],s=E(o,2),c=s[1],l=i.linkReference,(u=Object.assign({},t._data,{linkReference:l,name:c,modified:e?t._data.modified:Date.now(),renditionURL:t._getLinkedAssetRenditionURL(a.Z.getThumbnailSize(t))})).representations.length&&((p=u.representations[0]).contentURL=t._link.primaryContentURL,p.contentURL||(p.content=t._link.primaryContent),delete p.width,delete p.height),t._update(u,!0);case 8:case"end":return r.stop()}}),r)})))()}},h=T(d.prototype,"_data",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{representations:[]}}}),f=T(d.prototype,"_link",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=T(d.prototype,"_representations",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=T(d.prototype,"_changeCount",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),T(d.prototype,"_update",[p],Object.getOwnPropertyDescriptor(d.prototype,"_update"),d.prototype),T(d.prototype,"linkedAsset",[n.computed],Object.getOwnPropertyDescriptor(d.prototype,"linkedAsset"),d.prototype),T(d.prototype,"updateLink",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"updateLink"),d.prototype),d)},99049:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n,i,o,a=r(5939),s=r.n(a),c=r(50265),l=r(33275),u=r(99386),p=r(76485);function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function h(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let m=(n=c.observable.ref,i=class extends(s()){static areReferencesEqual(e,t){return 0!==p.Z.apiVersion&&e&&t?JSON.stringify(e,Object.keys(e).sort())===JSON.stringify(t,Object.keys(t).sort()):e===t}constructor(e){var t,r,n,i;super(),t=this,r="_link",i=this,(n=o)&&Object.defineProperty(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0}),this._onChange=()=>this.emit("change"),this._link=e,this._link.on("change",this._onChange)}dispose(){this._link.off("change",this._onChange)}get linkReference(){var e;return null===(e=this._link)||void 0===e?void 0:e.getAssetLinkRef()}get isSyncing(){return this.linkStatus===u.Z.SAM_LINK_STATES.NORMAL&&!this.linkedAsset}get isNormalLinkState(){return this.linkStatus===u.Z.SAM_LINK_STATES.NORMAL}get isPendingUpdate(){return this.linkStatus===u.Z.SAM_LINK_STATES.PENDING_UPDATE||this.linkStatus===u.Z.SAM_LINK_STATES.PENDING_METADATA_UPDATE}get isMissingLink(){return this.linkStatus===u.Z.SAM_LINK_STATES.DISCARDED||this.linkStatus===u.Z.SAM_LINK_STATES.BROKEN||this.linkStatus===u.Z.SAM_LINK_STATES.RESTRICTED}get isRestricted(){return this.linkStatus===u.Z.SAM_LINK_STATES.RESTRICTED}get linkStatus(){var e;const t=null===(e=this._link)||void 0===e?void 0:e.linkStatus;return t===u.Z.SAM_LINK_STATES.PENDING_METADATA_UPDATE?u.Z.SAM_LINK_STATES.NORMAL:t}get linkedAsset(){var e;return null===(e=this._link)||void 0===e?void 0:e.adobeAsset}getNewLinkRef(){const e=this._getNewLinkRef();return 0===p.Z.apiVersion?JSON.stringify(e,Object.keys(e).sort()):e}get permission(){const e=u.Z.SAM_PERMISSIONS;return[e.EDIT,e.VIEW,e.ACK,e.NONE].find((e=>{var t;const r=u.Z.SAM_LEGACY_PERMISSIONS_MAP[e]||e;return null===(t=this.linkedAsset)||void 0===t?void 0:t.hasPermission(r)}))}getLocalData(){const e=this.linkedAsset,t=e&&{"repo:assetId":e.cloudID,"repo:repositoryId":e.repositoryID,resource:this._resource,name:e.name,linkReference:this.getNewLinkRef(),permission:this.permission,_links:e.links};return{linkState:this.linkStatus,linkedAsset:t}}getRenditionURL(e){var t;return null===(t=this.linkedAsset)||void 0===t?void 0:t.getRenditionURL(e)}get primaryContentURL(){var e,t,r;return null===(e=this.linkedAsset)||void 0===e||null===(t=e.links)||void 0===t||null===(r=t["http://ns.adobe.com/adobecloud/rel/primary"])||void 0===r?void 0:r.href}get primaryContent(){var e,t;return null===(e=this.linkedAsset)||void 0===e||null===(t=e.embedded)||void 0===t?void 0:t["http://ns.adobe.com/adobecloud/rel/primary"]}update(e){var t,r=this;return(t=d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&r._link){t.next=2;break}return t.abrupt("return");case 2:return e=l.P6.parseLinkReference(e),t.abrupt("return",null===(n=r._link)||void 0===n?void 0:n.updateWithLinkRef(e));case 4:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){h(o,n,i,a,s,"next",e)}function s(e){h(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get _resource(){return{reltype:"http://ns.adobe.com/adobecloud/rel/primary"}}_getNewLinkRef(){var e;return null===(e=this._link)||void 0===e?void 0:e.getNewAssetLinkRef(this.linkedAsset)}get assetId(){return this.linkReference["repo:assetId"]}get repositoryId(){return this.linkReference["repo:repositoryId"]}get documentId(){return this.linkReference["stRef:documentID"]}get name(){return this.linkReference["repo:name"]}get type(){return this.linkReference["dc:format"]}get instanceId(){return this.linkReference["stRef:instanceID"]}get fragmentIdentifier(){return this.linkReference["stRef:fromPart"]}get fragmentName(){return this.linkReference["stRef:fromPartName"]}get fragmentInstanceId(){return this.linkReference["stRef:fromPartInstanceID"]}get sourceRef(){return this.linkReference["stRef:fromPartDerivedFrom"]}},o=f(i.prototype,"_link",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(i.prototype,"linkReference",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"linkReference"),i.prototype),f(i.prototype,"permission",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"permission"),i.prototype),i)},69377:(e,t,r)=>{"use strict";r.d(t,{zA:()=>F,Ir:()=>$,kN:()=>I,ZS:()=>M,z9:()=>H,fs:()=>X,zF:()=>O,LK:()=>E,ij:()=>w,T9:()=>h,_x:()=>Z,pQ:()=>W,R6:()=>R,r1:()=>V,uf:()=>P,V8:()=>C,GT:()=>K,gh:()=>j,M5:()=>Y,Ar:()=>T,Z0:()=>N,Lj:()=>z,mK:()=>q,$H:()=>S});r(76485),r(99386),r(72373);var n=r(50265),i=r(48919);class o{constructor(e){this._onChange=()=>{this._changeAtom.reportChanged()},this._onSyncChange=()=>{const e=this._representation.getExternalLinkDownloadProgress();this._lastExternalLinkDownloadProgress!==e&&(this._lastExternalLinkDownloadProgress=e,this._syncAtom.reportChanged())},this._representation=e,this._changeAtom=new n.Atom("representationChange",(()=>!this._representation.isDeletedLocally&&this._representation.element.on("change",this._onChange)),(()=>this._representation.element.off("change",this._onChange)));const t=i.Z.libraryManager.dangerouslyAccessCCLibraries();this._syncAtom=t._syncAtom}get id(){return this._representation.id}get element(){return N(this._representation.element)}get isWritable(){return this._representation.isWritable}get type(){return this._representation.type}get relationship(){return this._representation.relationship}set relationship(e){this._representation.relationship=e}get width(){return this._representation.width}set width(e){this._representation.width=e}get height(){return this._representation.height}set height(e){this._representation.height=e}get isFullSize(){return this._representation.isFullSize}set isFullSize(e){this._representation.isFullSize=e}get isPreferredThumbnail(){return this._representation.isPreferredThumbnail}set isPreferredThumbnail(e){this._representation.isPreferredThumbnail=e}get contentLength(){return this._representation.contentLength}set contentLength(e){this._representation.contentLength=e}get isDeletedLocally(){return this._representation.isDeletedLocally}get isExternalLink(){return this._representation.isExternalLink}get children(){return this._changeAtom.reportObserved(),this._representation.children.map(S)}get isCommitted(){return this._changeAtom.reportObserved(),this._representation.isCommitted}get committed(){return new Promise((e=>(0,n.when)((()=>this.isCommitted),e)))}isCompatibleType(e){return this._representation.isCompatibleType(e)}getValue(e,t){return this._representation.getValue(e,t)}getValues(){return this._representation.getValues()}setValue(e,t,r,n){this._representation.setValue(e,t,r,n)}setContent(e,t,r,n={}){return this._representation.setContent(e,t,r,n)}setContentFromPath(e,t){return this._representation.setContentFromPath(e,t)}setStagedContent(e){return this._representation.setStagedContent(e)}setContentFromURL(e,t,r){return this._representation.setContentFromURL(e,t,r)}getContentPath(){return this._representation.getContentPath()}getCachedContentPath(){return this._changeAtom.reportObserved(),this._representation.getCachedContentPath()}getContent(){return this._representation.getContent()}getContentURL(){return this._representation.getContentURL()}getAuthenticatedContentURL(){return this._representation.getAuthenticatedContentURL()}testExternalLink(){return new Promise(((e,t)=>{this._representation.testExternalLink(((r,n)=>r?t(r):e(n)))}))}clearCachedExternalLink(){return this._representation.clearCachedExternalLink()}getCachedExternalLinkError(){return this._changeAtom.reportObserved(),this._representation.getCachedExternalLinkError()}getExternalLinkDownloadProgress(){return this._syncAtom.reportObserved(),this._representation.getExternalLinkDownloadProgress()}createChild(e){return S(this._representation.createChild(e))}removeChild(e){this._representation.removeChild(e._representation),P(e)}}var a=r(44853),s=r(90459),c=r(30949);function l(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||u(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 u(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}const d={},h=e=>Object.keys(e).forEach((t=>d[t]=e[t]));let f,m,g={},v={},y={},b={},_={};const E=()=>{f=void 0,m=void 0,g={},v={}},w=()=>{y={},_={},b={}},L=(e,t,r)=>{if(!e)return;const n=e.element,i=n.id,o=n.library,a=o.documentId||o.id,s=e.id,c=t[a]=t[a]||{};c[i]=c[i]||{};const l=c[i].representationsById=c[i].representationsById||{};return l[s]&&l[s]._representation===e||(l[s]=new r(e)),l[s]},x=(e,t)=>{if(!e)return;const r=t[e.library.documentId||e.library.id],n=r&&r[e.id],i=n&&n.representationsById;if(i){const t={};e.representations.forEach((e=>t[e.id]=i[e.id])),n.representationsById=t}},S=e=>L(e,g,o),O=e=>x(e,g),T=e=>L(e,y,d.DocumentRepresentation),I=e=>x(e,y),P=e=>{const t=e&&e.element,r=t&&t.library,n=r&&g[r.documentId||r.id],i=n&&n[t.id]&&n[t.id].representationsById;i&&delete i[e.id]},C=e=>{const t=e&&e.library,r=t&&g[t.documentId||t.id],n=r&&r[e.id];n&&delete n.representationsById},A=(e,t,r)=>{if(!e)return;const n=e.library.documentId||e.library.id,i=t[n]=t[n]||{},o=e.id;return i[o]=i[o]||{},i[o].element&&i[o].element._element===e||(i[o].element=new r(e)),i[o].element},k=(e,t)=>{if(!e)return;const r=t[e.library.documentId||e.library.id];r&&delete r[e.id]},D=(e,t)=>{if(!e)return;const r=e.documentId||e.id,n=t[r];if(n){const i={};e.elements.forEach((e=>i[e.id]=n[e.id])),t[r]=i}},N=e=>A(e,g,a.Z),R=e=>k(e,g),M=e=>D(e,g),j=e=>A(e,y,d.DocumentElement),Z=e=>k(e,y),F=e=>D(e,y),B=(e,t,r)=>{if(!e)return;const n=e.library,i=n.documentId||n.id,o=t[i]=t[i]||{},a=e.id;return o[a]&&o[a]._group===e||(o[a]=new r(e)),o[a]},G=(e,t)=>{if(!e)return;const r=e.library,n=t[r.documentId||r.id];n&&delete n[e.id]},U=(e,t)=>{if(!e)return;const r=e.documentId||e.id,n=t[r];if(n){const i={};e.getGroups().forEach((e=>i[e.id]=n[e.id])),t[r]=i}},z=e=>B(e,v,s.Z),V=e=>G(e,v),H=e=>U(e,v),Y=e=>B(e,_,d.DocumentGroup),W=e=>G(e,_),$=e=>U(e,_),K=e=>{if(!e)return;const t=e.documentId;return b[t]&&b[t]._library===e||(b[t]=new d.DocumentAssetsContainer(e)),b[t]},q=e=>{if(!e)return;const t=e.id,r=f=f||{},n=m=m||new Map;if(n.has(e)&&(r[t]=n.get(e)),!r[t]||r[t]._library!==e){const i=new c.Z(e);n.set(e,i),r[t]=i}return r[t]},X=()=>{const e=f,t=m;if(e&&t){const o={},a=new Map,s=i.Z.libraryManager.dangerouslyAccessCCLibraries();Object.entries(f).forEach((([e,t])=>{t&&!t.isMockBoundToCCLibraries&&(o[e]=t)}));var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(m.entries());try{for(n.s();!(r=n.n()).done;){const e=l(r.value,2),t=e[0],n=e[1];t.isMockBoundToCCLibraries||a.set(t,n)}}catch(e){n.e(e)}finally{n.f()}s._ccLibraries.libraries.forEach((r=>{o[r.id]=e[r.id],a.set(r,t.get(r))})),f=o,m=a}}},90543:(e,t,r)=>{var n;window.performance&&window.performance.mark("ccac:libraries-panel:eval:begin");const i=r(89368).basename,o=r(41616),a=o.init,s=o.makeBrowserOfflineTransport,c=o.makeFetchTransport,l=r(38682),u=(l.CaptureConsole,l.RewriteFrames),p=r(51548).inferEnvironment,d=/(?!.*sentry.*).*libraries.*/,h=[new u({iteratee:e=>{var t;const r=(null===(t=e.filename)||void 0===t?void 0:t.toLowerCase())||"",n=!r.match(/.jsx?$/);return e.in_app=!n&&d.test(r),e.filename=`/${i(e.filename)}`,e}})];a({environment:p({version:"4.8.170",hostname:null===(n=window)||void 0===n?void 0:n.location.hostname,environment:"production"}),dsn:"https://cf682462403b43869f5daeeee58f9d45@o1383653.ingest.sentry.io/4504000583761920",release:"cc-libraries-panel@4.8.170",tracesSampleRate:1,integrations:h,ignoreErrors:[/Failed to fetch/],transport:s(c),beforeBreadcrumb(e,t){var r,n,i;"ui.click"===e.category&&(t&&null!==(r=t.event)&&void 0!==r&&null!==(n=r.target)&&void 0!==n&&null!==(i=n.dataset)&&void 0!==i&&i.testId&&(e.message=e.message+`[test-id=${t.event.target.dataset.testId}]`));if(("xhr"===e.category||"fetch"===e.category)&&t){var o,a,s,c;const r=(null===(o=t.xhr)||void 0===o||null===(a=o._cdtXHR)||void 0===a?void 0:a.headers)||Object.fromEntries((null===(s=t.response)||void 0===s||null===(c=s.headers)||void 0===c?void 0:c.entries())||[])||{};e.data["x-request-id"]=r["X-Request-Id"]||r["x-request-id"]}return e},beforeSend(e){var t;if(e.exception){var r,n;if(!((null===(r=e.exception.values[0])||void 0===r||null===(n=r.stacktrace)||void 0===n?void 0:n.frames)||[]).some((e=>e.in_app)))return null}const i=null===(t=e.message)||void 0===t?void 0:t.toLowerCase();return"error"===e.level||null!=i&&i.includes("reactjs.org")||null!=i&&i.includes("fb.me")||null!=i&&i.includes("failed prop type")?e:null}})},70403:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n,i,o,a,s,c,l,u,p,d,h=r(50265),f=r(93028),m=r(31600),g=r(72373),v=r(99386),y=r(20290),b=r(30131),_=r(51461),E=r(31870),w=r(36351),L=r(43393);function x(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}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 O(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 T(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const I=(e,t,r,n,i)=>(0,m.WY)(t,r,n,i,v.Z.STOCK_SEARCH_RESULT_SIZE,!0).then((t=>[e,t])).catch((t=>Promise.reject([e,t]))),P=(0,y.Ds)(200,I);let C=(n=h.observable.ref,i=h.action.bound,o=h.action.bound,a=h.action.bound,s=h.action.bound,c=class extends L.Z{constructor(...e){super(...e),O(this,"_isLoading",l,this),O(this,"_searchResults",u,this),O(this,"_hasSearchFailed",p,this),O(this,"_isOnLine",d,this),this._currentSearchContext=0}get isLoading(){return this._isLoading}get searchResults(){return this._searchResults}get searchResultsCount(){return this._searchResults.length}get hasSearchFailed(){return this._hasSearchFailed}get isOnLine(){return this._isOnLine}get findSimilarData(){return this.viewState.getFindSimilarData()}get filterTypeOptions(){return E.Tu()}init(){var e,t=x(this.viewState.getStockSearchOptionValuesArray());try{for(t.s();!(e=t.n()).done;){const t=e.value;this._searchTypeOptions.set(t,!0)}}catch(e){t.e(e)}finally{t.f()}window.addEventListener("online",this._handleOnLineTransition),window.addEventListener("offline",this._handleOnLineTransition)}search(e=!0){if(!this.viewState.isStockSearchMode())return;this._isLoading=!0,this._hasSearchFailed=!1,this._searchResults=[],this._currentSearchContext=this._currentSearchContext+1;const t=f.ZP.userId,r=this.viewState.getSearchText(),n=this.viewState.getFindSimilarData();(e?P:I)(this._currentSearchContext,t,r,n,this._searchTypeOptions.toJS()).then(this._handleSearchSuccess).catch(this._handleSearchFailure)}_handleSearchSuccess([e,t]){e===this._currentSearchContext&&this.viewState.isStockSearchMode()&&(t.forEach((e=>e.thumbnail_url=e.thumbnail_url?`${e.thumbnail_url}?_uncache=${Math.random()}`:"")),0===t.length&&_.ZP.reportStockEvent("Search","render","no-results"),this._searchResults=t,this._isLoading=!1)}_handleSearchFailure([e,t]){e===this._currentSearchContext&&this.viewState.isStockSearchMode()&&(_.ZP.reportStockEvent("Search","render","error",{event:{error_code:t}}),this._isLoading=!1,this._hasSearchFailed=!0)}_handleOnLineTransition(){this._isOnLine=w.Z.isOnline}dispose(){window.removeEventListener("online",this._handleOnLineTransition),window.removeEventListener("offline",this._handleOnLineTransition)}setSearchOption(e,t){t&&this.clearFilters(),this._searchTypeOptions.set(e,t),this._persistSearchOptions(this._searchTypeOptions),_.ZP.reportStockEvent("Search","click",t?"add-filter":"remove-filter",{ui:{filter:e}}),this.search(!1)}_persistSearchOptions(e){const t=Array.from(e.entries()).filter((([,e])=>e)).map((([e])=>e));g.Z.setValue("searchOptionValues",t)}searchOnWeb(){const e=(this.findSimilarData||{}).id;e?(0,b.TZ)(e,this._searchTypeOptions.toJS()):(0,b.v7)(this.viewState.getSearchText(),this._searchTypeOptions.toJS())}clearFilters(){super.clearFilters(),this.search()}},l=T(c.prototype,"_isLoading",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=T(c.prototype,"_searchResults",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=T(c.prototype,"_hasSearchFailed",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d=T(c.prototype,"_isOnLine",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return w.Z.isOnline}}),T(c.prototype,"init",[h.action],Object.getOwnPropertyDescriptor(c.prototype,"init"),c.prototype),T(c.prototype,"search",[i],Object.getOwnPropertyDescriptor(c.prototype,"search"),c.prototype),T(c.prototype,"_handleSearchSuccess",[o],Object.getOwnPropertyDescriptor(c.prototype,"_handleSearchSuccess"),c.prototype),T(c.prototype,"_handleSearchFailure",[a],Object.getOwnPropertyDescriptor(c.prototype,"_handleSearchFailure"),c.prototype),T(c.prototype,"_handleOnLineTransition",[s],Object.getOwnPropertyDescriptor(c.prototype,"_handleOnLineTransition"),c.prototype),T(c.prototype,"setSearchOption",[h.action],Object.getOwnPropertyDescriptor(c.prototype,"setSearchOption"),c.prototype),c)},53849:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n,i,o,a,s,c,l,u,p,d=r(50265),h=r(93028),f=r(86351),m=r(16993),g=r(90459),v=r(99386),y=r(76485),b=r(69233);function _(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 E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const w=[v.Z.ROLE_LOGO];const L=new(n=d.observable.ref,i=d.observable.ref,o=d.observable.ref,a=d.observable.ref,c=E((s=class{constructor(){this._listenerManager=(0,f.N)(),_(this,"_selectedElements",c,this),_(this,"_itemPendingScroll",l,this),_(this,"_focusedElement",u,this),_(this,"_disableScrollEasing",p,this),this._getElementSection=e=>{var t,r;const n=e.roles,i=e.type;return"role"===m.Z.viewByState&&n.length&&null!==(t=null===(r=n.find((e=>w.includes(e.usage))))||void 0===r?void 0:r.usage)&&void 0!==t?t:i}}isSelected(e){return this.selection.includes(e)}isFocused(e){return this._focusedElement===e}get selection(){return m.Z.isRemovedElementsMode()?this._selectedElements.filter((e=>!e.isDeletedLocally&&e.removed)):this._selectedElements.filter((e=>!e.isDeletedLocally&&!e.removed))}get _allElements(){if(m.Z.isSearchMode()||m.Z.isDocumentSearchType()||m.Z.librariesSearchState.hasSelectedTypeFilters)return m.Z.librariesSearchState.searchResults;const e=this.selection[0].library;return m.Z.isRemovedElementsMode()?e.removedElements:e.elements}get _allElementsInViewOrder(){return m.Z.isGroupView()&&!m.Z.librariesSearchState.hasSelectedTypeFilters?m.Z.getLibraryElementsInViewOrder(this.selection[0].library):m.Z.getElementsInViewOrder(this._allElements)}setItemPendingScroll(e){this._itemPendingScroll=e}ensureSelection(e){e&&!this.selection.includes(e)&&this.setSelection(e)}setFocusedElement(e,t=!1){this._focusedElement=e,t&&(this._itemPendingScroll=e)}setSelection(e,t=!1,r=!0){const n=e=>{if(["type","role"].includes(m.Z.viewByState)){const t=this._getElementSection(e);m.Z.setTypeCollapsed(t,!1)}else{const t=e.getGroups()[0];if(!t)return;const r=[...(0,b._y)(t),t];if(!r.length)return;r.forEach((e=>m.Z.setGroupCollapsed(e.id,!1)))}},i=()=>{y.Z.setHeader&&y.Z.setHeader()};if(e=e||[],Array.isArray(e))return this._selectedElements=e,delete this._lastSelectedElement,t&&(e=m.Z.getElementsInViewOrder(e),this._itemPendingScroll=e[0]),r&&e.forEach(n),void i();r&&n(e),this._selectedElements=[e],this._lastSelectedElement=e,this._lastSelectedElementWithShift=void 0,this._focusedElement=void 0,i(),t&&(this._itemPendingScroll=e)}setSelectionRange(e,t=!1,r=!1,n=!0){if(0===this.selection.length)return void this.setSelection(e);const i=this._allElementsInViewOrder;let o;const a=i.indexOf(e),s=this.selection.map((e=>i.indexOf(e))).reduce(((e,t)=>Math.max(e,t)),0);if(r){const e=this.selection.map((e=>i.indexOf(e))).reduce(((e,t)=>Math.min(e,t)),i.length-1);o=a<e?s:e}else o=this._lastSelectedElement?i.indexOf(this._lastSelectedElement):s;this._selectedElements=a<o?i.slice(a,o+1):i.slice(o,a+1),n&&this.selection.forEach((e=>{m.Z.isElementSectionCollapsed(e)&&m.Z.setTypeCollapsed(e.type,!1)})),this._lastSelectedElementWithShift=e,t&&(this._itemPendingScroll=e)}clearSelection(e){0!==this.selection.length&&(this._selectedElements=e?this.selection.filter((t=>!e.includes(t))):[],this._lastSelectedElementWithShift=void 0,this._focusedElement=void 0,delete this._lastSelectedElement)}toggleSelection(e){e&&(this.isSelected(e)?(this._selectedElements=this.selection.filter((t=>t!==e)),this._lastSelectedElement=void 0):(this._selectedElements=this.selection.concat([e]),this._lastSelectedElement=e),this._focusedElement=void 0)}revealElements(e){if(!e||!e.length)return;const t=e[0].library;e.every((e=>e.library===t))&&(!t.isDocumentAssets&&m.Z.isDocumentSearchType()&&m.Z.setSearchType("library"),m.Z.resetMode(),h.ZP.currentLibrary=t,setTimeout((()=>{this.setSelection(e,!0)}),y.Z.hasUXPRevealElementBug?500:0))}revealElement(e){if(e)return this.revealElements([e])}revealGroup(e,t=!1){if(!e)return;m.Z.setCurrentSection(e.id||e),this.setItemPendingScroll(e);(0,b._y)(e,!0).forEach((e=>{m.Z.isGroupCollapsed(e.id)&&m.Z.setGroupCollapsed(e.id,!1)})),t&&(this._disableScrollEasing=!0,setTimeout((()=>{this._disableScrollEasing=!1}),0))}get itemPendingScroll(){return this._itemPendingScroll}get lastSelectedElementWithShift(){return this._lastSelectedElementWithShift}get currentFocusedElement(){return this._focusedElement}clearItemPendingScroll(){this._itemPendingScroll=void 0}get scrollToAlignment(){return(this._itemPendingScroll instanceof g.Z||this._itemPendingScroll===v.Z.UNGROUPED_GROUP||"string"==typeof this._itemPendingScroll)&&v.Z.currentProduct.config.groupScrollAlignment||"auto"}addSelectionChangedListener(e){return(0,d.reaction)((()=>this.selection),(t=>{e(t)}))}get shouldEaseScrolling(){return!this._disableScrollEasing}}).prototype,"_selectedElements",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=E(s.prototype,"_itemPendingScroll",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=E(s.prototype,"_focusedElement",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=E(s.prototype,"_disableScrollEasing",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E(s.prototype,"selection",[d.computed],Object.getOwnPropertyDescriptor(s.prototype,"selection"),s.prototype),E(s.prototype,"_allElements",[d.computed],Object.getOwnPropertyDescriptor(s.prototype,"_allElements"),s.prototype),E(s.prototype,"_allElementsInViewOrder",[d.computed],Object.getOwnPropertyDescriptor(s.prototype,"_allElementsInViewOrder"),s.prototype),E(s.prototype,"scrollToAlignment",[d.computed],Object.getOwnPropertyDescriptor(s.prototype,"scrollToAlignment"),s.prototype),E(s.prototype,"shouldEaseScrolling",[d.computed],Object.getOwnPropertyDescriptor(s.prototype,"shouldEaseScrolling"),s.prototype),s)},10440:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n,i,o,a=r(50265),s=r(86351),c=r(69233),l=r(16993),u=r(53849);function p(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const d=new(n=a.observable.ref,o=p((i=class{constructor(){var e,t,r,n;this._listenerManager=(0,s.N)(),e=this,t="_selectedGroups",n=this,(r=o)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}isSelected(e){return!!this.groupSelection.find((t=>t===e))}setSelection(e,t=!0){if(!e)return;this.groupSelection.length>0&&this.clearSelection();const r=t?(0,c.xF)(e,!0):[e];this._selectedGroups=this.groupSelection.concat(r)}setSelectionRange(e){0===this.groupSelection.length&&this.setSelection(e);const t=l.Z.groupsInViewOrder,r=t.indexOf(e);let n=this.groupSelection.map((e=>t.indexOf(e))).reduce(((e,t)=>Math.max(e,t)),0);r>n&&(n=t.indexOf(this.groupSelection[0])),this._selectedGroups=r<n?t.slice(r,n+1):t.slice(n,r+1)}clearSelection(e){this._selectedGroups=e?this._selectedGroups.filter((t=>!e.includes(t))):[]}toggleSelection(e){const t=(0,c.xF)(e,!0);this.isSelected(e)?this._selectedGroups=this.groupSelection.filter((e=>!t.includes(e))):this._selectedGroups=this.groupSelection.concat([...t.filter((e=>!this.groupSelection.includes(e)))])}get groupSelection(){const e=this._selectedGroups[0];return e&&!e.library.getGroups().length?[]:this._selectedGroups.filter((e=>!e.isDeletedLocally))}getSelectionCommonAncestor(){const e=this.groupSelection,t=u.Z.selection;if(!e.length&&1===t.length)return t[0].getGroups()[0];const r=!e.length&&t.length?t:e;return r.length?(0,c.Q_)(r):void 0}findHighestSelectedGroups(){return this.groupSelection.filter((e=>!e.parent||!(0,c._y)(e).find((e=>this.isSelected(e)))))}}).prototype,"_selectedGroups",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p(i.prototype,"groupSelection",[a.computed],Object.getOwnPropertyDescriptor(i.prototype,"groupSelection"),i.prototype),i)},16993:(e,t,r)=>{"use strict";r.d(t,{Z:()=>ue});var n,i,o,a,s,c,l,u,p=r(99386),d=r(47320),h=r(72373),f=r(76485),m=r(34038),g=r(86351),v=r(84824),y=r(93028),b=r(50265),_=r(53849),E=r(10440),w=r(51461),L=r(70403),x=r(43393),S=r(69233),O=r(10441),T=r(44914);function I(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 P(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let C=(n=b.observable.ref,i=b.action.bound,o=b.computed.equals(((e,t)=>e.elements===t.elements&&e.count===t.count)),a=b.computed.equals(((e,t)=>e.elements===t.elements&&e.count===t.count)),s=class extends x.Z{constructor(...e){super(...e),I(this,"searchLoader",c,this),I(this,"_loaderSearchResults",l,this),I(this,"visibleResultsLimit",u,this)}resetSearchLoader(){this.searchLoader&&(this.searchLoader.abort(),this.resultsReaction&&this.resultsReaction(),this.completeReaction&&this.completeReaction(),this.visibleResultsLimit=void 0,this._loaderSearchResults=void 0)}search(){if(this.viewState.isSearchMode()&&this.viewState.isStockSearchMode())return;const e=this.viewState.getSearchText(),t={},r={sectionType:"type",sections:d.Z.getElementTypes(),field:"name"===this.viewState.elementSearchSort?"name":"modifiedDate",direction:"name"===this.viewState.elementSearchSort?"ascending":"descending"};(this.viewState.isLibrarySearchMode()||this._isDocumentSearch)&&y.ZP.currentLibrary&&(t.library_id=y.ZP.currentLibrary.id),this.resetSearchLoader(),e&&(this.searchLoader=y.ZP.getSearchResults(e,t,r,this.viewState),this.resultsReaction=(0,b.reaction)((()=>this.searchLoader.results.length),(()=>{this._loaderSearchResults=this.searchLoader.results,this.setVisibleResultsCursor()})),this.completeReaction=(0,b.reaction)((()=>this.searchLoader.isComplete),(()=>this.seachCompleteHandler())))}seachCompleteHandler(){this.visibleResultsLimit=void 0}setVisibleResultsCursor(){const e="name"===this.viewState.elementSearchSort?"name":"modified",t=this.searchLoader.results[this.searchLoader.results.length-1];t&&(this.visibleResultsLimit={orderedValue:t[e],type:t.type,name:t.name})}get isLoading(){return this.viewState.isSearchMode()&&(!this.searchLoader||!this.searchLoader.isComplete)}get elementTypeOrder(){return d.Z.getElementTypes()}get visibleSearchResults(){const e=this._matchingElements.elements;if(!this.isLoading)return{elements:e,count:e.length};const t=e.filter((e=>{if(!this.visibleResultsLimit)return!1;const t=this.elementTypeOrder.indexOf(e.type)<this.elementTypeOrder.indexOf(this.visibleResultsLimit.type),r="name"===this.viewState.elementSearchSort?e[this.viewState.elementSearchSort]<=this.visibleResultsLimit.orderedValue:e[this.viewState.elementSearchSort]>=this.visibleResultsLimit.orderedValue,n=e.type===this.visibleResultsLimit.type;return t||r&&n}));return{elements:t,count:t.length}}get _matchingElements(){if(this._loaderSearchResults)return{elements:this._loaderSearchResults,count:this._loaderSearchResults.length};const e=y.ZP.currentLibrary;if((this._isDocumentSearch||e&&!this._isSearchMode)&&(0,O.fs)(this.viewState.getSearchText())){const t=(this._isDocumentSearch?y.ZP.documentAssetsContainer:e).elements;return{elements:t,count:t.length}}const t=(this.viewState.isLibrariesSearchMode()?y.ZP.searchableLibraries:[e]).filter((e=>e)),r=(0,O.OX)(this.viewState.getSearchText(),t);return{elements:r,count:r.length}}get _isDocumentSearch(){return this.viewState.isDocumentSearchType()}get _isSearchMode(){return this.viewState.isSearchMode()}get _searchResultsTypes(){const e={};return this.visibleSearchResults.elements.forEach((t=>e[t.type]=!0)),Object.keys(e)}get _searchResultsLibraries(){const e={};return this.visibleSearchResults.elements.forEach((t=>{t.library.isDocumentAssets||(e[t.library.id]=!0)})),Object.keys(e)}get searchResults(){if(this.viewState.isSearchMode()&&this.viewState.isStockSearchMode())return[];const e=this.hasSelectedTypeFilters,t=this.hasSelectedLibraryFilters,r=this.hasSelectedDocumentGroupFilters,n=this.hasSelectedDocumentLinkFilters,i=p.Z.currentProduct.config.includeGroupFilters;if(this.viewState.isDocumentSearchType()&&(r||n)||i&&!e){const e=i?y.ZP.currentLibrary:y.ZP.documentAssetsContainer,t=d.Z.groupElementsByTopLevelGroup(this._matchingElements.elements,e.getGroups());return this.visibleSearchResults.elements.filter((i=>{const o=t.find((e=>e.children.map((e=>e.item)).includes(i)));let a=o&&o.item&&o.item.name;p.Z.currentProduct.config.allowUngroupedFiltering&&(a=a||"*"===o.item.id&&"ungrouped");const s=a&&this._searchDocumentGroupFilters.includes(a),c=i.isLinked?(0,T.Q7)(i.linkReference):e.name,l=this._searchDocumentLinkFilters.includes(c);return(s||!r)&&(l||!n)}))}return e||t?this.visibleSearchResults.elements.filter((r=>{const n=this._searchTypeFilters.includes(r.type),i=this._searchLibrariesFilters.includes(r.library.id);return t?e?n&&i:i:n})):this.visibleSearchResults.elements}get searchResultsCount(){return this.searchResults.length}get searchResultsGroups(){const e=[],t=(0,S.Oi)(this.searchResults,y.ZP.currentLibrary.getGroups(),{includeEmpty:!1}).branches;return Object.values(t).forEach((t=>{if(t.item.isGroup&&(t.item!==p.Z.UNGROUPED_GROUP||t.children.length)){var r,n,i;const o=this.viewState.viewByGroupMode===p.Z.VIEW_BY_GROUP_MODES.PATH,a=null===(r=t.item)||void 0===r||null===(n=r.library)||void 0===n?void 0:n.pathViewMaxDepth,s=a&&t.depth<a;o&&null!==(i=t.children[0])&&void 0!==i&&i.item.isGroup&&!s||e.push(t.item)}})),e}get hasSelectedLibraryFilters(){return!!this._searchLibrariesFilters.length}get hasSelectedTypeFilters(){return!!this._searchTypeFilters.length}get hasSelectedDocumentGroupFilters(){return!!this._searchDocumentGroupFilters.length}get hasSelectedDocumentLinkFilters(){return!!this._searchDocumentLinkFilters.length}get filterLibrariesOptions(){if(this._isDocumentSearch){const e={};return e[y.ZP.documentAssetsContainer.name]={label:"DOCUMENT_ASSETS_FILTER",id:y.ZP.documentAssetsContainer.name,type:"document"},this.visibleSearchResults.elements.forEach((t=>{t.isLegacyDocumentLink&&t.linkedDocumentName&&(e[t.linkedDocumentName]={label:t.linkedDocumentName,id:(0,T.Q7)(t.linkReference),type:"document",removable:!0})})),this.visibleSearchResults.elements.forEach((t=>{var r,n;const i=null!==(r=null===(n=t.linkedLibrary)||void 0===n?void 0:n.name)&&void 0!==r?r:t.cachedLinkedLibraryName;t.isLinked&&!t.isLegacyDocumentLink&&i&&(e[i]={label:i,id:(0,T.Q7)(t.linkReference),type:"document"})})),Object.values(e)}return this._searchResultsLibraries.concat(this._searchLibrariesFilters.filter((e=>!this._searchResultsLibraries.includes(e)))).map((e=>({id:e,label:y.ZP.getLibraryById(e).name,type:"library"})))}get filterTypeOptions(){if(this._isDocumentSearch){return d.Z.groupElementsByTopLevelGroup(this._matchingElements.elements,y.ZP.documentAssetsContainer.getGroups()).filter((e=>e.item&&e.children&&e.children.length||this._searchDocumentGroupFilters.includes(e.item&&e.item.name))).map((e=>({id:e.item.name,label:(0,v.Iu)(e.item.nameLocalizationKey),type:"group"})))}return this._searchResultsTypes.concat(this._searchTypeFilters.filter((e=>!this._searchResultsTypes.includes(e)))).map((e=>({id:e,label:d.Z.getTypeName(e),type:"type"})))}clearUnusedTypeOptions(){this._searchTypeFilters.filter((e=>!this._searchResultsTypes.includes(e))).forEach((e=>this.setSearchOption(e,!1,"type")))}setSearchOption(e,t,r){switch(r){case"library":return void this._searchLibrariesOptions.set(e,t);case"group":return void this._searchDocumentGroupOptions.set(e,t);case"document":return void this._searchDocumentLinkOptions.set(e,t);default:this._searchTypeOptions.set(e,t)}}clearLibrariesFilters(){this._searchLibrariesOptions=new Map}clearDocumentFilters(){this._searchDocumentGroupOptions=new Map,this._searchDocumentLinkOptions=new Map}},c=P(s.prototype,"searchLoader",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=P(s.prototype,"_loaderSearchResults",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),u=P(s.prototype,"visibleResultsLimit",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(s.prototype,"search",[i],Object.getOwnPropertyDescriptor(s.prototype,"search"),s.prototype),P(s.prototype,"isLoading",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"isLoading"),s.prototype),P(s.prototype,"visibleSearchResults",[o],Object.getOwnPropertyDescriptor(s.prototype,"visibleSearchResults"),s.prototype),P(s.prototype,"_matchingElements",[a],Object.getOwnPropertyDescriptor(s.prototype,"_matchingElements"),s.prototype),P(s.prototype,"_isDocumentSearch",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"_isDocumentSearch"),s.prototype),P(s.prototype,"_isSearchMode",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"_isSearchMode"),s.prototype),P(s.prototype,"_searchResultsTypes",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"_searchResultsTypes"),s.prototype),P(s.prototype,"_searchResultsLibraries",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"_searchResultsLibraries"),s.prototype),P(s.prototype,"searchResults",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"searchResults"),s.prototype),P(s.prototype,"searchResultsCount",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"searchResultsCount"),s.prototype),P(s.prototype,"searchResultsGroups",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"searchResultsGroups"),s.prototype),P(s.prototype,"filterLibrariesOptions",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"filterLibrariesOptions"),s.prototype),P(s.prototype,"filterTypeOptions",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"filterTypeOptions"),s.prototype),s);var A,k,D,N,R,M,j,Z,F,B,G,U,z,V=r(84074),H=r(79799),Y=r(48919),W=r(46903),$=r(39293),K=r(85834),q=r(18580);function X(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 J(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Q=["image"],ee={normal:{enableMultiSelect:!0,enableContextMenu:!0},relink:{enableMultiSelect:!1,enableContextMenu:!1},removed_elements:{enableMultiSelect:!0,enableContextMenu:!1},search:{enableMultiSelect:!0,enableContextMenu:!0},one_up:{enableMultiSelect:!0,enableContextMenu:!0},brand_kit:{}},te={type:"#collapsedTypes",group:"#collapsedGroups",groupNavigation:"#collapsedGroupNavigation"},re=["relevance","creation","popularity","nb_downloads"],ne=["name","order","modified"],ie=["modified","name"],oe=["modified","name"],ae={type:["name","modified"],group:["order","name"],role:["name","modified"]},se=p.Z.STORED_RECENT_SEARCH_LIBRARIES_KEY,ce=p.Z.STORED_RECENT_SEARCH_STOCK_KEY;let le=(A=b.observable.ref,D=J((k=class{constructor(){X(this,"mode",D,this),X(this,"isImportExportInProgress",N,this),X(this,"isTourInProgress",R,this),X(this,"modeParams",M,this),X(this,"currentSection",j,this),X(this,"gridZoomFactor",Z,this),X(this,"showNavigation",F,this),X(this,"collapsedGroupNavToDrag",B,this),X(this,"view",G,this),X(this,"librarySortOrderDescending",U,this)}}).prototype,"mode",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"normal"}}),N=J(k.prototype,"isImportExportInProgress",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=J(k.prototype,"isTourInProgress",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M=J(k.prototype,"modeParams",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),j=J(k.prototype,"currentSection",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Z=J(k.prototype,"gridZoomFactor",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),F=J(k.prototype,"showNavigation",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),B=J(k.prototype,"collapsedGroupNavToDrag",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Array}}),G=J(k.prototype,"view",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"grid"}}),U=J(k.prototype,"librarySortOrderDescending",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k);const ue=new(J((z=class{init(){this._state.elementSortDescending=h.Z.getValue("elementSortDescendingState")||this._state.elementSortDescending;const e=h.Z.getValue("librarySortState")||p.Z.currentProduct.config.defaultLibrarySortState||this._state.librarySort;this._state.librarySort=e,this._state.librarySortOrderDescending="name"!==e,this._state.gridZoomFactor=h.Z.getValue("gridZoomFactor")||this._state.gridZoomFactor,this._state.view=h.Z.getValue("viewState")||this._state.view,this._state.showNavigation=void 0===h.Z.getValue("showNavigationState")?this._state.showNavigation:h.Z.getValue("showNavigationState"),this._stockSearchState.init()}constructor(){this._currentSearchTimeout=null,this._listenerManager=(0,g.N)(this,["resetMode"]),this._stockSearchState=new L.Z(this),this._librariesSearchState=new C(this),this._state=new le,this._state.elementSearchSort="modified",this._state.elementSortDescending=!1,this._state.librarySort="name",this._state.librarySortOrderDescending=!1,this._state.gridZoomFactor=p.Z.GRID_TYPE_MEDIUM,this._state.view=p.Z.ELEMENTS_VIEW_STATES.GRID,this._state.librariesView=p.Z.LIBRARIES_VIEW_STATES.GRID,this._state.viewBy="group",this._state.numResults=0,this._state.enableMultiSelect=!0,this._state.enableContextMenu=!0,this._state.elementTypeFilter=[],this._state.contextMenuPosition={x:0,y:0},this._state.showNavigation=!0,this._state.collapsedGroupNavToDrag=[]}setHeaderView(e){this._headerView=e}_setState(e,t){this._state[e]=t,h.Z.setValue(e+"State",t)}_setMode(e,t,r){const n=ee[e];this._state.enableMultiSelect=n.enableMultiSelect,this._state.enableContextMenu=n.enableContextMenu,this._state.elementTypeFilter=r,this._state.mode=e,this._state.modeParams=Object.assign({},this._state.modeParams,t||{}),this.isSearchMode()&&this.searchState.search()}_deleteFindSimilarFile(){const e=this._state.modeParams.findSimilarData;e&&e.path&&e.deleteFileAfterUse&&m._I(e.path)}startDragFromProduct(e){this._draggingData=e}endDragFromProduct(){this._draggingData=null}getDraggingData(){let e,t=0;return new Promise(((r,n)=>{e=setInterval((()=>{this._draggingData?(clearInterval(e),r(this._draggingData)):++t>9&&(clearInterval(e),n("Listener did not receive drag data"))}),10)}))}setCurrentWorkflow(e){this._currentWorkflow=e}get currentWorkflowName(){return this._currentWorkflow&&this._currentWorkflow.name}notifyWorkflowAction(e){this._currentWorkflow&&this._currentWorkflow.notifyAction&&this._currentWorkflow.notifyAction(e)}get viewState(){return h.Z.getValue("viewState")||p.Z.currentProduct.config.defaultViewState||p.Z.ELEMENTS_VIEW_STATES.GRID}get librariesViewState(){return h.Z.getValue("librariesViewState")||p.Z.currentProduct.config.defaultViewState||p.Z.LIBRARIES_VIEW_STATES.GRID}_getViewByStateKey(e=y.ZP.currentLibrary){const t="viewByState",r=(null==e?void 0:e.previousPlaceHolderId)||(null==e?void 0:e.id);return e?`${t}#${r}`:t}get viewByState(){var e;if(y.ZP.currentLibrary&&y.ZP.currentLibrary.isDocumentAssets)return p.Z.currentProduct.config.defaultViewByState||"group";const t=h.Z.getValue(this._getViewByStateKey());let r="type";(null===(e=y.ZP.currentLibrary)||void 0===e?void 0:e.getGroups().length)>=1?r="group":(0,$.Ol)(y.ZP.currentLibrary)&&K.Z.get("brandFeatureEnabled")&&(r="role");const n=t||p.Z.currentProduct.config.defaultViewByState||r;return"role"!==n||(0,$.Ol)(y.ZP.currentLibrary)&&K.Z.get("brandFeatureEnabled")?n:"type"}get viewByGroupMode(){return h.Z.getValue("viewByGroupModeState")||p.Z.currentProduct.config.defaultViewByGroupMode||"tree"}getViewByStateOptions(){return K.Z.get("brandFeatureEnabled")&&(0,$.Ol)(y.ZP.currentLibrary)?["role","type","group"]:["type","group"]}getViewByGroupModeOptions(){return["tree","path"]}getViewStateOptions(){return["grid","list"]}get currentLibrariesFilter(){return q.Z.isBrandLifecycleEnabled()&&!f.Z.isBrandCreator?"all":h.Z.getValue("currentLibrariesFilter")||"all"}setCurrentLibrariesFilter(e){return h.Z.setValue("currentLibrariesFilter",e)}resetCurrentLibrariesFilter(){return h.Z.setValue("currentLibrariesFilter","all")}getLibraryListFilterOptions(){return p.Z.currentProduct.config.useBrandsFilterOptions?q.Z.isBrandLifecycleEnabled()?Object.values(p.Z.BRANDS_FILTER_OPTIONS):Object.values(p.Z.BRANDS_FILTER_OPTIONS_M2_1):["all","personal","shared","public","team"]}get elementSortState(){const e=p.Z.currentProduct.config.defaultElementSortState||ae[this.viewByState][0];return h.Z.getValue(`elementSortState#${this.viewByState}`)||e}get _elementSearchSortState(){return h.Z.getValue("elementSearchSortState")||"modified"}get elementSortDescendingState(){return h.Z.getValue("elementSortDescendingState")||!1}get librarySortState(){return h.Z.getValue("librarySortState")||p.Z.currentProduct.config.defaultLibrarySortState||"name"}get librarySortOrderDescendingState(){var e;const t=h.Z.getValue("librarySortOrderDescendingState");return null!==(e=null!=t?t:this._state.librarySortOrderDescending)&&void 0!==e&&e}get showNavigation(){return this._state.showNavigation}get gridZoomFactor(){return this._state.gridZoomFactor}get stockSearchState(){return this._stockSearchState}get librariesSearchState(){return this._librariesSearchState}get searchState(){return this.isStockSearchMode()?this._stockSearchState:this._librariesSearchState}get nameVisibility(){return h.Z.getValue("nameVisibility")||p.Z.currentProduct.config.nameVisibilityOverride||"elementHover"}get elementBackgroundPattern(){return h.Z.getValue("elementBackground")||p.Z.ELEMENT_BACKGROUNDS.SOLID}get contextMenuPositionState(){return this._state.contextMenuPosition}getState(){return this._state}isDefaultMode(){return"normal"===this._state.mode}isRelinkLayerMode(){return"relink"===this._state.mode}isLocked(e){return e&&e.toolkitId&&!h.Z.getValue(this._getUnlockedKey(e))}unlock(e){w.ZP.reportEvent("Library Operations","Library","click","unlock",null,e),h.Z.setValue(this._getUnlockedKey(e),!0)}lockToolkit(e){h.Z.setValue(this._getUnlockedKey(e),!1)}_getUnlockedKey(e){return`unlockedToolkit#${e.toolkitId}`}isLibraryWritable(e,t,r){return e&&e.isWritable&&(r||e.areElementsLoaded)&&!this.isLocked(e)&&(t||!e.documentId)}isRemovedElementsMode(){return"removed_elements"===this._state.mode}isSearchMode(){return"search"===this._state.mode}isOneUpMode(){return"one_up"===this._state.mode}isBrandKitMode(){return"brand_kit"===this._state.mode}isGroupView(){const e="document"===this.getSearchType();return"group"===this.viewByState&&(e||!this.isSearchMode()&&!this.isRelinkLayerMode())}isLibraryNameSearchType(){return"libraryName"===this.getSearchType()}isContextMenuEnabled(){return this._state.enableContextMenu}isNewUserState(){return!y.ZP.libraries.some((e=>{const t=e.elementCount>0||e.removedElementCount>0;return e.isWritable&&t&&!e.toolkitId}))}isLibrarySearchMode(){return"search"===this._state.mode&&"library"===this._state.modeParams.type}isLibraryNameSearchMode(){return"search"===this._state.mode&&"libraryName"===this._state.modeParams.type}isLibrariesSearchMode(){return"search"===this._state.mode&&"libraries"===this._state.modeParams.type}isStockSearchMode(){return"search"===this._state.mode&&"stock"===this._state.modeParams.type}isDocumentSearchMode(){return"search"===this._state.mode&&"document"===this._state.modeParams.type}isDocumentSearchType(){return"document"===this.getSearchType()||"libraries"===this.getSearchType()&&y.ZP.currentLibrary&&y.ZP.currentLibrary.isDocumentAssets&&(0,O.fs)(this.getSearchText())}getSearchText(){var e;return null===(e=this._state.modeParams.text)||void 0===e?void 0:e.trimStart()}getSearchId(){return this._state.modeParams.searchId}getLocalMachineSetting(e){if(!y.ZP.disableCCLibraries)return H.Z.getLocalMachineSetting(e);h.Z.getValue(e)}setLocalMachineSetting(e,t){y.ZP.disableCCLibraries?h.Z.setValue(e,t):H.Z.setLocalMachineSetting(e,t)}_getRecentSearchKey(){return`${y.ZP.disableCCLibraries?f.Z.imsUserId:y.ZP.userId}#recentSearches`}getRecentSearches(){return this.getLocalMachineSetting(this._getRecentSearchKey())||{libraries:[],stock:[]}}_addRecentSearch(e,t){const r=this.getRecentSearches(),n="stock"===e?p.Z.STORED_RECENT_STOCK_SEARCH_LIMIT:p.Z.STORED_RECENT_LIBRARIES_SEARCH_LIMIT,i=r[e].filter((e=>e!==t)),o=i.indexOf(t);i.splice(-1===o?n-1:o,1),i.unshift(t);const a=this._getRecentSearchKey();r[e]=i,this.setLocalMachineSetting(a,r)}clearRecentSearch(e,t){const r=this.getRecentSearches(),n=r[e];n.length>0&&(r[e]=n.filter((e=>e!==t)),this.setLocalMachineSetting(this._getRecentSearchKey(),r))}clearAllRecentSearches(){this.setLocalMachineSetting(this._getRecentSearchKey(),{libraries:[],stock:[]})}hasRecentSearches(){const e=this.getRecentSearches();return e[se].length>0||e[ce].length>0}_storeRecentSearch(){this._currentSearchTimeout&&clearTimeout(this._currentSearchTimeout);const e=this.getSearchText();if(!e||!e.trim()||e===(0,v.Iu)("DL_STOCK_FIND_SIMILAR_PLACEHOLDER"))return;const t=this.isStockSearchMode()?ce:se;this._currentSearchTimeout=setTimeout((()=>{this._addRecentSearch(t,e)}),p.Z.RECENT_SEARCH_TIMER)}setSearchText(e){const t=this.getSearchText();let r=t!==e;t||e||(r=!1),r&&!t&&w.ZP.reportSearchEvent("Search","Search","keydown","input",{ui:{filter:this.getSearchType()}}),this._state.modeParams=Object.assign({},this._state.modeParams,{text:e,type:this.getSearchType()}),!(0,O.fs)(this.getSearchText())||this._state.modeParams.findSimilarData&&this._state.modeParams.findSimilarData.findSimilarId?(this.isSearchMode()||this.setSearchMode(this._state.modeParams),this._state.modeParams.text!==(0,v.Iu)("DL_STOCK_FIND_SIMILAR_PLACEHOLDER")&&this.clearFindSimilarSearchMode()):this.isSearchMode()&&this.resetMode(),this.clearAllSelections(),this.isSearchMode()&&this.searchState.search(),this._storeRecentSearch()}clearAllSelections(){E.Z.clearSelection(),_.Z.clearSelection()}getElementSortOptions(){return ne}getLibrariesSearchSortOptions(){return p.Z.currentProduct.config.useBrandsSortOptions?Object.values(p.Z.BRANDS_SORT_OPTIONS):oe}getElementSearchSortOptions(){return this.isStockSearchMode()?re:ie}setElementSearchSort(e){this.isStockSearchMode()&&re.includes(e)?(h.Z.setValue("stockSearchSort",e),this._stockSearchState.search()):ie.includes(e)&&(this._setElementSearchSortState(e),this.searchState.search())}isValidElementSortOption(e){return this.isSearchMode()?this.isStockSearchMode()?re.includes(e):ie.includes(e):ae[this.viewByState].includes(e)}get elementSearchSort(){return this.isStockSearchMode()?h.Z.getValue("stockSearchSort")||"relevance":this._elementSearchSortState}get thumbnailType(){return this.viewState+(this.isDefaultMode()&&"group"===this.viewByState?"-group":"")}getSearchType(){if(y.ZP.currentLibrary&&y.ZP.currentLibrary.isDocumentAssets)return h.Z.getValue("searchType")&&"libraries"===h.Z.getValue("searchType")?"libraries":"document";if(this._state.modeParams.type)return this._state.modeParams.type;if(this.isRootView())return this.isRootView()&&p.Z.currentProduct.config.enableLibraryNameSearch?"libraryName":"libraries";{const e=h.Z.getValue("searchType");return e&&"libraryName"!==e?e:"library"}}getSearchTypes(){return y.ZP.isRestrictedAccount?["library","libraries"]:y.ZP.currentLibrary&&y.ZP.currentLibrary.isDocumentAssets?["document","libraries"]:["stock","library","libraries"]}getStockSearchOptionValuesArray(){const e=h.Z.getValue("searchOptionValues");return e&&(0,b.isArrayLike)(e)?e:p.Z.currentProduct.config.defaultStockSearchOptions||[]}getFindSimilarData(){return this._state.modeParams.findSimilarData}setStockSearchOptionValuesArray(e){e&&h.Z.setValue("searchOptionValues",Object.keys(e).filter((t=>e[t])))}setSearchType(e){"libraries"!==e&&this.librariesSearchState.clearLibrariesFilters(),h.Z.setValue("searchType",e),this._state.modeParams=Object.assign({},this._state.modeParams,{type:e}),this.searchState.search(),this._storeRecentSearch()}setElementSortState(e){h.Z.setValue(`elementSortState#${this.viewByState}`,e)}_setElementSearchSortState(e){this._setState("elementSearchSort",e)}setElementSortDescendingState(e){this._setState("elementSortDescending",e)}setLibrarySortState(e){this.setLibrarySortOrderDescendingState("name"!==e),this._setState("librarySort",e)}setLibrarySortOrderDescendingState(e){this._setState("librarySortOrderDescending",e)}setGridZoomFactor(e){this._setState("gridZoomFactor",e)}setShowNavigation(e){this._setState("showNavigation",e)}setViewState(e){this._setState("view",e)}setLibrariesViewState(e){this._setState("librariesView",e)}resetViewStates(){this._setState("view",p.Z.currentProduct.config.defaultViewState||p.Z.ELEMENTS_VIEW_STATES.GRID),this._setState("librariesView",p.Z.currentProduct.config.defaultViewState||p.Z.LIBRARIES_VIEW_STATES.GRID)}setRemoveDialogPadding(e){this._setState("removePadding",e)}getRemovePadding(){return this._state.removePadding}setViewByState(e){if(this.setCurrentSection(null),this._state.viewBy=e,h.Z.setValue(this._getViewByStateKey(),e),!y.ZP.currentLibrary)return;let t;"type"!==e&&"role"!==e||!y.ZP.currentLibrary.elements.length||(t=this.getTypeSectionsInViewOrder(y.ZP.currentLibrary.elements).type),"group"===e&&(t=this.groupsInViewOrder&&this.groupsInViewOrder[0]),t&&_.Z.revealGroup(t,!0)}setViewByGroupMode(e){this._setState("viewByGroupMode",e)}setNameVisibility(e){h.Z.setValue("nameVisibility",e)}setElementBackgroundPattern(e){h.Z.setValue("elementBackground",e)}setContextMenuPositionState(e){this._setState("contextMenuPosition",e)}setRelinkLayerMode(e,t){e=e||{},t||(t=Q),t=(t=Array.isArray(t)?t:[t]).map((e=>p.Z.getElementType(e))),this._setMode("relink",e,t),V.ZP.openDialog("relinkLayerOverlay")}showRootView(){y.ZP.currentLibrary=null}isRootView(){return!y.ZP.currentLibrary&&!this.isOneUpMode()}setRemovedElementsMode(){this._setMode("removed_elements",{})}setSearchMode(e){!e||null!=e&&e.searchId||(e.searchId=m.Rl()),this._setMode("search",e)}clearSearchMode(){var e,t;null===(e=this.searchState)||void 0===e||null===(t=e.resetSearchLoader)||void 0===t||t.call(e),delete this._state.modeParams.searchId}setOneUpMode(e){if(!e)throw new Error('setOneUpMode must have the parameter "element" to properly display the one up view.');this._setMode("one_up",{element:e,previousMode:this.getState().mode})}setOneUpSubElement(e){this._state.modeParams.subElement=e}setBrandKitMode(e){var t,r;e&&null!==(t=(r=p.Z.currentProduct).isExpandedView)&&void 0!==t&&t.call(r)?this._setMode("brand_kit"):this._setMode("normal")}setStateBeforeOneUpMode(){const e=this.getState().modeParams;"search"===e.previousMode?(this.setSearchMode(e),this.clearOneUpModeParams()):this.resetMode()}clearOneUpModeParams(){delete this._state.modeParams.element,delete this._state.modeParams.previousMode,delete this._state.modeParams.subElement}setNumResults(e){this._state.numResults=e}resetMode(){this._listenerManager.notify("resetMode"),this.clearFindSimilarSearchMode(),this.clearSearchMode(),this.librariesSearchState.clearFilters(),"normal"!==this._state.mode&&(this._setMode("normal"),this._state.modeParams=Object.assign({},this._state.modeParams,{text:""}))}setFindSimilarSearchMode(e,t,r,n){this._deleteFindSimilarFile(),this._state.modeParams=Object.assign({},this._state.modeParams,{text:(0,v.Iu)("DL_STOCK_FIND_SIMILAR_PLACEHOLDER"),type:"stock",findSimilarData:{id:e,url:t,path:r,deleteFileAfterUse:n}}),this.setSearchMode(this._state.modeParams)}clearFindSimilarSearchMode(){this._deleteFindSimilarFile(),this._state.modeParams.findSimilarData=void 0}_getCollapsedKey(){if("search"===this._state.mode)return"search";const e=y.ZP.currentLibrary;return e&&e.id}_getCollapsedMap(e){return h.Z.getValue(y.ZP.userId+"#"+te[e])||{}}_setCollapsedMap(e,t){if(!y.ZP.areLibrariesLoaded)return;const r=y.ZP.searchableLibraries.map((e=>e.id));Object.keys(e).filter((e=>"search"!==e&&!r.includes(e))).forEach((t=>delete e[t])),h.Z.setValue(y.ZP.userId+"#"+te[t],e)}_isCollapsed(e,t){const r=p.Z.currentProduct.config.disabledCollapseSectionIds;if(r&&r.includes(e))return!1;const n=this._getCollapsedKey();if(!n)return!1;const i=!this.isSearchMode()&&p.Z.currentProduct.config.collapsedTypes||[];return(this._getCollapsedMap(e)[n]||i).includes(t)}_setCollapsed(e,t,r){const n=this._getCollapsedKey();if(!n)return;const i=this._getCollapsedMap(e),o=!this.isSearchMode()&&p.Z.currentProduct.config.collapsedTypes||[],a=i[n]||o;if(a.includes(t)===r)return;const s=Object.assign({},i);s[n]=a.filter((e=>e!==t)),r&&s[n].push(t),this._setCollapsedMap(s,e)}resetCollapsedTypes(){this._setCollapsedMap({},"type")}isTypeCollapsed(e){return this._isCollapsed("type",e)}isElementSectionCollapsed(e){const t="role"===this.viewByState&&d.Z.getElementRole(e)||e.type;return this.isTypeCollapsed(t)}isGroupCollapsed(e){return this._isCollapsed("group","*"===e?"ungrouped":e)}isGroupNavigationCollapsed(e){return this._isCollapsed("groupNavigation",e)}setTypeCollapsed(e,t){this._setCollapsed("type",e,t)}setGroupCollapsed(e,t){this._setCollapsed("group","*"===e?"ungrouped":e,t)}setGroupNavigationCollapsed(e,t){this._setCollapsed("groupNavigation",e,t)}setCollapsedGroupNavigationToDrag(e){this._state.collapsedGroupNavToDrag.push(e)}collapsedGroupNavigationToDrag(e){return!!this._state.collapsedGroupNavToDrag.find((t=>t===e))}clearCollapsedGroupNavigationToDrag(){this._state.collapsedGroupNavToDrag=[]}_getElementsFromBranches(e){return e.reduce(((e,t)=>{const r=t.children.map((e=>e.item));return e.concat(r)}),[])}_getElementsInNestedGroupOrder(e){if(!e.length)return[];const t="modified"===this.elementSortState?"order":this.elementSortState,r=e[0].library,n=d.Z.groupElementsByCustomGroup(e,r.getGroups(),0,t);return this._getElementsFromBranches(n)}getElementsInViewOrder(e){if(this.isGroupView())return this._getElementsInNestedGroupOrder(e);return this.getTypeSectionsInViewOrder(e).reduce(((e,t)=>e.concat(t.children)),[])}getLibraryElementsInViewOrder(e){if(this.isGroupView()){const t="modified"===this.elementSortState?"order":this.elementSortState,r=(0,S.GI)(e,{sortBy:t,maxDepth:0}).root;return this._getElementsFromBranches(r.children)}return this.getElementsInViewOrder(e.elements)}getTypeSectionsInViewOrder(e){const t=this.isSearchMode()||this.isRelinkLayerMode()?this._elementSearchSortState:this.elementSortState;return this.isRemovedElementsMode()?d.Z.groupElementsByTime(e,"removed"):d.Z.groupElementsByType(e,t)}get groupsInViewOrder(){if(!y.ZP.currentLibrary)return[];const e=this.elementSortState,t=y.ZP.currentLibrary&&y.ZP.currentLibrary.fixedSortOrder||e;return(0,S.GI)(y.ZP.currentLibrary,{maxDepth:0,sortBy:t}).root.children.reduce(((e,t)=>e.concat(t.item)),[])}get librariesInViewOrder(){const e=Y.Z.libraryManager.getCCLibraries(),t=this.librarySortState,r=this.currentLibrariesFilter,n=this.getSearchText(),i=!this.librarySortOrderDescendingState;return(0,W.zc)(e,{sortBy:t,filterBy:r,searchText:n,isAscending:i})}setImportExportInProgress(e){this._state.isImportExportInProgress=e}get isImportExportInProgress(){return this._state.isImportExportInProgress}setTourInProgress(e){this._state.isTourInProgress=e}get isTourInProgress(){return this._state.isTourInProgress}get isPlainRootView(){return this.isRootView()&&!this.isRelinkLayerMode()&&!this.isRemovedElementsMode()&&!this.isSearchMode()}setCurrentSection(e){this._state.currentSection=e}get currentSection(){return this._state.currentSection}get searchBarBottom(){return this._headerView&&this._headerView.getSearchBarBottom()||0}get panelHeaderHeight(){var e;const t=null===(e=f.Z.getCustomHeaderView)||void 0===e?void 0:e.call(f.Z);return(t&&t.height||0)+(this._headerView&&this._headerView.getHeight()||0)}}).prototype,"_setState",[b.action],Object.getOwnPropertyDescriptor(z.prototype,"_setState"),z.prototype),J(z.prototype,"_setMode",[b.action],Object.getOwnPropertyDescriptor(z.prototype,"_setMode"),z.prototype),J(z.prototype,"showNavigation",[b.computed],Object.getOwnPropertyDescriptor(z.prototype,"showNavigation"),z.prototype),J(z.prototype,"gridZoomFactor",[b.computed],Object.getOwnPropertyDescriptor(z.prototype,"gridZoomFactor"),z.prototype),J(z.prototype,"groupsInViewOrder",[b.computed],Object.getOwnPropertyDescriptor(z.prototype,"groupsInViewOrder"),z.prototype),J(z.prototype,"librariesInViewOrder",[b.computed],Object.getOwnPropertyDescriptor(z.prototype,"librariesInViewOrder"),z.prototype),z)},2169:(e,t,r)=>{"use strict";r.d(t,{E0:()=>l,Nk:()=>f,ev:()=>u,fk:()=>p,j6:()=>h,rP:()=>d});var n=r(50265),i=r(21271),o=r.n(i),a=r(76485);const s=n.observable.map(),c={};function l(e,t,r,n){const i=JSON.stringify({text:e,className:t}),o=s.get(i);if(o&&o.maxWidth===r)return o.dimensions;let l=c[i];if(!l){var u;const r=document.createElement("span");r.className=t,r.style.display="inline-block",r.style.visibility="hidden",r.textContent=e;(n||(null===(u=a.Z.getRootPanelElement())||void 0===u?void 0:u.shadowDOM)||document.body).appendChild(r),l=c[i]={domElement:r}}l.maxWidth!==r&&(l.domElement.style.maxWidth=r+"px",l.maxWidth=r);const p=()=>{const e=l.domElement.clientWidth,t=l.domElement.clientHeight;if(e||t){l.domElement.parentNode.removeChild(l.domElement),clearInterval(l.interval),delete c[i];const r={width:e,height:t};return setTimeout((()=>s.set(i,{maxWidth:l.maxWidth,dimensions:r}))),r}},d=p();return d||l.interval||(l.interval=setInterval(p,10)),d||(o?o.dimensions:{width:0,height:0})}function u(e){return new Promise(((t,r)=>{const n=document.createElement("video");n.src=e,n.id="videoDurationElement",n.preload="metadata",n.style.display="inline-block",n.style.visibility="hidden",document.body.appendChild(n),n.onloadedmetadata=()=>{t(1e3*n.duration),n.parentNode.removeChild(n)},n.onerror=()=>{r(),n.parentNode.removeChild(n)}}))}function p(e,t,r){return l(e,t,r).height}function d(e,t){const r=function(e){if(o().ignoreEventPaths)return;if((e=e.nativeEvent||e).path||e.composedPath)return e.path||e.composedPath&&e.composedPath();const t=[];let r=e.target;for(;r;){if(t.push(r),"HTML"===r.tagName)return t.push(document),t.push(window),t;r=r.parentElement}}(e);return r?r.includes(t):t.contains(e.target)}function h(e){var t,r;const n=null==e||null===(t=e.target)||void 0===t||null===(r=t.getRootNode)||void 0===r?void 0:r.call(t);let i;return n&&e.path&&(i=e.path.find((e=>{var t;return(null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))===n&&e===n.activeElement}))),i}function f(e,t,r=window.customElements){if(r&&e&&t)try{r.get(e)||r.define(e,t)}catch(n){class i extends t{}r.define(e,i)}}},74149:(e,t,r)=>{"use strict";r.d(t,{$J:()=>P,Bm:()=>T,Bq:()=>z,Cf:()=>C,D5:()=>k,GT:()=>I,RO:()=>B,e4:()=>D,fY:()=>U,nA:()=>A,oC:()=>N,pI:()=>G,uP:()=>Z,wS:()=>M});var n=r(99386),i=r(47320),o=r(15909),a=r(34038),s=r(46903),c=r(93028),l=r(84824),u=r(4784),p=r(51461),d=r(53849),h=r(76485),f=r(84074),m=r(2169),g=r(30460),v=r(92098),y=r(16993),b=r(33275),_=r(81046),E=r(50265),w=r(26964);function L(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))}}function O(e,t,r=[],o,c,l,u=[]){for(let e=0;e<r.length;e++){var p;null!==(p=n.Z.currentProduct.config)&&void 0!==p&&p.copyTempFileIfNecessary&&(r[e].path=n.Z.currentProduct.config.copyTempFileIfNecessary(r[e].path));if(!a.xW(r[e].path))return Promise.reject(`Could not add new element: path ${r[e].path} does not exist`)}if(o&&!a.xW(o))return Promise.reject(`Could not add new element: thumbnail path ${o} does not exist`);if(!c)return Promise.reject("Could not add new element: no library");if(!(0,s.oY)(c,!0))return Promise.reject("Could not create element: library is read-only");if(!(0,s.mM)(r,!0))return Promise.reject("Could not create element: one or more files exceed 1GB limit");const d=(0,s.MN)(c,t,e,{opType:l}),h=[];if(r.forEach((t=>{const r=t.type||a.pH(t.path,e),n=d.createRepresentation(r,t.relationship);t.data&&t.data.forEach((e=>n.setValue(e.namespace,e.key,e.value))),h.push(n.setContentFromPath(t.path,t.moveFile).then((()=>{t.dimensions&&(n.width=t.dimensions.width,n.height=t.dimensions.height)})))})),o){const e=i.Z.getThumbnailSize(d);h.push((0,s.bf)(d,e,o))}return u.forEach((e=>d.setValue(e.namespace,e.key,e.value))),Promise.all(h).then((()=>(d.endOperation(),d))).catch((e=>(c.removeElement(d,!0),Promise.reject(`Could not create element: ${e}`))))}function T(e,t,r,i,a,c,l){e=(0,s.In)(i,e);return O(n.Z.IMAGE_ELEMENT_TYPE,e,t,r,i,a,l).then((e=>(o.Z.sendElementCreated(e,c),e)))}function I(e,t,r,i,a,c){e=(0,s.In)(r,e);return O(n.Z.AUDIO_ELEMENT_TYPE,e,t,void 0,r,i,c).then((e=>(o.Z.sendElementCreated(e,a),e)))}function P(e,t,r,i,a,c,l){e=(0,s.In)(i,e);return O(n.Z.VIDEO_ELEMENT_TYPE,e,t,r,i,a,l).then((e=>(o.Z.sendElementCreated(e,c),e)))}function C(e,t,r,i,a,c,l){e=(0,s.In)(i,e);return O(n.Z.ANIMATION_ELEMENT_TYPE,e,t,r,i,a,l).then((e=>(o.Z.sendElementCreated(e,c),e)))}function A(e,t,r,i,o){t.relationship="primary";return O(n.Z.LAYER_STYLE_ELEMENT_TYPE,e,[t],r,i,o)}function k(e,t,r,i,o){t.relationship="primary";return O(n.Z.BRUSH_ELEMENT_TYPE,e,[t],r,i,o)}function D(e,t,r,i,a,c,l){e=(0,s.In)(i,e);return O(n.Z.THREE_D_ELEMENT_TYPE,e,t,r,i,a,l).then((e=>(o.Z.sendElementCreated(e,c),e)))}function N(e){return R.apply(this,arguments)}function R(){return(R=S(L().mark((function e({content:t,contentURL:r},n="",i){var o,s;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t&&t instanceof File)){e.next=3;break}return e.abrupt("return",t);case 3:if(!(t&&t instanceof Blob)){e.next=7;break}o=t,e.next=14;break;case 7:if(!r){e.next=14;break}return e.next=10,fetch(r);case 10:return s=e.sent,e.next=13,s.blob();case 13:o=e.sent;case 14:if(!o){e.next=18;break}return i=o.type,n=n||`${a.Rl()}.${a.vn(i)[0]}`,e.abrupt("return",new File([o],n,{type:i}));case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(0);case 22:return e.abrupt("return",t);case 23:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}function M(e,t,r){return j.apply(this,arguments)}function j(){return j=S(L().mark((function e(t,r,i){var o,a;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.Z.incrementPendingElements(r),e.prev=1,e.next=4,Promise.all(t.representations.map(function(){var e=S(L().mark((function e(t){var n;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N(t);case 2:if(!(n=e.sent)){e.next=7;break}return e.next=6,r.stageRepresentationForCommit(n,t.type);case 6:t.stagedData=e.sent;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),w.Z.log(e.t0);case 9:return e.prev=9,u.Z.decrementPendingElements(r),e.finish(9);case 12:if(!r.isDeletedLocally&&r.isWritable){e.next=14;break}return e.abrupt("return",Promise.reject("Library was deleted (or became read-only)."));case 14:if(r.elementCount>=c.ZP.MAX_ELEMENTS&&(r=c.ZP.getOverflowLibrary(r.name)),o=(0,s.MN)(r,t.name||"",t.type,i)){e.next=18;break}return e.abrupt("return",Promise.reject("Could not create element during upload."));case 18:return t.roles&&(o.roles=t.roles),t.group&&(a=r.getGroupById(t.group.id))&&o.setOrderInGroup(a,t.group.order),t.sourceRef&&(o.sourceRef=t.sourceRef),t.customData&&t.customData.forEach((({namespace:e,key:t,value:r})=>o.setValue(e,t,r))),p.ZP.setExtraEventMetrics("updateElement",{disableReport:!0}),e.prev=23,e.next=26,Promise.all(t.representations.map(function(){var e=S(L().mark((function e(t){var r,i,a;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.createRepresentation(t.type,t.relationship||"primary"),!t.stagedData){e.next=4;break}return e.next=4,r.setStagedContent(t.stagedData);case 4:if(t.customData&&t.customData.forEach((({namespace:e,key:t,value:n})=>r.setValue(e,t,n))),!t.setDuration){e.next=16;break}return e.prev=6,e.next=9,(0,m.ev)(r.getCachedContentPath());case 9:i=e.sent,a=o.type===n.Z.VIDEO_ELEMENT_TYPE?"video":"audio",r.setValue(a,"data",{duration:i}),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(6);case 16:case"end":return e.stop()}}),e,null,[[6,14]])})));return function(t){return e.apply(this,arguments)}}()));case 26:e.next=32;break;case 28:return e.prev=28,e.t1=e.catch(23),!r.isDeletedLocally&&r.isWritable&&r.removeElement(o,!0),e.abrupt("return");case 32:return o.endOperation(),e.abrupt("return",o);case 34:case"end":return e.stop()}}),e,null,[[1,6,9,12],[23,28]])}))),j.apply(this,arguments)}function Z(e,t,r){return F.apply(this,arguments)}function F(){return F=S(L().mark((function e(t,r,o){var s,l,u,m,v,_;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=new g.T("Add Elements"),c.ZP.showSyncSpinner(),y.Z.clearAllSelections(),l=new Map,u=function(){var e=S(L().mark((function e(t){var i,u,f,m,g,v;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.name,u=t.extension||a.MZ(i),f=t.size,m=u?a.JF(a.Cj(u)):a.pH(i,n.Z.IMAGE_ELEMENT_TYPE)){e.next=6;break}return e.abrupt("return",Promise.reject("Unsupported drag data"));case 6:return g=a.xJ(m),e.prev=7,e.next=10,M({name:a.K3(i),type:g,roles:t.role&&[t.role],group:t.group,customData:t.customData,representations:[{content:t,type:m,setDuration:[n.Z.VIDEO_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE].includes(g)&&h.Z.videoElementsSupported}]},r,{opType:o||"dragDrop",extension:u,size:t.size});case 10:return(v=e.sent)&&r===c.ZP.currentLibrary&&0===d.Z.selection.length&&d.Z.setSelection(v),s.done(),l.set(v.id,{fileExtension:u,fileSize:f}),e.abrupt("return",v);case 17:e.prev=17,e.t0=e.catch(7),p.ZP.reportError("Add Assets","Element",void 0,void 0,void 0,{content:{category:o||"Bulk Upload"}},r);case 20:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t){return e.apply(this,arguments)}}(),m=Array.from(t),!a.oR(m[0].extension)){e.next=14;break}if(!n.Z.currentProduct.config.disableImport){e.next=9;break}return e.abrupt("return",Promise.resolve());case 9:return v=m.map((e=>e.path)),p.ZP.reportEvent("Library Operations","Import Library","click","start",{content:{category:"Bulk Upload"}}),p.ZP.setExtraEventMetrics("importLibrary",{content:{category:"Bulk Upload"}}),f.ZP.openDialog("importExportLibrary",{library:r,mode:"import",paths:v}),e.abrupt("return",Promise.resolve());case 14:if(!(b.P6.estimateUploadTime(m)>=n.Z.WARN_EXTENDED_UPLOAD_TIME&&n.Z.currentProduct.config.warnLargeFileUpload)){e.next=20;break}return n.Z.currentProduct.config.warnLargeFileUpload(),p.ZP.reportEvent("Navigation","Large Upload","render","warning-modal-displayed",{ccl:{file_count:m.length,upload_size:m.reduce(((e,t)=>e+t.size),0)}}),e.next=20,new Promise((e=>setTimeout(e,10)));case 20:return _=m.map(u),e.abrupt("return",Promise.all(_).then((e=>{e=e.filter((e=>e));const t=[],n=[],a=[],s=[],c=[];return e.length&&(e.forEach((e=>{const r=l.get(e.id);t.push(null==r?void 0:r.fileSize),n.push(null==r?void 0:r.fileExtension),a.push("logo"===i.Z.getElementRole(e)?"logo":i.Z.getShortType(e.type)),s.push(i.Z.getElementRole(e)||"none"),c.push(i.Z.getElementPriority(e)||"none")})),p.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:e.length},content:{category:o||"Bulk Upload",type:a.join(","),extension:n.join(","),size:t.join(",")},"custom.library":{asset_role:s.join(","),asset_priority:c.join(",")}},r)),e})));case 22:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function B(e,t,r=(0,l.Iu)("DL_REPLACE_GRAPHIC_SUCCESS")){if(e.size>c.ZP.MAX_COMPONENT_SIZE){const e=(0,l.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_TITLE"),r=[(0,l.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_MESSAGE")];return f.ZP.openDialog("dropFiles",{title:e,messages:r,files:[],library:t.library}),Promise.resolve()}const i=e.name,o=a.MZ(i);let s;s=o?a.JF(a.Cj(o)):a.pH(i,n.Z.IMAGE_ELEMENT_TYPE);const u=t.library;return p.ZP.setExtraEventMetrics("updateElementContent",{opType:"replace",content:{category:"Right Click"}}),u.stageRepresentationForCommit(e,s).then((e=>{if(u.isDeletedLocally||!u.isWritable)return Promise.reject("Library was deleted (or became read-only).");t.beginOperation(),t.removeAllRepresentations();const n=t.createRepresentation(s,"primary"),i=()=>{h.Z.ccLibrariesDriver instanceof b.Si||v.Z.deleteTempFile(e),t.endOperation()};return n.setStagedContent(e).then((()=>{i(),(0,E.when)((()=>t.getPrimaryRepresentation().isCommitted),(()=>_.Z.openToast("message",{message:r,variant:"success"})))}),(e=>(i(),Promise.reject(e))))}))}function G(e,t){const r=t.dataTransfer.files||t.dataTransfer.uxpEntries;if(r&&r.length>0){t.preventDefault();(h.Z.getDragFileList?h.Z.getDragFileList.bind(h.Z,t.dataTransfer):()=>Promise.resolve(r))().then((t=>{z(e,t)}))}}function U(e,t,r,n,i=!1){const o=r?a.Fe(r,i):void 0;return a.fz({multiple:!0,fileTypes:o}).then((r=>{n&&(r=Array.from(r)).forEach((e=>e.role=n)),z(e,r,t)}),(()=>{p.ZP.reportEvent("Add Assets","Element","click","add-cancel",{content:{category:t}})})).catch((()=>{}))}function z(e,t,r){return new Promise(((n,i)=>{const o=(0,s.vI)(e,Array.from(t));if(o.title)if(h.Z.showDialog){const t=0!==o.files.length;h.Z.showDialog("confirm",{title:o.title,variant:"error",confirmLabel:t?(0,l.Iu)("DL_UPLOAD"):(0,l.Iu)("DL_OK"),content:o.messages[0],onConfirm:t?()=>{Z(o.files,e).then(n).catch(i)}:void 0,cancelLabel:t?(0,l.Iu)("DL_CANCEL"):void 0})}else f.ZP.openDialog("dropFiles",o);else if(o.files.length>0)return Z(o.files,e,r).then(n).catch(i)}))}},6739:(e,t,r)=>{"use strict";r.d(t,{c:()=>l});var n=r(99386),i=r(47320),o=r(93028),a=r(31870),s=r(31600);function c(e,t,r){const s=[];return o.ZP.libraries.forEach((o=>{o.isWritable&&o.elements.forEach((o=>{a.wq(o)!==e||a.kv(o)||s.push(function(e,t,r,o){const s=o.purchase_details,c=a.dF(null,e)&&o.comp,l=o.thumbnail,u=a.Ht(e),p=a.kV(e),d=a.Tw(e),h={content_id:t,license:s.license,state:n.Z.STOCK_STATE_PURCHASED,method:p,premiumLevel:d};r&&(h.stock_id=r.toString()),e.beginOperation();const f=[],m=e=>{e.setValue(n.Z.STOCK_NAMESPACE,n.Z.STOCK_DATA_KEY,h),u&&a.mn(e,u),i.Z.setStockMetadata(e,s);const t=e.setContentFromURL(!0,s.url,{}).then((()=>{s.width&&(e.width=s.width),s.height&&(e.height=s.height),e.isFullSize=!0,s.content_length&&(e.contentLength=s.content_length)}));f.push(t)},g=e.getPrimaryRepresentation(),v=c&&c.url;if(g&&g.isExternalLink&&(y=g.getContentURL(),b=v,""!==y&&""!==b))g.relationship="rendition",m(e.createRepresentation(s.content_type,"primary",0,!0));else{if(e.removeAllRepresentations(),m(e.createRepresentation(s.content_type,"primary")),c){const r=e.createRepresentation(c.content_type,"rendition");r.setValue(n.Z.STOCK_NAMESPACE,n.Z.STOCK_DATA_KEY,{content_id:t,state:n.Z.STOCK_STATE_NOT_PURCHASED,method:p}),i.Z.setStockMetadata(r,c);const o=r.setContentFromURL(!0,c.url,{}).then((()=>{c.width&&(r.width=c.width),c.height&&(r.height=c.height),c.content_length&&(r.contentLength=c.content_length)}));f.push(o)}if(e.type===n.Z.CAPSULE_ELEMENT_TYPE){const t=s.capsule;if(t.url_json){const r=e.createRepresentation(n.Z.CAPSULE_DEFINITION_REPRESENTATION_TYPE,"alternate").setContentFromURL(!1,t.url_json,{});f.push(r)}if(t.url_png){const r=e.createRepresentation("image/png","rendition"),n=r.setContentFromURL(!1,t.url_png,{}).then((()=>{t.width&&t.height&&(r.width=t.width,r.height=t.height)}));f.push(n)}}const r=e.createRepresentation(l.content_type,"rendition"),o=r.setContentFromURL(!1,l.url,{}).then((()=>(l.width&&(r.width=l.width),l.height&&(r.height=l.height),r.getContentPath().then((t=>{t&&e.setThumbnailCache(i.Z.getThumbnailSize(e),t)})))));f.push(o)}var y,b;const _=()=>{e.endOperation()};return Promise.all(f).then(_,_)}(o,e,t,r))}))})),Promise.all(s)}function l(e,t){const r=String(t.id),n=t.is_licensed;return(0,s.Tl)(e,r,n).then((e=>{const t=e&&e.contents&&e.contents[r],n=e&&e.member&&e.member.stock_id;return t&&["purchase_details","thumbnail"].every((e=>{const r=t[e];return r&&r.url&&r.content_type}))?c(r,n,t):Promise.reject("Invalid data from license API: "+JSON.stringify(t))}))}},31870:(e,t,r)=>{"use strict";r.d(t,{dF:()=>te,q$:()=>ge,Qj:()=>fe,tX:()=>pe,u$:()=>Q,BG:()=>oe,ST:()=>J,Y8:()=>K,tt:()=>me,Tu:()=>re,Xz:()=>M,si:()=>B,EH:()=>q,wq:()=>V,kV:()=>H,S5:()=>j,Tw:()=>Y,Ht:()=>W,hr:()=>X,gB:()=>ie,U:()=>ee,kv:()=>z,Jw:()=>U,S8:()=>ue,LU:()=>le,i2:()=>G,mn:()=>$,Zg:()=>ne,PS:()=>F});var n=r(93028),i=r(99386),o=r(76485),a=r(51461),s=r(84824),c=r(34038),l=r(30131),u=r(53849),p=r(20290),d=r(46903),h=r(4784),f=r(84074),m=r(46753),g=r(16993),v=r(47320),y=r(6739),b=r(89526),_=r(72279),E=r(44853),w=r(2652),L=r.n(w),x=r(27611);class S extends b.Component{constructor(...e){super(...e),this.onClickButton=()=>{a.ZP.reportStockEvent("License","click","start",{ui:{sequence:"info-panel"}},this.props.element),l.WS(V(this.props.element),this.props.element.type)}}render(){return b.createElement(_.Z,{"data-test-id":"stock-license-button",onClick:this.onClickButton,className:"stock-license-button"},b.createElement(x.Z,{id:"ShoppingCart",height:18}),b.createElement("div",{className:"stock-license-button-label"},(0,s.Iu)("DL_INFO_BUY_STOCK_LICENSE")))}}S.propTypes={element:L().instanceOf(E.Z).isRequired};var O=r(26964),T=r(31600),I=r(48919),P=r(89526);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 A(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){k(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 k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const D="cancelled",N="limit",R=["Internal_Use","Digital_Use","Social_Media","Video_HD_Standard","Video_HD_Internal_Use","Video_HD_Digital_Use","Video_HD_Social_Media"];function M(e){if(e)return e.getValue(i.Z.STOCK_NAMESPACE,i.Z.STOCK_DATA_KEY)}function j(e){if(!e||!U(e))return[];const t=[],r=B(e);if(r.content_id){const n=t=>{"Enter"===t.key&&(0,l.WS)(r.content_id,e.type)},i=P.createElement("a",{tabIndex:"0","data-test-id":"stock-id-link",onKeyPress:n,onClick:()=>(0,l.WS)(r.content_id,e.type)},r.content_id);t.push({label:(0,s.Iu)("DL_INFO_STOCK_ID"),value:i})}let n;if(r.creator_name&&t.push({label:(0,s.Iu)("DL_INFO_STOCK_AUTHOR"),value:r.creator_name}),r.license){const t=()=>(0,l.A8)(),o=e=>{"Enter"===e.key&&(0,l.A8)()};n=P.createElement("a",{tabIndex:"0","data-test-id":"stock-licenses-link",onKeyPress:o,onClick:t},(0,s.Iu)(function(e,t){const r=t.license,n=a.ZP.currentUserId;if(n&&!n.includes("@AdobeID")){const n="Standard"===r&&(e.type===i.Z.IMAGE_ELEMENT_TYPE||[0,1].includes(t.premium_level_id));return R.includes(r)?Z(r):n?"DL_INFO_STOCK_LICENSE_STANDARD":"DL_INFO_STOCK_LICENSE_EXTENDED"}if(t.is_editorial)return["Standard_M","Video_HD"].includes(r)?"DL_INFO_STOCK_LICENSE_STANDARD":"DL_INFO_STOCK_LICENSE_ENHANCED";return Z(r)}(e,r)))}else n=P.createElement(S,{element:e});return g.Z.isOneUpMode()||t.push({label:(0,s.Iu)("DL_INFO_STOCK_LICENSE"),value:n}),r.is_editorial&&t.push({label:(0,s.Iu)("DL_INFO_STOCK_RESTRICTION"),value:(0,s.Iu)("DL_INFO_STOCK_RESTRICTION_EDITORIAL")}),t}function Z(e){switch(e){case"Standard":case"Standard_M":case"Video_HD_Standard":return"DL_INFO_STOCK_LICENSE_STANDARD";case"Extended":return"DL_INFO_STOCK_LICENSE_EXTENDED";case"Enhanced":case"Video_HD":case"Video_4K":return"DL_INFO_STOCK_LICENSE_ENHANCED";case"Video_HD_Internal_Use":case"Internal_Use":return"DL_INFO_STOCK_LICENSE_INTERNAL_USE";case"Digital_Use":case"Video_HD_Digital_Use":return"DL_INFO_STOCK_LICENSE_DIGITAL_USE";case"Social_Media":case"Video_HD_Social_Media":return"DL_INFO_STOCK_LICENSE_SOCIAL_MEDIA";default:return"DL_INFO_STOCK_LICENSE_NA"}}function F(e){const t=B(e);t&&(void 0!==t.is_editorial&&void 0!==t.creator_name&&void 0!==t.premium_level_id||(0,T.W6)(I.Z.libraryManager.userId,t.content_id).then((r=>{const n=r&&r.files&&r.files[0]||{},o=e.getPrimaryRepresentation();if(o){const e=Object.assign({},t,n);o.setValue(i.Z.STOCK_NAMESPACE,i.Z.STOCK_DATA_KEY,e,!0)}})).catch((()=>{O.Z.log("Error with getStockAssetMetadata")})))}function B(e,t){const r=void 0===t?e.getPrimaryRepresentation():e.representations[t];let n=M(r);if(n&&r.isExternalLink&&r.getCachedExternalLinkError()&&""!==r.getContentURL()){const r=B(e,void 0===t?0:t+1);n=r||{content_id:n.content_id,stock_id:n.stock_id,state:"not_purchased",method:n.method,premiumLevel:n.premiumLevel}}return n}function G(e,t){e.setValue(i.Z.STOCK_NAMESPACE,i.Z.STOCK_DATA_KEY,t)}function U(e){const t=""!==K(e),r=void 0!==B(e);return t&&r}function z(e){if(i.Z.currentProduct.config.disableLicenseFlow)return!0;const t=B(e);return!(!t||t.state!==i.Z.STOCK_STATE_PURCHASED)}function V(e){const t=B(e);return t?String(t.content_id):null}function H(e){const t=B(e);return t?String(t.method):null}function Y(e){const t=B(e);return t?t.premiumLevel:null}function W(e){let t;return e.representations.some((function(e){return t=e.getValue("stock","query"),t})),t}function $(e,t){e&&e.setValue("stock","query",t)}function K(e){if(e){if(e.type===i.Z.IMAGE_ELEMENT_TYPE)return"_PHOTO";if(e.type===i.Z.VIDEO_ELEMENT_TYPE)return"_VIDEO";if(e.type===i.Z.TEMPLATE_ELEMENT_TYPE)return"_TEMPLATE";if(e.type===i.Z.THREE_D_ELEMENT_TYPE||e.type===i.Z.LIGHT_ELEMENT_TYPE||e.type===i.Z.MATERIAL_ELEMENT_TYPE)return"_THREE_D";if(e.type===i.Z.CAPSULE_ELEMENT_TYPE)return"_CAPSULE";if(e.type===i.Z.AUDIO_ELEMENT_TYPE)return"_AUDIO"}return""}function q(e){const t=e.getPrimaryRepresentation(),r=t&&M(t);if(r&&r.state===i.Z.STOCK_STATE_PURCHASED&&t.isExternalLink&&t.getCachedExternalLinkError())return"DL_STOCK_LICENSE_TO_EDIT"+K(e)}function X(e){if(e.type===i.Z.TEMPLATE_ELEMENT_TYPE){const t=e.getPrimaryRepresentation(),r=t&&M(t),n=r&&r.state===i.Z.STOCK_STATE_PURCHASED;if(t.isExternalLink&&t.getCachedExternalLinkError())return n?"DL_STOCK_LICENSE_TO_USE_TEMPLATE_OWNED":"DL_STOCK_LICENSE_TO_USE_TEMPLATE";if(!t.getCachedContentPath())return"DL_ERROR_PLACE_TEMPLATE_DOWNLOADING"}}function J(e){const t=[];let r,n;return 4===e.media_type_id?(r=i.Z.STOCK_VIDEO_LICENSE_TYPES,n=e.comps):(r=i.Z.STOCK_IMAGE_LICENSE_TYPES,n=e.licenses),n&&r.forEach((function(e){if(n[e.field]){const r=n[e.field];t.push({field:e.field,label:e.label,resolution:r.width+" x "+r.height})}})),t}function Q(e){const t=e.comp_height,r=e.comp_width;if(3===e.media_type_id||4===e.media_type_id)return{width:r,height:t};const n=72/(300*(r/e.width));return{width:r*n,height:t*n}}function ee(e){return e.premium_level_id===i.Z.STOCK_FREE_CONTENT_LEVEL_ID}function te(e,t){if(e){const t=e.media_type_id,r=e.comps,n=7!==t&&6!==t,i=!!r&&0!==r.length;return n&&!ee(e)&&i}if(!t)return!1;switch(t.type){case i.Z.TEMPLATE_ELEMENT_TYPE:case i.Z.THREE_D_ELEMENT_TYPE:case i.Z.MATERIAL_ELEMENT_TYPE:case i.Z.LIGHT_ELEMENT_TYPE:return!1;default:return!0}}function re(){const e=i.Z.currentProduct.config.code,t=i.Z.STOCK_TEMPLATES_SUPPORTED_PRODUCTS.indexOf(e)>-1?i.Z.STOCK_SEARCH_UI_OPTIONS:i.Z.STOCK_SEARCH_UI_OPTIONS.filter((e=>e!==i.Z.STOCK_SEARCH_OPTION_TEMPLATE));return i.Z.currentProduct.config.STOCK_SEARCH_UI_OPTIONS||t}function ne(e,t,r,s,c){const l=c&&""!==c.is_licensed,u=c||{},p=u.id,d=void 0===p?V(e):p,h=u.is_licensed,f="CCLibrariesPanel";return new Promise(((r,u)=>{a.ZP.reportStockEvent("License","render","window",{},e);let p=e;if(!e.getLegacyReference){const e=pe(d,n.ZP.getLibraryById(t)||n.ZP.currentLibrary);e&&(p=e)}if(o.Z.hasUXPStockExtension)return r(o.Z.openStockLicenseExtension({element:p,contentId:d,skipQuotaCheck:l,licenseType:h,metadata:s,addToLibraryID:t,stockSearchAsset:c,invokerId:f}));function m(t){t.data.isError?a.ZP.reportStockEvent("License","render","error",{event:{error_code:t.data.statusCode,error_type:t.data.errorType}},e):e&&e.id&&a.ZP.reportCheckoutElement(e,t.data.cartId,t.data.opType)}const g=i.Z.STOCK_PURCHASE_EXTENSION_ID,v="com.adobe.stock.panel.license.init";function y(e){if("com.adobe.csxs.events.ExtensionUnloaded"===e.type){const t=(new DOMParser).parseFromString(e.data,"text/xml");if(t.getElementsByTagName("Id")[0].childNodes[0].nodeValue!==g||"1"!==t.getElementsByTagName("ClosingType")[0].childNodes[0].nodeValue)return}o.Z.removeEventListener(b,y),o.Z.removeEventListener("com.adobe.csxs.events.ExtensionUnloaded",y),o.Z.removeEventListener("com.adobe.inapp.purchase.reportMetric",m);const t=e.data;var n;t&&t.didFinish?r(A(A({},t.data),{},{elementRef:t.elementRef||(null===(n=t.data)||void 0===n?void 0:n.elementRef)})):u(t&&t.data)}o.Z.addEventListener(v,(function r(){o.Z.removeEventListener(v,r);const n=o.Z.createEvent("com.adobe.stock.panel.license.perform","APPLICATION","CCLibrariesPanel",o.Z.getExtensionID());let i;"function"==typeof p.getLegacyReference&&(i=p.getLegacyReference()),n.data={elementRef:i,elementType:e.type,elementName:e.name,contentId:d,skipQuotaCheck:l,licenseType:h,metadata:s,addToLibraryID:t,stockSearchAsset:c,invokerId:f},o.Z.dispatchEvent(n)})),o.Z.addEventListener("com.adobe.inapp.purchase.reportMetric",m);const b="com.adobe.stock.panel.license.closed";o.Z.addEventListener(b,y),o.Z.addEventListener("com.adobe.csxs.events.ExtensionUnloaded",y),o.Z.requestOpenExtension(g)}))}function ie(e){const t=e.title,r=e.media_type_id,n=e.content_type,i=[];if(t&&i.push(t),!r)return i;const o=(0,s.Iu)(`DL_STOCK_ASSET_TOOLTIP_TYPE_${r}`),a=oe(r),l=(c.i_(a,n)||{}).badge;if(!l)return i.push(o),i;const u=(0,s.Iu)("DL_STOCK_ASSET_TOOLTIP_DESCRIPTION",{type:o,contentType:l});return i.push(u),i}function oe(e,t){const r={[c.PJ]:i.Z.CAPSULE_ELEMENT_TYPE,[c.e5]:i.Z.CAPSULE_ELEMENT_TYPE},n={[c.Q1]:i.Z.LIGHT_ELEMENT_TYPE,[c.a5]:i.Z.MATERIAL_ELEMENT_TYPE};switch(e){case 4:return i.Z.VIDEO_ELEMENT_TYPE;case 7:return r[t]||i.Z.TEMPLATE_ELEMENT_TYPE;case 6:return n[t]||i.Z.THREE_D_ELEMENT_TYPE;case 9:return i.Z.AUDIO_ELEMENT_TYPE;default:return i.Z.IMAGE_ELEMENT_TYPE}}function ae(e,t){if(!h.Z.canAddElements(t))return Promise.reject({reason:N});if(!e.id||!e.content_type||!e.media_type_id)return Promise.reject();return(0,d.oY)(t,!1,!0)?Promise.resolve({asset:e,library:t}):Promise.reject()}const se={[N]:{title:"DL_DESIGN_LIBRARY_HAS_LIMIT_TITLE",message:"DL_DESIGN_LIBRARY_HAS_LIMIT"},UNKNOWN:{title:"DL_STOCK_SAVE_UNKNOWN_ERROR_TITLE",message:"DL_STOCK_SAVE_UNKNOWN_ERROR"}};function ce({reason:e}={}){const t=se[e||"UNKNOWN"];if(t)return f.ZP.openDialog("stockError",t),Promise.reject()}function le({asset:e,library:t,img:r}){const n=oe(e.media_type_id,e.content_type);let o;return ae(e,t).then((()=>(o=(0,m.E)(r,{},"png"),function(e){const t=oe(e.media_type_id,e.content_type);if((t!==i.Z.IMAGE_ELEMENT_TYPE||!e.is_editorial&&!e.is_premium)&&t!==i.Z.VIDEO_ELEMENT_TYPE)return Promise.resolve(i.Z.STOCK_LICENSE_TYPE_STANDARD);const r=J(e);return 0===r.length?Promise.reject():t===i.Z.IMAGE_ELEMENT_TYPE?Promise.resolve(r[0].field):t===i.Z.VIDEO_ELEMENT_TYPE?e.is_licensed===i.Z.STOCK_VIDEO_LICENSE_TYPE_4K.field?Promise.resolve(i.Z.STOCK_VIDEO_LICENSE_TYPE_4K.label):1===r.length?Promise.resolve(r[0].label):new Promise(((e,t)=>{f.ZP.openDialog("stockVideoCompPicker",{licenseA:r[0],licenseB:r[1],onClickOK:t=>e(t.label),onClickCancel:()=>t({reason:D})})})):void 0}(e)))).then((r=>fe({library:t,elementType:n,asset:e,thumbnailDetails:o,licenseType:r}).promise)).then((e=>(u.Z.revealElement(e),e))).catch((e=>e&&e.reason===D?Promise.reject():ce(e)))}function ue({asset:e,library:t}){return ae(e,t).then((()=>ne({type:oe(e.media_type_id,e.content_type)},t.id,0,he(e),e).catch((()=>Promise.reject({reason:D}))))).then((({createdElementRef:e,elementRef:t}={})=>{if(!e&&!t)return Promise.reject();return(0,p.XD)(100,30,(()=>n.ZP.resolveElementReference(e||t)))})).then((e=>{if(e)return u.Z.revealElement(e),e})).catch((e=>ce(e)))}function pe(e,t){if(!e||!t)return;const r=String(e),n=t.getFilteredElements((e=>r===V(e)));return n[n.length-1]}function de(e){const t=e||{},r=t.id,n=t.url,i=t.path;return r?"similarSearch":n||i?"visualSearch":"search"}function he(e){return{searchText:g.Z.getSearchText(),method:de(g.Z.getFindSimilarData()),premiumLevel:e.premium_level_id}}function fe({library:e,elementType:t,asset:r,thumbnailDetails:n,licenseType:o}){if(!h.Z.canAddElements(e))return{promise:Promise.reject({reason:N})};const s=he(r),l=e.createElement(r.title,t),u=[],p=l.createRepresentation(r.content_type,"primary");G(p,{content_id:r.id,stock_id:r.stock_id,state:i.Z.STOCK_STATE_NOT_PURCHASED,method:s&&s.method,premiumLevel:r.premium_level_id}),a.ZP.reportElementEvent("Add Assets","Element","click","add",l,{event:{value:"single"},content:{category:"Stock Search"}}),s&&s.searchText&&$(p,s.searchText);let d={url:"",width:0,height:0};if(te(r)){const e=v.Z.getStockCompKeyForLicenseType(t,o);d=r.comps[e]}const f=p.setContentFromURL(!0,d.url,{}).then((()=>{if(p.width=d.width,p.height=d.height,r.content_length&&(p.contentLength=r.content_length),r.framerate||r.duration){const e=t===i.Z.VIDEO_ELEMENT_TYPE?i.Z.VIDEO_NAMESPACE:i.Z.AUDIO_NAMESPACE;t===i.Z.AUDIO_ELEMENT_TYPE?p.setValue(e,"data",{duration:r.duration}):p.setValue(e,"data",{framerate:r.framerate,duration:r.duration})}r.audio_samplerate&&p.setValue(i.Z.AUDIO_NAMESPACE,"data",{samplerate:r.isLicensed?r.audio_samplerate:r.audio_samplerate_preview})}));u.push(f);const m=[];if(n&&n.path){const e=l.createRepresentation(c.pH(n.path,t),"rendition"),r=e.setContentFromPath(n.path,!1).then((()=>{n.width&&(e.width=n.width),n.height&&(e.height=n.height)}));u.push(r),m.push(l.setThumbnailCache(v.Z.getThumbnailSize(l),n.path))}else if(n&&n.dataURL){const e=l.createRepresentation("image/png","rendition"),t=e.setContent(n.dataURL,"base64",`${c.Rl()}.png`).then((()=>{n.width&&(e.width=n.width),n.height&&(e.height=n.height)}));u.push(t)}else if(r.thumbnail_url){const e=r.thumbnail_url.split("?")[0],n=c.pH(e,t)||"image/jpeg",i=l.createRepresentation(n,"rendition"),o=i.setContentFromURL(!1,e).then((()=>{const e=v.Z.getThumbnailSize(l);m.push(i.getContentPath().then((t=>l.setThumbnailCache(e,t))))}));u.push(o)}return{promise:Promise.all(u).then((()=>{if(r.is_licensed){const e=I.Z.libraryManager.userId;m.push((0,y.c)(e,r).then((()=>l.endOperation())))}else m.push(l.endOperation());return Promise.all(m)})).then((()=>l)).catch((()=>(l.library.removeElement(l,!0),Promise.reject()))),element:l}}function me(){const e=i.Z.currentProduct.config.code,t=i.Z.currentProduct.config.productVersion,r=i.Z.STOCK_SEARCH_PRODUCT_MOGRT_VERSION_MAP[e];if(!r)return;const n=Object.keys(r).sort().reverse().find((e=>t>=e));return n&&r[n]}function ge(){if(o.Z.hasUXPStockExtension)return!0;const e=!!o.Z.requestOpenExtension,t=o.Z.getAvailableExtensions().some((e=>e.name===i.Z.STOCK_PURCHASE_EXTENSION_ID));return e&&t}},39293:(e,t,r)=>{"use strict";r.d(t,{Hc:()=>s,Ol:()=>u,QE:()=>c,lv:()=>p,ns:()=>l,re:()=>a});var n=r(99386),i=r(18580),o=r(76485);r(85834);function a(e,t){const r=i.Z.hasLoaded()&&(t||o.Z.isBrandCreator),n=i.Z.isBrandLifecycleEnabled(),a=s(e);return r&&n&&a}function s(e){var t;return i.Z.isBrandLifecycleEnabled()?!(null==e||!e.publishedFrom):!(null==e||null===(t=e.roles)||void 0===t||!t.find((e=>e.type===n.Z.ROLE_VERIFIED)))}function c(e){var t;return i.Z.isBrandLifecycleEnabled()?!(null!=e&&e.publishedFrom||null!=e&&e.publishedTo):!(null!=e&&null!==(t=e.roles)&&void 0!==t&&t.find((e=>e.type===n.Z.ROLE_VERIFIED)))}function l(e,t){if(i.Z.hasLoaded()&&i.Z.isBrandLifecycleEnabled()){const r=null==e?void 0:e.publishedTo;let n=!1;return r&&(n=t.find((e=>e.assetId===r))),!(r&&n)}return!0}function u(e){var t;return!(null==e||null===(t=e.roles)||void 0===t||!t.find((e=>e.type===n.Z.ROLE_TYPE_BRAND)))}function p(e){return/\/brands\/.+/.test(e)}},36351:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(76485);const i=new class{get isOnline(){return n.Z&&void 0!==n.Z.isOnline?n.Z.isOnline:window.navigator.onLine}}},50777:(e,t,r)=>{"use strict";r.d(t,{BQ:()=>Z,RI:()=>B,Sz:()=>F,jK:()=>j,x3:()=>G});var n=r(76485),i=r(53849),o=r(93028),a=r(79799),s=r(46903),c=r(99386),l=r(8733),u=r(47320),p=r(76325),d=r(51461),h=r(85834),f=r(69834),m=r(17179),g=r(84824);function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var y=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(y,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function b(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))}}const _="com.adobe.capture.extension",E="com.adobe.capture.extension.init",w="com.adobe.capture.extension.image",L="com.adobe.capture.extension.save",x="com.adobe.capture.extension.close",S="com.adobe.capture.extension.setCapturePreference",O="com.adobe.capture.extension.getCapturePreference",T="com.adobe.capture.extension.preferenceKey";let I,P,C;const A={colorTheme:"Colors",shape:"Shapes",gradient:"Gradients",pattern:"Patterns",type:"Type"};const k=(e,t)=>{if(e&&e.data){const r=e.data;let n=null;const a=(0,s.l8)("personal",o.ZP.libraries);o.ZP.currentLibrary?n=o.ZP.currentLibrary:a&&(m.Z.sortByModified(a),n=a[0]),n||(n=o.ZP.createLibrary((0,g.Iu)("DL_CAPTURE_DEFAULT_LIBRARY_NAME")));const c=(0,s.In)(n,"",r.prefix),l=n.createElement(c,r.type),u=[];l.setValue("capture","data",r.captureData||{}),r.representations.forEach(((e,t)=>{const n=l.createRepresentation(e.type,e.relationship);if(e.metadata)for(const t in e.metadata)n.setValue(r.namespace,t,e.metadata[t]);e.filePath?u.push(n.setContentFromPath(e.filePath)):"json"===e.extension?n.setValue(r.namespace,"data",e.data):u.push(n.setContent(e.data,e.encoding,`asset${t}.${e.extension}`))})),Promise.all(u).then((()=>{l.endOperation(),d.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:1},content:{category:"Capture",mimetype:r.type}}),i.Z.revealElement(l),t&&t([l])}))}},D=function e(){n.Z.removeEventListener(E,I),n.Z.removeEventListener(L,C),n.Z.removeEventListener(x,e),n.Z.removeEventListener(S,H),n.Z.removeEventListener(O,Y)},N=function(){const e=c.Z.currentProduct.config.captureModules||[];return o.ZP.isRestrictedAccount?e.filter((e=>"Type"!==e)):e};function R(){const e=N();return(n.Z.hasUXPCaptureExtension||function(){if(void 0===P){const e=document.createElement("canvas").getContext("webgl");P=null!=e}return P}())&&e.length>0}function M(){return Boolean(c.Z.currentProduct.config.isCaptureEnabled)}function j(){return!M()&&R()}function Z(){return R()&&(M()||h.Z.get("capture"))}function F(){return u.Z.getAddOperations(l.Z.getLayerInfo(),o.ZP.currentLibrary).some((e=>"DL_CAPTURE"===e.name))}function B(e=!1,t,r){l.Z.getLayerInfo()&&l.Z.getLayerInfo().selectionExists?(0,s.g0)("",1024,1024).then((n=>{V(e,n.rendition,t,r)}),(()=>V(e,void 0,t,r))):V(e,void 0,t,r)}function G(e,t){Array.isArray(t)&&t.length?V(!1,t[0],null,e):B(!1,null,e)}function U(e){return`${o.ZP.userId}#capture#${e}`}function z(e){return a.Z.getLocalMachineSetting(U(e))}function V(e,t,r,i){n.Z.hasUXPCaptureExtension?function(e,t,r,i){n.Z.getBase64DataFromImage(t).then((t=>{const a=window.nodeRequire("uxp").pluginManager,s=Array.from(a.plugins).find((e=>"com.adobe.cclibrariespanel"===e.id)).pluginPath+"extensions/capture",c=a.createPlugin(s,a.PLUGIN_TYPE_FIRST_PARTY,{name:"Extract from Image",allowCodeGenerationFromStrings:!0});a.addPlugin(c,!0);const l=c.runtime;l.addEventListener(a.RUNTIME_INITIALIZE,(()=>{l.registerUxpModule("host",(()=>window.nodeRequire("uxp").host)),l.registerUxpModule("licensing",(()=>window.nodeRequire("uxp").licensing)),l.registerUxpModule("eventTarget",(()=>{const e=new f.Z;return e.addEventListener(L,(e=>{e.detail&&k(e.detail,r)})),n.Z.addEventListener(S,H),n.Z.addEventListener(O,Y),e})),n.Z.additionalCaptureCoreModules&&n.Z.additionalCaptureCoreModules.forEach((e=>l.registerCoreModule(e,(()=>window.nodeRequire(e)))))})),l.load(),window.nodeRequire("uxp").licensing.fetchProfile().then((r=>{const n=N(),s={takeTour:e,imageURI:t,modules:n,selectedModule:i?A[i]:n[0],env:p.Z.getEnvironment().label,tempDir:o.ZP.tempDir,analyticsEnabled:o.ZP.ANALYTICS_ENABLED},u=JSON.parse(r).UserProfile;u&&(s.userId=u.userId,s.userAccountStatus="type3"===u.accountType?"paid":"free"),l.invokeCommand("createFromImage",s).then(b(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.unload();case 2:a.removePlugin(c);case 4:case"end":return e.stop()}}),e)}))))}))}))}(e,t,r,i):function(e,t,r,i){D(),I=function(){n.Z.removeEventListener(E,I);const r=r=>{const a=n.Z.createEvent(w,"APPLICATION","CCLibrariesPanel",n.Z.getExtensionID()),s=N();a.data={takeTour:e,imageURI:t,modules:s,selectedModule:i?A[i]:s[0],userId:o.ZP.userId,userAccountStatus:r&&r.userAccountStatus,env:p.Z.getEnvironment().label,tempDir:o.ZP.tempDir,analyticsEnabled:o.ZP.ANALYTICS_ENABLED},n.Z.dispatchEvent(a)};c.Z.currentProduct.getUserData?c.Z.currentProduct.getUserData((e=>r(e))):r()},C=e=>k(e,r),n.Z.addEventListener(E,I),n.Z.addEventListener(L,C),n.Z.addEventListener(x,D),n.Z.addEventListener(S,H),n.Z.addEventListener(O,Y),n.Z.requestOpenExtension(_)}(e,t,r,i)}function H(e){const t=e&&e.data;if(t){let e=z(T);e||(e={}),Object.assign(e,t),r=T,n=e,a.Z.setLocalMachineSetting(U(r),n)}var r,n}function Y(e){const t=e&&e.data,r=t.eventId,i=t.preferenceKey;if(r&&i){const e=n.Z.createEvent(r,"APPLICATION","CCLibrariesPanel",n.Z.getExtensionID());if(t){const t=z(T);t&&(e.data=t[i])}n.Z.dispatchEvent(e)}}},74379:(e,t,r)=>{"use strict";r.d(t,{$W:()=>y,At:()=>I,CV:()=>F,E9:()=>b,Nh:()=>U,Zi:()=>V,Zw:()=>j,_b:()=>L,bA:()=>T,dF:()=>M,ds:()=>Y,eO:()=>z,hx:()=>B,lP:()=>G,m3:()=>S,mj:()=>E,mr:()=>Z,su:()=>x,tX:()=>A,vq:()=>v,wo:()=>h,xc:()=>H});var n=r(99386),i=r(76485),o=r(47320),a=r(84824);const s=["alpha"],c=["alpha"];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 u(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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const h={MONITOR:"monitor",SRGB:"srgb"};function f(e,t,r){return Math.max(0,Math.min(255,e))<<16|Math.max(0,Math.min(255,t))<<8|Math.max(0,Math.min(255,r))}const m=Math.pow(2,24);function g(e,t=1){return(t=Math.round(255*t))*m+e}function v(e,t,r){let n=f(e,t,r).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return"#"+n}function y(e){return e="#"===e.charAt(0)?e.substring(1):e,{red:parseInt(e.substring(0,2),16),green:parseInt(e.substring(2,4),16),blue:parseInt(e.substring(4,6),16)}}function b(e){e="#"===e.charAt(0)?e.substring(1):e;let t=parseInt(e.substring(6,8),16);return t=isNaN(t)?255:t,Object.assign({alpha:t},y(e))}function _(e){return(e.red+e.green+e.blue)/3}function E(e,t){return Math.abs(_(e)-_(t))}const w=(e,t)=>r=>{const n=Array.isArray(r)?U(r):r;return n&&n.value?e(Math.round(n.value.r),Math.round(n.value.g),Math.round(n.value.b),n.alpha):t},L=w(((e,t,r,n)=>({red:e,green:t,blue:r,alpha:n}))),x=w(((e,t,r)=>({red:e,green:t,blue:r}))),S=w(v,""),O=w(f),T=w((function(e,t,r,n=1){return g(f(e,t,r),n)})),I=(e,t)=>{const r=O(e);return r&&g(r,t)},P=(e,t)=>w(((e,r,n)=>`rgba(${e},${r},${n},${t})`))(e),C=e=>Math.round(100*e)/100;function A(e,t,r){if(!e)return;let n=G(e);if(!n)return;let i=void 0===n.alpha?1:n.alpha;if(void 0!==r){const e=r(u(u({},n.value),{},{alpha:i})),t=e.alpha,o=d(e,s),a=u(u({},n),{},{value:u({},n.value)});a.value=o,n=a,i=t}return P(n,t?.2:i)}function k(e,t,r){return C(t+(r-t)*e)}function D(e,t,r){const n=U(t),i=U(r);if(!n||!i)return;return[{mode:"RGB",value:{r:k(e,n.value.r,i.value.r),g:k(e,n.value.g,i.value.g),b:k(e,n.value.b,i.value.b)}}]}function N(e,t){const r=[];for(let n=0;n<t.length;n++){const i=t[n],o=t[n+1];if(r.push(i),o&&o.midpoint&&.5!==C(o.midpoint)){const t="color"===e?D:k;r.push({offset:k(o.midpoint,i.offset,o.offset),[e]:t(.5,i[e],o[e])})}}return r}function R(e,t,r,n){const i=r.find((e=>e.offset>t));if(!i)return n[e];if(!n)return i[e];return("color"===e?D:k)(((e,t,r)=>(r-e.offset)/(t.offset-e.offset))(n,i,t),n[e],i[e])}function M(e,t,r=!0){let n=e.slice(0);if(n.forEach((e=>e.opacity=void 0)),r&&(n=N("color",e)),t&&0!==t.length){n=function(e,t,r=!0){const n=e=>e.forEach((e=>{i[e.offset]=i[e.offset]||{},Object.assign(i[e.offset],e)})),i={};let o;return n(e),n(t),Object.keys(i).sort().map((n=>{const a=i[n];return r&&(a.color=a.color||R("color",n,e,o)),void 0===a.opacity&&r&&(a.opacity=R("opacity",n,t,o)),o=a,a}))}(n,r?N("opacity",t):t,r)}else n.forEach((e=>e.opacity=1));return n}function j(e,t,r,n=!1,i){if(!e||!e.representations||0===e.representations.length)return;const o=e.getPrimaryRepresentation().getValue("gradient","data");return o?Z(o,t,r,n,i):void 0}function Z(e,t,r=!0,n=!1,o){let a=e.type,s=e.stops,l=e.opacities,p=e.angle,h=e.aspectRatio,f=e.scale,m=e.centerPoint;if(n&&(a="linear",p=0),!["linear","radial"].includes(a)||!s)return;p=p||0,h=h||1,f=f||1;const g=.5*f,v=m&&void 0!==m.x?m.x:.5,y=m&&void 0!==m.y?m.y:.5;let b;s=M(s,l);const _="radial"===a&&!i.Z.hasUXPTransformBug&&r,E=[];for(let e=0;e<s.length;e++){const r=s[e],n=r.color&&r.color.length&&r.color.find((e=>"RGB"===e.mode));if(!n)return;let i=t?.2:r.opacity,a=n;if(void 0!==o){const e=o(u(u({},n.value),{},{alpha:i})),t=e.alpha,r=d(e,c);a=u(u({},n),{},{value:u({},n.value)}),a.value=r,i=t}const l=P(a,i),p=r.offset&&`${Math.round(100*r.offset)}%`;E.push(`${l} ${p||""}`)}if("linear"===a&&E.unshift(90-p+"deg"),_){const e=Math.ceil(2*Math.max(Math.max(1,Math.abs(v))/g,Math.max(1,Math.abs(y))/(g*h)));"radial"===a&&E.unshift(`ellipse ${50/e}% ${50/e}% at 50% 50%`),b=`translate(${C(100*(v-.5))}%, ${C(100*(y-.5))}%) rotate(${-1*p}deg) scale(${f*e},${f*e*h})`}else"radial"===a&&E.unshift(`ellipse ${C(100*g)}% ${C(100*g*h)}% at ${C(100*v)}% ${C(100*y)}%`);return{backgroundImage:`${a}-gradient(${E.join(",")})`,transform:b}}function F(e,t){if(!e||!Array.isArray(e))return;const r=e.find((e=>"RGB"===e.mode));return r?P(r,t?.2:1):void 0}function B(e,t=!0){let r;return e&&(t?"CMYK"===e.mode?r="C"+Math.round(e.value.c)+" M"+Math.round(e.value.m)+" Y"+Math.round(e.value.y)+" K"+Math.round(e.value.k):"RGB"===e.mode?r="R"+Math.round(e.value.r)+" G"+Math.round(e.value.g)+" B"+Math.round(e.value.b):"Lab"===e.mode?r="L"+Math.round(e.value.l)+" A"+Math.round(e.value.a)+" B"+Math.round(e.value.b):"HSB"===e.mode?r="H"+Math.round(e.value.h)+" S"+Math.round(e.value.s)+" B"+Math.round(e.value.b):"Gray"===e.mode&&(r="G"+Math.round(e.value)):"CMYK"===e.mode?r=Math.round(e.value.c)+", "+Math.round(e.value.m)+", "+Math.round(e.value.y)+", "+Math.round(e.value.k):"RGB"===e.mode?r=Math.round(e.value.r)+", "+Math.round(e.value.g)+", "+Math.round(e.value.b):"Lab"===e.mode?r=Math.round(e.value.l)+", "+Math.round(e.value.a)+", "+Math.round(e.value.b):"HSB"===e.mode?r=Math.round(e.value.h)+", "+Math.round(e.value.s)+", "+Math.round(e.value.b):"Gray"===e.mode&&(r=Math.round(e.value))),r}function G(e){if(!e||!e.representations)return;return U(e.representations.map((e=>e.getValue("color","data"))))}function U(e){const t=e.filter((e=>e&&"RGB"===e.mode));return t.find((e=>!e.profileName||e.profileName===n.Z.DEFAULT_SRGB_PROFILE))||t[0]}const z=w(((e,t,r)=>(e+t+r)/3>=230),!1);function V(e){const t=(Array.isArray(e)?e:[e]).filter((e=>!!e)),r=[],n=t.find((e=>e.type));n&&(r.push({label:(0,a.Iu)("DL_INFO_COLOR_TYPE"),value:(0,a.Iu)(`DL_INFO_${n.type.toUpperCase()}_COLOR_TYPE`)}),"spot"===n.type&&n.profileName&&r.push({label:(0,a.Iu)("DL_INFO_COLOR_PROFILE"),value:n.profileName})),t.forEach((e=>{if("RGB"===e.mode){const t=S(e).toUpperCase();t&&r.push({label:"HEX",value:t})}const t=B(e,!1);r.push({label:e.mode,value:t})}));const i=t.find((e=>e.spotColorName));i&&r.push({label:"SPOT",value:i.spotColorName});const o=t.find((e=>void 0!==e.alpha));return o&&r.push({label:(0,a.Iu)("DL_INFO_OPACITY"),value:(0,a.Iu)("DL_PERCENTAGE",{percent:100*o.alpha})}),r}function H(e){const t=o.Z.findUsableRepresentation(e,"application/vnd.adobe.colortheme+json"),r=t&&t.getValue("colortheme","data");if(r&&Array.isArray(r.swatches)){return r.swatches.map((e=>({hex:S(e),data:V(e),swatch:e})))}return[]}function Y(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");if(r&&Array.isArray(r.stops)){const e=M(r.stops,r.opacities,!1);return e.map(((t,r)=>{let n=[];t.color&&(n=n.concat(V(t.color)));const i=r>0?e[r-1]:null;if(i){const e=(t.offset-i.offset)/2;t.midpoint=t.offset-e}else t.midpoint=void 0;return t.opacity&&n.push({label:(0,a.Iu)("DL_INFO_OPACITY"),value:(0,a.Iu)("DL_PERCENTAGE",{percent:Math.round(100*t.opacity)})}),n.push({label:(0,a.Iu)("DL_INFO_GRADIENT_OFFSET"),value:(0,a.Iu)("DL_PERCENTAGE",{percent:Math.round(100*t.offset)})}),t.midpoint&&n.push({label:(0,a.Iu)("DL_INFO_GRADIENT_MIDPOINT"),value:(0,a.Iu)("DL_PERCENTAGE",{percent:Math.round(100*t.midpoint)})}),{offset:t.offset,data:n}}))}return[]}},26964:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(76485),i=r(34038),o=r(86351);const a=()=>window.nodeRequire("fs"),s=".log";const c=new class{constructor(e={}){this._progressMap=new Map,this._enabled=!0,this.pendingLogWrite=null,this.writingToLog=!1,this._isInitialized=!1,this._messagesBeforeInit="",this._duplicateMessageCount=0,this._maxLogSize=e.maxLogSize||5242880}_swapLogIfNeeded(e){const t=a();t.stat(this.logFilePath,((r,n)=>{!r&&n.size>this._maxLogSize?t.rename(this.logFilePath,this.prevLogFilePath,e):e(null)}))}_doLogWrite(){i.u2(this.logRoot,(e=>{if(e)return this.pendingLogWrite=void 0,console.error(e),void this._listenerManager.notify("flushed");this._swapLogIfNeeded((e=>{if(e)return this.pendingLogWrite=void 0,console.error(e),void this._listenerManager.notify("flushed");const t=this.pendingLogWrite;this.pendingLogWrite=void 0,this.writingToLog=!0,a().appendFile(this.logFilePath,t,(e=>{e&&console.error(e),this.writingToLog=!1,this.pendingLogWrite?this._doLogWrite():this._listenerManager.notify("flushed")}))}))}))}init(){if(this._isInitialized||!n.Z.supportsFileSystem)return;this._listenerManager=(0,o.N)(this,["flushed"]);const e=window.process.env;if(n.Z.isWindowsOS()){const t=e&&e.TEMP.replace(/\\/g,"/");this.logRoot=t+"/CreativeCloud/Creative Cloud Libraries"}else this.logRoot=e&&e.HOME+"/Library/Logs/CreativeCloud/Creative Cloud Libraries";this.logFilePrefix="CC Library Panel "+n.Z.getAppName()+" "+n.Z.getAppVersion(),this.logFilePath=this.logRoot+"/"+this.logFilePrefix+s,this.prevLogFilePath=this.logRoot+"/"+this.logFilePrefix+" (prev)"+s,this.jsxLogFilePath=this.logRoot+"/"+this.logFilePrefix+" (jsx)"+s,n.Z.exec("CORE","setLogPath",[this.jsxLogFilePath]),n.Z.exec("CORE","writeToLog",["","--- Starting new session ---"]),this._isInitialized=!0,this._messagesBeforeInit&&(this.pendingLogWrite=this._messagesBeforeInit,this._messagesBeforeInit="",this._doLogWrite())}enable(){this._enabled=!0}disable(){this._enabled=!1}log(e){if(!this._enabled)return;if(e===this._previousMessage)return void this._duplicateMessageCount++;if(n.Z.debugLog(e)||!n.Z.supportsFileSystem)return;let t=`${(new Date).toString()} ${e}\n`;this._previousMessage&&this._duplicateMessageCount>0&&(t=`${(new Date).toString()} ${this._previousMessage} (${this._duplicateMessageCount})\n${t}`),this._previousMessage=e,this._duplicateMessageCount=0,this._isInitialized?this.pendingLogWrite?this.pendingLogWrite+=t:(this.pendingLogWrite=t,this.writingToLog||this._doLogWrite()):this._messagesBeforeInit+=t}showLogFile(e){const t=n.Z.isWindowsOS()?"start":"/usr/bin/open";window.cep.process.createProcess(t,e?this.jsxLogFilePath:this.logFilePath)}getLogFolder(){return this.logRoot}progress(e){let t=this._progressMap.get(e);if(t)return t;const r=Date.now();return t={log:t=>this.log(`${e}: ${t}: ${Date.now()-r}ms`),end:()=>this._progressMap.delete(e)},this._progressMap.set(e,t),t}}},26981:(e,t,r)=>{"use strict";r.d(t,{Ig:()=>f,SF:()=>h,_C:()=>p,gc:()=>d,jY:()=>m,rr:()=>u});var n=r(99386),i=r(47320),o=r(53849),a=r(8733),s=r(46903),c=(r(74149),r(76485));function l(e,t){const r=a.Z.getLayerInfo();return i.Z.getAddOperations(r,t).find((t=>t.dropSupport&&function(e,t){return!t||e.type===n.Z.getElementType(t)}(t,e)))}function u(e,t){const r=e.assetList[0],n=r&&r.data,i=l(r&&r.type,t);return i&&t?i.apply(t,"dragToPanel",n).then((e=>(o.Z.setSelection(e,!0),e))):Promise.reject("Unsupported drag data")}function p(e,t){const r=e.assetList[0],n=l(r.type,t),i=e=>n&&n.getDropLabel?n.getDropLabel(e,t):e;return r.name?Promise.resolve([i(r.name)]):(0,s.Ph)(t).then((e=>[i(e)]))}function d(e){const t=e.includes?"includes":"contains";return e[t]("Files")&&!e[t]("com.adobe.cep.dnd.pasteboardtype")||e[t]("application/uxp-entry-type")}function h(e){return!!e&&!!(e.feedback||e.assetList&&e.assetList.length>0)}function f(){return!c.Z.isWindowsOS()&&!c.Z.disableCustomDragImage}function m(){return Boolean(n.Z.currentProduct.config.addSupportForTextStyle)}},68895:(e,t,r)=>{"use strict";r.d(t,{EZ:()=>d,Fb:()=>h,VH:()=>p,tw:()=>u,wH:()=>m});var n=r(99386),i=r(76485),o=r(31870),a=r(84824);function s(e,t,r){if(r&&n.Z.currentProduct.config.disableDefaultEditError)return;const o=(0,a.Iu)(e,t);i.Z.showError(o)}function c(e){return e.getActions("edit").filter((e=>e.appCode&&e.appCode!==n.Z.currentProduct.config.code))}function l(e,t){e?0!==e.installedVersions.length?e.isCompatibleVersionInstalled?e.invoke((e=>{e&&("APP_LAUNCH_TIMEOUT"===e.underlyingError||"APP_LAUNCH_FAILED"===e.underlyingError?s("DL_ERROR_APP_LAUNCH_TAKING_TIME"):"APP_SEND_ACTION_FAILED"===e.underlyingError?s("DL_ERROR_EDIT_FAILED"):s(t,void 0,!0))})):s(i.Z.canPlaceElements?"DL_ERROR_UPDATE_NEEDED":"DL_ERROR_UPDATE_NEEDED_NO_PLACE",{app:e.appName}):s(i.Z.canPlaceElements?"DL_ERROR_INSTALL_NEEDED":"DL_ERROR_INSTALL_NEEDED_NO_PLACE",{app:e.appName}):s(t,void 0,!0)}function u(e){return c(e).length>0}function p(e,t=!1){const r=(0,o.EH)(e);if(t&&r)return void s(r);l(c(e)[0],"DL_ERROR_INVALID_FILE_FORMAT_"+n.Z.currentProduct.config.translationSuffix)}function d(e){if(!(e.library?e.library.documentId:e.documentId)||!e.isWritable)return!1;return e.getActions("editInSource").length>0}function h(e){l((i.Z.getDocumentEditActions&&i.Z.getDocumentEditActions(e)||e.getActions("editInSource"))[0],"DL_ERROR_EDIT_IN_SOURCE")}const f={"application/vnd.adobe.xd.cloudproject+dcx":".xdc"};function m(e){const t=f[e.documentType]||"";return`${e.name}${t}`}},87694:(e,t,r)=>{"use strict";r.d(t,{IS:()=>M,lJ:()=>f,zw:()=>h});var n=r(84824),i=r(99386),o=r(47320),a=r(62061),s=r(16203),c=r(74379);const l={process:"DL_COLOR_TYPE_PROCESS",spot:"DL_COLOR_TYPE_SPOT",registration:"DL_COLOR_TYPE_REGISTRATION",none:"DL_COLOR_TYPE_NONE"};function u(e){return function(t){return function(r){const n=r.getPrimaryRepresentation();if(n)return t(n.getValue(e,"data"))}}}function p(e){return function(t,r){const n=o.Z.findUsableRepresentation(t,`application/vnd.adobe.${r}+json`);if(!n)return;const a=n.getValue(r,"data");return e(t.type===i.Z.FONT_ELEMENT_TYPE?{adbeFont:a}:a)}}function d(e){return function(t){const r=t.representations.find((e=>"RGB"===e.getValue("color","data").mode));if(r)return e(r.getValue("color","data"))}}function h(e,t=[]){const r=o.Z.getShortType(e.type);return t.reduce(((t,n)=>{const i=n(e,r);return i&&t.push(i),t}),[])}function f(e){if(e.type!==i.Z.COMPONENT_ELEMENT_TYPE)return;const t=e.getPrimaryRepresentation(),r=(null==t?void 0:t.getValue("symbol","data"))||(null==t?void 0:t.getValue("xd","data"));return null==r?void 0:r.symbolId}const m=d((e=>e&&{label:(0,n.Iu)("DL_INFO_COLOR_TYPE"),value:(0,n.Iu)(l[e.type||"none"])})),g=d(((e={})=>e.profileName&&{label:(0,n.Iu)("DL_INFO_COLOR_PROFILE"),value:e.profileName})),v=p((e=>{const t=s.BN(e);return t&&{label:(0,n.Iu)("DL_INFO_FONT_FAMILY"),value:t}})),y=p((e=>{const t=s.pJ(e);return t&&{label:(0,n.Iu)("DL_INFO_FONT_STYLE"),value:t}})),b=p((e=>{const t=s.yv(e);return t&&{label:(0,n.Iu)("DL_INFO_FONT_SIZE"),value:t}})),_=p((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>e.alpha));if(t)return{label:(0,n.Iu)("DL_INFO_OPACITY"),value:(0,n.Iu)("DL_PERCENTAGE",{percent:100*t.alpha})}})),E=p((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>e.type));if(t)return{label:(0,n.Iu)("DL_INFO_COLOR_TYPE"),value:(0,n.Iu)(`DL_INFO_${t.type.toUpperCase()}_COLOR_TYPE`)}})),w=p((e=>{const t=e&&e.color&&c.m3(e.color);if(t)return{label:"HEX",value:t&&t.toUpperCase()}})),L=p((e=>{const t=e&&e.color&&c.su(e.color);if(t)return{label:"RGB",value:`${Math.round(t.red)}, ${Math.round(t.green)}, ${Math.round(t.blue)}`}})),x=p((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>"CMYK"===e.mode));if(t)return{label:"CMYK",value:`${Math.round(t.value.c)}, ${Math.round(t.value.m)}, ${Math.round(t.value.y)}, ${Math.round(t.value.k)}`}})),S=p((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>"Lab"===e.mode));if(t)return{label:"Lab",value:`${Math.round(t.value.l)}, ${Math.round(t.value.a)}, ${Math.round(t.value.b)}`}})),O=p((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>"HSB"===e.mode));if(t)return{label:"HSB",value:`${Math.round(t.value.h)}, ${Math.round(t.value.s)}, ${Math.round(t.value.b)}`}})),T=p((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>"Gray"===e.mode));if(t)return{label:"Gray",value:`${Math.round(t.value)}`}})),I=p((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>e.spotColorName));if(t)return{label:"SPOT",value:t.spotColorName}})),P=p((e=>{const t=s.mi(e);return t&&{label:(0,n.Iu)("DL_INFO_ALIGNMENT"),value:t}})),C=p((e=>{if(e&&e.textDecoration&&0!==e.textDecoration.length)return{label:(0,n.Iu)("DL_INFO_TEXT_DECORATION"),value:e.textDecoration.map((e=>(0,n.Iu)(`DL_INFO_${e.replace("-","").toUpperCase()}`))).join(", ")}})),A=(e,t)=>p((r=>{if(!r||!r[e])return;const i=r[e],o=i.value,a=i.type;return{label:(0,n.Iu)(t),value:`${o} ${a}`}})),k=A("adbeLeftIndent","DL_INFO_LEFT_INDENT"),D=A("adbeRightIndent","DL_INFO_RIGHT_INDENT"),N=A("adbeSpaceBefore","DL_INFO_SPACE_BEFORE"),R=A("adbeSpaceAfter","DL_INFO_SPACE_AFTER");const M={colorType:m,colorProfileName:g,fontFamily:v,fontSize:b,fontStyle:y,fontColorType:E,fontOpacity:_,fontHexColor:w,fontRgbColor:L,fontCmykColor:x,fontLabColor:S,fontHsbColor:O,fontGrayColor:T,fontSpotColor:I,fontDecoration:C,alignment:P,paragraphLeftIndent:k,paragraphRightIndent:D,paragraphFirstLineIndent:A("adbeFirstLineIndent","DL_INFO_FIRST_LINE_INDENT"),paragraphSpaceBefore:N,paragraphSpaceAfter:R,videoFramesPerSecond:u("video")(((e={})=>e.framerate&&{label:(0,n.Iu)("DL_INFO_FRAMERATE"),value:(0,n.Iu)("DL_FRAMERATE",{framerate:e.framerate})})),capsuleFramesPerSecond:u("graphic")(((e={})=>e.framerate&&{label:(0,n.Iu)("DL_INFO_FRAMERATE"),value:(0,n.Iu)("DL_FRAMERATE",{framerate:e.framerate})})),videoDuration:u("video")(((e={})=>e.duration&&{label:(0,n.Iu)("DL_INFO_DURATION"),value:a.zW(e.duration)})),capsuleDuration:u("graphic")(((e={})=>e.duration&&{label:(0,n.Iu)("DL_INFO_DURATION"),value:a.zW(e.duration)})),elementSize:function(e){const t=e.getPrimaryRepresentation()||{};return t.contentLength&&{label:(0,n.Iu)("DL_INFO_SIZE"),value:a.d3(t.contentLength,1)}},width:function(e){const t=e.getPrimaryRepresentation()||{};return t.width&&{label:(0,n.Iu)("DL_INFO_WIDTH"),value:(0,n.Iu)("DL_LENGTH",{length:t.width})}},height:function(e){const t=e.getPrimaryRepresentation()||{};return t.height&&{label:(0,n.Iu)("DL_INFO_HEIGHT"),value:(0,n.Iu)("DL_LENGTH",{length:t.height})}},dimensions:function(e){const t=e.getPrimaryRepresentation()||{};return t.height&&t.width&&{label:(0,n.Iu)("DL_INFO_DIMENSIONS"),value:(0,n.Iu)("DL_DIMENSIONS",{width:t.width,height:t.height})}},elementType:function(e){return{label:(0,n.Iu)("DL_INFO_TYPE"),value:(0,n.Iu)(o.Z.getTypeName(e.type,!0))}}}},44914:(e,t,r)=>{"use strict";r.d(t,{LR:()=>c,Q7:()=>h,UI:()=>s,a3:()=>o,dP:()=>d,ds:()=>l,o1:()=>u,ss:()=>a,t5:()=>p});var n=r(99386),i=r(33275);function o(e){var t,r;if(e.sourceRef)return null===(t=e.sourceRef)||void 0===t||null===(r=t["stRef:fromPart"])||void 0===r?void 0:r.substr(3)}function a(e){var t;if(e.sourceRef)return null===(t=e.sourceRef)||void 0===t?void 0:t["stRef:fromPartInstanceID"]}function s(e){const t=function(e){if(e.cachedLinkedElementSourceRef)return{"stRef:fromPart":e.cachedLinkedElementSourceRef["stRef:fromPart"]}}(e);if(t)return JSON.stringify(t,Object.keys(t).sort())}function c(e){const t=function(e){if(e.sourceRef)return{"stRef:fromPart":e.sourceRef["stRef:fromPart"]}}(e);if(t)return JSON.stringify(t,Object.keys(t).sort())}function l(e){var t;return null===(t=e.linkReference)||void 0===t?void 0:t["stRef:fromPartDerivedFrom"]}function u(e){const t=function(e){const t=e&&e.sourceRef;return t&&t["dc:format"]}(e);return t&&t.includes(n.Z.FIREFLY_RECIPE_TYPE)}function p(e){const t=n.Z.XD_ASSET_LINK_REFERENCE_TYPES;return"string"==typeof e?/^cloud-asset:/.test(e)?t.LEGACY_CCLIBRARIES_ELEMENT:/^https:/.test(e)?t.LEGACY_CLOUD_DOCUMENT_ASSET:t.LEGACY_DOCUMENT_ASSET:"object"==typeof e?t.CCLIBRARIES_ELEMENT:void 0}function d(e){if(e=i.P6.parseLinkReference(e))return e["dc:format"]===n.Z.LIBRARY_TYPE}function h(e){return"object"==typeof e?e["repo:assetId"]:e.split(";node")[0]}},29219:(e,t,r)=>{"use strict";r.d(t,{Hf:()=>a,UL:()=>o,mD:()=>i,n5:()=>c});function n(e){let t="";const r=new Uint8Array(e),n=r.byteLength;for(let e=0;e<n;e++)t+=String.fromCharCode(r[e]);return window.btoa(t)}function i(e,t){return((e,t="image/png")=>`data:${t};base64,${e}`)(n(e),t)}const o=e=>decodeURIComponent(escape(window.atob(e))),a=e=>window.btoa(unescape(encodeURIComponent(e))),s=e=>new Promise((t=>{const r=new FileReader;r.onload=()=>{t(r.result)},r.readAsDataURL(e)}));function c(e,t){return FileReader?s(e):e.arrayBuffer().then(i,t)}},37642:(e,t,r)=>{"use strict";r.d(t,{Cu:()=>s,Jf:()=>u,sB:()=>c,yN:()=>l});var n=r(84824),i=r(30131);const o={fs:["DL_FS_ERROR","DL_FS_ERROR"],general:["DL_NO_LIBS_ERROR_SYNCING","DL_SYNC_ERROR"],jsx:["DL_NO_LIBS_ERROR_INIT","DL_INIT_ERROR"],library:["DL_NO_LIBS_ERROR_SYNCING","DL_SYNC_ERROR_LIBRARY"],loggedOut:["DL_NO_LIBS_LOGGED_OUT","DL_SYNC_LOGGED_OUT"],appLoggedOut:["DL_NO_LIBS_APP_LOGGED_OUT","DL_NO_LIBS_APP_LOGGED_OUT"],network:["DL_NO_LIBS_ERROR_CONNECTING","DL_SYNC_ERROR_CONNECTING"],noAccess:["DL_NO_LIBS_NO_ACCESS","DL_SYNC_ERROR_NO_ACCESS"],noService:["DL_NO_LIBS_SERVICE_NOT_INSTALLED","DL_SYNC_SERVICE_NOT_INSTALLED"],quota:["DL_NO_LIBS_ERROR_SYNCING","DL_SYNC_ERROR_QUOTA_EXCEEDED"],sharedQuota:["DL_NO_LIBS_ERROR_SYNCING","DL_SYNC_ERROR_QUOTA_EXCEEDED"],server:["DL_SYNC_ERROR_SERVER","DL_SYNC_ERROR_SERVER"],serviceError:["DL_NO_LIBS_SERVICE_NOT_RUNNING","DL_SYNC_SERVICE_NOT_RUNNING"],syncDisabled:["DL_NO_LIBS_SYNC_DISABLED","DL_SYNC_DISABLED"],updateClient:["DL_NO_LIBS_UPDATE_CLIENT","DL_SYNC_UPDATE_CLIENT"],updateServer:["DL_NO_LIBS_UPDATE_SERVER","DL_SYNC_UPDATE_SERVER"],excludeHostnameOSX:["DL_NO_LIBS_NETWORK_PROBLEM","DL_SYNC_NETWORK_PROBLEM"],excludeHostnameWin:["DL_NO_LIBS_NETWORK_PROBLEM","DL_SYNC_NETWORK_PROBLEM"],excludeHostnameWin10:["DL_NO_LIBS_NETWORK_PROBLEM","DL_SYNC_NETWORK_PROBLEM"],verifyDnsSettings:["DL_NO_LIBS_NETWORK_PROBLEM","DL_SYNC_NETWORK_PROBLEM"],verifySocketConnection:["DL_NO_LIBS_SOCKET_BLOCKED","DL_SYNC_SOCKET_BLOCKED"],requestFailed:["DL_SYNC_REQUEST_ERROR","DL_SYNC_REQUEST_ERROR"]},a=["noService","serviceError","updateClient","updateServer","loggedOut","appLoggedOut","jsx","syncDisabled","excludeHostnameOSX","excludeHostnameWin","excludeHostnameWin10","verifyDnsSettings","verifySocketConnection"];function s(e){return!a.includes(e.errorType)}function c(e){return(0,n.Iu)(o[e.errorType]&&o[e.errorType][0]||o.general[0])}function l(e){const t=o[e.errorType]&&o[e.errorType][1]||o.general[1];return"library"===e.errorType?(0,n.Iu)(t,{name:e.library.name}):(0,n.Iu)(t)}function u(e){if("error"!==e.state)return null;return{serviceError:i.Em(),noService:i.mr(),excludeHostnameOSX:i.Em("excludeHostnameOSX"),excludeHostnameWin:i.Em("excludeHostnameWin"),excludeHostnameWin10:i.Em("excludeHostnameWin10"),verifyDnsSettings:i.Em("verifyDnsSettings"),updateServer:i.gZ(),updateClient:i.gZ()}[e.errorType]}},34038:(e,t,r)=>{"use strict";r.d(t,{Bc:()=>j,Cj:()=>k,Dk:()=>I,Fe:()=>Q,JF:()=>z,K3:()=>Z,KU:()=>P,MZ:()=>F,Mu:()=>D,NC:()=>$,PJ:()=>m,PX:()=>L,Q1:()=>d,Rl:()=>K,Zh:()=>O,_2:()=>C,_I:()=>H,a5:()=>h,e5:()=>f,fz:()=>J,g5:()=>Y,i_:()=>_,kJ:()=>N,ku:()=>w,lc:()=>U,mI:()=>M,oR:()=>B,pH:()=>R,pJ:()=>W,rD:()=>q,rx:()=>T,u2:()=>X,vn:()=>A,xJ:()=>E,xW:()=>V});var n=r(99386),i=r(76485),o=r(22708),a=r.n(o),s=r(89368),c=r.n(s),l=r(33275),u=r(64705);const p=()=>window.nodeRequire("fs"),d="application/vnd.adobe.ibl.light+zip",h="application/vnd.adobe.mdl.material+zip",f="application/vnd.adobe.ae.graphic+zip",m="application/vnd.adobe.ppro.graphic+zip",g={};g[n.Z.IMAGE_ELEMENT_TYPE]={"image/vnd.adobe.photoshop":{exts:["psd"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP",app:"PHXS",createdIn:"DL_APP_PHOTOSHOP"},"application/photoshop":{exts:["psd"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP",app:"PHXS",createdIn:"DL_APP_PHOTOSHOP"},"application/photoshop.large":{exts:["psb"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP",app:"PHXS",createdIn:"DL_APP_PHOTOSHOP"},"application/illustrator":{exts:["ai"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_ILLUSTRATOR",app:"ILST",createdIn:"DL_APP_ILLUSTRATOR"},"application/vnd.adobe.indesign-idms":{exts:["idms"],badge:"Id",displayName:"DL_REPRESENTATION_TYPE_INDESIGN",app:"IDSN",createdIn:"DL_APP_INDESIGN"},"application/vnd.adobe.muse-collection":{exts:["muse"],badge:"Mu",displayName:"DL_REPRESENTATION_TYPE_MUSE",app:"MUSE",createdIn:"DL_APP_MUSE"},"application/vnd.adobe.charts+zip":{exts:["zip"],badge:"PDF",displayName:"DL_REPRESENTATION_TYPE_CHART",app:"ILST",createdIn:"DL_APP_ILLUSTRATOR"},"image/vnd.adobe.shape+svg":{exts:["shape"],badge:"SVG",displayName:"DL_REPRESENTATION_TYPE_SHAPE"},"application/vnd.adobe.element.agc+json":{exts:["agc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD",app:"SPRK",createdIn:"DL_APP_XD"},"application/vnd.adobe.xd.cloudproject+dcx":{exts:["xdc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD",app:"SPRK",createdIn:"DL_APP_XD"},"document/vnd.adobe.cpsd+dcx":{exts:["psdc"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP",app:"PHXS",createdIn:"DL_APP_PHOTOSHOP"},"document/vnd.adobe.illustrator+dcx":{exts:["aic"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_ILLUSTRATOR",app:"ILST",createdIn:"DL_APP_ILLUSTRATOR"},"application/pdf":{exts:["pdf"],badge:"PDF"},"image/png":{exts:["png"],badge:"PNG"},"image/jpeg":{exts:["jpeg"],badge:"JPEG"},"image/jpg":{exts:["jpg"],badge:"JPG"},"image/gif":{exts:["gif"],badge:"GIF"},"image/tiff":{exts:["tif","tiff"],badge:"TIF"},"image/bmp":{exts:["bmp"],badge:"BMP"},"image/svg+xml":{exts:["svg"],badge:"SVG"},"image/heic":{exts:["heic"],badge:"HEIC"},"image/heif":{exts:["heif"],badge:"HEIF"},"image/x-adobe-dng":{exts:["dng"],badge:"DNG"},"image/dng":{exts:["dng"],badge:"DNG"}},g[n.Z.COLOR_ELEMENT_TYPE]={"application/vnd.adobe.color+json":{exts:["ase"],displayName:"DL_REPRESENTATION_TYPE_COLOR"}},g[n.Z.CHANNEL_ELEMENT_TYPE]={"application/vnd.adobe.channel+json":{exts:["json"],displayName:"DL_REPRESENTATION_TYPE_CHANNEL"}},g[n.Z.GRADIENT_ELEMENT_TYPE]={"application/vnd.adobe.gradient+json":{exts:["grd"],displayName:"DL_REPRESENTATION_TYPE_GRADIENT"},"application/vnd.adobe.gradient.noise+json":{exts:["grd"],displayName:"DL_REPRESENTATION_TYPE_GRADIENT"},"image/png":{exts:["png"]}},g[n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE]={"application/vnd.adobe.imageguideline+json":{exts:["json"],displayName:"DL_REPRESENTATION_TYPE_IMAGE_GUIDELINE"}},g[n.Z.COLOR_THEME_ELEMENT_TYPE]={"application/vnd.adobe.colortheme+json":{exts:["ase"],displayName:"DL_REPRESENTATION_TYPE_COLOR"}},g[n.Z.BRUSH_ELEMENT_TYPE]={"application/vnd.adobe.scatter.brush+zip":{exts:["brush"],displayName:"DL_REPRESENTATION_TYPE_BRUSH"},"application/vnd.adobe.ribbon.brush+zip":{exts:["brush"],displayName:"DL_REPRESENTATION_TYPE_BRUSH"},"image/x-adobe-photoshop-brush":{exts:["abr"],displayName:"DL_REPRESENTATION_TYPE_BRUSH"},"application/vnd.adobe.vector.brush+zip":{exts:["brush"],displayName:"DL_REPRESENTATION_TYPE_BRUSH"}},g[n.Z.CAPSULE_ELEMENT_TYPE]={"application/vnd.adobe.ae.graphic+zip":{exts:["aegraphic"],displayName:"DL_REPRESENTATION_TYPE_CAPSULE",app:"AEFT",createdIn:"DL_APP_AE"},"application/vnd.adobe.ppro.graphic+zip":{exts:["prgraphic"],displayName:"DL_REPRESENTATION_TYPE_CAPSULE",app:"PPRO",createdIn:"DL_APP_PPRO"}},g[n.Z.CHARACTER_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.characterstyle+json":{exts:["style"],displayName:"DL_REPRESENTATION_TYPE_TEXT_STYLE"},"application/vnd.adobe.characterstyle+snippet":{exts:["idms"],displayName:"DL_REPRESENTATION_TYPE_TEXT_STYLE"}},g[n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.paragraphstyle+json":{exts:["style"],displayName:"DL_REPRESENTATION_TYPE_PARA_STYLE"},"application/vnd.adobe.paragraphstyle+snippet":{exts:["idms"],displayName:"DL_REPRESENTATION_TYPE_PARA_STYLE"}},g[n.Z.FONT_ELEMENT_TYPE]={"application/vnd.adobe.font+json":{exts:["style"],displayName:"DL_REPRESENTATION_TYPE_FONT"}},g[n.Z.LAYER_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.layerstyle":{exts:["asl"],displayName:"DL_REPRESENTATION_TYPE_LAYER_STYLE"}},g[n.Z.LOOK_ELEMENT_TYPE]={"application/vnd.adobe.cube+txt":{exts:["cube"],displayName:"DL_REPRESENTATION_TYPE_CUBE_LUT"},"application/vnd.adobe.look+xml":{exts:["look"],displayName:"DL_REPRESENTATION_TYPE_LOOK"}},g[n.Z.THREE_D_ELEMENT_TYPE]={"application/vnd.adobe.obj.3d+zip":{exts:["obj"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"application/vnd.adobe.fbx.3d+zip":{exts:["fbx"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"image/vnd.adobe.photoshop":{exts:["psd"],displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP_3D"},"model/gltf-binary":{exts:["glb"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"model/gltf+json":{exts:["gltf"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"model/vnd.usdz+zip":{exts:["usdz"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"3d/vnd.adobe.dn+dcxucf":{exts:["dn"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"model/vnd.adobe.dn+dcxucf":{exts:["dn"],displayName:"DL_REPRESENTATION_TYPE_MODEL"}},g[n.Z.LIGHT_ELEMENT_TYPE]={"application/vnd.adobe.ibl.light+zip":{exts:["ibl"],displayName:"DL_REPRESENTATION_TYPE_LIGHT"},"application/vnd.adobe.exr.light+zip":{exts:["exr"],displayName:"DL_REPRESENTATION_TYPE_LIGHT"},"image/vnd.radiance":{exts:["hdr"],displayName:"DL_REPRESENTATION_TYPE_LIGHT"}},g[n.Z.MATERIAL_ELEMENT_TYPE]={"application/vnd.adobe.mdl.material+zip":{exts:["mdl"],displayName:"DL_REPRESENTATION_TYPE_MATERIAL"},"application/vnd.adobe.sbsar+zip":{exts:["sbsar"],displayName:"DL_REPRESENTATION_TYPE_MATERIAL"}},g[n.Z.PATTERN_ELEMENT_TYPE]={"image/vnd.adobe.pattern+png":{exts:["png"],displayName:"DL_REPRESENTATION_TYPE_BITMAP_PATTERN"},"image/svg+xml":{exts:["svg"],displayName:"DL_REPRESENTATION_TYPE_VECTOR_PATTERN"}},g[n.Z.VIDEO_ELEMENT_TYPE]={"video/quicktime":{exts:["mov"],badge:"MOV",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/mp4":{exts:["mp4"],badge:"MP4",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/x-quicktime":{exts:["mov"],badge:"MOV",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/x-ms-wmv":{exts:["wmv"],badge:"WMV",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/x-ms-asf":{exts:["wmv"],badge:"WMV",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/mpeg":{exts:["mpeg","mpg"],badge:"MPEG",displayName:"DL_REPRESENTATION_TYPE_VIDEO"}},g[n.Z.AUDIO_ELEMENT_TYPE]={"audio/aac":{exts:["aac"],badge:"AAC",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/x-aac":{exts:["aac"],badge:"AAC",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/aacp":{exts:["aacp"],badge:"AAC",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/mpeg":{exts:["mp2","mpeg","mpg"],badge:"MP2",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/mpeg3":{exts:["mp3","mpeg3"],badge:"MP3",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/m4a":{exts:["m4a"],badge:"M4A",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/mp3":{exts:["mp3"],badge:"MP3",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/3gpp":{exts:["3gpp"],badge:"3GPP",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/3gpp2":{exts:["3gpp2"],badge:"3GPP",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/x-aiff":{exts:["aiff"],badge:"AIFF",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/aif":{exts:["aif"],badge:"AIF",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/wav":{exts:["wav"],badge:"WAV",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/x-wav":{exts:["wav"],badge:"WAV",displayName:"DL_REPRESENTATION_TYPE_AUDIO"}},g[n.Z.TEMPLATE_ELEMENT_TYPE]={"image/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"},"application/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"},"application/illustrator.template":{exts:["ait"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"},"application/vnd.adobe.illustrator.template":{exts:["ait"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"},"application/vnd.adobe.indesign.template":{exts:["indt"],badge:"Id",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"}},g[n.Z.TEXT_ELEMENT_TYPE]={"application/vnd.adobe.text+json":{exts:["text"],displayName:"DL_REPRESENTATION_TYPE_TEXT"},"application/illustrator-text":{exts:["ai"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_TEXT"},"application/vnd.adobe.indesign-idms-text":{exts:["idms"],badge:"Id",displayName:"DL_REPRESENTATION_TYPE_TEXT"}},g[n.Z.ANIMATION_ELEMENT_TYPE]={"application/vnd.adobe.animate-xfl+zip":{exts:["fla","xfl"],badge:"An",displayName:"DL_REPRESENTATION_TYPE_ANIMATION",app:"FLPR",createdIn:"DL_APP_ANIMATE"},"application/vnd.adobe.animate-sym+zip":{exts:["sym"],badge:"SYM",displayName:"DL_REPRESENTATION_TYPE_ANIMATION",app:"FLPR",createdIn:"DL_APP_ANIMATE"}},g[n.Z.COMPONENT_ELEMENT_TYPE]={"application/vnd.adobe.element.agc+json":{exts:["agc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD_COMPONENT",app:"SPRK",createdIn:"DL_APP_XD"},"application/vnd.adobe.xdcomponent+dcx":{exts:["agc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD_COMPONENT",app:"SPRK",createdIn:"DL_APP_XD"},"application/vnd.adobe.nxdcomponent+dcx":{exts:["agc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD_COMPONENT",app:"SPRK",createdIn:"DL_APP_XD"}};const v={};function y(e,t){const r=g[e]||{};return Object.keys(r).filter((e=>t(r[e])))}function b(e,t,r){if(t){const n=g[t];return n&&n[e]&&r(n[e])}return Object.keys(g).some((t=>g[t]&&g[t][e]&&r(g[t][e])))}function _(e,t){return g[e]&&g[e][t]}function E(e){return Object.keys(v).find((t=>v[t].some((t=>t===e))))}function w(e){return y(e,(e=>e.usable))}function L(e){return y(e,(e=>e.editable))}function x(e,t,r){const n=g[e];n&&t.forEach((e=>{const t=n[e];if(t)t.usable=!0,t.editable=!!r;else{const t=A(e);if(t&&t.length>0){const i=t[0];n[e]={exts:t,badge:i.toUpperCase(),usable:!0,editable:!!r}}}}))}function S(e,t,r){const n=g[e];n&&t.forEach((e=>{k(e=e.toLowerCase()).filter((e=>e)).forEach((t=>{const i=n[t];i?(i.exts.includes(e)||i.exts.push(e),i.usable=!0,i.editable=!!r):n[t]={exts:[e],badge:e.toUpperCase(),usable:!0,editable:!!r}}))}))}function O(e,t){x(e,t)}function T(e,t){S(e,t)}function I(e,t){x(e,t,!0)}function P(e,t){S(e,t,!0)}function C(e){const t=e.lastIndexOf(".")+1;if(t>0)return t!==e.length?e.substr(t).toLowerCase().trim():""}function A(e){return l.P6.mimeTypeToExtensions(e)}function k(e){return l.P6.extensionToMimeTypes(e)}function D(e){return l.P6.canComputeRenditionFromMimeType(e)}function N(e){return["image/svg+xml","application/pdf","application/illustrator","application/postscript","image/vnd.adobe.shape+svg","application/vnd.adobe.charts+zip",n.Z.AGC_REPRESENTATION_TYPE].includes(e)}function R(e,t){const r=g[t];if(e){const t=C(e);if(t){let e=Object.keys(r).find((e=>r[e].exts.includes(t)));if(!e){const r=k(t);e=r&&r[0]}return e}}}function M(e){return e&&e.replace(/(<|>|:|"|\/|\\|\||\?|\*|[\x00-\x1F])|\(|\)|\{|\}|,|\s/g,"")}function j(e){const t=i.Z.isWindowsOS()?"\\":"/",r=e&&e.lastIndexOf(t);return r>=0&&(e=e.substr(r+1)),e&&e.normalize()}function Z(e){const t=e&&e.lastIndexOf(".");return t>=0&&(e=e.substr(0,t)),e&&e.normalize()}function F(e){const t=e&&e.lastIndexOf(".");return t>=0?e.substr(t+1):""}function B(e){return n.Z.LIBRARY_ALLOWED_EXTENSIONS.includes(e)}function G(e){return Object.keys(v).some((t=>!!g[t][e]))}function U(e){if(!e)return!1;return k(C(e)).some(G)}function z(e){return e.find(G)}function V(e){const t=p();return!t||t.existsSync(e)}function H(e){if(i.Z.deleteFile)return i.Z.deleteFile(e);try{p().unlinkSync(e)}catch(e){}}function Y(e){try{return p().statSync(e)}catch(e){return{}}}function W(e,t,r){if(!r)return p().readFileSync(e,t);p().readFile(e,t,r)}function $(e,t,r,n){if(!n)return p().writeFileSync(e,t,r);p().writeFile(e,t,r,n)}function K(){return a()()}function q(e){const t=c().parse(e);return c().join(t.dir,t.name)+"_"+K()+t.ext}function X(e,t){!function e(t,r,n){const i=r.slice(0,t).join("/"),o=()=>{t<r.length?e(t+1,r,n):n(null)},a=p();a.exists(i,(e=>e?o():a.mkdir(i,o)))}(2,e.split("/"),t)}function J({fileTypes:e,multiple:t}={}){return u.Z.getFilesToImport()?Promise.resolve(u.Z.getFilesToImport()):new Promise(((r,n)=>{const o=Object.assign(document.createElement("input"),{type:"file",multiple:t});e&&o.setAttribute("accept",e.map((e=>`.${e}`)).join(", "));const a=()=>{const e=o.files;o.removeEventListener("change",a),o.remove(),e.length&&r(e)||n()};i.Z.getRootPanelElement().prepend(o),o.addEventListener("change",a),o.dispatchEvent(new MouseEvent("click"))}))}function Q(e,t=!1){let r=v[e];t&&(r=r.filter((t=>function(e,t){return!!b(e,t,(e=>e.usable))}(t,e))));const n=g[e];if(!n||!r)return;let i=[];return r.forEach((e=>{i=i.concat(n[e].exts)})),i}v[n.Z.IMAGE_ELEMENT_TYPE]=["application/illustrator","image/png","image/bmp","image/vnd.adobe.photoshop","application/photoshop","image/svg+xml","image/gif","image/jpg","image/jpeg","image/tiff","application/pdf","image/heic","image/heif","image/x-adobe-dng","image/dng"],v[n.Z.TEMPLATE_ELEMENT_TYPE]=["image/vnd.adobe.photoshop.template","application/vnd.adobe.photoshop.template","application/illustrator.template","application/vnd.adobe.illustrator.template","application/vnd.adobe.indesign.template"],v[n.Z.ANIMATION_ELEMENT_TYPE]=["application/vnd.adobe.animate-xfl+zip"],v[n.Z.VIDEO_ELEMENT_TYPE]=["video/mp4","video/quicktime","video/x-quicktime","video/x-ms-wmv","video/x-ms-asf","video/mpeg"],v[n.Z.AUDIO_ELEMENT_TYPE]=["audio/aac","audio/x-aac","audio/aacp","audio/mpeg","audio/mpeg3","audio/m4a","audio/mp3","audio/3gpp","audio/3gpp2","audio/x-aiff","audio/aif","audio/vnd.wave","audio/wav","audio/x-wav"],v[n.Z.MATERIAL_ELEMENT_TYPE]=["application/vnd.adobe.mdl.material+zip","application/vnd.adobe.sbsar+zip"],v[n.Z.THREE_D_ELEMENT_TYPE]=["3d/vnd.adobe.dn+dcxucf","model/vnd.adobe.dn+dcxucf","application/vnd.adobe.fbx.3d+zip","application/vnd.adobe.obj.3d+zip","model/gltf-binary","model/gltf+json","model/vnd.usdz+zip"],v[n.Z.LIGHT_ELEMENT_TYPE]=["application/vnd.adobe.exr.light+zip","application/vnd.adobe.ibl.light+zip","image/vnd.radiance"]},69233:(e,t,r)=>{"use strict";r.d(t,{mB:()=>ee,kQ:()=>ue,M_:()=>ce,SH:()=>te,yF:()=>N,gw:()=>Y,$3:()=>W,DB:()=>oe,_y:()=>H,hL:()=>V,xF:()=>z,Oy:()=>Z,Oi:()=>B,xr:()=>ae,xe:()=>se,RH:()=>R,GI:()=>U,Nt:()=>re,Av:()=>M,GN:()=>$,zA:()=>Q,tl:()=>D,k5:()=>F,fr:()=>ne,Q_:()=>q,eV:()=>J,aX:()=>fe,JO:()=>pe,r5:()=>ie,ez:()=>j,PR:()=>k});var n=r(17179),i=r(99386),o=r(46903),a=r(25585),s=r(84824),c=r(51461),l=r(16993),u=r(26964);class p{constructor(e,t){const r=e.branches;this.existingItems={},this.library=t;const n=[],o=[];[...t.getGroups(),...t.elements].forEach((e=>{if(this.existingItems[e.id]=e,!r[e.id]){(e.isGroup?n:o).push(e)}})),this.existingItems[i.Z.UNGROUPED_GROUP.id]=i.Z.UNGROUPED_GROUP;const a=e.root;this._root=new h(a,this),o.forEach((e=>t.removeElement(e,!1))),n.forEach((e=>t.removeGroup(e,!1)))}}class d{constructor(e,t){this._oldBranch=e,this._tree=t,this._restore()}get _existingItems(){return this._tree.existingItems}get _library(){return this._tree.library}get _oldParentGroup(){if(this._oldBranch.parent)return this._oldBranch.parent.item}get _restoredParentGroup(){if(this._oldParentGroup)return this._existingItems[this._oldParentGroup.id]}_restore(){const e=this._oldBranch.item;e&&(this._item=this._existingItems[e.id]||this._restoreItem(),this._restoreMetadata(),this._existingItems[e.id]=this._item),(this._oldBranch.children||[]).forEach((e=>{new(e.item.isGroup?h:f)(e,this._tree)}))}_restoreItem(){throw"You need to implement this in the subclass."}_restoreMetadata(){throw"You need to implement this in the subclass."}}class h extends d{_createGroup(...e){return this._restoredParentGroup?this._restoredParentGroup.createChild(...e):this._library.createGroup(...e)}_restoreItem(){const e=this._oldBranch,t=e.name,r=e.order;return this._createGroup(t,r)}_restoreMetadata(){const e=this._oldBranch,t=e.order,r=e.name;this._item.name=r,this._item.parent=this._restoredParentGroup,this._item.order=t}}class f extends d{_restoreItem(){const e=this._oldBranch.item;return this._library.restoreElement(e),e}_restoreMetadata(){const e=this._oldBranch,t=e.order,r=e.name;this._item.name=r;const n=t?this._restoredParentGroup:this._item.getGroups()[0];n&&this._item.setOrderInGroup(n,t)}}class m{get root(){return this._root}get branches(){return this._branches}get options(){return this._options}addBranch(e){this._branches[e.item.id]=e}constructor(e,t,r){this._root=void 0,this._branches={},this._options={sortBy:"order",maxDepth:-1,includeEmpty:!0,includeUngrouped:!0},this._options=Object.assign(this._options,r);const n=this.options,o=n.includeEmpty,a=n.includeUngrouped,s=new Set(t);this._root=new v(this),a&&this._addNodesToGroupBranch([i.Z.UNGROUPED_GROUP]),se(e).forEach(((e,t)=>{this._addNodesToGroupBranch(e,t),s.delete(t)})),o&&s.forEach((e=>{this.branches[e.id]||this._addNodesToGroupBranch([e],e.parent)})),this.root.sort()}_addNodesToGroupBranch(e,t){if(!t||this.branches[t.id]){const r=t&&this.branches[t.id],n=e.map((e=>{const t=new(e.isGroup?v:y)(this,e,r);return this.addBranch(t),t}));n[0].parent.insertChildren(n)}else this._addNodesToGroupBranch([t],t.parent),this._addNodesToGroupBranch(e,t)}}class g{get item(){return this._item}get parent(){return this._parent}get order(){return this._order}get name(){return this._name}get depth(){return this._depth}get tree(){return this._tree}constructor(e,t,r){this._item=void 0,this._order=void 0,this._name=void 0,this._parent=void 0,this._depth=void 0,this._tree=void 0,this.compareBranches=(e,t)=>e.item.isGroup&&t.item.isGroup?this._compareGroupBranches(e,t):e.item.isGroup||t.item.isGroup?e.item.isGroup?1:-1:this._compareElementBranches(e,t),this._tree=e,this._item=t,this._depth=r?r.originalDepth+1:0,this._parent=r,this._order=this._getOrder(),this._name=this._getName()}getSortValue(){return"name"===this.tree.options.sortBy?this._name:this._order}_getName(){return this.item&&this.item.name}_compareElementBranches(e,t){return n.Z.compare(e.getSortValue(),t.getSortValue())}_compareGroupBranches(e,t){const r=this.tree.branches;return[e.item,t.item].includes(i.Z.UNGROUPED_GROUP)?e.item===i.Z.UNGROUPED_GROUP?1:-1:e.item.parent===t.item.parent?n.Z.compare(e.getSortValue(),t.getSortValue()):e.item.parent===t.item||t.item.parent===e.item?e.item.parent===t.item?1:-1:t.originalDepth>e.originalDepth?this._compareGroupBranches(e,r[t.item.parent.id]):e.originalDepth>t.originalDepth?this._compareGroupBranches(r[e.item.parent.id],t):this._compareGroupBranches(r[e.item.parent.id],r[t.item.parent.id])}}class v extends g{constructor(e,t,r){super(e,t,r),this._originalDepth=void 0,this._children=[];const n=e.branches,i=e.root,o=e.options.maxDepth;if(this._originalDepth=this.depth,r&&o>=0)for(;this.depth>o;){const e=r.item.parent;r=e&&n[e.id],this._depth-=1}this._parent=r||i}get children(){return this._children}set children(e){this._children=e}get originalDepth(){return this._originalDepth}_getOrder(){return this.item&&this.item.order}insertChildren(e){this.children=this.children.concat(e)}sort(){const e=this._children;if(e){const t=e.length;if(t>1&&e.sort(this.compareBranches),t){let t=e.length-1,r=e[t];for(;t>=0&&r.children;)r.sort(),t--,r=e[t]}}}}class y extends g{get isUngrouped(){return this.parent.item===i.Z.UNGROUPED_GROUP}_getOrder(){return!this.isUngrouped&&this.item.getOrderInGroup(this.parent.item)}getSortValue(){return this.isUngrouped?this._name:super.getSortValue()}}var b=r(72373),_=r(31870),E=r(48919);function w(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */w=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function L(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||T(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,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))}}function O(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function T(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}const P="/",C=new RegExp(P,"g"),A=/(?:^|\/)([^/]+)/g;function k(e,t,r){if(e.match(/[\\/]/gm))return i.Z.RENAME_STATES.SLASH_GROUP;const n=t=>t&&e.toLocaleLowerCase()===t.toLocaleLowerCase();if(t&&(n(t.name)||!D(t)))return i.Z.RENAME_STATES.VALID;const o=!!r.children.find((e=>n(e.item&&e.item.name)));return o?i.Z.RENAME_STATES.DUPLICATE_GROUP:i.Z.RENAME_STATES.VALID}function D(e){var t;if(!e.library)return!0;return!(null!==(t=U(e.library).branches[e.id])&&void 0!==t&&t.children.length)}function N(e,t){if(!e)return;const r=function(e){const t=e.children.length>0&&n.Z.sortByOrder(e.children),r=e.library.elements.filter((t=>t.getGroups()[0]===e)),i=n.Z.sortByOrderInGroup(e,r);let o;return t&&t.length?o=t[0].order:i&&i.length&&(o=i[0].getOrderInGroup(e)),(0,a.Tk)(void 0,o)}(e),i=B([],e.library.getGroups()).branches;return e.createChild(t||ae(i[e.id]),r)}function R(e){const t=(e,r=0)=>{const n=e.parent;return n?t(n,r+1):r};return t(e)}function M(e){if(!e)return;const t=e=>{const r=e.parent;return r?t(r):e},r=t(e),n=r&&r.nameLocalizationKey&&r.nameLocalizationKey.match(/^(?:ASSETS_PANEL_)(.*?)(?:_TITLE)$/);return n&&n[1]&&n[1].replace("_"," ").toLowerCase()}function j(e,t){const r=t.shouldCollapse,n=t.expandNonMeaningfulChildren,i=l.Z.elementSortState;U(e.library,{sortBy:i}).branches[e.id].children.forEach((e=>{e.item.isGroup&&(n?F(e)||l.Z.setGroupCollapsed(e.item.id,!1):l.Z.setGroupCollapsed(e.item.id,r),j(e.item,{shouldCollapse:r,expandNonMeaningfulChildren:n}))}))}function Z(e){return(e.isGroup&&H(e).reverse()).find((e=>l.Z.isGroupCollapsed(e.id)))}function F(e){const t=!!e.children.find((e=>!e.item.isGroup)),r=e.item.children&&e.item.children.length,n=e.item.library&&e.item.library.pathViewMaxDepth,i=n&&e.depth<n;return t||!r||!!i}function B(e,t,r){return new m(e,t,r)}const G=new Map;function U(e,t={}){if(!e)return;t=Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{});const r=`${E.Z.libraryManager.userId}${e.id}${JSON.stringify(t)}`,n=setTimeout((()=>G.delete(r)),i.Z.GROUPS_TREE_CACHE_KEEPALIVE_TIME),o=G.get(r),a=e.modified||e.changeCount,s=e.elementCount;if(o&&!b.Z.getDebugValue("disableGroupsTreeCache")&&(clearTimeout(o.timeout),o.modified===a&&o.elementCount===s))return o.timeout=n,o.value;const c=B(e.elements,e.getGroups(),t);return b.Z.getDebugValue("disableGroupsTreeCache")||!e.areElementsLoaded||e.syncState||G.set(r,{value:c,modified:a,timeout:n,elementCount:s}),c}function z(e,t=!1){const r=t?[e]:[],n=e=>{e&&e.children&&(r.push(...e.children),e.children.forEach((e=>n(e))))};return n(e),r}function V(e){if(!e.children)return[];const t=B(e.library.elements,e.library.getGroups()).branches[e.id],r=[],n=e=>{(e.children||[]).forEach((e=>{e.item.isGroup?n(e):r.push(e.item)}))};return n(t),r}function H(e,t=!1){if(!e.parent)return t?[e]:[];const r=[...H(e.parent),e.parent];return t&&r.push(e),r}function Y(e){if(!e.library)return;const t=l.Z.elementSortState,r=U(e.library,{sortBy:t}).branches,n=e=>{if(!e||!e.children.length)return;const t=[];var r,i=O(e.children);try{for(i.s();!(r=i.n()).done;){const e=r.value;if(!e.item.isGroup)return e.item;t.push(e)}}catch(e){i.e(e)}finally{i.f()}return t.reduce(((e,t,r,i)=>{const o=n(t);return o&&i.splice(r-1),o}),void 0)};return n(r[e.id])}function W(e){const t=l.Z.elementSortState,r=U(e.library,{sortBy:t}).branches,n=[],i=e=>{if(e&&e.children&&e.children.length){n.unshift(e.item);var t,r=O(e.children);try{for(r.s();!(t=r.n()).done;){const e=t.value;e.item.isGroup&&(n.unshift(e.item),e.children.forEach((e=>i(e))))}}catch(e){r.e(e)}finally{r.f()}}};i(r[e.id]);for(var o=0,a=n;o<a.length;o++){const e=r[a[o].id].children;if(e&&e.length>0)for(let t=e.length-1;t>=0;t--)if(!e[t].item.isGroup)return e[t].item}}function $(e){return e.getGroups().filter((e=>e&&!e.parent))}function K(e,t){return e===t.parent||t===e.parent?e===t.parent?e.parent:t.parent:e.parent===t.parent?e.parent:e.depth<t.depth?t.parent&&K(e,t.parent):e.depth>t.depth?e.parent&&K(e.parent,t):K(e.parent,t.parent)}function q(e){if(!e.length)return;if(1===e.length)return e[0].isGroup?e[0].parent:e[0].getGroups()[0];const t=U(e[0].library).branches;return e.reduce(((r,n)=>{if(!r)return;if(!e.includes(r)){if(function(e){if(!e.children||!e.children.length)return[];const t=[],r=e=>{e.children&&e.children.forEach((e=>{t.push(e),r(e)}))};return r(e),t}(t[r.id]).includes(t[n.id]))return r}const i=K(t[r.id],t[n.id]);return i&&i.item}))}function X(e,t){t.beginOperation();const r=[];return e.forEach(((e,n)=>{const i=e.isGroup?e:((e,n)=>0===n?(0,o.sS)(t,e.trim()):N(r[n-1],e.trim()))(e.name,n);0===n?i.parent=void 0:e.isGroup&&(i.parent=r[n-1]),r.push(i)})),t.endOperation(),r}function J(e,t,r){if(r=Object.assign({deleteEmpty:!1,moveSubgroups:!0},r),!e)return;const n=r,i=n.deleteEmpty,a=n.moveSubgroups,s=e.library,l=U(s).branches;s.beginOperation();const u=H(e,!0),p=X(t,s),d=p[p.length-1],h=[],f=[];l[e.id].children.forEach((e=>{const t=e.item,r=t.isGroup?f:h;!p.includes(t)&&(!t.isGroup||a)&&r.push(t)})),h.length&&(c.ZP.reportEvent("Element Operations","Element","move","element",{event:{value:"agg",count:h.length},content:{category:"Path Menu"}},s),c.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Path Menu"}})),(0,o.c_)(h,d);const m=a?f.map((e=>te(e,s,d,{isMove:!0}))):[Promise.resolve()];return Promise.all(m).then((()=>{if(i){const e=e=>{const t=!l[e.id].children.find((e=>![...f,...h].includes(e.item)));return t&&f.push(e),t};u.reverse().forEach((t=>{!p.includes(t)&&e(t)&&t.library.removeGroup(t)}))}return s.endOperation(),p}))}function Q(e,t){if(!e||!t)return!1;for(let r=0;r<t.library.getGroupCount();r++){if(e===t)return!0;if(!(e=e&&e.parent))break}return!1}function ee(e,t,r=!1){if(!e.length||!t)return!1;const n=e[0].isGroup?e:[...new Set(e.map((e=>e.getGroups()[0])))];return!!n.length&&((e,t,r)=>{const n=e=>{for(let t=e;t;t=t.parent)if(t.disableDraggingFromOutside)return t},i=n(t),o=e.some((e=>n(e)!==i));return r&&!o?!t.disableDraggingFromOutside:!o})(n,t,r)}function te(e,t,r,i){i=Object.assign({isMove:!1,includeContents:!0},i);return t.beginOperation(),((e,t,r,n)=>{const i=n.isMove,o=n.includeContents;if(i&&e.library.id===t.id)return e.parent=r,Promise.resolve(e);return e.library.copyGroup.call(e.library,e,t,o).then((i=>{if(i.parent=r,!e.children.length)return i;const o=[];return e.children.forEach((e=>{o.push(te(e,t,i,n))})),Promise.all(o).then((()=>i))}))})(e,t,r,i).then((e=>{const i=(r?r.children:$(t)).filter((t=>t!==e)),a=n.Z.sortByOrder(i)[0];return a&&a!==e&&(0,o.dB)(e,void 0,a,{merge:!1}),e})).catch((e=>{throw u.Z.log(e),e})).finally((()=>{i.isMove&&e.library.id!==t.id&&e.library.removeGroup(e,!0),t.endOperation()}))}function re(e,t){if(!e||!t)return[];const r=t.children.map((e=>e.item));return[t.item,...r].filter((t=>t&&function(e,t){return!(!e.isGroup||!t.isGroup||e===t||[t,e].includes(i.Z.UNGROUPED_GROUP)||Q(t,e)||e.name.toLocaleLowerCase()!==t.name.toLocaleLowerCase())}(e,t)))}function ne(e,t){if(e.library!==t.library)throw new Error("Cannot merge groups from different libraries.");const r=e.library,n=B(r.elements,r.getGroups()).branches,i=(e,t)=>(n[e.id].children.forEach((e=>{const r=e.item;if(((e,t)=>{const r=n[e.id].parent.children.findIndex((t=>t.item===e)),i=n[t.id],o=i.children[r],s=i.children[r+1],c=(0,a.Tk)(o&&o.order,s&&s.order);e.isGroup?(e.parent=t,e.order=c):e.setOrderInGroup(t,c)})(r,t),r.isGroup){const e=re(r,n[t.id])[0];e&&i(r,e)}})),r.removeGroup(e),t);return r.beginOperation(),i(e,t),r.endOperation(),t}function ie(e){return function(e){const t=Object.values(e.branches).find((e=>e.item.library)).item.library;return t.beginOperation(),new p(e,t),t.endOperation(),e}(e)}function oe(e){const t=[...H(e),e].map((e=>e.name));return(0,a.Zj)(t,{maxWidth:i.Z.TOOLTIP_MAX_WIDTH})}function ae(e){const t=e=>`${(0,s.Iu)("DL_NEW_GROUP_NAME")}${e?` ${e}`:""}`,r=n.Z.sortByName(e.children);let i=0;for(let e=0;e<r.length;e++)r[e].name===t(i)&&i++;return t(i)}function se(e){return e.reduce(((e,t)=>{const r=t.getGroups()[0]||i.Z.UNGROUPED_GROUP,n=e.get(r)||[];return n.push(t),e.set(r,n),e}),new Map)}function ce(e){return le.apply(this,arguments)}function le(){return(le=S(w().mark((function e(t){var r,n,i,o,a,s,c,l,u,p,d,h,f,m,g;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.beginOperation(),r=O(t.getGroups()),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=17;break}if((i=n.value).name&&i.name.includes(P)){e.next=8;break}return e.abrupt("continue",15);case 8:if(o=H(i),a=he(t,o,i.name),o.length!==a.length){e.next=13;break}return de(i),e.abrupt("continue",15);case 13:return e.next=15,J(i,a,{deleteEmpty:!0});case 15:e.next=4;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),r.e(e.t0);case 22:return e.prev=22,r.f(),e.finish(22);case 25:s=0,c=[...t.elements,...t.removedElements];case 26:if(!(s<c.length)){e.next=44;break}if(ue(u=c[s])){e.next=30;break}return e.abrupt("continue",41);case 30:if(p=null===(l=u.getGroups())||void 0===l?void 0:l[0],o=p?H(p,!0):[],a=he(t,o,u.name),o.length!==a.length){e.next=36;break}return de(u),e.abrupt("continue",41);case 36:d=a.splice(a.length-1),h=L(d,1),f=h[0],m=X(a,t),g=m[m.length-1],u.setOrderInGroup(g,"a"),u.name=f.name;case 41:s++,e.next=26;break;case 44:t.endOperation();case 45:case"end":return e.stop()}}),e,null,[[2,19,22,25]])})))).apply(this,arguments)}function ue(e){return!(null==e||!e.name)&&((null==e?void 0:e.name.includes(P))&&!e.disableRename&&!e.isLinked&&!(0,_.Jw)(e))}function pe(e){if(!e.isWritable)return;e.beginOperation();for(var t=0,r=[...e.getGroups(),...e.elements,...e.removedElements];t<r.length;t++){de(r[t])}e.endOperation()}const de=e=>{var t;(!e.isElement||e.isElement&&ue(e))&&(e.name=null===(t=e.name)||void 0===t?void 0:t.replace(C,"-"))};function he(e,t,r){const n=t.concat();var i,o=O(null==r?void 0:r.matchAll(A));try{for(o.s();!(i=o.n()).done;){let e=L(i.value,2)[1];e=e.trim(),e&&n.push({name:e})}}catch(e){o.e(e)}finally{o.f()}return fe(e,t,n)}function fe(e,t,r,n){const i=n?t.slice(0,n):[],o=(e,t)=>e.name.toLowerCase()===t.name.trim().toLowerCase(),a=(t,r)=>t?((e,t)=>{if(e.isGroup)return e.getFilteredChildren((e=>o(e,t)))[0]})(t,r):((e,t)=>e.getFilteredGroups(void 0,(e=>!e.parent&&o(e,t)))[0])(e,r);return r.forEach((e=>{if(!e.isGroup){const t=i[i.length-1];e=a(t,e)||e}i.push(e)})),i}},46753:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,b:()=>a});var n=r(34038),i=r(26964);function o(e,t,r){const n=t.width,o=void 0===n?e.naturalWidth:n,a=t.height,s=void 0===a?e.naturalHeight:a,c=document.createElement("canvas");if(c.width=o,c.height=s,0===c.width||0===c.height)return{width:0,height:0,dataURL:void 0};let l;try{c.getContext("2d").drawImage(e,0,0,o,s),l=c.toDataURL("image/"+r),l=l.replace(/^data:image\/(png|jpg|jpeg);base64,/,"")}catch(e){i.Z.log("Error using Canvas API to download image")}return{width:c.width,height:c.height,dataURL:l}}function a(e,t,r={},i="png"){const a=o(e,r,i),s=a.width,c=a.height,l=a.dataURL,u=`${t}/${(0,n.Rl)()}.${i}`;return(0,n.NC)(u,l,"base64"),{path:u,width:s,height:c}}},17552:(e,t,r)=>{"use strict";r.d(t,{Lg:()=>u,Ue:()=>l,iO:()=>p,vs:()=>c});var n=r(76485),i=r(93028),o=r(64705),a=r(84824),s=r(99386);function c(e,t){return o.Z.getFilePath()?Promise.resolve(o.Z.getFilePath()):function(e,t){if(n.Z.getFileForSaving)return n.Z.getFileForSaving(`${t}.${s.Z.LIBRARY_SNAPSHOT_EXTENSION}`).then((e=>e?e.nativePath:Promise.reject("No file selected.")));const r=(0,a.Iu)("DL_SELECT_FOLDER");return n.Z.exec("CORE","chooseFileLocation",[r,encodeURIComponent(e),encodeURIComponent(t)]).then((e=>"null"===e||""===e?Promise.reject("No file selected."):decodeURIComponent(e)))}(e,t)}function l(e){return o.Z.getFilePath()?Promise.resolve(o.Z.getFilePath()):function(e){if(n.Z.getFileForOpening)return n.Z.getFileForOpening(s.Z.LIBRARY_ALLOWED_EXTENSIONS).then((e=>e?e.nativePath:Promise.reject("No file selected.")));const t=(0,a.Iu)("DL_SELECT_LIBRARY");return n.Z.exec("CORE","chooseFile",[t,encodeURIComponent(e)]).then((e=>"null"===e||""===e?Promise.reject("No file selected."):decodeURIComponent(e)))}(e)}function u(e,t){if(e)return i.ZP.importLibrary(e,t);t("No file selected")}function p(e,t,r){if(t)return i.ZP.exportLibrary(e,t,r);r("No location selected")}},46903:(e,t,r)=>{"use strict";r.d(t,{$_:()=>Ne,$h:()=>Ae,D3:()=>je,EU:()=>Ke,GL:()=>Ve,IA:()=>Ue,IO:()=>ce,In:()=>z,Iu:()=>He,J3:()=>Pe,JT:()=>Xe,MN:()=>W,Mo:()=>he,NB:()=>Oe,NR:()=>we,P:()=>tt,Ph:()=>V,Q1:()=>me,QZ:()=>Ie,R3:()=>Fe,RW:()=>fe,SS:()=>Te,UE:()=>ee,Uu:()=>Re,V5:()=>Se,VI:()=>ve,W:()=>ze,Wv:()=>Ze,XT:()=>nt,Y3:()=>it,__:()=>ge,a3:()=>We,au:()=>qe,bf:()=>pe,cC:()=>se,cL:()=>oe,c_:()=>re,cm:()=>Ye,dB:()=>Q,dN:()=>Y,fR:()=>ie,g0:()=>j,hp:()=>Be,iM:()=>Je,ii:()=>F,ix:()=>K,jT:()=>be,kg:()=>Qe,l:()=>ne,l8:()=>Ee,mM:()=>Z,oY:()=>$,p6:()=>$e,pN:()=>xe,rU:()=>ke,sS:()=>te,u4:()=>Le,vF:()=>ye,vI:()=>U,vM:()=>H,vo:()=>q,wP:()=>Me,w_:()=>rt,yD:()=>ue,yR:()=>Ce,zW:()=>Ge,zc:()=>_e});var n=r(27611),i=r(98949),o=r(99386),a=r(47320),s=r(76485),c=r(93028),l=r(8733),u=r(17179),p=r(34038),d=r(51461),h=r(84824),f=r(25585),m=r(4784),g=r(16993),v=r(26964),y=r(53849),b=r(84074),_=r(30460),E=r(48919),w=r(69233),L=r(99409),x=r(44914),S=r(18580),O=r(22708),T=r.n(O),I=r(10441),P=r(72373),C=r(73675),A=r(8502),k=r(85834),D=r(39293),N=r(89526);function R(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(e,t)}(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 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 j(e="",t,r){const n={name:p.Rl(),maxWidth:t,maxHeight:r};return s.Z.execApp("saveAssets",[n,!0,e]).then((e=>"undefined"===e?Promise.reject():JSON.parse(e)))}function Z(e,t){let r=!1;return e.forEach((e=>{const t=p.g5(e.path);t&&t.size>c.ZP.MAX_COMPONENT_SIZE&&(r=!0)})),!r||(t&&e.forEach((function(e){p._I(e.path)})),s.Z.showError((0,h.Iu)("DL_ERROR_FILE_TOO_BIG")),!1)}function F(e,t){return Z([{path:e}],t)}const B=(e,t)=>{t?d.ZP.reportError("Library Operations","Import Library",e,void 0,"invalidData"):d.ZP.reportError("Add Assets","Element",e,void 0,"batch-upload",{content:{category:"Bulk Upload"}})},G={hasUnsupportedExtensions:["UNSUPPORTED_ASSET_TITLE","UNSUPPORTED_ASSET_MESSAGE_CONTINUE","graphics-only"],hasOverSizedFiles:["FILE_SIZE_TITLE","FILE_SIZE_MESSAGE_CONTINUE","large-file"],slowUpload:["LARGE_UPLOAD_TITLE","LARGE_UPLOAD_MESSAGE","slow-upload"]};function U(e,t){const r={};let n=[],i=0;if(t.forEach((t=>{t.extension=p.MZ(t.name).toLowerCase();const o=p.oR(t.extension);(e||o)&&(De().includes(t.extension)?t.size>c.ZP.MAX_COMPONENT_SIZE&&!o?r.hasOverSizedFiles=!0:(n.push(t),i+=t.size):r.hasUnsupportedExtensions=!0)})),n.length>o.Z.NATIVE_DROP_MAX_FILE_COUNT&&(r.exceedsFileCountLimit=!0),(n.length>o.Z.NATIVE_DROP_FILES_SLOW_PERFORMANCE_THRESHOLD||i>10*c.ZP.MAX_COMPONENT_SIZE)&&(r.slowUpload=!0),e&&!m.Z.canAddElements(e,n.length))return B("exceeded-library-limit"),{title:(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_LIMIT_TITLE"),messages:[(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_LIMIT_MESSAGE",{num:c.ZP.MAX_ELEMENTS})],files:[],library:e};const a=Object.keys(r),s=De().join(", ");let l,u;if(r.exceedsFileCountLimit)B("exceeded-max-file-count"),l=(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_FILE_COUNT_TITLE"),u=[(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_FILE_COUNT_MESSAGE",{limit:o.Z.NATIVE_DROP_MAX_FILE_COUNT})],n=[];else if(0===n.length)r.hasUnsupportedExtensions?(B("unsupported-asset"),l=(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_UNSUPPORTED_ASSET_TITLE"),u=[(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_UNSUPPORTED_ASSET_MESSAGE",{supportedExtensions:s})]):r.hasOverSizedFiles&&(B("oversized-file"),l=(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_TITLE"),u=[(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_MESSAGE",{supportedExtensions:s})]);else if(n.some((e=>p.oR(e.extension)))&&n.some((e=>!p.oR(e.extension))))B("unsupported-file-type-mix",!0),l=(0,h.Iu)("DL_IMPORT_ERROR"),u=[(0,h.Iu)("DL_IMPORT_LIBRARY_ELEMENT_MIX_MESSAGE")],n=[];else if(a.length>0)if(u=a.map((e=>(0,h.Iu)(`DL_DESIGN_LIBRARY_NATIVE_${G[e][1]}`,{supportedExtensions:s}))),a.length>1)l=(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_MULTIPLE_ERRORS_TITLE");else{const e=a[0];l=(0,h.Iu)(`DL_DESIGN_LIBRARY_NATIVE_${G[e][0]}`),f=G[e][2],d.ZP.reportEvent("Add Assets","Element","add","element-warning",{event:{error_type:"batch-upload",error_desc:f},content:{category:"Bulk Upload"}})}var f;return{title:l,messages:u,files:n,library:e}}function z(e,t,r="DL_ARTWORK_LABEL"){if("string"==typeof t&&t)return t;const n=(0,h.Iu)(r),i=new RegExp("^"+n+"\\s+(\\d+)$");let o=0;return e.elements.forEach((e=>{const t=i.exec(e.name);if(t&&t[1]){const e=parseInt(t[1],10);e>o&&(o=e)}})),n+" "+(o+1)}function V(e){return l.Z.getLayerName().then((t=>z(e,t)))}function H(e,t,r,n){e?(d.ZP.setExtraEventMetrics("useElement",n),d.ZP.reportUseElement(e,t),r&&d.ZP.reportCreateLink(e.element,t),d.ZP.clearExtraEventMetrics("useElement")):v.Z.log("Error: reporting analytics for invalid representation")}function Y(e,t,r,n){H({type:"image/png",element:e},t,r,n)}function W(e,t,r,n={}){if(o.Z.DISABLE_CREATE_ELEMENT_METRIC_OPTYPES.includes(n.opType)&&(n.disableReport=!0),e)try{d.ZP.setExtraEventMetrics("createElement",n);const i=e.createElement(t,r);return A.ZP.sendCreateElementEvent(i,n),i}catch(e){d.ZP.clearExtraEventMetrics("createElement")}}function $(e,t,r){return!!g.Z.isLibraryWritable(e,t,r)||(s.Z.showError((0,h.Iu)("DL_ERROR_EDIT_READ_ONLY_LIBRARY",{name:e.name})),!1)}function K(e){return!!e.library.isWritable||(s.Z.showError((0,h.Iu)("DL_ERROR_EDIT_READ_ONLY_ELEMENT")),!1)}function q(e){if(e&&e.name)return(0,f.aS)(e.name,150).trim()}function X(e){if((e=u.Z.sortByOrder(e)).some((e=>!(0,f.Ax)(e.order)))){const t=(0,f.Tg)(e.length);e.forEach(((e,r)=>e.order=t[r]))}else for(let t=0;t<e.length-1;t++){const r=e[t],n=r.order,i=e[t+1].order;if(n===i){const n=e[t-1]&&e[t-1].order;r.order=(0,f.Tk)(n,i)}}}class J{constructor(e,t){this.element=e,this.group=t}get order(){return this.element.getOrderInGroup(this.group)}set order(e){this.element.setOrderInGroup(this.group,e)}}function Q(e,t,r,n){const i=(n=Object.assign({merge:!0},n)).merge,o=i&&(0,w.GI)(e.library);e.library.beginOperation(),X(e.library.getGroups());const a=(t||r).parent;e.parent=a,e.order=(0,f.Tk)(t&&t.order,r&&r.order),i&&le(!1,e,e.library,e.library,a,o,o),e.library.endOperation()}function ee(e,t){return e.isGroup?function(e,t){if(!t)return;const r=(0,w.GI)(e.library);return e.name=t,le(!1,e,e.library,e.library,e.parent,r,r)}(e,t):(e.name=t,e)}function te(e,t,r,n){if(r||n||(n=u.Z.sortByOrder(e.getGroups())[0]),!t){const i=(0,w.GI)(e),o=i.root,a=i.branches,s=n||r,c=s?a[s.id].parent:o;t=(0,w.xr)(c)}const i=(0,f.Tk)(r&&r.order,n&&n.order);return e.createGroup(t,i)}function re(e,t,r,n=!0){if(0===e.length)return;if(!t)return e[0].library.beginOperation(),e.forEach((e=>{e.getGroups()[0]&&e.setOrderInGroup(e.getGroups()[0],void 0)})),void e[0].library.endOperation();if(!r){const e=function(e){const t=e.library.elements.filter((t=>t.getGroups()[0]===e));return u.Z.sortByOrderInGroup(e,t)}(t),n=e[e.length-1];r=n?(0,f.Tk)(n.getOrderInGroup(t)):""}const i=(0,f.Tg)(e.length);n&&(e=g.Z.getElementsInViewOrder(e)),t.library.beginOperation(),e.forEach(((e,n)=>{e.group||e.setOrderInGroup(t,r+i[n])})),t.library.endOperation(),g.Z.setGroupCollapsed(t.id,!1)}function ne(e,t,r,n=!1){const i=t&&t.getGroups()[0],o=r&&r.getGroups()[0],a=i||o;a&&(a.library.beginOperation(),function(e){X(e.library.elements.filter((t=>t.getGroups()[0]===e)).map((t=>new J(t,e))))}(a));const s=t&&t.getOrderInGroup(a),c=r&&r.getOrderInGroup(a);re(e,a,(0,f.Tk)(s,c)),a&&a.library.endOperation(),n&&e.length>0&&y.Z.setItemPendingScroll(e[0])}function ie(e){const t={},r={};return e.forEach((e=>{t[`${e.library.id}#${e.id}`]=e,r[e.library.id]=e.library})),Object.keys(r).some((e=>r[e].elements.some((e=>!t[`${e.library.id}#${e.id}`]&&e.dependencies.some((e=>t[`${e.library.id}#${e.id}`]))))))}function oe(e,t){b.ZP.openDialog("confirm",{title:(0,h.Iu)("DL_DELETE_ELEMENTS"),message:(0,h.Iu)("DL_DELETE_ELEMENTS_MESSAGE",{num:e.length}),okText:(0,h.Iu)("DL_DELETE"),onClickOK:t})}function ae(e,t,r,n){const i=`DL_${e.toUpperCase()}`;b.ZP.openDialog("confirm",{title:(0,h.Iu)(i),message:(0,h.Iu)(`${i}_${t.toUpperCase()}_${r}`),okText:(0,h.Iu)(i),onClickOK:n})}function se(e,t,r){ae(e,t,"WITH_DEPENDENTS",r)}function ce(e,t,r,n,i=!1,o=!0){if(e&&o&&ie(t))return void se("move",t.length>1?"elements":"element",(()=>ce(e,t,r,n,i,!1)));const a=new _.T("Element "+(e?"Move":"Copy")),s=t.map(((e,t)=>({element:e,index:t,modified:e.modified}))),c=u.Z.sortByModified(s,!0),l=new Map,p=[],d=c.map((({element:t,index:n})=>{const i=t.library;if(e&&i===r)return;e&&!l.has(i.id)&&(i.beginOperation(),l.set(i.id,i));return(e?i.moveElement(t,r):i.copyElement(t,r)).then((e=>p[n]=e))})),h={};return r.beginOperation(),Promise.all(d).then((()=>{if(i)for(let e=0;e<t.length;e++){const n=t[e].getGroups()[0];if(n){let i=h[n.id];i||(i=r.getGroupById(n.id),i&&i.name===n.name||(i=te(r,n.name)),h[n.id]=i),p[e].setOrderInGroup(i,t[e].getOrderInGroup(n))}}else re(p.length>0?p:t,n);return a.done(),p})).finally((()=>{r.endOperation(),l.forEach((e=>e.endOperation()))}))}function le(e,t,r,n,i,o,a){const s=r!==n,c=(0,w.hL)(t),l=i?a.branches[i.id]:a.root,u=(0,w.Nt)(t,l)[0];if(!u)return t;const p=(0,w.fr)(t,u);return E.Z.panel.toastManager.openToast("undoMergeGroups",{undo:()=>(e&&s?ce(e,c,r,null,!1,!1):Promise.resolve()).then((()=>{(s?[o,a]:[o]).forEach((e=>{(0,w.r5)(e)}))}))}),p}function ue(e,t,r,n,i=!0,o=!0,a=!0){if(!t||!r)return;const s=(0,w.hL)(t);if(e&&i&&o&&ie(s))return void se("move","group",(()=>ue(e,t,r,n,i,!1,a)));if(i&&a&&function(e){const t={};return e.forEach((e=>t[`${e.library.id}#${e.id}`]=e)),e.some((e=>e.dependencies.some((e=>!t[`${e.library.id}#${e.id}`]))))}(s))return void ae(e?"move":"copy","group","WITH_DEPENDENCIES",(()=>ue(e,t,r,n,i,o,!1)));const c=t.library,l=(0,w.GI)(c),u=(0,w.GI)(r);return r.beginOperation(),c.beginOperation(),(0,w.SH)(t,r,n,{isMove:e,includeContents:i}).then((i=>(n&&g.Z.setGroupCollapsed(n.id,!1),le(e,i,t.library,r,n,l,u)))).catch((r=>{v.Z.log(r),e?d.ZP.reportError("Group Operations","Group",r&&r.description,"context-menu","move-group-error",{content:{category:"Right Click"}},t.library):d.ZP.reportError("Add Group","Group",r&&r.description,"context-menu","copy-group-error",void 0,t.library)})).finally((()=>{r.endOperation(),c.endOperation()}))}function pe(e,t,r){const n=[];if(!e.representations.some((e=>p.Mu(e.type)))){const t=e.createRepresentation("image/png","rendition");n.push(t.setContentFromPath(r))}return e.setThumbnailCache(t,r).catch((()=>{})),Promise.all(n)}function de(e){return e.isExternalLink&&!e.getCachedContentPath()&&!e.getCachedExternalLinkError()}function he(e){const t=a.Z.isDownloadInProgress(e),r=function(e){const t=e.representations.find((e=>e.getExternalLinkDownloadProgress()));return t&&t.getExternalLinkDownloadProgress()}(e);return{isDownloadPending:t,percentDownloaded:r,hasFailed:-1===r}}function fe(e){return e.representations.some(de)?e.modified-1:e.modified}function me(e){const t=e.getPrimaryRepresentation();if(t){const r=p.i_(e.type,t.type);return r&&r.badge}}function ge(e){if(e){const t=p.i_(e.element.type,e.type);return t&&t.exts&&t.exts[0]}}function ve(e){return ge(e.getPrimaryRepresentation())}function ye(e){e.representations.forEach((e=>{de(e)&&e.getContentPath()}))}function be(e){const t={};return c.ZP.libraries.forEach((r=>{t[r.id]=g.Z.isLibraryWritable(r,!1,!0)&&m.Z.canAddElements(r,e)})),t}function _e(e,t){const r=o.Z.currentProduct.config.defaultLibrarySortState||"name";Object.assign({sortBy:r,filterBy:"all",searchText:"",isAscending:"name"!==r},t);const n=t.sortBy,i=t.filterBy,a=t.searchText,s=t.isAscending;let c;return e=Ee(i,e),a&&(e=(0,I.GZ)(a,e)),k.Z.get("brandFeatureEnabled")&&(c=Ee("brand",e),e=Ee("notBrand",e)),"modified"===n?(e=u.Z.sortByModified(e,s),c&&(c=u.Z.sortByModified(c,s),e=c.concat(e)),e):"created"===n?(e=u.Z.sortByCreated(e,s),c&&(c=u.Z.sortByCreated(c,s),e=c.concat(e)),e):(e=u.Z.sortByName(e,s),c&&(c=u.Z.sortByName(c,s),e=c.concat(e)),e)}function Ee(e,t){switch(e){case"personal":case"yours":return t.filter((e=>!(Fe(e)||je(e)||Ne(e)||Ge(e))));case"shared":return t.filter((e=>Fe(e)&&!Ge(e)));case"public":return t.filter((e=>je(e)));case"team":return t.filter((e=>Ne(e)));case"notAdded":return[];case"brand":return t.filter((e=>(0,D.Ol)(e)));case"notBrand":return t.filter((e=>!(0,D.Ol)(e)));case"active":return t.filter((e=>{var t;return E.Z.libraryManager.isLibraryActive(e)&&e.id!==(null===(t=E.Z.libraryManager.publishedDocumentLibrary)||void 0===t?void 0:t.id)}));case"drafts":return t.filter((e=>(0,D.QE)(e)));case"created":return t.filter((e=>function(e){return E.Z.libraryManager.userId===e.createdBy}(e)&&(0,D.ns)(e,t)));case"published":return t.filter((e=>(0,D.Hc)(e)));case"all":return t.filter((e=>(0,D.ns)(e,t)));default:return t}}function we(e){return e.representations.some((e=>p.kJ(e.type)))}new Proxy({},{get:(e,t)=>(console.warn("LibraryUtils.libraryActions is deprecated, use this.context.libraryActions instead"),E.Z.panel.libraryActions[t])});function Le(){const e=R((c.ZP.getInstalledVersion("ACCC")||"0.0").split(".").map(Number),2),t=e[0],r=e[1];return t>5||5===t&&r>=3}function xe(e){return Me(e)||je(e)}function Se(e){if("group"===g.Z.viewByState){c.ZP.currentLibrary.beginOperation();const t=te(c.ZP.currentLibrary);e.length>0&&!g.Z.isLibrariesSearchMode()&&re(e,t),c.ZP.currentLibrary.endOperation(),y.Z.revealGroup(t),g.Z.resetMode(),E.Z.panel.viewManager.startRename(t)}}function Oe(e){return e.match(/[\\/]/gm)?o.Z.RENAME_STATES.SLASH_ELEMENT:o.Z.RENAME_STATES.VALID}function Te(e,t){return e.length>o.Z.MAX_INPUT_STRING_LENGTH?o.Z.RENAME_STATES.INVALID_LIBRARY_LENGTH:e.endsWith(".")?o.Z.RENAME_STATES.INVALID_LIBRARY_PERIOD:Ie(e)?t&&Pe(e,t)?o.Z.RENAME_STATES.DUPLICATE_LIBRARY:o.Z.RENAME_STATES.VALID:o.Z.RENAME_STATES.INVALID_CHARACTER}function Ie(e){if(!e)return!1;const t=e.trim(),r=t.match(/[/:*\\?"|<>]/),n=t.endsWith("."),i=t.length>0&&t.length<=o.Z.MAX_INPUT_STRING_LENGTH,a=o.Z.WINDOWS_RESERVED_NAMES.find((e=>e.toLowerCase()===t.toLowerCase()));return!r&&!n&&!a&&i}function Pe(e,t){const r=e.trim().toLowerCase();return!!c.ZP.libraries.find((e=>e.name&&e.name.toLowerCase()===r&&e.parentDirectoryId&&t.id===e.parentDirectoryId))}function Ce(e){if(e&&(Fe(e)||Ne(e))){return(e.visibleCollaborators||[]).map((e=>e.email)).filter(Boolean).join(", ")}return""}function Ae(e){return e?Ne(e)?(0,h.Iu)("DL_LIBRARY_STATUS_TEAM"):je(e)?(0,h.Iu)("DL_LIBRARY_STATUS_PUBLIC"):Fe(e)?(0,h.Iu)("DL_LIBRARY_STATUS_SHARED"):(0,h.Iu)("DL_LIBRARY_STATUS_PERSONAL"):""}function ke(e,t){if(e){if(o.Z.currentProduct.config.showShortenedSharingString&&t)return(0,D.Hc)(e)?(0,h.Iu)("DL_LIBRARY_LIST_FILTER_PUBLISHED"):Fe(e)?(0,h.Iu)("DL_LIBRARY_LIST_FILTER_SHARED"):(0,h.Iu)("DL_LIBRARY_LIST_FILTER_YOURS");if(Fe(e)&&!Ne(e)){if(e.collaborators.length){const r=e.visibleCollaborators;if(t){const e=[],t=e=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.email);return"owner"===e.role?(0,h.Iu)("DL_INFO_OWNER",{name:t}):t};if(r.forEach((r=>{const n=t(r);if(n)if("owner"===r.role){const t=e[0];t?(e[0]=n,e.length<o.Z.MAX_COLLABORATORS&&e.push(t)):e.push(n)}else e.length<o.Z.MAX_COLLABORATORS&&e.push(n)})),r.length>e.length){const t=r.length-e.length;e.push((0,h.Iu)("DL_INFO_MORE_COLLABORATORS",{number:t}))}return e}return r.length>1?(0,h.Iu)("DL_INFO_COLLABORATORS",{number:r.length}):(0,h.Iu)("DL_INFO_COLLABORATOR")}return t&&Me(e)?(0,h.Iu)("DL_INFO_SHARED_WITH_YOU"):(0,h.Iu)("DL_INFO_SHARED")}if(je(e))return(0,h.Iu)("DL_INFO_PUBLIC");if(Ne(e)){const t=c.ZP.platformFolders.find((t=>t.id===e.parentDirectoryId))||{};return k.Z.get("enableProjects")?[t.name]:[t.name||(0,h.Iu)("DL_INFO_TEAM"),t.ownerName]}return(0,h.Iu)("DL_INFO_ONLY_YOU")}}function De(){let e=o.Z.NATIVE_DROP_ALLOWED_FILE_EXTENSIONS;return(c.ZP.isRestrictedAccount||o.Z.currentProduct.config.disableImport)&&(e=o.Z.NATIVE_DROP_ALLOWED_FILE_EXTENSIONS.filter((e=>!p.oR(e)))),e}function Ne(e){var t;const r="incoming"===e.ownership&&"org"===e.ownerType,n=null===(t=c.ZP.projects)||void 0===t?void 0:t.some((t=>{var r;return(null==t?void 0:t.id)===(null===(r=e.project)||void 0===r?void 0:r.id)}));return Boolean("incoming"===e.ownership&&e.project||r)&&n}function Re(e){return c.ZP.platformFolders.find((t=>t.id===e.parentDirectoryId))}function Me(e){return("incoming"===e.ownership||o.Z.currentProduct.config.adminFilterFallback&&!function(e){return E.Z.libraryManager.userId===e.owner}(e))&&!Ne(e)}function je(e){return"public"===e.ownership}function Ze(e){return["private","outgoing"].includes(e.ownership)}function Fe(e){var t;return Me(e)||"outgoing"===e.collaboration||"outgoing"===(null===(t=e.collaboration)||void 0===t?void 0:t.state)}function Be(e){return e&&e.isPushedToServer&&!e.toolkitId&&!je(e)&&!e.isDeletedFromServer&&e.isWritable&&!c.ZP.isRestrictedAccount}function Ge(e){var t;return(0,D.Hc)(e)&&Me(e)&&!(null!==(t=e.bookmark)&&void 0!==t&&t.id)}function Ue(){return 0!==c.ZP.platformFolders.length}function ze(e){const t=!Ne(e)||e.isParentWritable;return Boolean(!e.toolkitId&&!e.documentId&&e.isWritable&&t)}function Ve(e){if(o.Z.currentProduct.config.readOnlyPanelUI)return!1;const t=Ne(e)?e.isParentWritable&&e.isWritable:!xe(e)&&!e.toolkitId;return Boolean(!e.isDeletedFromServer&&t)}function He(){return(c.ZP.syncErrors||[]).reduce(((e,t)=>{const r=c.ZP.getLibraryById(t.libraryId);return t.code===c.ZP.errors.EXCEEDS_QUOTA&&r?e.concat([r]):e}),[])}function Ye(){return c.ZP.syncErrors.reduce(((e,t)=>{const r=c.ZP.getLibraryById(t.libraryId);if(r&&"incoming"!==r.ownership)return e;const n=t.code===c.ZP.errors.EXCEEDS_QUOTA;return r&&n?e.concat([r]):e}),[])}function We(e){return x.a3(e)}function $e(e,t){const r=s.Z.getLocale(),n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}),i=new Intl.DateTimeFormat(r,{numeric:"auto"}),o=Date.now(),a=1e3,c=6e4,l=36e5,u=24*l,p=7*u,d=30*u,f=365*u,m=[{type:f,divisor:f,unit:"year"},{type:d,divisor:d,unit:"month"},{type:p,divisor:p,unit:"week"},{type:u,divisor:u,unit:"day"},{type:l,divisor:l,unit:"hour"},{type:c,divisor:c,unit:"minute"},{type:3e4,divisor:a,unit:"seconds"},{type:0,divisor:1,text:(0,h.Iu)("DL_JUST_NOW")}],g=("object"==typeof o?o.getTime():new Date(o).getTime())-("object"==typeof e?e:new Date(e)).getTime(),v=Math.abs(g);if(t&&g>t)return i.format(e);for(var y=0,b=m;y<b.length;y++){const e=b[y];if(v>=e.type){const t=Math.round(Math.abs(g)/e.divisor),r=g<0;return e.unit?n.format(r?t:-t,e.unit):e.text}}}function Ke(e){if((0,D.Hc)(e))return N.createElement(n.Z,{id:"Building",height:12,"data-test-id":"building-icon"});if(Ne(e)){var t;const r=null===(t=c.ZP.platformFolders)||void 0===t?void 0:t.find((t=>t.id===e.parentDirectoryId));return k.Z.get("enableProjects")?N.createElement(i.Z,{project:r}):N.createElement(n.Z,{id:"Building",height:12,"data-test-id":"building-icon"})}return Fe(e)?N.createElement(n.Z,{id:"UserGroup",height:12,"data-test-id":"user-group-icon"}):je(e)?N.createElement(n.Z,{id:"Globe",height:12,"data-test-id":"globe-icon"}):N.createElement(n.Z,{id:"User",height:12,"data-test-id":"user-alone-icon"})}function qe(e,t){const r=o.Z.currentProduct.config.disabledLibraryContextMenuActions||[];e.stopPropagation();let n=[];n=o.Z.currentProduct.config.useBrandActions?E.Z.panel.brandActions.getBrandActions(t):E.Z.panel.libraryActions.getLibraryActions(t,!1,!1,!0).filter((e=>!r.includes(e.id))),L.Z.openContextMenu(n,e)}function Xe(e){const t=o.Z.currentProduct.config.disableDelimitedNamesConversion;if(!g.Z.isLibraryWritable(e)||t)return!1;const r=[...e.elements,...e.getGroups()];return!!r.find((e=>e.isGroup?(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.includes("/")})(e):(0,w.kQ)(e)))}function Je(e){return S.Z.isStyleguideEnabled()&&(g.Z.isLibraryWritable(e)||e.documentationElementCount>0)}function Qe(e){return(0,h.Iu)(e.documentationElementCount>0?"DL_FLYOUT_VIEW_STYLEGUIDE":"DL_FLYOUT_ADD_STYLEGUIDE")}const et=new WeakMap;function tt(e){if(et.get(e))return et.get(e);const t=T()();return et.set(e,t),t}function rt(e){const t="group"===g.Z.viewByState?(()=>{const t=[],r=e=>{e.item&&e.item.isGroup&&t.push(`${e.item.classifierName}#${e.item.id}`),e.children&&e.children.forEach(r)},n=g.Z.elementSortState,i=w.GI(e,{sortBy:n}).root;return r(i),t})():a.Z.getElementTypes(),r="role"===g.Z.viewByState?"type":g.Z.viewByState;e.loadElements({sectionType:r,sections:t,field:"modified"===g.Z.elementSortState?"modifiedDate":"name",direction:g.Z.elementSortDescendingState?"descending":"ascending"})}function nt(e){e.preventDefault(),e.stopPropagation(),o.Z.currentProduct.config.noFlyoutMenu&&P.Z.showDebugMenu()&&e.shiftKey&&e.altKey&&L.Z.openContextMenu((0,C.I0)(),e)}function it(e,t,r=!1){switch(e){case t.RETRYABLE_SERVER_ERROR:return"server";case t.NETWORK_ERROR:case t.LOGGED_OUT:return"network";case t.FS_ERROR:return"fs";case t.EXCEEDS_QUOTA:return r?"sharedQuota":"quota";case t.ACCESS_DENIED:return"noAccess";case t.REQUEST_FAILED:return"requestFailed";default:return"general"}}},30131:(e,t,r)=>{"use strict";r.d(t,{A8:()=>Q,Az:()=>V,BF:()=>te,Bx:()=>R,Ds:()=>j,Em:()=>Z,Gh:()=>F,Hu:()=>C,I0:()=>P,LP:()=>Y,NA:()=>ee,Nn:()=>O,Oh:()=>z,Pi:()=>D,TZ:()=>$,UK:()=>k,WS:()=>q,_y:()=>ae,aF:()=>G,d$:()=>N,df:()=>J,f2:()=>H,gZ:()=>U,jg:()=>ne,kX:()=>M,m_:()=>oe,mr:()=>B,nR:()=>X,nd:()=>I,q4:()=>T,rT:()=>re,rb:()=>ie,tD:()=>A,uF:()=>x,v7:()=>K,w3:()=>S,yO:()=>L});var n=r(99386),i=r(93028),o=r(98218),a=r(76485),s=r(31870),c=r(76325),l=r(51461),u=r(16993),p=r(57806);function d(e,t,r,n){t?a.Z.launchInBrowserAsync(h(e,t,r,n)):a.Z.launchInBrowser(e)}function h(e,t,r,a,s){return c.Z.getAccessToken(i.ZP.userId).then((t=>{const i=c.Z.getEnvironment(),l={method:"POST",url:`https://${i.ims}/ims/jumptoken/v1`,headers:{"Content-type":"application/x-www-form-urlencoded","User-Agent":o.Z.getUserAgent()},body:y({client_id:i.clientId,bearer_token:t,target_client_id:r||"CreativeCloudWeb1",target_redirect_uri:e,target_scope:a||"openid,creative_cloud,read_organizations,additional_info.screen_name,additional_info.secondary_email",target_response_type:r===n.Z.STOCK_CLIENT_ID?"code":"token"})},u=new Request(l.url,l);return fetch(u).then((e=>e&&401!==e.status?e.json():Promise.reject(e))).then((e=>e.jump?e.jump:Promise.reject(e))).catch((t=>401!==t.status||s?e:(c.Z.clearAccessToken(),h(e,!0,r,a,!0))))})).catch((()=>e))}function f(){return c.Z.getEnvironment().ccwebHost}function m(e){return e.publicLinkId||e.assetId||e.id}function g(e){const t=f();let r=n.Z.CCWEB_LIBRARIES_URL;return r=r.replace(/ZZZZ/,t),r=r.replace(/YYYY/,m(e)),r}function v(e){const t=f();let r=n.Z.CCWEB_ELEMENT_URL;return r=r.replace(/ZZZZ/,t),r=r.replace(/YYYY/,m(e.library)),r=r.replace(/XXXX/,e.id),r}function y(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function b(e){const t=y(e);return t.length?"?"+t:""}function _(e){let t=a.Z.getLocale().substring(3).toLowerCase();return t="fr-CA"===a.Z.getLocale()?"_fr_ca":n.Z.AVAILABLE_HELP_LANGUAGES[t]?"_"+t:"",e+t}function E(){const e=l.ZP.addProductHeaders({});let t=a.Z.getLocale();return t&&0!==t.length||(t="en-US"),{"x-product":encodeURIComponent(e["X-Product"]),"x-product-location":encodeURIComponent(e["X-Product-Location"]),as_camptype:encodeURIComponent(n.Z.currentProduct.config.fullName),as_channel:"adobe_apps",as_campclass:"brand",as_campaign:"cc15_app",as_source:"app",as_content:"library",locale:t,sso_inbound:1}}function w(e,t){let r=!1;const i=(e,r,n)=>{t[e]&&n?t[e]+="%2C"+r:t[e]=r};if(e&&n.Z.STOCK_SEARCH_OPTIONS.forEach((t=>{e[t.id]&&(i("filters[content_type:"+t.param+"]",1),t.filterKey&&i("filters["+t.filterKey+"][]",t.filterValue,!0),r=!0)})),!r){s.Tu().forEach((e=>{i("filters[content_type:"+e.param+"]",1)}))}}function L(e){if(e){const t=g(e);l.ZP.reportOutgoingUrlEvent("Navigation","Flyout Menu","click","view-website",t),d(t,!0)}}function x(e,t){t=t||"Flyout Menu";const r=function(e){const t=f();let r=e?n.Z.CCWEB_LIBRARY_ARCHIVE_URL:n.Z.CCWEB_LIBRARIES_ARCHIVE_URL;return r=r.replace(/ZZZZ/,t),r=r.replace(/YYYY/,e&&m(e)),r}(e);l.ZP.reportOutgoingUrlEvent("Navigation",t,"click","view-deleted-items",r),d(r,!0)}function S(e,t,r){if(e){const n=r||{};t&&(n.section=t),l.ZP.reportEvent("Navigation","View Element on Website","click","success");d(v(e)+b(n),!0)}}function O(e){if(e){const t={dialog:"report_abuse"};l.ZP.reportEvent("Navigation","Report Abuse on Website","click","success");d(v(e)+b(t),!0)}}function T(e){if(e){const t=g(e)+"/styleguide";l.ZP.reportOutgoingUrlEvent("Styleguide","Flyout Menu","click","view-website",t),d(t,!0)}}function I(e){if(e){const t=g(e)+b({dialog:"collaborate",mv:n.Z.SHARE_LINK_HOST_TYPE_PARAM,mv2:n.Z.currentProduct.config.code});l.ZP.reportOutgoingUrlEvent("Library Operations","Collaboration","click","invite",t),d(t,!0)}}function P(e){const t=_(n.Z.LEARN_MORE_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation",e?"Flyout Menu":"","click","learn-more",t),d(t,!1)}function C(){const e=_(n.Z.LEARN_MORE_TEAMS_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation","Teams Onboarding","click","learn-more",e),d(e,!1)}function A(){const e=_(n.Z.LEARN_MORE_QUOTA_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation","Onboarding","click","learn-more-quota",e),d(e,!1)}function k(){var e;d(_(null!==(e=n.Z.currentProduct.config.customGroupLearnMoreLink)&&void 0!==e?e:n.Z.PATH_VIEW_URL_ROOT),!1)}function D(){const e=_(n.Z.WHATS_NEW_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation","Whats New","click","learn-more",e),d(e,!1)}function N(){const e=_(n.Z.BUSINESS_STORAGE_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation","Business Storage","click","learn-more",e),d(e,!1)}function R(){d(_(n.Z.FEEDBACK_URL_ROOT),!1)}function M(){d(_(c.Z.getEnvironment().supportContactGoURL),!1)}function j(e){let t=_(n.Z.SERVICE_ERROR_URL_ROOT);e&&(t=t+"#"+e),d(t,!1)}function Z(e){let t=_(n.Z.SERVICE_ERROR_URL_ROOT);return e&&(t=t+"#"+e),t}function F(){d(_(n.Z.INSTALL_CC_APP_URL_ROOT),!1)}function B(){return _(n.Z.INSTALL_CC_APP_URL_ROOT)}function G(){d(_(n.Z.UPDATE_CC_LIBRARIES_URL_ROOT),!1)}function U(){return _(n.Z.UPDATE_CC_LIBRARIES_URL_ROOT)}function z(e){if(e){const t=g(e)+b({dialog:"share",mv:n.Z.SHARE_LINK_HOST_TYPE_PARAM,mv2:n.Z.currentProduct.config.code});l.ZP.reportOutgoingUrlEvent("Library Operations","Collaboration","click","share-link",t),d(t,!0)}}function V(){const e=_(n.Z.XD_MISSING_LINKS_ASK_FOR_ACCESS_LEARN_MORE);l.ZP.reportOutgoingUrlEvent("ResolveBrokenLinksDialog","Ask collaborators for access","click","learn-more",e),d(e,!1)}function H(){const e=_(n.Z.XD_MIGRATE_TO_CCLIBRARIES_LEARN_MORE);l.ZP.reportOutgoingUrlEvent("ResolveBrokenLinksDialog","Migrate xd to cc libraries","click","learn-more",e),d(e,!1)}function Y(){const e=_(n.Z.XD_UI_KITS_ROOT);return d(e,!1),e}function W(){return"https://"+c.Z.getEnvironment().stockWebHost}function $(e,t){const r=E();r.similar_content_id=e,w(t,r);d(W()+n.Z.STOCK_SEARCH_PATH+b(r),!0,n.Z.STOCK_CLIENT_ID,n.Z.STOCK_TARGET_SCOPE)}function K(e,t,r=!1){t=t||{};const i=E();i.k=encodeURIComponent(e),w(t,i);let o=`${W()}${n.Z.STOCK_SEARCH_PATH}${r?"/audio":""}${b(i)}`;if(l.ZP.reportOutgoingUrlEvent("Stock","Search","click","show-more",o,{ui:{filter:u.Z.getStockSearchOptionValuesArray().length?u.Z.getStockSearchOptionValuesArray().join(", "):"none"}},!0),t.template){const e=n.Z.currentProduct.config.code,t=n.Z.STOCK_SEARCH_PRODUCT_TEMPLATE_ID_MAP[e];t&&t.forEach((e=>{o+="&filters[template_type_id][]="+e}))}d(o,!0,n.Z.STOCK_CLIENT_ID,n.Z.STOCK_TARGET_SCOPE)}function q(e,t){const r=t===n.Z.AUDIO_ELEMENT_TYPE;let i=W()+"/"+e+b(E());r&&(i=W()+"/search/audio"+b(E())+"&k="+e),d(i,!0,n.Z.STOCK_CLIENT_ID,n.Z.STOCK_TARGET_SCOPE)}function X(e){const t=function(e){const t=c.Z.getEnvironment().linkServiceWebHost;let r=n.Z.PUBLIC_LIBRARY_URL;return r=r.replace(/ZZZZ/,t),r=r.replace(/YYYY/,e),r}(e);d(t,!0,n.Z.PUBLIC_LINK_CLIENT_ID,n.Z.PUBLIC_LINK_TARGET_SCOPE)}function J(){return h(function(){const e="Staging"===c.Z.getEnvironment().label?"-stg":"";let t=`${n.Z.CCWEB_TEAM_LIBRARIES_URL}${e}`,r=a.Z.getLocale();r&&0!==r.length||(r="en-US");const i=c.Z.getEnvironment().clientId,o=n.Z.ASSETS_WEB_SPECIALTY_LANGUAGE_MAP[r];return t+=b({locale:o||r.substr(0,2),source:i,theme:p.ZP.reactSpectrumTheme}),t}())}function Q(){d(_(n.Z.STOCK_LICENSE_INFORMATION_URL_ROOT),!1)}function ee(){d(W(),!0,n.Z.STOCK_CLIENT_ID,n.Z.STOCK_TARGET_SCOPE)}function te(){d(function(){const e=f();let t=n.Z.CCWEB_BROWSE_ALL_URL;return t=t.replace(/ZZZZ/,e),t}(),!0)}function re(){let e="staging"===a.Z.imsEnvironment?n.Z.CCWEB_MARKETPLACE_STAGE:n.Z.CCWEB_MARKETPLACE_PROD;e=e.replace(/ZZZZ/,a.Z.getLocale()),d(e,!1)}function ne(){d(_(n.Z.DELETE_HELPX_ROOT),!1)}function ie(){d(_(n.Z.PUBLISH_LEARN_MORE_ROOT),!1)}function oe(e,t){let r="staging"===a.Z.imsEnvironment?n.Z.EXPRESS_STAGE:n.Z.EXPRESS_PROD;return r=r.replace(/ZZZZ/,e?"brands":"libraries"),r=r.replace(/XXXX/,t),r}function ae(e,t,r){let i=n.Z.FLOODGATE_URL;return i=i.replace(/ZZZZ/,c.Z.getEnvironment().personalizationHost),i+=b(Object.assign({clientId:e},t?{ISUserSelectedID:t}:null,r?{CommonOrgID:r}:null)),i}},86351:(e,t,r)=>{"use strict";function n(e,t){let r,n;e?(r=e,n={}):(r={},n=r);const i={};function o(e){return!t||i[e]}return t&&t.forEach((function(e){i[e]=[]})),n.notify=function(e,...t){if(i[e]){const r=i[e].slice();i[e]=i[e].filter((e=>!e.isOneTime)),r.forEach((e=>e(...t)))}},n.hasListeners=function(e){return i[e]&&i[e].length>0},r.addListener=function(e,t,r){if(!o(e))throw new Error("Invalid listener event: "+e);i[e]=i[e]||[],i[e].push(t),r&&(t.isOneTime=!0)},r.removeListener=function(e,t){if(!o(e))throw new Error("Invalid listener event: "+e);i[e]=i[e]||[];const r=i[e].indexOf(t);-1!==r&&i[e].splice(r,1)},n}r.d(t,{N:()=>n})},17179:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(76485);const i=new class{init(e=n.Z.getLocale()){this._collator=new Intl.Collator(e,{numeric:!0})}compare(e,t){return e===t?0:"string"==typeof e&&"string"==typeof t?this._collator.compare(e,t):e<t?-1:1}_sort(e,t,r){return e.sort(((e,n)=>r?this.compare(t(e),t(n)):this.compare(t(n),t(e))))}sortByCreated(e,t=!1){return this._sort(e,(e=>e.created),t)}sortByModified(e,t=!1){return this._sort(e,(e=>e.modified),t)}sortByName(e,t=!0){return this._sort(e,(e=>e.name),t)}sortByOrder(e){return e.sort(((e,t)=>e.order<t.order?-1:e.order>t.order?1:0))}sortByOrderInGroup(e,t){return t.sort(((t,r)=>{const n=t.getOrderInGroup&&t.getOrderInGroup(e),i=r.getOrderInGroup&&r.getOrderInGroup(e);return n<i?-1:n>i?1:0}))}}},68370:(e,t,r)=>{"use strict";r.d(t,{o:()=>s,s:()=>a});var n=r(93028),i=r(47320),o=r(8733);function a(e,t,r=!0){(t=t.filter((e=>e))).length>0&&(e.length>0&&r&&e.push({divider:!0}),e.push.apply(e,t))}function s(e,t){const r=o.Z.getLayerInfo();if(!r)return[];const s=[],c=i.Z.getAddOperations(r,n.ZP.currentLibrary),l=r=>({label:r.name,onClick:()=>{r.interactive?r.apply(e):r.apply(n.ZP.currentLibrary,t).then((r=>{r=Array.isArray(r)?r:[r],e&&e(r,t)}))},divider:r.divider,icon:r.icon,style:r.style}),u=c.filter((e=>e.interactive)).map((e=>l(e))),p=c.filter((e=>!e.interactive)).map((e=>l(e)));return a(s,u),a(s,p),p.length>1&&s.push({label:"DL_ADD_ALL",icon:"Add",onClick:()=>Promise.all(p.map((e=>e.onClick(n.ZP.currentLibrary,t))))}),s}},97536:(e,t,r)=>{"use strict";r.d(t,{y6:()=>F,V1:()=>U,iy:()=>G,tf:()=>q,g9:()=>H,XI:()=>M,J2:()=>z,Kf:()=>$,zW:()=>X,Sy:()=>K,Lp:()=>Y,UK:()=>j,k3:()=>Z,cb:()=>V,ny:()=>Q,Zc:()=>re,jh:()=>W});var n,i,o=r(93028),a=r(79799),s=r(16993),c=r(84074),l=r(50777),u=r(50265);const p={init:{"click-add-button":"onboarding"},onboarding:{},end:{}};let d=(n=class{constructor(){var e,t,r,n;this.name="CaptureOnboarding",e=this,t="_state",n=this,(r=i)&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}notifyAction(e){this._state=p[this._state][e]||"end","onboarding"===this._state&&(0,l.Sz)()?c.ZP.openDialog("captureOnboardingPopover"):c.ZP.closeDialog()}},h=n.prototype,f="_state",m=[u.observable],g={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"init"}},y={},Object.keys(g).forEach((function(e){y[e]=g[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=m.slice().reverse().reduce((function(e,t){return t(h,f,e)||e}),y),v&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(v):void 0,y.initializer=void 0),void 0===y.initializer&&(Object.defineProperty(h,f,y),y=null),i=y,n);var h,f,m,g,v,y,b=r(46903),_=r(99386),E=r(84824),w=r(48919),L=r(5837),x=r(30131),S=r(89526);function O(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */O=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function T(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){T(o,n,i,a,s,"next",e)}function s(e){T(o,n,i,a,s,"throw",e)}a(void 0)}))}}const P={firstEnteredLibrary:{check:function(){return!s.Z.isRootView()&&!s.Z.isOneUpMode()&&o.ZP.currentLibrary.isWritable},start:function(){const e="shown"===D("newUserRoot");e&&s.Z.setTourInProgress(!0);c.ZP.openDialog("firstEnteredLibraryOnboardingPopoverTour",{isNewUserTour:e},(()=>{e&&F("groupsPathView"),Z()}))}},groupsPathView:{check:function(){const e=o.ZP.libraries.filter((e=>!e.collaboration||"outgoing"===e.collaboration));return e.some((e=>e.elements.length>1))&&M()},start:j},capture:{check:function(){return(0,l.BQ)()&&!s.Z.isNewUserState()&&!s.Z.isRootView()},start:function(){s.Z.setCurrentWorkflow(new d)}},quotaUpdate:{check:ee,start:te}},C={panelRootOnboarding:{check:$,start:function(){const e=Date.now();(0,u.when)((()=>["ok","syncing"].includes(o.ZP.syncStatus.state)),(()=>{Date.now()-e<=5e3&&s.Z.isRootView()&&c.ZP.openDialog("rootViewOnboardingPopover",{},W)}))}},quotaUpdate:{check:ee,start:te}},A=["teamLibraryOneUpPanel","teamsLibraryOpen","teamsLibraryCreate"];function k(e){return`${o.ZP.userId}#onboarding#${e}`}function D(e){return a.Z.getLocalMachineSetting(k(e))}function N(e,t){return R.apply(this,arguments)}function R(){return(R=I(O().mark((function e(t,r){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.Z.setLocalMachineSetting(k(t),r);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(){return s.Z.viewByState===_.Z.VIEW_BY_MODES.GROUP&&!s.Z.isRootView()&&"shown"!==D("groupsPathView")}function j(){M()&&c.ZP.openDialog("pathViewOnboarding",{},Z)}function Z(){if(_.Z.currentProduct.config.disableOnboarding)return;const e=Object.keys(P).find((e=>"shown"!==D(e)&&P[e].check()));e&&P[e].start()}function F(e){return B.apply(this,arguments)}function B(){return(B=I(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D(t)){e.next=3;break}return e.next=3,N(t,"shown");case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(){N("newUserRoot",null),N("librariesManager",null),N("deleteNestedGroupContents",null),N("pathViewEditToast",null),N("treeViewEditToast",null),N("projectsBanner",null),Object.keys(P).forEach((e=>N(e,null))),Object.keys(C).forEach((e=>N(e,null))),A.forEach((e=>N(e,null)))}function U(){N("librariesManager",null)}function z(){return"shown"!==D("projectsBanner")}function V(e){"shown"!==D("librariesManager")&&e.dialogManager.openDialog("managerOnboardingPopoverTour")}function H(){return"shown"!==D("deleteNestedGroupContents")}function Y(e){H()&&c.ZP.openDialog("confirm",{title:(0,E.Iu)("DL_DELETE_NESTED_TITLE"),message:(0,E.Iu)("DL_DELETE_NESTED_MESSAGE"),okText:(0,E.Iu)("DL_DELETE"),hasDismissCheckbox:"deleteNestedGroupContents",onClickOK:()=>o.ZP.deleteGroups(e,{deleteContents:!0,checkForDependents:!1,hasSeenWarning:!0})})}function W(){if(_.Z.currentProduct.config.disableOnboarding)return;const e=Object.keys(C).find((e=>"shown"!==D(e)&&C[e].check()));e&&C[e].start()}function $(){return!_.Z.currentProduct.config.disableOnboarding&&"shown"!==D("panelRootOnboarding")&&!_.Z.currentProduct.config.mustHaveCurrentLibrary}function K(){(function(){if(!_.Z.currentProduct.config.showCCDTeamsOnboarding)return!1;const e="shown"===D("teamsLibraryOpen");return!s.Z.isRootView()&&!s.Z.isOneUpMode()&&b.$_(o.ZP.currentLibrary)&&!e})()&&c.ZP.openDialog("teamsLibraryCCDOneUpOnboardingDialog")}function q(){return b.IA()&&"shown"!==D("teamsLibraryCreate")}function X(e,t){return J.apply(this,arguments)}function J(){return(J=I(O().mark((function e(t,r){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(q()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,F("teamsLibraryCreate");case 4:s.Z.setRemoveDialogPadding(!0),c.ZP.openDialog("teamsLibraryCreateCCDOnboardingDialog",{removePadding:!0,onCreate:t,onClose:r});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(){(function(){if(_.Z.currentProduct.config.disableOnboarding&&!_.Z.currentProduct.config.showTeamsOnboarding||_.Z.currentProduct.config.disableCCDTeamsOneUpOnboarding)return;const e="shown"===D("teamLibraryOneUpPanel");return!s.Z.isRootView()&&!s.Z.isOneUpMode()&&b.$_(o.ZP.currentLibrary)&&!e})()&&c.ZP.openDialog("panelTeamLibraryOneUpOnboardingPopover")}function ee(){return"shown"!==D("quotaUpdate")}function te(){let e,t;const r=()=>{e&&e(),t&&t()};t=(0,u.when)((()=>!!o.ZP.userQuota),(()=>{r();const e=o.ZP.userQuota,t=o.ZP.storageUsed;(e.storage_used+t)/e.storage_quota*100>=_.Z.QUOTA_WARNING_THRESHOLD&&c.ZP.openDialog("quotaWarningPopover",{},s.Z.isRootView()?W:Z)})),e=(0,u.reaction)((()=>s.Z.isRootView()),r)}function re(e){if(!function(e){return"shown"!==D(`${e}ViewEditToast`)}(e=e.toLowerCase()))return;const t=e===_.Z.VIEW_BY_GROUP_MODES.PATH?(0,E.Iu)("DL_GROUP_PATH_VIEW_EDIT_TOAST_MESSAGE"):S.createElement(L.Z,{linkClickMethods:{learnMore:()=>(0,x.UK)()},html:(0,E.Iu)("DL_GROUP_TREE_VIEW_EDIT_TOAST_MESSAGE")});w.Z.panel.toastManager.openToast("message",{message:t}),F(`${e}ViewEditToast`)}},30460:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(26964);class i{constructor(e){this._startTime=Date.now(),this._name=e,this._timeout=setTimeout((()=>{n.Z.log(`[PERFORMANCE] Metric: ${this._name}, Duration: Max time reached (1hr)`)}),36e5)}done(){n.Z.log(`[PERFORMANCE] Metric: ${this._name}, Duration: ${Date.now()-this._startTime}ms`),clearTimeout(this._timeout)}}},20290:(e,t,r)=>{"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.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,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(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 h(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,o)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=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 i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,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,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function o(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 a(e,t=(()=>{})){return new Promise((r=>{setTimeout((()=>{r(t())}),e)}))}function s(e,t){let r;return(...n)=>new Promise(((i,o)=>{r&&clearTimeout(r),r=setTimeout((()=>{t(...n).then(i,o),r=void 0}),e)}))}function c(e,t,r){return l.apply(this,arguments)}function l(){return(l=o(n().mark((function e(t,r,i){var o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i();case 2:if(!(o=e.sent)){e.next=5;break}return e.abrupt("return",Promise.resolve(o));case 5:if(!(r<=0)){e.next=7;break}return e.abrupt("return",Promise.reject(o));case 7:return e.abrupt("return",a(t).then((()=>c(t,r-1,i))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e,t){let r,n;return function(...i){return r||n&&!(n<Date.now()-t)?Promise.resolve():(r=!0,e(...i).finally((()=>{n=Date.now(),r=!1})))}}r.d(t,{Ds:()=>s,P2:()=>u,XD:()=>c,gw:()=>a})},10441:(e,t,r)=>{"use strict";r.d(t,{GZ:()=>s,OX:()=>a,fs:()=>i});var n=r(47320);function i(e){var t;return!(e=e&&e.trim().toLowerCase()&&('"'===(t=e).charAt(0)&&'"'===t.charAt(t.length-1)?t.substring(1,t.length-1):t))}function o(e){if(!(e=e&&e.trim().toLowerCase()))return[];let t;return t=e.length>2&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?[e.substring(1,e.length-1)]:e.indexOf(" ")>-1||e.indexOf("/")>-1?e.split(/[ /]+/):[e],t}function a(e,t){if(!(t&&Array.isArray(t)&&t.length&&e))return[];const r=o(e);if(0===r.length)return[];const i=(e=>t=>n.Z.getElementSearchFunction(t.type)(t,e))(r);let a=[];return t.forEach((e=>a=a.concat(e.getFilteredElements(i)))),a}function s(e,t){if(!t||!Array.isArray(t)||!e)return[];const r=o(e);return 0===r.length?[]:t.filter((e=>{const t=e.name.toLowerCase();for(let e=0;e<r.length;e++){const n=r[e];if(!t.includes(n))return!1}return!0}))}},25585:(e,t,r)=>{"use strict";r.d(t,{Ax:()=>b,BJ:()=>w,CI:()=>L,E4:()=>f,NJ:()=>d,Tg:()=>E,Tk:()=>_,Wf:()=>x,Zj:()=>p,aS:()=>u,q8:()=>h});var n=r(21947),i=r.n(n),o=r(76485),a=r(99386),s=r(2169),c=r(5837),l=r(89526);function u(e,t,r=!0){const n=r?"...":"";return e.length<=t?e:i().ucs2.encode(i().ucs2.decode(e).slice(0,t))+n}function p(e,t){const r=e.join(a.Z.PATH_VIEW_GROUP_SEPARATOR),n=t.maxWidth,i=t.className;if(!n||1===e.length)return r;if((0,s.E0)(r,i).width>=n){const r="..."===e[1];return 2===e.length||r&&3===e.length?["...",e[e.length-1]].join(a.Z.PATH_VIEW_GROUP_SEPARATOR):p([e[0],"...",...e.slice(r?3:2)],t)}return r}function d(e){return i().ucs2.decode(e).length}function h(e){const t=Math.floor(e/6e4),r=(e%6e4/1e3).toFixed(0);return t+":"+(r<10?"0":"")+r}function f(e){if(!e.length)return a.Z.DEFAULT_TOAST_TIMEOUT;const t=o.Z.getLocale(),r=a.Z.DISPLAY_TIME_PER_CHARACTER[t]||a.Z.DISPLAY_TIME_PER_CHARACTER["en-US"];return Math.max(e.length*r,a.Z.DEFAULT_TOAST_TIMEOUT)}function m(e,t,r){return e=(e=e<t?t:e)>r?r:e}function g(e,t){return String.fromCharCode(Math.round((e.charCodeAt(0)+t.charCodeAt(0))/2))}const v="a",y=/^[a-z]*[b-z][a-z]*$/;function b(e){return"string"==typeof e&&y.test(e)}function _(e,t){if(e=m(e||v,v,"{"),(t=m(t||"{",v,"{"))===e)return e;if(t<e){const r=e;e=t,t=r}for(let r=0;r<e.length;r++){const n=e[r],i=t[r];if(!i||n<i){const t=g(n,i);return t===i?e.substring(0,r+1)+_(e.substring(r+1),"{"):e.substring(0,r)+t}}return e+_(v,t.substring(e.length))}function E(e,t,r){if(0===e)return[];const n=_(t,r),i=Math.floor(e/2),o=e-i-1,a=E(i,t,n),s=E(o,n,r);return a.concat([n]).concat(s)}function w(e,t){return(e=e.replace(/[<>:"/\\|?*\x00-\x1F]/g,"_").trim())||t}function L(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function x(e){const t=e.message,r=e.actions;if(r&&r.validationNeeded){const e=r.validationNeeded,n=e.delimiter,i=`<a href="${e.href}">${e.text}</a>`,o=t.replace(n,i);return l.createElement(c.Z,{className:"panel-toast-sharesheet-message",html:o})}return t}},16203:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>v,Aj:()=>C,BN:()=>_,DO:()=>O,GD:()=>b,Hb:()=>A,Id:()=>f,JG:()=>S,Mr:()=>I,O7:()=>x,cu:()=>g,hR:()=>h,mi:()=>L,nP:()=>m,pJ:()=>E,xO:()=>P,yv:()=>w,zH:()=>y,zQ:()=>T});var n=r(84824),i=r(62061),o=r(74379),a=r(99386),s=r(93028),c=r(47320),l=r(90885);let u;function p(){return u||(u={Underline:(0,n.Iu)("DL_TEXT_ATTRIBUTE_UNDERLINE"),Strikethrough:(0,n.Iu)("DL_TEXT_ATTRIBUTE_STRIKETHROUGH"),Kerning:(0,n.Iu)("DL_TEXT_ATTRIBUTE_KERNING"),Alignment:(0,n.Iu)("DL_TEXT_ATTRIBUTE_ALIGNMENT"),Hyphenate:(0,n.Iu)("DL_TEXT_ATTRIBUTE_HYPHENATE"),KerningAuto:(0,n.Iu)("DL_TEXT_KERNING_AUTO"),KerningOptical:(0,n.Iu)("DL_TEXT_KERNING_OPTICAL"),KerningMetricsRomanOnly:(0,n.Iu)("DL_TEXT_KERNING_METRICSROMANONLY"),"Alignment.LEFT_ALIGN":(0,n.Iu)("DL_TEXT_ALIGNMENT_LEFT"),"Alignment.CENTER_ALIGN":(0,n.Iu)("DL_TEXT_ALIGNMENT_CENTER"),"Alignment.RIGHT_ALIGN":(0,n.Iu)("DL_TEXT_ALIGNMENT_RIGHT"),"Alignment.LEFT_JUSTIFIED":(0,n.Iu)("DL_TEXT_ALIGNMENT_LEFT_JUSTIFY"),"Alignment.CENTER_JUSTIFIED":(0,n.Iu)("DL_TEXT_ALIGNMENT_CENTER_JUSTIFY"),"Alignment.RIGHT_JUSTIFIED":(0,n.Iu)("DL_TEXT_ALIGNMENT_RIGHT_JUSTIFY"),"Alignment.FULLY_JUSTIFIED":(0,n.Iu)("DL_TEXT_ALIGNMENT_FULL_JUSTIFY")}),u}function d(e){return e.textDecorationObject?[e.textDecorationObject.adbeUnderline&&"underline",e.textDecorationObject.adbeStrikethrough&&"line-through"].filter((e=>e)):e.textDecoration||[]}function h(e){return d(e).includes("underline")}function f(e){return d(e).includes("line-through")}function m(e={},t="capitalize"){if(e.fontFeatureSettingsObject&&"FontCapsOption.ALLCAPS"===e.fontFeatureSettingsObject.adbeCapitalization)return"uppercase";return{capitalize:"uppercase",titlecase:t}[e.textTransform]||e.textTransform}function g(e={}){const t=e.fontFeatureSettings;return t&&t.includes("subs")?"subscript":t&&t.includes("sups")?"superscript":void 0}function v(e={}){if(void 0!==e.adbeTracking)return e.adbeTracking;if(e.letterSpacing&&"em"===e.letterSpacing.type)return 1e3*e.letterSpacing.value;if(e.letterSpacing&&e.fontSize&&e.fontSize.value){const t=(0,i.hI)(e.fontSize,"px");return(0,i.hI)(e.letterSpacing,"px")/t*1e3}}function y(e){const t=[],r=p();if(_(e)){const r=w(e),n=E(e);t.push(_(e)+(n?` ${n}`:"")+(r?` — ${r}`:""))}if(h(e)&&t.push(r.Underline),f(e)&&t.push(r.Strikethrough),e.adbeAutoLeading){const e=(0,n.Iu)("DL_TEXT_LEADING_AUTO");t.push((0,n.Iu)(a.Z.currentProduct.config.customTextStyleLeadingString||"DL_TEXT_ATTRIBUTE_LEADING",{fontLeading:e}))}else if(e.lineHeight){const r=e.lineHeight.value&&Math.round(100*e.lineHeight.value)/100,i=(0,n.Iu)("DL_TEXT_ATTRIBUTE_FONT_SIZE",{size:r,type:e.lineHeight.type});t.push((0,n.Iu)(a.Z.currentProduct.config.customTextStyleLeadingString||"DL_TEXT_ATTRIBUTE_LEADING",{fontLeading:i}))}if(e.paragraphSpacing){const r=e.paragraphSpacing.value&&Math.round(100*e.paragraphSpacing.value)/100,i=(0,n.Iu)("DL_TEXT_ATTRIBUTE_FONT_SIZE",{size:r,type:e.paragraphSpacing.type});t.push((0,n.Iu)("DL_TEXT_ATTRIBUTE_PARAGRAPH_SPACING",{fontLeading:i}))}switch(e.adbeIlstKerningMethod){case"AutoKernType.AUTO":t.push(r.Kerning+": "+r.KerningAuto);break;case"AutoKernType.OPTICAL":t.push(r.Kerning+": "+r.KerningOptical);break;case"AutoKernType.METRICSROMANONLY":t.push(r.Kerning+": "+r.KerningMetricsRomanOnly)}const i=v(e);void 0!==i&&t.push((0,n.Iu)(a.Z.currentProduct.config.customTextStyleTrackingString||"DL_TEXT_ATTRIBUTE_TRACKING",{fontTracking:i}));const o=L(e);return o&&t.push(`${r.Alignment}: ${o}`),e.adbeHyphenation&&t.push(r.Hyphenate),t.filter((e=>e))}function b(e={}){var t;return(null==e||null===(t=e.adbeFont)||void 0===t?void 0:t.postScriptName)||e.postScriptName}function _(e={}){var t;return(null==e||null===(t=e.adbeFont)||void 0===t?void 0:t.family)||(null==e?void 0:e.fontFamily)}function E(e={}){var t,r;const n=null===(r=e=(null===(t=e.adbeFont)||void 0===t?void 0:t.style)||e.fontStyle)||void 0===r?void 0:r.toLowerCase();if(n&&!n.includes("normal")&&!n.includes("regular"))return e}function w(e={}){if(e.fontSize){const t=e.fontSize.value,r=e.fontSize.type;if(void 0===t||void 0===r)return"";const i=Math.round(100*e.fontSize.value)/100,o="pt"===r.toLowerCase()?(0,n.Iu)("DL_UNIT_PT"):r;return(0,n.Iu)("DL_TEXT_ATTRIBUTE_FONT_SIZE",{size:i,type:o})}}function L(e={}){const t=p();if(e.adbeParaAlignment)return t[e.adbeParaAlignment]}function x(e={},t=a.Z.DEFAULT_MIN_PREVIEW_FONT_SIZE,r=a.Z.DEFAULT_MAX_PREVIEW_FONT_SIZE){const n=e.fontSize&&e.fontSize.value?(0,i.hI)(e.fontSize,"px"):a.Z.DEFAULT_PREVIEW_FONT_SIZE;return Math.min(Math.max(n,t),r)}function S(e={}){return e.color&&Array.isArray(e.color)&&e.color.length>0}function O(e={},t="#ffffff"){if(!S(e))return!1;const r=o.su(o.Nh(e.color));return o.mj(o.$W(t),r)<=a.Z.CONTRAST_THRESHOLD}function T(e={},t=a.Z.DEFAULT_MIN_PREVIEW_FONT_SIZE,r=a.Z.DEFAULT_MAX_PREVIEW_FONT_SIZE,n=!0){const i=e.color?o.m3(e.color):"#000000",c=b(e);let l=s.ZP.isFontAvailable(e)?[c,_(e)]:[];l=l.filter((e=>e)).map((e=>`"${e}"`)).join(", "),l=l||"inherit";const u=x(e,t,r),p=`${u}px`,h=c?void 0:e.fontWeight,f=c?["oblique"].find((t=>t===e.fontStyle)):E(e),g=m(e),v=d(e)[0];let y;return n&&(y=void 0!==e.adbeTracking?e.adbeTracking/1e3+"em":e.letterSpacing&&`${e.letterSpacing.value}${e.letterSpacing.type}`),{color:i,fontFamily:l,fontSize:u,fontWeight:h,lineHeight:p,textTransform:g,textDecoration:v,fontStyle:f,letterSpacing:y}}function I(e){const t=_(e),r=e&&e.adbeFont&&e.adbeFont.style||(0,n.Iu)("DL_INFO_REGULAR"),i=w(e);return(t?`${t} `:"")+r+(i?` — ${i}`:"")}function P(e,t){if(!e)return{};const r={properties:y(e),missingFont:!s.ZP.isFontAvailable(e)},n=b(e),i=n&&s.ZP.getTypekitFontData(n);return!t&&i&&i.fontId&&(r.isTypekitFont=!0,r.isSyncable=i.fontActions&&0===i.fontActions.length,r.isUpgradable=i.fontActions&&i.fontActions.indexOf("upgrade")>-1),r.isDisabled=t,t&&(r.disabledMessage=`DL_ERROR_UNSUPPORTED_${a.Z.currentProduct.config.translationSuffix}`),r}function C(e){const t=e.name,r=e.group,i=e.missingFont,o=e.isSyncable,a=e.isUpgradable,s=e.description,c=e.isDisabled,l=e.disabledMessage;let u="";return u=o?"DL_TYPEKIT_SYNC_TOOLTIP":a?"DL_TYPEKIT_UPGRADE_TOOLTIP":"DL_ERROR_MISSING_FONT",[t,r,...e.properties||[],l&&(0,n.Iu)(l),!c&&i&&(0,n.Iu)(u),s&&{divider:!0},s]}function A(e){return c.Z.getComponent(e.type)===l.Z}},13293:(e,t,r)=>{"use strict";r.d(t,{R:()=>w,h:()=>L});var n,i,o=r(84824),a=r(47320),s=r(93028),c=r(89526),l=r(50265),u=r(62631),p=r(2652),d=r.n(p),h=r(72279);let f=(0,u.Pi)(((i=class extends c.Component{render(){return c.createElement(h.Z,{className:"toggle-switch-wrapper",onClick:this.props.onChange},c.createElement("div",{className:"spectrum-ToggleSwitch",onClick:this.props.onChange},c.createElement("input",{type:"checkbox",className:"spectrum-ToggleSwitch-input",id:"toggle-onoff-0",checked:this.props.checked,readOnly:!0}),c.createElement("span",{className:"spectrum-ToggleSwitch-switch"})))}}).defaultProps={checked:!1},i.propTypes={checked:d().bool,onChange:d().func.isRequired},n=i))||n;var m,g,v=r(53849);function y(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let b=(0,u.Pi)((y((g=class extends c.Component{constructor(...e){super(...e),this.onClick=()=>{"sync"===this.typekitAction&&(this.isFontActivated?this.typekitFont.unsync(this.style,"info-panel",this.element):this.typekitFont.sync(this.style,"info-panel",this.element))}}get element(){if(v.Z.selection.length>=1)return v.Z.selection[v.Z.selection.length-1]}get typekitFont(){const e=this.style&&this.style.adbeFont&&this.style.adbeFont.postScriptName;return s.ZP.getTypekitFontData(e)}get typekitAction(){const e=this.typekitFont.fontActions;return e&&0===e.length?"sync":e&&e.includes("upgrade")?"upgrade":void 0}get style(){const e=a.Z.getShortType(this.element.type),t=a.Z.findUsableRepresentation(this.element,`application/vnd.adobe.${e}+json`);return t&&t.getValue(e,"data")}get isMissingFont(){return!s.ZP.isFontAvailable(this.style)}get isFontActivated(){return"sync"===this.typekitAction&&s.ZP.isFontAvailable(this.style)}render(){if(!this.typekitFont)return null;if("sync"===this.typekitAction){const e=this.isFontActivated?"DL_INFO_DEACTIVATE_FONT":"DL_INFO_ACTIVATE_FONT";return c.createElement(c.Fragment,null,c.createElement("div",{className:"font-activation-switch"},c.createElement(f,{checked:this.isFontActivated,onChange:this.onClick})),(0,o.Iu)(e))}return"upgrade"===this.typekitAction?c.createElement("div",null,(0,o.Iu)("DL_INFO_SUBSCRIBE_FONT")):c.createElement("div",null,(0,o.Iu)("DL_INFO_UNAVAILABLE_FONT"))}}).prototype,"element",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"element"),g.prototype),y(g.prototype,"typekitFont",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"typekitFont"),g.prototype),y(g.prototype,"style",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"style"),g.prototype),y(g.prototype,"isMissingFont",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"isMissingFont"),g.prototype),y(g.prototype,"isFontActivated",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"isFontActivated"),g.prototype),m=g))||m;var _=r(16993),E=r(89526);function w(e){const t=a.Z.getShortType(e.type),r=a.Z.findUsableRepresentation(e,`application/vnd.adobe.${t}+json`),n=r&&r.getValue(t,"data"),i=n&&n.postScriptName||n&&n.adbeFont&&n.adbeFont.postScriptName;return s.ZP.getTypekitFontData(i)}function L(e){const t=w(e);return t&&t.fontId&&!_.Z.isOneUpMode()?[{label:(0,o.Iu)("DL_INFO_STATUS"),value:E.createElement(b,null)}]:[]}},62061:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>p,ME:()=>u,Mb:()=>c,Ny:()=>l,d3:()=>a,hI:()=>o,zW:()=>s});var n=r(84824),i=r(99386);function o(e,t){if(!e||!t)return;let r=e.type,n=e.value;if(n=parseFloat(n),isNaN(n))return;if(r===t)return n;const i=72/25.4,o=96/25.4;if("pt"===t){if("mm"===r)return n*i;if("px"===r)return.75*n}else if("px"===t){if("pt"===r)return n/.75;if("mm"===r)return n*o}else if("mm"===t){if("pt"===r)return n/i;if("px"===r)return n/o}}function a(e,t){const r=i.Z.BYTE_MULTIPLIER;if(Math.round(e)<=0)return(0,n.Iu)("DL_FILESIZE_KB",{size:"--"});let o="B";e>=r&&(o="KB",(e/=r)>=r&&(o="MB",(e/=r)>=r&&(e/=r,o="GB")));const a=Math.pow(10,t||0);return e=(0,n.SU)(Math.round(e*a)/a),(0,n.Iu)("DL_FILESIZE_"+o,{size:e})}function s(e){let t=Math.round(e/1e3),r=Math.floor(t/60);if(t-=60*r,t<10&&(t="0"+t),r){const e=Math.floor(r/60);return r-=60*e,e?(r<10&&(r="0"+r),(0,n.Iu)("DL_DURATION_HMS",{hours:e,minutes:r,seconds:t})):(0,n.Iu)("DL_DURATION_MS",{minutes:r,seconds:t})}return(0,n.Iu)("DL_DURATION_S",{seconds:t})}function c(e){return(0,n.Iu)("DL_FRAMERATE",{framerate:e.toString()})}function l(e,t){return(0,n.Iu)("DL_DIMENSIONS",{width:e.toString(),height:t.toString()})}function u(e){return(0,n.Iu)("DL_TEMPO",{tempo:e.toString()})}function p(e,t=2){return e&&"number"==typeof e&&e%1!=0?e.toFixed(t):e}},69834:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(93028),i=r(79799),o=r(76325);const a=window.EventTarget||class{};class s extends a{constructor(){super()}createEvent(e,t){return new CustomEvent(e,{detail:t})}getLibraries(){return n.ZP.libraries}resolveElementReference(e){return n.ZP.resolveElementReference(e)}getServiceInfo(){return i.Z.getServiceInfo()}getEnvironment(){return o.Z.getEnvironment().label}getLibraryById(e){return n.ZP.getLibraryById(e)}getDeviceDescription(){return n.ZP.DEVICE_DESCRIPTION}writeToClipBoard(e){return new Promise(((t,r)=>{navigator.clipboard.writeText(e).then((()=>t()),(()=>r())).catch((()=>r()))}))}}},94201:function(e,t,r){"use strict";function n(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||o(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){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 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}}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}var s=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return c(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),r(1438);const p=u(r(1438)),d=l(r(3570)),h=u(r(61635)),f=u(r(89526)),m=u(r(39002));class g{constructor(e){this.valid=!1,this.column=null,this.totalItemWidth=0,this.totalItemHeight=0,this.totalItemCount=0,this.type=e}invalidate(){this.valid=!1,this.totalItemCount=0,this.totalItemWidth=0,this.totalItemHeight=0}setItemSize(e,t){this.totalItemWidth+=e,this.totalItemHeight+=t,this.totalItemCount++,this.width=Math.round(this.totalItemWidth/this.totalItemCount),this.height=Math.round(this.totalItemHeight/this.totalItemCount)}setFromCss(e){null==this.cssInline&&(this.cssInline=(e.display||"").indexOf("inline")>=0),this.cssMargin=d.default.fromCssMargin(e);let t=e.getPropertyValue("--column-count-self").trim(),r=null;if(t){let n="auto"===t?null:parseInt(t),i=null;if(null==n&&(i=(0,d.parseCssSize)(e.getPropertyValue("--optimum-width")),0===i)){let t=(0,d.parseCssSize)(e.minWidth),r=(0,d.parseCssSize)(e.maxWidth);if(0===t||0===r)throw new Error("Expected either --optimum-width or min-width and max-width");i=Math.ceil((t+r)/2)}r={count:n,optimumWidth:i}}this.column=r}}class v{constructor(e){this.x=0,this.y=0,this.width=0,this.height=0,this.rendered=!1,this.type=e}}function y(e){return null!=e&&1===e.nodeType}const b=(()=>{const e=[];return t=>{let r=e[t];return void 0===r&&(r=e[t]=`${t}px`),r}})();class _{constructor(e){this.itemProperties={},this.classProperties=new Map,this.containerPadding=new d.default(0),this.scrollAnchor=null,this.isScrolling=!1,this.lastScrollTop=0,this.scrollDirection=0,this.scrollDuration=.5,this.scrollWaitAfterFinish=.2,this.container=e.container,this.containerWidth=this.container.clientWidth,this.container[_.symbol]=this,this.horizontal=e.horizontal,this.itemLookup=new Map,this.itemKey=e.itemKey,this.itemType=e.itemType,this.itemRect=e.itemRect,this.onresize=this.onresize.bind(this),this.resizeObserver=new p.default(this.onresize),this.updateAndLayout=this.updateAndLayout.bind(this),this.container.addEventListener("scroll",(e=>{this.updateAndLayout()})),this.container.addEventListener("wheel",(e=>{this.cancelScrollAnimation()})),this.placeholder=document.createElement("div"),this.container.appendChild(this.placeholder),this.update(e)}update(e){if(this.items=e.items,this.renderKeys=e.renderKeys,this.setRenderKeys=e.setRenderKeys,this.onLayout=e.onLayout,!this.isScrolling){let e=new Set;var t,r=i(this.items);try{for(r.s();!(t=r.n()).done;){let r=t.value,n=this.itemKey(r);if(e.has(n))throw console.error("Duplicate items:",this.itemLookup.get(n),r),new Error(`Item keys must be unique. Found duplicate: ${n}`);e.add(n),this.itemLookup.set(n,r)}}catch(e){r.e(e)}finally{r.f()}this.updateAndLayout(!0)}return this.renderKeys}static getReactElements(e,t,r,n,o,a){const s=new Map;var c,l=i(e);try{for(l.s();!(c=l.n()).done;){let e=c.value;s.set(r(e),e)}}catch(e){l.e(e)}finally{l.f()}return t.map(((e,t)=>{const r=String(t),i=s.get(e);if(null==i){const t=a[e];return t||null}return a[e]=f.default.cloneElement(o(i),{key:r,"data-key":e,"data-type":n(i)})}))}getItemRect(e,t){if(null==e&&null!=t&&(e=this.itemLookup.get(t)||null),null!=e){let r=null!=this.itemRect?this.itemRect(e):null;if(null!=r){if(null==r.x||null==r.y||null==r.width||null==r.height)throw new Error(`Item rect missing required properties (x,y,width,height): ${JSON.stringify(r)}`);return r}if(null==t&&(t=this.itemKey(e)),null!=t){let e=this.itemProperties[t];if(null!=e)return e}}return null}updateAndLayout(e=!1){this.isScrolling=!0;let t=this.updateIndexes();this.ensureElementsObservedAndSized(),(t||e)&&(this.layoutChildren(),this.onLayout&&this.onLayout()),this.isScrolling=!1}layoutChildren(){let e=window.getComputedStyle(this.container),t=(0,d.parseCssSize)(e.getPropertyValue("--column-gap")),r=(0,d.parseCssSize)(e.getPropertyValue("--row-gap")),n=this.getElementLookupByKey(),o=0,a=0,s=this.containerWidth-this.containerPadding.horizontal,c=0;var l,u=i(this.items);try{for(u.s();!(l=u.n()).done;){let e=l.value,i=this.itemKey(e),u=n.get(i);if(null!=this.itemRect){let t=this.getItemRect(e,i);if(u){const e=u.style;e.position="absolute",e.left=b(t.x),e.top=b(t.y),e.width=b(t.width),e.height=b(t.height)}c=t.y+t.height;continue}let p=this.itemType(e),d=this.getItemProperties(i,p),h=this.classProperties.get(p);if(!h)break;let f,g,v=h.cssMargin,y=h.cssInline,_=d.width+v.horizontal,E=d.height+v.vertical,w=h.column;if(w){let e=w.count||Math.max(1,Math.round(s/(w.optimumWidth+t))),r=Math.round(o/(_+t));_=Math.floor((s-t*(e-1))/e);let n=r*(_+t),i=s-(e-r)*(_+t)+t,a=1==e?0:r/(e-1);o=Math.round((0,m.default)(n,i,a))}if(o>0&&!this.horizontal&&(!y||o+_>s)&&(o=0,a=c+r),f=o+this.containerPadding.left,g=a+this.containerPadding.top,this.horizontal&&(s=Math.max(s,o+_)),c=Math.max(c,a+E),y?o+=_+t:a+=E+r,d.x=f,d.y=g,u){d.rendered=!0;const e=u.style;"absolute"!==e.position&&(e.position="absolute"),e.left=b(f),e.top=b(g),null!=w&&(e.width=b(_)),y||(e.width=b(s-v.horizontal))}}}catch(e){u.e(e)}finally{u.f()}this.scrollAnimationCallback(),this.horizontal?this.placeholder.style.width=b(s):this.placeholder.style.height=b(c)}getElementLookupByKey(){let e=new Map,t=0;for(let r=this.container.firstChild;null!=r;r=r.nextSibling){if(y(r)){let n=r.dataset.key;if(n)e.set(n,r);else if(null!=r.previousSibling){let e=this.items[t];throw new Error(`Virtualizer item error: Function and Class components must pass through ...otherProps to rendered element. ie: <div {...otherProps}></div>. Check element created for ${JSON.stringify(e)}`)}}t++}return e}ensureElementsObservedAndSized(){this.resizeObserver.observe(this.container);for(let e=this.container.firstChild;null!=e;e=e.nextSibling)1===e.nodeType&&(this.resizeObserver.observe(e),this.onElementSized(e))}getVisibleRect(){return{x:this.container.scrollLeft,y:this.container.scrollTop,width:this.container.clientWidth,height:this.container.clientHeight}}get pageSize(){return this.container[this.horizontal?"clientWidth":"clientHeight"]}get prerenderOtherDirection(){return 100}get prerenderScrollDirection(){return 500}get isManualLayout(){return null!=this.itemRect}getRenderItemIndices(e){let t=this.horizontal,r=Math.max(0,this.container[t?"scrollLeft":"scrollTop"]),n=this.pageSize,o=this.prerenderScrollDirection,a=this.prerenderOtherDirection;0===e&&(o=a);let s=r+n,c=n+o+a;r=Math.max(0,r-(e>=0?a:o)),s=r+c;const l=new Set,u=new Set,p=!this.isManualLayout?new Map:null;let d=t?"width":"height",h=t?"x":"y";for(let e=0;e<this.items.length;e++){const t=this.items[e],n=this.itemKey(t);u.add(n);const i=this.getItemRect(t,n);if(i&&i[h]+i[d]>r&&i[h]<=s)l.add(n);else if(null!=p){let e=this.itemType(t);p.has(e)||p.set(e,n)}}if(0===l.size)for(let e=0;e<30&&e<this.items.length;e++)l.add(this.itemKey(this.items[e]));const f=this.getFocusedItemKey();if(f&&l.add(f),p&&p.size>0){var m,g=i(p.values());try{for(g.s();!(m=g.n()).done;){let e=m.value;l.add(e)}}catch(e){g.e(e)}finally{g.f()}}return[l,u]}getClippedScrollTarget(e){const t=this.container[this.horizontal?"scrollWidth":"scrollHeight"],r=this.container[this.horizontal?"clientWidth":"clientHeight"];return Math.max(0,Math.min(e,t-r))}getFocusedItemKey(){for(let e=document.activeElement;null!=e;e=e.parentNode)if(y(e)){const t=e.dataset.key;if(t)return t}return null}updateIndexes(){if(0===this.pageSize)return;const e=this.getClippedScrollTarget(this.container.scrollTop);this.container.scrollTop!==e&&(this.container.scrollTop=e);const t=e-this.lastScrollTop;this.lastScrollTop=e;const r=this.previousItems||this.items;this.previousItems=this.items;this.items.length!==r.length?this.scrollDirection=0:0!==t&&(this.scrollDirection=Math.sign(t));const i=n(this.getRenderItemIndices(this.scrollDirection),2),o=i[0],a=i[1],s=e=>{if(null!=e){const t=this.itemLookup.get(e);if(t)return this.itemType(t)}return null};let c=this.renderKeys,l=(0,h.default)(c,o,s,s);const u=this.getElementLookupByKey();return l.forEach((e=>{let t=u.get(e);if(t){const r=!a.has(e);t.style.display=r?"none":""}})),(c.length!==l.length||JSON.stringify(c)!==JSON.stringify(l))&&(this.setRenderKeys(l),!0)}onElementSized(e){e===this.container&&(this.containerPadding=d.default.fromCssPadding(getComputedStyle(e)));let t=e.dataset,r=t.key,n=t.type;if(r&&n){let t=this.itemProperties[r];null==t&&(t=this.getItemProperties(r,n));const i=e.offsetWidth,o=e.offsetHeight;if(i>0&&o>0){let r=i!==t.width||o!==t.height;if(t.width=i,t.height=o,r){let t=this.classProperties.get(n);if(null==t||!t.valid){let r=getComputedStyle(e);null==t&&(t=new g(n),this.classProperties.set(n,t)),t.setFromCss(r)}t.setItemSize(i,o)}}}}onresize(e){var t,r=i(e);try{for(r.s();!(t=r.n()).done;){let e=t.value;if(e.target===this.container){this.containerWidth=this.container.clientWidth;var n,o=i(this.classProperties.values());try{for(o.s();!(n=o.n()).done;){n.value.invalidate()}}catch(e){o.e(e)}finally{o.f()}this.placeholder.style.width="1px",this.placeholder.style.height="1px";for(let e in this.itemProperties){let t=this.itemProperties[e];t.width=0,t.height=0}}else this.onElementSized(e.target)}}catch(e){r.e(e)}finally{r.f()}this.updateAndLayout(!0)}getItemTargetScrollPosition(e){var t,r;let n=this.itemLookup.get(e.itemKey);if(n){let i=null!==(t=e.itemPin)&&void 0!==t?t:0,o=null!==(r=e.windowPin)&&void 0!==r?r:0;const a=this.getItemRect(n);if(a){const e=this.container[this.horizontal?"clientWidth":"clientHeight"];return a[this.horizontal?"x":"y"]+i*a[this.horizontal?"width":"height"]-o*e}}return null}scrollToItem(e,t){var r,n,i;null!=t&&null!=t.behavior&&null==t.duration&&(t.duration="smooth"===t.behavior?.5:0);const o={itemKey:e,itemPin:null!==(r=null==t?void 0:t.position)&&void 0!==r?r:0,windowPin:null!==(n=null==t?void 0:t.position)&&void 0!==n?n:0,duration:null!==(i=null==t?void 0:t.duration)&&void 0!==i?i:.5};null!=this.getItemTargetScrollPosition(o)&&this.startScrollAnimation(o)}startScrollAnimation(e){this.scrollAnchor=e,this.scrollStartTime=Date.now(),this.scrollStartPosition=this.container[this.horizontal?"scrollLeft":"scrollTop"],this.scrollDuration=e.duration,this.scrollAnimationCallback()}cancelScrollAnimation(){null!=this.scrollAnimating&&("function"==typeof cancelAnimationFrame&&cancelAnimationFrame(this.scrollAnimating),delete this.scrollAnimating),this.scrollAnchor=null}scrollAnimationCallback(){let e=!1;if(delete this.scrollAnimating,null!=this.scrollAnchor){let t=this.getItemTargetScrollPosition(this.scrollAnchor);if(null!=t){let r=t-this.scrollStartPosition;const n=2e3;Math.abs(r)>n&&(r=Math.sign(r)*n);let i=(Date.now()-this.scrollStartTime)/1e3,o=Math.min(i,this.scrollDuration),a=t-(1-(this.scrollDuration>0?o/this.scrollDuration:1))*r;this.container[this.horizontal?"scrollLeft":"scrollTop"]=this.getClippedScrollTarget(a),e=i<this.scrollDuration+this.scrollWaitAfterFinish}}e?null==this.scrollAnimating&&"function"==typeof requestAnimationFrame&&(this.scrollAnimating=requestAnimationFrame(this.scrollAnimationCallback.bind(this))):this.cancelScrollAnimation()}getItemProperties(e,t){let r=this.itemProperties[e];null==r&&(r=this.itemProperties[e]=new v(t));let n=this.classProperties.get(t);return n&&(0===r.width&&(r.width=n.width),0===r.height&&(r.height=n.height)),r}static instance(e,t){let r=e[_.symbol];return null==r&&null!=t&&(r=new _(t)),r}static update(e){let t=_.instance(e.container,e);return t.update(e),t.renderKeys}}t.default=_,_.symbol=Symbol("VirtualManager.symbol")},77760:function(e,t,r){"use strict";const n=["items","itemKey","itemType","itemRect","scrollToItem","onLayout","cacheElements","style","children"];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 o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(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 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){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return u(t,e),t},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const h=p(r(89526)),f=d(r(94201)),m=d(r(9401));function g(e,t,r){if(null==e)return"function"==typeof t?t():void 0;if("function"==typeof e)return t=>{const n=e(t);return r&&r(n,t),n};if("string"==typeof e||"symbol"==typeof e)return t=>t[e];throw new Error(`Unsupported property: ${String(e)}`)}r(35582),t.default=(0,h.forwardRef)((function(e,t){let r=e.items,s=e.itemKey,l=e.itemType,u=e.itemRect,p=e.scrollToItem,d=e.onLayout,v=e.cacheElements,y=void 0===v||v,b=e.style,_=e.children,E=c(e,n),w="horizontal"===e.direction;const L=(0,h.useMemo)((()=>(0,m.default)(g(s,(()=>{const e=new Map(r.map(((e,t)=>[e,String(t)])));return t=>e.get(t)}),((e,t)=>{if("string"!=typeof e||0===e.length)throw new Error(`Invalid key, expected a unique string, actual: (${JSON.stringify(e||null)}) for item: ${JSON.stringify(t)}`)})))),[s,r]),x=(0,h.useMemo)((()=>(0,m.default)(g(l,(()=>()=>"default")))),[l,r]),S=(0,h.useMemo)((()=>g(u)),[u,r]);let O=a((0,h.useState)(new Array),2),T=O[0],I=O[1];const P=(0,h.useRef)();function C(e,t){const r=P.current.container;if(r&&t){const e=r.clientHeight,n=r.scrollHeight,i=Math.max(0,n-e),o=Math.max(0,Math.min(i,r.scrollTop+t));r.scrollTo({top:o})}}function A(e,t){let r=P.current.container;if(r){let n=f.default.instance(r);null==n||n.scrollToItem(e,t)}}function k(){var e;let t=null===(e=P.current)||void 0===e?void 0:e.container;return t?f.default.instance(t):null}function D(){return T}function N(e){let t=k();if(t){let r=t.getItemRect(null,e);if(r){return{x:r.x,y:r.y,width:r.width,height:r.height}}}return{x:0,y:0,width:0,height:0}}function R(){var e;return(null===(e=k())||void 0===e?void 0:e.getVisibleRect())||{x:0,y:0,width:0,height:0}}function M(e){e&&(P.current.container=e,T=f.default.update({container:e,horizontal:w,items:r,renderKeys:T,setRenderKeys:I,itemKey:L,itemType:x,itemRect:S,onLayout:d}),p&&A(p))}return null==P.current&&(P.current={}),(0,h.useImperativeHandle)(t,(()=>({scrollToItem:A,scrollBy:C,getRenderKeys:D,getItemRect:N,getVisibleRect:R,container:P.current.container})),[P.current.container]),P.current.container&&M(P.current.container),b=Object.assign({position:"relative",overflowX:w?"scroll":"hidden",overflowY:w?"hidden":"scroll",flex:"1 1 auto",zIndex:0},b),h.default.createElement("div",function(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){o(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}({ref:M,style:b},E),f.default.getReactElements(r,T,L,x,_,y?P.current:{}))}))},62624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},61635:(e,t)=>{"use strict";function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},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 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 n(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}Object.defineProperty(t,"__esModule",{value:!0});const i=()=>"default";t.default=function(e,t,n=i,o=i){let a=Math.max(e.length,t.size),s=function(e){let t=new Map;for(let r=0;r<e.length;r++)t.set(e[r],r);return t}(e),c=new Map,l=[];function u(e,t){l[t]=e,c.set(e,t)}var p,d=r(t);try{for(d.s();!(p=d.n()).done;){let e=p.value,t=s.get(e);null!=t&&u(e,t)}}catch(e){d.e(e)}finally{d.f()}let h=0;var f,m=r(t);try{for(m.s();!(f=m.n()).done;){let t=f.value;if(null==s.get(t)){let r=!1;for(let i=h;;i++){let a=e[i],s=null!=a?n(a):null,c=o(t);if(void 0===l[i]){if(r=!0,null==s||s===c){u(t,i);break}}else r||(h=i)}}}}catch(e){m.e(e)}finally{m.f()}for(let t=0;t<a;t++){if(void 0===l[t]){u(e[t],t)}}return l}},10206:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(r(77760),t),i(r(62624),t);var a=r(77760);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o(a).default}})},3570:(e,t)=>{"use strict";function r(e){if(e&&"none"!==e){if(e.endsWith("px"))return parseFloat(e.slice(0,-2));console.warn("Unsupported units: "+e)}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.parseCssSize=void 0,t.parseCssSize=r;class n{constructor(e,t=e,r=e,n=t){this.left=e,this.top=t,this.right=r,this.bottom=n}get horizontal(){return this.left+this.right}get vertical(){return this.top+this.bottom}static fromCssMargin(e){let t=e.margin||"",i=n.cache.get(t);return null==i&&n.cache.set(t,i=new n(r(e.marginLeft),r(e.marginTop),r(e.marginRight),r(e.marginBottom))),i}static fromCssPadding(e){let t=e.padding||"",i=n.cache.get(t);return null==i&&n.cache.set(t,i=new n(r(e.paddingLeft),r(e.paddingTop),r(e.paddingRight),r(e.paddingBottom))),i}toString(){return`Margin(${this.left},${this.top},${this.right},${this.bottom})`}}t.default=n,n.cache=new Map},1438:(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=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(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 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 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}Object.defineProperty(t,"__esModule",{value:!0}),t.UxpResizeObserver=void 0;const o=r(46662);class a{constructor(e){const t=this;this.elements=new Set,this.pendingEntries=[],this.externalObserver=e,this.internalObserver=function(){let e=this,r=e.offsetWidth,n=e.offsetHeight;t.queueCallback({target:e,contentRect:new DOMRect(0,0,r,n)})},this.queuedCallback=()=>{if(this.queuedCallbackId=null,this.pendingEntries.length>0){let t=this.pendingEntries;this.pendingEntries=[],e(t,this)}}}queueCallback(e){this.pendingEntries.push(e),null==this.queuedCallbackId&&(this.queuedCallbackId=setTimeout(this.queuedCallback,0))}observe(e,t){null!=t&&"border-box"!==t.box&&console.warn(`ResizeObserver shim only supports 'border-box', not ${t.box}`),e.addEventListener("resize",this.internalObserver),this.elements.add(e)}unobserve(e){this.elements.has(e)&&(e.removeEventListener("resize",this.internalObserver),this.elements.delete(e))}disconnect(){var e,t=n(this.elements.values());try{for(t.s();!(e=t.n()).done;){let t=e.value;this.unobserve(t)}}catch(e){t.e(e)}finally{t.f()}}}t.UxpResizeObserver=a;let s=a;"undefined"!=typeof window&&(null==window.ResizeObserver?o.isUXP?window.ResizeObserver=s:console.error("This browser requires a ResizeObserver shim"):s=window.ResizeObserver),t.default=s},39002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return e*(1-r)+t*r}},9401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=Symbol(),r=new WeakMap;return n=>{const i=Object.isExtensible(n);let o=i?n[t]:r.get(n);return void 0===o&&(o=e(n),i?n[t]=o:r.set(n,o)),o}}},33978:()=>{"use strict";"undefined"!=typeof Element&&null==Element.prototype.scrollTo&&(Element.prototype.scrollTo=function(t,r){let n,i="auto";var o;"object"==typeof t&&null!=t&&(i=t.behavior,n=t.left,r=t.top),null==n&&(n=this.scrollLeft),null==r&&(r=this.scrollTop),null!=(o=this)[e]&&(cancelAnimationFrame(o[e]),o[e]=null),"smooth"===i?function(t,r,n){const i=.5,o=t.scrollLeft,a=t.scrollTop,s=(e,t=1.8)=>Math.pow(e,t)/(Math.pow(e,t)+Math.pow(1-e,t)),c=(e,t,r)=>Math.round(e+(t-e)*r),l=Date.now(),u=()=>{const p=(Date.now()-l)/1e3,d=s(Math.min(1,p/i));t.scrollLeft=c(o,r,d),t.scrollTop=c(a,n,d),t[e]=d<1?requestAnimationFrame(u):null};u()}(this,n,r):(this.scrollLeft=n,this.scrollTop=r)});const e=Symbol("Element.scrollToAnimateId")},35582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(33978)},46662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUXP=void 0,t.isUXP="undefined"!=typeof document&&"plugin:"===document.location.protocol},33275:(e,t,r)=>{"use strict";r.d(t,{Si:()=>Sa,W_:()=>Ft,ZA:()=>Ha,B:()=>Dc,Zu:()=>ys,Ut:()=>Cc,Lr:()=>il,te:()=>Hc,Zb:()=>Gc,ZP:()=>_d,HH:()=>Kc,P6:()=>Ed,RX:()=>el});r(40627);const n={"application/andrew-inset":{exts:["ez"]},"application/applixware":{exts:["aw"]},"application/atom+xml":{exts:["atom"]},"application/atomcat+xml":{exts:["atomcat"]},"application/atomsvc+xml":{exts:["atomsvc"]},"application/ccxml+xml":{exts:["ccxml"]},"application/cdmi-capability":{exts:["cdmia"]},"application/cdmi-container":{exts:["cdmic"]},"application/cdmi-domain":{exts:["cdmid"]},"application/cdmi-object":{exts:["cdmio"]},"application/cdmi-queue":{exts:["cdmiq"]},"application/cu-seeme":{exts:["cu"]},"application/davmount+xml":{exts:["davmount"]},"application/docbook+xml":{exts:["dbk"]},"application/dssc+der":{exts:["dssc"]},"application/dssc+xml":{exts:["xdssc"]},"application/ecmascript":{exts:["ecma"]},"application/emma+xml":{exts:["emma"]},"application/epub+zip":{exts:["epub"]},"application/exi":{exts:["exi"]},"application/font-tdpfr":{exts:["pfr"]},"application/gml+xml":{exts:["gml"]},"application/gpx+xml":{exts:["gpx"]},"application/gxf":{exts:["gxf"]},"application/hyperstudio":{exts:["stk"]},"application/illustrator":{exts:["ai"],badge:"Ai"},"application/illustrator-text":{exts:["ai"],badge:"Ai"},"application/illustrator.template":{exts:["ait"],badge:"Ai"},"application/inkml+xml":{exts:["ink","inkml"]},"application/ipfix":{exts:["ipfix"]},"application/java-archive":{exts:["jar"]},"application/java-serialized-object":{exts:["ser"]},"application/java-vm":{exts:["class"]},"application/javascript":{exts:["js"]},"application/json":{exts:["json"]},"application/jsonml+json":{exts:["jsonml"]},"application/lost+xml":{exts:["lostxml"]},"application/mac-binhex40":{exts:["hqx"]},"application/mac-compactpro":{exts:["cpt"]},"application/mads+xml":{exts:["mads"]},"application/marc":{exts:["mrc"]},"application/marcxml+xml":{exts:["mrcx"]},"application/mathematica":{exts:["ma","nb","mb"]},"application/mathml+xml":{exts:["mathml"]},"application/mbox":{exts:["mbox"]},"application/mediaservercontrol+xml":{exts:["mscml"]},"application/metalink+xml":{exts:["metalink"]},"application/metalink4+xml":{exts:["meta4"]},"application/mets+xml":{exts:["mets"]},"application/mods+xml":{exts:["mods"]},"application/mp21":{exts:["m21","mp21"]},"application/mp4":{exts:["mp4s"]},"application/msword":{exts:["doc","dot"]},"application/mxf":{exts:["mxf"]},"application/octet-stream":{exts:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy"]},"application/oda":{exts:["oda"]},"application/oebps-package+xml":{exts:["opf"]},"application/ogg":{exts:["ogx"]},"application/omdoc+xml":{exts:["omdoc"]},"application/onenote":{exts:["onetoc","onetoc2","onetmp","onepkg"]},"application/oxps":{exts:["oxps"]},"application/patch-ops-error+xml":{exts:["xer"]},"application/pdf":{exts:["pdf"],badge:"PDF"},"application/pgp-encrypted":{exts:["pgp"]},"application/pgp-signature":{exts:["asc","sig"]},"application/photoshop":{exts:["psd"],badge:"Ps"},"application/photoshop.large":{exts:["psb"],badge:"Ps"},"application/pics-rules":{exts:["prf"]},"application/pkcs10":{exts:["p10"]},"application/pkcs7-mime":{exts:["p7m","p7c"]},"application/pkcs7-signature":{exts:["p7s"]},"application/pkcs8":{exts:["p8"]},"application/pkix-attr-cert":{exts:["ac"]},"application/pkix-cert":{exts:["cer"]},"application/pkix-crl":{exts:["crl"]},"application/pkix-pkipath":{exts:["pkipath"]},"application/pkixcmp":{exts:["pki"]},"application/pls+xml":{exts:["pls"]},"application/postscript":{exts:["ai","eps","ps"]},"application/prs.cww":{exts:["cww"]},"application/pskc+xml":{exts:["pskcxml"]},"application/rdf+xml":{exts:["rdf"]},"application/reginfo+xml":{exts:["rif"]},"application/relax-ng-compact-syntax":{exts:["rnc"]},"application/resource-lists+xml":{exts:["rl"]},"application/resource-lists-diff+xml":{exts:["rld"]},"application/rls-services+xml":{exts:["rs"]},"application/rpki-ghostbusters":{exts:["gbr"]},"application/rpki-manifest":{exts:["mft"]},"application/rpki-roa":{exts:["roa"]},"application/rsd+xml":{exts:["rsd"]},"application/rss+xml":{exts:["rss"]},"application/rtf":{exts:["rtf"]},"application/sbml+xml":{exts:["sbml"]},"application/scvp-cv-request":{exts:["scq"]},"application/scvp-cv-response":{exts:["scs"]},"application/scvp-vp-request":{exts:["spq"]},"application/scvp-vp-response":{exts:["spp"]},"application/sdp":{exts:["sdp"]},"application/set-payment-initiation":{exts:["setpay"]},"application/set-registration-initiation":{exts:["setreg"]},"application/shf+xml":{exts:["shf"]},"application/smil+xml":{exts:["smi","smil"]},"application/sparql-query":{exts:["rq"]},"application/sparql-results+xml":{exts:["srx"]},"application/srgs":{exts:["gram"]},"application/srgs+xml":{exts:["grxml"]},"application/sru+xml":{exts:["sru"]},"application/ssdl+xml":{exts:["ssdl"]},"application/ssml+xml":{exts:["ssml"]},"application/tei+xml":{exts:["tei","teicorpus"]},"application/thraud+xml":{exts:["tfi"]},"application/timestamped-data":{exts:["tsd"]},"application/vnd.3gpp.pic-bw-large":{exts:["plb"]},"application/vnd.3gpp.pic-bw-small":{exts:["psb"]},"application/vnd.3gpp.pic-bw-var":{exts:["pvb"]},"application/vnd.3gpp2.tcap":{exts:["tcap"]},"application/vnd.3m.post-it-notes":{exts:["pwn"]},"application/vnd.accpac.simply.aso":{exts:["aso"]},"application/vnd.accpac.simply.imp":{exts:["imp"]},"application/vnd.acucobol":{exts:["acu"]},"application/vnd.acucorp":{exts:["atc","acutc"]},"application/vnd.adobe.ae.graphic+zip":{exts:["aegraphic","mogrt"]},"application/vnd.adobe.air-application-installer-package+zip":{exts:["air"]},"application/vnd.adobe.animate-xfl+zip":{exts:["fla","xfl"],badge:"An"},"application/vnd.adobe.animate-oam+zip":{exts:["oam"]},"application/vnd.adobe.animate-sym+zip":{exts:["sym"],badge:"SYM"},"application/vnd.adobe.animate-swf+zip":{exts:["swa"]},"application/vnd.adobe.characterstyle+json":{exts:["style"]},"application/vnd.adobe.characterstyle+snippet":{exts:["idms"]},"application/vnd.adobe.charts+zip":{exts:["zip"],badge:"PDF"},"application/vnd.adobe.ch.puppet+zip":{exts:["puppet"]},"application/vnd.adobe.color+json":{exts:["ase"]},"application/vnd.adobe.colortheme+json":{exts:["ase"]},"application/vnd.adobe.cube+txt":{exts:["cube"]},"application/vnd.adobe.element.agc+json":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.exr.light+zip":{exts:["exr"]},"application/vnd.adobe.fbx.3d+zip":{exts:["fbx"]},"application/vnd.adobe.formscentral.fcdt":{exts:["fcdt"]},"application/vnd.adobe.fxp":{exts:["fxp","fxpl"]},"application/vnd.adobe.hz.express+dcxucf":{exts:["dcxucf"]},"application/vnd.adobe.ibl.light+zip":{exts:["ibl","zip"]},"application/vnd.adobe.illustrator.template":{exts:["ait"],badge:"Ai"},"application/vnd.adobe.indesign-idms":{exts:["idms"],badge:"Id"},"application/vnd.adobe.indesign-idms-text":{exts:["idms"],badge:"Id"},"application/vnd.adobe.indesign.template":{exts:["indt"],badge:"Id"},"application/vnd.adobe.layerstyle":{exts:["asl"]},"application/vnd.adobe.look+xml":{exts:["look"]},"application/vnd.adobe.graphic+json":{exts:["json"]},"application/vnd.adobe.mdl.material+zip":{exts:["mdl","zip"]},"application/vnd.adobe.muse-collection":{exts:["muse"],badge:"Mu"},"application/vnd.adobe.nxdcomponent+dcx":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.obj.3d+zip":{exts:["obj","zip"]},"application/vnd.adobe.paragraphstyle+json":{exts:["style"]},"application/vnd.adobe.paragraphstyle+snippet":{exts:["idms"]},"application/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps"},"application/vnd.adobe.ppro.graphic+zip":{exts:["prgraphic","mogrt"]},"application/vnd.adobe.ribbon.brush+zip":{exts:["brush"]},"application/vnd.adobe.sbsar+zip":{exts:["sbsar"]},"application/vnd.adobe.scatter.brush+zip":{exts:["brush"]},"application/vnd.adobe.vector.brush+zip":{exts:["brush"]},"application/vnd.adobe.text+json":{exts:["text-json"]},"application/vnd.adobe.theo.document+dcxucf":{exts:["dcxucf"]},"application/vnd.adobe.xdcomponent+dcx":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.xd.cloudproject+dcx":{exts:["dcx"],badge:"Xd"},"application/vnd.adobe.xdp+xml":{exts:["xdp"]},"application/vnd.adobe.xfdf":{exts:["xfdf"]},"application/vnd.ahead.space":{exts:["ahead"]},"application/vnd.airzip.filesecure.azf":{exts:["azf"]},"application/vnd.airzip.filesecure.azs":{exts:["azs"]},"application/vnd.amazon.ebook":{exts:["azw"]},"application/vnd.americandynamics.acc":{exts:["acc"]},"application/vnd.amiga.ami":{exts:["ami"]},"application/vnd.android.package-archive":{exts:["apk"]},"application/vnd.anser-web-certificate-issue-initiation":{exts:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{exts:["fti"]},"application/vnd.antix.game-component":{exts:["atx"]},"application/vnd.apple.installer+xml":{exts:["mpkg"]},"application/vnd.apple.mpegurl":{exts:["m3u8"]},"application/vnd.aristanetworks.swi":{exts:["swi"]},"application/vnd.astraea-software.iota":{exts:["iota"]},"application/vnd.audiograph":{exts:["aep"]},"application/vnd.blueice.multipass":{exts:["mpm"]},"application/vnd.bmi":{exts:["bmi"]},"application/vnd.businessobjects":{exts:["rep"]},"application/vnd.chemdraw+xml":{exts:["cdxml"]},"application/vnd.chipnuts.karaoke-mmd":{exts:["mmd"]},"application/vnd.cinderella":{exts:["cdy"]},"application/vnd.claymore":{exts:["cla"]},"application/vnd.cloanto.rp9":{exts:["rp9"]},"application/vnd.clonk.c4group":{exts:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{exts:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{exts:["c11amz"]},"application/vnd.commonspace":{exts:["csp"]},"application/vnd.contact.cmsg":{exts:["cdbcmsg"]},"application/vnd.cosmocaller":{exts:["cmc"]},"application/vnd.crick.clicker":{exts:["clkx"]},"application/vnd.crick.clicker.keyboard":{exts:["clkk"]},"application/vnd.crick.clicker.palette":{exts:["clkp"]},"application/vnd.crick.clicker.template":{exts:["clkt"]},"application/vnd.crick.clicker.wordbank":{exts:["clkw"]},"application/vnd.criticaltools.wbs+xml":{exts:["wbs"]},"application/vnd.ctc-posml":{exts:["pml"]},"application/vnd.cups-ppd":{exts:["ppd"]},"application/vnd.curl.car":{exts:["car"]},"application/vnd.curl.pcurl":{exts:["pcurl"]},"application/vnd.dart":{exts:["dart"]},"application/vnd.data-vision.rdz":{exts:["rdz"]},"application/vnd.dece.data":{exts:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{exts:["uvt","uvvt"]},"application/vnd.dece.unspecified":{exts:["uvx","uvvx"]},"application/vnd.dece.zip":{exts:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{exts:["fe_launch"]},"application/vnd.dna":{exts:["dna"]},"application/vnd.dolby.mlp":{exts:["mlp"]},"application/vnd.dpgraph":{exts:["dpg"]},"application/vnd.dreamfactory":{exts:["dfac"]},"application/vnd.ds-keypoint":{exts:["kpxx"]},"application/vnd.dvb.ait":{exts:["ait"]},"application/vnd.dvb.service":{exts:["svc"]},"application/vnd.dynageo":{exts:["geo"]},"application/vnd.ecowin.chart":{exts:["mag"]},"application/vnd.enliven":{exts:["nml"]},"application/vnd.epson.esf":{exts:["esf"]},"application/vnd.epson.msf":{exts:["msf"]},"application/vnd.epson.quickanime":{exts:["qam"]},"application/vnd.epson.salt":{exts:["slt"]},"application/vnd.epson.ssf":{exts:["ssf"]},"application/vnd.eszigno3+xml":{exts:["es3","et3"]},"application/vnd.ezpix-album":{exts:["ez2"]},"application/vnd.ezpix-package":{exts:["ez3"]},"application/vnd.fdf":{exts:["fdf"]},"application/vnd.fdsn.mseed":{exts:["mseed"]},"application/vnd.fdsn.seed":{exts:["seed","dataless"]},"application/vnd.adobe.firefly.cme.weights":{exts:["pt"]},"application/vnd.adobe.firefly.cme.weights+gzip":{exts:["pt.gzip"]},"application/vnd.flographit":{exts:["gph"]},"application/vnd.fluxtime.clip":{exts:["ftc"]},"application/vnd.framemaker":{exts:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{exts:["fnc"]},"application/vnd.frogans.ltf":{exts:["ltf"]},"application/vnd.fsc.weblaunch":{exts:["fsc"]},"application/vnd.fujitsu.oasys":{exts:["oas"]},"application/vnd.fujitsu.oasys2":{exts:["oa2"]},"application/vnd.fujitsu.oasys3":{exts:["oa3"]},"application/vnd.fujitsu.oasysgp":{exts:["fg5"]},"application/vnd.fujitsu.oasysprs":{exts:["bh2"]},"application/vnd.fujixerox.ddd":{exts:["ddd"]},"application/vnd.fujixerox.docuworks":{exts:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{exts:["xbd"]},"application/vnd.fuzzysheet":{exts:["fzs"]},"application/vnd.genomatix.tuxedo":{exts:["txd"]},"application/vnd.geogebra.file":{exts:["ggb"]},"application/vnd.geogebra.tool":{exts:["ggt"]},"application/vnd.geometry-explorer":{exts:["gex","gre"]},"application/vnd.geonext":{exts:["gxt"]},"application/vnd.geoplan":{exts:["g2w"]},"application/vnd.geospace":{exts:["g3w"]},"application/vnd.gmx":{exts:["gmx"]},"application/vnd.google-earth.kml+xml":{exts:["kml"]},"application/vnd.google-earth.kmz":{exts:["kmz"]},"application/vnd.grafeq":{exts:["gqf","gqs"]},"application/vnd.groove-account":{exts:["gac"]},"application/vnd.groove-help":{exts:["ghf"]},"application/vnd.groove-identity-message":{exts:["gim"]},"application/vnd.groove-injector":{exts:["grv"]},"application/vnd.groove-tool-message":{exts:["gtm"]},"application/vnd.groove-tool-template":{exts:["tpl"]},"application/vnd.groove-vcard":{exts:["vcg"]},"application/vnd.hal+xml":{exts:["hal"]},"application/vnd.handheld-entertainment+xml":{exts:["zmm"]},"application/vnd.hbci":{exts:["hbci"]},"application/vnd.hhe.lesson-player":{exts:["les"]},"application/vnd.hp-hpgl":{exts:["hpgl"]},"application/vnd.hp-hpid":{exts:["hpid"]},"application/vnd.hp-hps":{exts:["hps"]},"application/vnd.hp-jlyt":{exts:["jlt"]},"application/vnd.hp-pcl":{exts:["pcl"]},"application/vnd.hp-pclxl":{exts:["pclxl"]},"application/vnd.ibm.minipay":{exts:["mpy"]},"application/vnd.ibm.modcap":{exts:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{exts:["irm"]},"application/vnd.ibm.secure-container":{exts:["sc"]},"application/vnd.iccprofile":{exts:["icc","icm"]},"application/vnd.igloader":{exts:["igl"]},"application/vnd.immervision-ivp":{exts:["ivp"]},"application/vnd.immervision-ivu":{exts:["ivu"]},"application/vnd.insors.igm":{exts:["igm"]},"application/vnd.intercon.formnet":{exts:["xpw","xpx"]},"application/vnd.intergeo":{exts:["i2g"]},"application/vnd.intu.qbo":{exts:["qbo"]},"application/vnd.intu.qfx":{exts:["qfx"]},"application/vnd.ipunplugged.rcprofile":{exts:["rcprofile"]},"application/vnd.irepository.package+xml":{exts:["irp"]},"application/vnd.is-xpr":{exts:["xpr"]},"application/vnd.isac.fcs":{exts:["fcs"]},"application/vnd.jam":{exts:["jam"]},"application/vnd.jcp.javame.midlet-rms":{exts:["rms"]},"application/vnd.jisp":{exts:["jisp"]},"application/vnd.joost.joda-archive":{exts:["joda"]},"application/vnd.kahootz":{exts:["ktz","ktr"]},"application/vnd.kde.karbon":{exts:["karbon"]},"application/vnd.kde.kchart":{exts:["chrt"]},"application/vnd.kde.kformula":{exts:["kfo"]},"application/vnd.kde.kivio":{exts:["flw"]},"application/vnd.kde.kontour":{exts:["kon"]},"application/vnd.kde.kpresenter":{exts:["kpr","kpt"]},"application/vnd.kde.kspread":{exts:["ksp"]},"application/vnd.kde.kword":{exts:["kwd","kwt"]},"application/vnd.kenameaapp":{exts:["htke"]},"application/vnd.kidspiration":{exts:["kia"]},"application/vnd.kinar":{exts:["kne","knp"]},"application/vnd.koan":{exts:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{exts:["sse"]},"application/vnd.las.las+xml":{exts:["lasxml"]},"application/vnd.llamagraphics.life-balance.desktop":{exts:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{exts:["lbe"]},"application/vnd.lotus-1-2-3":{exts:["123"]},"application/vnd.lotus-approach":{exts:["apr"]},"application/vnd.lotus-freelance":{exts:["pre"]},"application/vnd.lotus-notes":{exts:["nsf"]},"application/vnd.lotus-organizer":{exts:["org"]},"application/vnd.lotus-screencam":{exts:["scm"]},"application/vnd.lotus-wordpro":{exts:["lwp"]},"application/vnd.macports.portpkg":{exts:["portpkg"]},"application/vnd.mcd":{exts:["mcd"]},"application/vnd.medcalcdata":{exts:["mc1"]},"application/vnd.mediastation.cdkey":{exts:["cdkey"]},"application/vnd.mfer":{exts:["mwf"]},"application/vnd.mfmp":{exts:["mfm"]},"application/vnd.micrografx.flo":{exts:["flo"]},"application/vnd.micrografx.igx":{exts:["igx"]},"application/vnd.mif":{exts:["mif"]},"application/vnd.mobius.daf":{exts:["daf"]},"application/vnd.mobius.dis":{exts:["dis"]},"application/vnd.mobius.mbk":{exts:["mbk"]},"application/vnd.mobius.mqy":{exts:["mqy"]},"application/vnd.mobius.msl":{exts:["msl"]},"application/vnd.mobius.plc":{exts:["plc"]},"application/vnd.mobius.txf":{exts:["txf"]},"application/vnd.mophun.application":{exts:["mpn"]},"application/vnd.mophun.certificate":{exts:["mpc"]},"application/vnd.mozilla.xul+xml":{exts:["xul"]},"application/vnd.ms-artgalry":{exts:["cil"]},"application/vnd.ms-cab-compressed":{exts:["cab"]},"application/vnd.ms-excel":{exts:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{exts:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{exts:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{exts:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{exts:["xltm"]},"application/vnd.ms-fontobject":{exts:["eot"]},"application/vnd.ms-htmlhelp":{exts:["chm"]},"application/vnd.ms-ims":{exts:["ims"]},"application/vnd.ms-lrm":{exts:["lrm"]},"application/vnd.ms-officetheme":{exts:["thmx"]},"application/vnd.ms-pki.seccat":{exts:["cat"]},"application/vnd.ms-pki.stl":{exts:["stl"]},"application/vnd.ms-powerpoint":{exts:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{exts:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{exts:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{exts:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{exts:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{exts:["potm"]},"application/vnd.ms-project":{exts:["mpp","mpt"]},"application/vnd.ms-word.document.macroenabled.12":{exts:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{exts:["dotm"]},"application/vnd.ms-works":{exts:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{exts:["wpl"]},"application/vnd.ms-xpsdocument":{exts:["xps"]},"application/vnd.mseq":{exts:["mseq"]},"application/vnd.musician":{exts:["mus"]},"application/vnd.muvee.style":{exts:["msty"]},"application/vnd.mynfc":{exts:["taglet"]},"application/vnd.neurolanguage.nlu":{exts:["nlu"]},"application/vnd.nitf":{exts:["ntf","nitf"]},"application/vnd.noblenet-directory":{exts:["nnd"]},"application/vnd.noblenet-sealer":{exts:["nns"]},"application/vnd.noblenet-web":{exts:["nnw"]},"application/vnd.nokia.n-gage.data":{exts:["ngdat"]},"application/vnd.nokia.radio-preset":{exts:["rpst"]},"application/vnd.nokia.radio-presets":{exts:["rpss"]},"application/vnd.novadigm.edm":{exts:["edm"]},"application/vnd.novadigm.edx":{exts:["edx"]},"application/vnd.novadigm.ext":{exts:["ext"]},"application/vnd.oasis.opendocument.chart":{exts:["odc"]},"application/vnd.oasis.opendocument.chart-template":{exts:["otc"]},"application/vnd.oasis.opendocument.database":{exts:["odb"]},"application/vnd.oasis.opendocument.formula":{exts:["odf"]},"application/vnd.oasis.opendocument.formula-template":{exts:["odft"]},"application/vnd.oasis.opendocument.graphics":{exts:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{exts:["otg"]},"application/vnd.oasis.opendocument.image":{exts:["odi"]},"application/vnd.oasis.opendocument.image-template":{exts:["oti"]},"application/vnd.oasis.opendocument.presentation":{exts:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{exts:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{exts:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{exts:["ots"]},"application/vnd.oasis.opendocument.text":{exts:["odt"]},"application/vnd.oasis.opendocument.text-master":{exts:["odm"]},"application/vnd.oasis.opendocument.text-template":{exts:["ott"]},"application/vnd.oasis.opendocument.text-web":{exts:["oth"]},"application/vnd.olpc-sugar":{exts:["xo"]},"application/vnd.oma.dd2+xml":{exts:["dd2"]},"application/vnd.openofficeorg.extension":{exts:["oxt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{exts:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide":{exts:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{exts:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.template":{exts:["potx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{exts:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{exts:["xltx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{exts:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{exts:["dotx"]},"application/vnd.osgeo.mapguide.package":{exts:["mgp"]},"application/vnd.osgi.dp":{exts:["dp"]},"application/vnd.osgi.subsystem":{exts:["esa"]},"application/vnd.palm":{exts:["pdb","pqa","oprc"]},"application/vnd.pawaafile":{exts:["paw"]},"application/vnd.pg.format":{exts:["str"]},"application/vnd.pg.osasli":{exts:["ei6"]},"application/vnd.picsel":{exts:["efif"]},"application/vnd.pmi.widget":{exts:["wg"]},"application/vnd.pocketlearn":{exts:["plf"]},"application/vnd.powerbuilder6":{exts:["pbd"]},"application/vnd.previewsystems.box":{exts:["box"]},"application/vnd.proteus.magazine":{exts:["mgz"]},"application/vnd.publishare-delta-tree":{exts:["qps"]},"application/vnd.pvi.ptid1":{exts:["ptid"]},"application/vnd.quark.quarkxpress":{exts:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.realvnc.bed":{exts:["bed"]},"application/vnd.recordare.musicxml":{exts:["mxl"]},"application/vnd.recordare.musicxml+xml":{exts:["musicxml"]},"application/vnd.rig.cryptonote":{exts:["cryptonote"]},"application/vnd.rim.cod":{exts:["cod"]},"application/vnd.rn-realmedia":{exts:["rm"]},"application/vnd.rn-realmedia-vbr":{exts:["rmvb"]},"application/vnd.route66.link66+xml":{exts:["link66"]},"application/vnd.sailingtracker.track":{exts:["st"]},"application/vnd.seemail":{exts:["see"]},"application/vnd.sema":{exts:["sema"]},"application/vnd.semd":{exts:["semd"]},"application/vnd.semf":{exts:["semf"]},"application/vnd.shana.informed.formdata":{exts:["ifm"]},"application/vnd.shana.informed.formtemplate":{exts:["itp"]},"application/vnd.shana.informed.interchange":{exts:["iif"]},"application/vnd.shana.informed.package":{exts:["ipk"]},"application/vnd.simtech-mindmapper":{exts:["twd","twds"]},"application/vnd.smaf":{exts:["mmf"]},"application/vnd.smart.teacher":{exts:["teacher"]},"application/vnd.solent.sdkm+xml":{exts:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{exts:["dxp"]},"application/vnd.spotfire.sfs":{exts:["sfs"]},"application/vnd.stardivision.calc":{exts:["sdc"]},"application/vnd.stardivision.draw":{exts:["sda"]},"application/vnd.stardivision.impress":{exts:["sdd"]},"application/vnd.stardivision.math":{exts:["smf"]},"application/vnd.stardivision.writer":{exts:["sdw","vor"]},"application/vnd.stardivision.writer-global":{exts:["sgl"]},"application/vnd.stepmania.package":{exts:["smzip"]},"application/vnd.stepmania.stepchart":{exts:["sm"]},"application/vnd.sun.xml.calc":{exts:["sxc"]},"application/vnd.sun.xml.calc.template":{exts:["stc"]},"application/vnd.sun.xml.draw":{exts:["sxd"]},"application/vnd.sun.xml.draw.template":{exts:["std"]},"application/vnd.sun.xml.impress":{exts:["sxi"]},"application/vnd.sun.xml.impress.template":{exts:["sti"]},"application/vnd.sun.xml.math":{exts:["sxm"]},"application/vnd.sun.xml.writer":{exts:["sxw"]},"application/vnd.sun.xml.writer.global":{exts:["sxg"]},"application/vnd.sun.xml.writer.template":{exts:["stw"]},"application/vnd.sus-calendar":{exts:["sus","susp"]},"application/vnd.svd":{exts:["svd"]},"application/vnd.symbian.install":{exts:["sis","sisx"]},"application/vnd.syncml+xml":{exts:["xsm"]},"application/vnd.syncml.dm+wbxml":{exts:["bdm"]},"application/vnd.syncml.dm+xml":{exts:["xdm"]},"application/vnd.tao.intent-module-archive":{exts:["tao"]},"application/vnd.tcpdump.pcap":{exts:["pcap","cap","dmp"]},"application/vnd.tmobile-livetv":{exts:["tmo"]},"application/vnd.trid.tpt":{exts:["tpt"]},"application/vnd.triscape.mxs":{exts:["mxs"]},"application/vnd.trueapp":{exts:["tra"]},"application/vnd.ufdl":{exts:["ufd","ufdl"]},"application/vnd.uiq.theme":{exts:["utz"]},"application/vnd.umajin":{exts:["umj"]},"application/vnd.unity":{exts:["unityweb"]},"application/vnd.uoml+xml":{exts:["uoml"]},"application/vnd.vcx":{exts:["vcx"]},"application/vnd.visio":{exts:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{exts:["vis"]},"application/vnd.vsf":{exts:["vsf"]},"application/vnd.wap.wbxml":{exts:["wbxml"]},"application/vnd.wap.wmlc":{exts:["wmlc"]},"application/vnd.wap.wmlscriptc":{exts:["wmlsc"]},"application/vnd.webturbo":{exts:["wtb"]},"application/vnd.wolfram.player":{exts:["nbp"]},"application/vnd.wordperfect":{exts:["wpd"]},"application/vnd.wqd":{exts:["wqd"]},"application/vnd.wt.stf":{exts:["stf"]},"application/vnd.xara":{exts:["xar"]},"application/vnd.xfdl":{exts:["xfdl"]},"application/vnd.yamaha.hv-dic":{exts:["hvd"]},"application/vnd.yamaha.hv-script":{exts:["hvs"]},"application/vnd.yamaha.hv-voice":{exts:["hvp"]},"application/vnd.yamaha.openscoreformat":{exts:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{exts:["osfpvg"]},"application/vnd.yamaha.smaf-audio":{exts:["saf"]},"application/vnd.yamaha.smaf-phrase":{exts:["spf"]},"application/vnd.yellowriver-custom-menu":{exts:["cmp"]},"application/vnd.zul":{exts:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{exts:["zaz"]},"application/voicexml+xml":{exts:["vxml"]},"application/widget":{exts:["wgt"]},"application/winhlp":{exts:["hlp"]},"application/wsdl+xml":{exts:["wsdl"]},"application/wspolicy+xml":{exts:["wspolicy"]},"application/x-7z-compressed":{exts:["7z"]},"application/x-abiword":{exts:["abw"]},"application/x-ace-compressed":{exts:["ace"]},"application/x-apple-diskimage":{exts:["dmg"]},"application/x-authorware-bin":{exts:["aab","x32","u32","vox"]},"application/x-authorware-map":{exts:["aam"]},"application/x-authorware-seg":{exts:["aas"]},"application/x-bcpio":{exts:["bcpio"]},"application/x-bittorrent":{exts:["torrent"]},"application/x-blorb":{exts:["blb","blorb"]},"application/x-bzip":{exts:["bz"]},"application/x-bzip2":{exts:["bz2","boz"]},"application/x-cbr":{exts:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{exts:["vcd"]},"application/x-cfs-compressed":{exts:["cfs"]},"application/x-chat":{exts:["chat"]},"application/x-chess-pgn":{exts:["pgn"]},"application/x-conference":{exts:["nsc"]},"application/x-cpio":{exts:["cpio"]},"application/x-csh":{exts:["csh"]},"application/x-debian-package":{exts:["deb","udeb"]},"application/x-dgc-compressed":{exts:["dgc"]},"application/x-director":{exts:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{exts:["wad"]},"application/x-dtbncx+xml":{exts:["ncx"]},"application/x-dtbook+xml":{exts:["dtb"]},"application/x-dtbresource+xml":{exts:["res"]},"application/x-dvi":{exts:["dvi"]},"application/x-envoy":{exts:["evy"]},"application/x-eva":{exts:["eva"]},"application/x-font-bdf":{exts:["bdf"]},"application/x-font-ghostscript":{exts:["gsf"]},"application/x-font-linux-psf":{exts:["psf"]},"application/x-font-otf":{exts:["otf"]},"application/x-font-pcf":{exts:["pcf"]},"application/x-font-snf":{exts:["snf"]},"application/x-font-ttf":{exts:["ttf","ttc"]},"application/x-font-type1":{exts:["pfa","pfb","pfm","afm"]},"application/font-woff":{exts:["woff"]},"application/x-freearc":{exts:["arc"]},"application/x-futuresplash":{exts:["spl"]},"application/x-gca-compressed":{exts:["gca"]},"application/x-glulx":{exts:["ulx"]},"application/x-gnumeric":{exts:["gnumeric"]},"application/x-gramps-xml":{exts:["gramps"]},"application/x-gtar":{exts:["gtar"]},"application/x-hdf":{exts:["hdf"]},"application/x-install-instructions":{exts:["install"]},"application/x-iso9660-image":{exts:["iso"]},"application/x-java-jnlp-file":{exts:["jnlp"]},"application/x-latex":{exts:["latex"]},"application/x-lzh-compressed":{exts:["lzh","lha"]},"application/x-mie":{exts:["mie"]},"application/x-mobipocket-ebook":{exts:["prc","mobi"]},"application/x-ms-application":{exts:["application"]},"application/x-ms-shortcut":{exts:["lnk"]},"application/x-ms-wmd":{exts:["wmd"]},"application/x-ms-wmz":{exts:["wmz"]},"application/x-ms-xbap":{exts:["xbap"]},"application/x-msaccess":{exts:["mdb"]},"application/x-msbinder":{exts:["obd"]},"application/x-mscardfile":{exts:["crd"]},"application/x-msclip":{exts:["clp"]},"application/x-msdownload":{exts:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{exts:["mvb","m13","m14"]},"application/x-msmetafile":{exts:["wmf","wmz","emf","emz"]},"application/x-msmoney":{exts:["mny"]},"application/x-mspublisher":{exts:["pub"]},"application/x-msschedule":{exts:["scd"]},"application/x-msterminal":{exts:["trm"]},"application/x-mswrite":{exts:["wri"]},"application/x-netcdf":{exts:["nc","cdf"]},"application/x-nzb":{exts:["nzb"]},"application/x-pkcs12":{exts:["p12","pfx"]},"application/x-pkcs7-certificates":{exts:["p7b","spc"]},"application/x-pkcs7-certreqresp":{exts:["p7r"]},"application/x-rar-compressed":{exts:["rar"]},"application/x-research-info-systems":{exts:["ris"]},"application/x-sh":{exts:["sh"]},"application/x-shar":{exts:["shar"]},"application/x-shockwave-flash":{exts:["swf"]},"application/x-silverlight-app":{exts:["xap"]},"application/x-sql":{exts:["sql"]},"application/x-stuffit":{exts:["sit"]},"application/x-stuffitx":{exts:["sitx"]},"application/x-subrip":{exts:["srt"]},"application/x-sv4cpio":{exts:["sv4cpio"]},"application/x-sv4crc":{exts:["sv4crc"]},"application/x-t3vm-image":{exts:["t3"]},"application/x-tads":{exts:["gam"]},"application/x-tar":{exts:["tar"]},"application/x-tcl":{exts:["tcl"]},"application/x-tex":{exts:["tex"]},"application/x-tex-tfm":{exts:["tfm"]},"application/x-texinfo":{exts:["texinfo","texi"]},"application/x-tgif":{exts:["obj"]},"application/x-ustar":{exts:["ustar"]},"application/x-wais-source":{exts:["src"]},"application/x-x509-ca-cert":{exts:["der","crt"]},"application/x-xfig":{exts:["fig"]},"application/x-xliff+xml":{exts:["xlf"]},"application/x-xpinstall":{exts:["xpi"]},"application/x-xz":{exts:["xz"]},"application/x-zmachine":{exts:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/xaml+xml":{exts:["xaml"]},"application/xcap-diff+xml":{exts:["xdf"]},"application/xenc+xml":{exts:["xenc"]},"application/xhtml+xml":{exts:["xhtml","xht"]},"application/xml":{exts:["xml","xsl"]},"application/xml-dtd":{exts:["dtd"]},"application/xop+xml":{exts:["xop"]},"application/xproc+xml":{exts:["xpl"]},"application/xslt+xml":{exts:["xslt"]},"application/xspf+xml":{exts:["xspf"]},"application/xv+xml":{exts:["mxml","xhvml","xvml","xvm"]},"application/yang":{exts:["yang"]},"application/yin+xml":{exts:["yin"]},"application/zip":{exts:["zip"]},"audio/3gpp":{exts:["3gpp"],badge:"3GPP"},"audio/3gpp2":{exts:["3gpp2"],badge:"3GPP"},"audio/aac":{exts:["aac"],badge:"AAC"},"audio/aacp":{exts:["aacp"],badge:"AAC"},"audio/adpcm":{exts:["adp"]},"audio/aif":{exts:["aif"],badge:"AIF"},"audio/basic":{exts:["au","snd"]},"audio/m4a":{exts:["m4a"],badge:"M4A"},"audio/midi":{exts:["mid","midi","kar","rmi"]},"audio/mp3":{exts:["mp3"],badge:"MP3"},"audio/mp4":{exts:["mp4a"]},"audio/mpeg":{exts:["mpga","mp2","mp2a","m2a"],badge:"MP2"},"audio/mpeg3":{exts:["mp3","m3a"],badge:"MP3"},"audio/ogg":{exts:["oga","ogg","spx"]},"audio/s3m":{exts:["s3m"]},"audio/silk":{exts:["sil"]},"audio/vnd.dece.audio":{exts:["uva","uvva"]},"audio/vnd.digital-winds":{exts:["eol"]},"audio/vnd.dra":{exts:["dra"]},"audio/vnd.dts":{exts:["dts"]},"audio/vnd.dts.hd":{exts:["dtshd"]},"audio/vnd.lucent.voice":{exts:["lvp"]},"audio/vnd.ms-playready.media.pya":{exts:["pya"]},"audio/vnd.nuera.ecelp4800":{exts:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{exts:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{exts:["ecelp9600"]},"audio/vnd.rip":{exts:["rip"]},"audio/wav":{exts:["wav"],badge:"WAV"},"audio/webm":{exts:["weba"]},"audio/x-aac":{exts:["aac"],badge:"AAC"},"audio/x-aiff":{exts:["aiff","aifc"],badge:"AIFF"},"audio/x-caf":{exts:["caf"]},"audio/x-flac":{exts:["flac"]},"audio/x-matroska":{exts:["mka"]},"audio/x-mpegurl":{exts:["m3u"]},"audio/x-ms-wax":{exts:["wax"]},"audio/x-ms-wma":{exts:["wma"]},"audio/x-pn-realaudio":{exts:["ram","ra"]},"audio/x-pn-realaudio-plugin":{exts:["rmp"]},"audio/x-wav":{exts:["wav"]},"audio/xm":{exts:["xm"]},"chemical/x-cdx":{exts:["cdx"]},"chemical/x-cif":{exts:["cif"]},"chemical/x-cmdf":{exts:["cmdf"]},"chemical/x-cml":{exts:["cml"]},"chemical/x-csml":{exts:["csml"]},"chemical/x-xyz":{exts:["xyz"]},"document/vnd.adobe.cpsd+dcx":{exts:["psdc"],badge:"Ps"},"document/vnd.adobe.illustrator+dcx":{exts:["aic"],badge:"Ai"},"image/bmp":{exts:["bmp"],badge:"BMP"},"image/cgm":{exts:["cgm"]},"image/dng":{exts:["dng"],badge:"DNG"},"image/g3fax":{exts:["g3"]},"image/gif":{exts:["gif"],badge:"GIF"},"image/heic":{exts:["heic"],badge:"HEIC"},"image/heif":{exts:["heif"],badge:"HEIF"},"image/ief":{exts:["ief"]},"image/jpeg":{exts:["jpeg","jpg","jpe"],badge:"JPEG"},"image/jpg":{exts:["jpeg","jpg"],badge:"JPG"},"image/ktx":{exts:["ktx"]},"image/png":{exts:["png"],badge:"PNG"},"image/prs.btif":{exts:["btif"]},"image/sgi":{exts:["sgi"]},"image/svg+xml":{exts:["svg","svgz"],badge:"SVG"},"image/tiff":{exts:["tiff","tif"],badge:"TIFF"},"image/vnd.adobe.photoshop":{exts:["psd"],badge:"Ps"},"image/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps"},"image/vnd.adobe.pattern+png":{exts:["png"]},"image/vnd.adobe.shape+svg":{exts:["shape"],badge:"SVG"},"image/vnd.dece.graphic":{exts:["uvi","uvvi","uvg","uvvg"]},"image/vnd.dvb.subtitle":{exts:["sub"]},"image/vnd.djvu":{exts:["djvu","djv"]},"image/vnd.dwg":{exts:["dwg"]},"image/vnd.dxf":{exts:["dxf"]},"image/vnd.fastbidsheet":{exts:["fbs"]},"image/vnd.fpx":{exts:["fpx"]},"image/vnd.fst":{exts:["fst"]},"image/vnd.fujixerox.edmics-mmr":{exts:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{exts:["rlc"]},"image/vnd.ms-modi":{exts:["mdi"]},"image/vnd.ms-photo":{exts:["wdp"]},"image/vnd.net-fpx":{exts:["npx"]},"image/vnd.radiance":{exts:["hdr"]},"image/vnd.wap.wbmp":{exts:["wbmp"]},"image/vnd.xiff":{exts:["xif"]},"image/webp":{exts:["webp"]},"image/x-3ds":{exts:["3ds"]},"image/x-adobe-dng":{exts:["dng"],badge:"DNG"},"image/x-adobe-photoshop-brush":{exts:["abr"]},"image/x-cmu-raster":{exts:["ras"]},"image/x-cmx":{exts:["cmx"]},"image/x-freehand":{exts:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{exts:["ico"]},"image/x-mrsid-image":{exts:["sid"]},"image/x-pcx":{exts:["pcx"]},"image/x-pict":{exts:["pic","pct"]},"image/x-portable-anymap":{exts:["pnm"]},"image/x-portable-bitmap":{exts:["pbm"]},"image/x-portable-graymap":{exts:["pgm"]},"image/x-portable-pixmap":{exts:["ppm"]},"image/x-rgb":{exts:["rgb"]},"image/x-tga":{exts:["tga"]},"image/x-xbitmap":{exts:["xbm"]},"image/x-xpixmap":{exts:["xpm"]},"image/x-xwindowdump":{exts:["xwd"]},"message/rfc822":{exts:["eml","mime"]},"model/gltf-binary":{exts:["glb"]},"model/gltf+json":{exts:["gltf"]},"model/iges":{exts:["igs","iges"]},"model/mesh":{exts:["msh","mesh","silo"]},"model/vnd.usdz+zip":{exts:["usdz"]},"model/vnd.adobe.dn+dcx":{exts:["dn"]},"model/vnd.adobe.dn+dcxucf":{exts:["dn"]},"model/vnd.collada+xml":{exts:["dae"]},"model/vnd.dwf":{exts:["dwf"]},"model/vnd.gdl":{exts:["gdl"]},"model/vnd.gtw":{exts:["gtw"]},"model/vnd.mts":{exts:["mts"]},"model/vnd.vtu":{exts:["vtu"]},"model/vrml":{exts:["wrl","vrml"]},"model/x3d+binary":{exts:["x3db","x3dbz"]},"model/x3d+vrml":{exts:["x3dv","x3dvz"]},"model/x3d+xml":{exts:["x3d","x3dz"]},"text/cache-manifest":{exts:["appcache"]},"text/calendar":{exts:["ics","ifb"]},"text/css":{exts:["css"]},"text/csv":{exts:["csv"]},"text/html":{exts:["html","htm"]},"text/n3":{exts:["n3"]},"text/plain":{exts:["txt","text","conf","def","list","log","in"]},"text/prs.lines.tag":{exts:["dsc"]},"text/richtext":{exts:["rtx"]},"text/sgml":{exts:["sgml","sgm"]},"text/tab-separated-values":{exts:["tsv"]},"text/troff":{exts:["t","tr","roff","man","me","ms"]},"text/turtle":{exts:["ttl"]},"text/uri-list":{exts:["uri","uris","urls"]},"text/vcard":{exts:["vcard"]},"text/vnd.curl":{exts:["curl"]},"text/vnd.curl.dcurl":{exts:["dcurl"]},"text/vnd.curl.scurl":{exts:["scurl"]},"text/vnd.curl.mcurl":{exts:["mcurl"]},"text/vnd.dvb.subtitle":{exts:["sub"]},"text/vnd.fly":{exts:["fly"]},"text/vnd.fmi.flexstor":{exts:["flx"]},"text/vnd.graphviz":{exts:["gv"]},"text/vnd.in3d.3dml":{exts:["3dml"]},"text/vnd.in3d.spot":{exts:["spot"]},"text/vnd.sun.j2me.app-descriptor":{exts:["jad"]},"text/vnd.wap.wml":{exts:["wml"]},"text/vnd.wap.wmlscript":{exts:["wmls"]},"text/x-asm":{exts:["s","asm"]},"text/x-c":{exts:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-fortran":{exts:["f","for","f77","f90"]},"text/x-java-source":{exts:["java"]},"text/x-opml":{exts:["opml"]},"text/x-pascal":{exts:["p","pas"]},"text/x-nfo":{exts:["nfo"]},"text/x-setext":{exts:["etx"]},"text/x-sfv":{exts:["sfv"]},"text/x-uuencode":{exts:["uu"]},"text/x-vcalendar":{exts:["vcs"]},"text/x-vcard":{exts:["vcf"]},"video/3gpp":{exts:["3gp"]},"video/3gpp2":{exts:["3g2"]},"video/h261":{exts:["h261"]},"video/h263":{exts:["h263"]},"video/h264":{exts:["h264"]},"video/jpeg":{exts:["jpgv"]},"video/jpm":{exts:["jpm","jpgm"]},"video/mj2":{exts:["mj2","mjp2"]},"video/mp4":{exts:["mp4","mp4v","mpg4"],badge:"MP4"},"video/mpeg":{exts:["mpeg","mpg","mpe","m1v","m2v"],badge:"MPEG"},"video/ogg":{exts:["ogv"]},"video/quicktime":{exts:["mov","qt"],badge:"MOV"},"video/vnd.dece.hd":{exts:["uvh","uvvh"]},"video/vnd.dece.mobile":{exts:["uvm","uvvm"]},"video/vnd.dece.pd":{exts:["uvp","uvvp"]},"video/vnd.dece.sd":{exts:["uvs","uvvs"]},"video/vnd.dece.video":{exts:["uvv","uvvv"]},"video/vnd.dvb.file":{exts:["dvb"]},"video/vnd.fvt":{exts:["fvt"]},"video/vnd.mpegurl":{exts:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{exts:["pyv"]},"video/vnd.uvvu.mp4":{exts:["uvu","uvvu"]},"video/vnd.vivo":{exts:["viv"]},"video/webm":{exts:["webm"]},"video/x-f4v":{exts:["f4v"]},"video/x-fli":{exts:["fli"]},"video/x-flv":{exts:["flv"]},"video/x-m4v":{exts:["m4v"]},"video/x-matroska":{exts:["mkv","mk3d","mks"]},"video/x-mng":{exts:["mng"]},"video/x-ms-asf":{exts:["asf","asx","wmv"],badge:"WMV"},"video/x-ms-vob":{exts:["vob"]},"video/x-ms-wm":{exts:["wm"]},"video/x-ms-wmv":{exts:["wmv"],badge:"WMV"},"video/x-ms-wmx":{exts:["wmx"]},"video/x-ms-wvx":{exts:["wvx"]},"video/x-msvideo":{exts:["avi"]},"video/x-quicktime":{exts:["mov"],badge:"MOV"},"video/x-sgi-movie":{exts:["movie"]},"video/x-smv":{exts:["smv"]},"x-conference/x-cooltalk":{exts:["ice"]},"3d/vnd.adobe.dn+dcxucf":{exts:["dn"]}},i=new Set(["application/x-indesign","application/postscript","application/illustrator","application/pdf","application/vnd.adobe.psremix","application/vnd.adobe.pstouch","application/vnd.adobe.ideas","application/vnd.adobe.ase","image/jpeg","image/jpg","image/pjpeg","image/tiff","image/gif","image/bmp","image/x-ms-bmp","image/svg+xml","image/png","image/x-png","image/jp2","image/psd","image/vnd.adobe.photoshop","image/heic","application/photoshop","application/x-photoshop","image/raw","image/dng","image/x-adobe-dng","video/mp4","video/mpeg","video/x-ms-wmv","video/3gpp","video/3gpp2","video/quicktime","video/x-msvideo","video/x-flv","video/x-ms-asf","video/x-m4v","video/mp2t","application/mxf","application/x-shockwave-flash","application/vnd.adobe.brushes.brush+ucf","application/vnd.adobe.collage","application/vnd.adobe.proto","application/msword","application/msexcel","application/mspowerpoint","application/vnd.ms-publisher","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","text/rtf","application/illustrator.template","application/vnd.adobe.indesign.template","application/vnd.adobe.photoshop.template","image/vnd.adobe.photoshop.template"]),o={};function a(e){var t;return e?(null===(t=n[e.toLowerCase()])||void 0===t?void 0:t.exts)||function(e){const t=e.match(/application\/x-adobe-libraries-(.+)/);return t?[t[1]]:[]}(e.toLowerCase()):[]}function s(e){return e?o[e.toLowerCase()]||function(e){return[`application/x-adobe-libraries-${e}`]}(e.toLowerCase()):[]}function c(e){return i.has(e)}Object.keys(n).forEach((e=>{n[e].exts.forEach((t=>{o[t]=o[t]||[],o[t].push(e)}))}));const l=[1,1,2,3,5,8,13,21,34,55],u=10485760,p=[45623,45625],d=[15e3,3e4],h=d.length,f=5242880,m={photoshop:"TOOLKIT_NAME_PHOTOSHOP",photoshop_swatches:"TOOLKIT_NAME_PHOTOSHOP_SWATCHES",photoshop_brushes:"TOOLKIT_NAME_PHOTOSHOP_BRUSHES",photoshop_gradients:"TOOLKIT_NAME_PHOTOSHOP_GRADIENTS",photoshop_patterns:"TOOLKIT_NAME_PHOTOSHOP_PATTERNS",photoshop_styles:"TOOLKIT_NAME_PHOTOSHOP_STYLES",photoshop_shapes:"TOOLKIT_NAME_PHOTOSHOP_SHAPES",photoshop_swatches_prerelease:"TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR",photoshop_brushes_prerelease:"TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR",photoshop_gradients_prerelease:"TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR",photoshop_patterns_prerelease:"TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR",photoshop_styles_prerelease:"TOOLKIT_NAME_PHOTOSHOP_STYLES_PR",photoshop_shapes_prerelease:"TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR"},g={IMAGE_ELEMENT_TYPE:"application/vnd.adobe.element.image+dcx",COLOR_ELEMENT_TYPE:"application/vnd.adobe.element.color+dcx",COLOR_THEME_ELEMENT_TYPE:"application/vnd.adobe.element.colortheme+dcx",BRUSH_ELEMENT_TYPE:"application/vnd.adobe.element.brush+dcx",CHARACTER_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.characterstyle+dcx",PARAGRAPH_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.paragraphstyle+dcx",FONT_ELEMENT_TYPE:"application/vnd.adobe.element.font+dcx",LAYER_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.layerstyle+dcx",LOOK_ELEMENT_TYPE:"application/vnd.adobe.element.look+dcx",CAPSULE_ELEMENT_TYPE:"application/vnd.adobe.element.graphic+dcx",VIDEO_ELEMENT_TYPE:"application/vnd.adobe.element.video+dcx",THREE_D_ELEMENT_TYPE:"application/vnd.adobe.element.3d+dcx",LIGHT_ELEMENT_TYPE:"application/vnd.adobe.element.light+dcx",MATERIAL_ELEMENT_TYPE:"application/vnd.adobe.element.material+dcx",PATTERN_ELEMENT_TYPE:"application/vnd.adobe.element.pattern+dcx",TEMPLATE_ELEMENT_TYPE:"application/vnd.adobe.element.template+dcx",TEXT_ELEMENT_TYPE:"application/vnd.adobe.element.text+dcx",ANIMATION_ELEMENT_TYPE:"application/vnd.adobe.element.animation+dcx",LIBRARY_TYPE:"application/vnd.adobe.library+dcx",GRADIENT_ELEMENT_TYPE:"application/vnd.adobe.element.gradient+dcx",COMPONENT_ELEMENT_TYPE:"application/vnd.adobe.element.component+dcx",AUDIO_ELEMENT_TYPE:"application/vnd.adobe.element.audio+dcx",ML_MODEL_ELEMENT_TYPE:"application/vnd.adobe.element.mlmodel+dcx"},v=/^application\/vnd\.adobe\.element\.(.*)\+dcx$/,y={ACCC:"Creative Cloud Desktop",AEFT:"After Effects",CCX:"CCX",DRWV:"Dreamweaver",Figma:"Figma",FLPR:"FlashPro",FRED:"Fred",GoogleSlides:"Google Slides",IDSN:"InDesign",ILST:"Illustrator",ILST_UXP:"Illustrator",KBRG:"Bridge",PHXS:"Photoshop",PHXS_UXP:"Photoshop",PowerPoint:"Microsoft PowerPoint",PPRO:"Premiere Pro",SPRK:"XD",STGR:"Stager",StyleGuide:"Style Guide",Word:"Microsoft Word"},b={MAX_ELEMENTS:1e4,MAX_REMOVED_ELEMENTS:2e3,MAX_COMPONENT_SIZE:1073741824,DL_NAMESPACE:"library",VALID_RELATIONS:["primary","rendition","alternate"],DEFAULT_GROUP_CLASSIFIER:"$default",ELEMENT_ACTIONS:["edit","openStock","editInSource"],LIBRARY_ACTIONS:["editInSource"],DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP:{types:{"application/vnd.adobe.xd.cloudproject+dcx":["SPKR"]},products:{}},ELEMENT_ACTION_PRODUCT_MAP:{types:{"application/vnd.adobe.element.image+dcx":{"application/illustrator":["ILST_EDIT","ILST_PLACE","IDSN_PLACE"],"image/svg+xml":["ILST_EDIT","ILST_PLACE"],"application/vnd.adobe.indesign-idms":["IDSN_EDIT","IDSN_PLACE"],"image/vnd.adobe.photoshop":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"application/photoshop":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"application/photoshop.large":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"image/png":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/jpeg":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/jpg":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE","ILST_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/gif":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/bmp":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/x-portable-bitmap":["PHXS_EDIT","PHXS_PLACE"],"image/x-pict":["PHXS_EDIT","PHXS_PLACE"],"image/x-pcx":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-graymap":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-anymap":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-pixmap":["PHXS_EDIT","PHXS_PLACE"],"image/x-tga":["PHXS_EDIT","PHXS_PLACE"],"image/tiff":["PHXS_EDIT","PHXS_PLACE"],"image/vnd.wap.wbmp":["PHXS_EDIT","PHXS_PLACE"]},"application/vnd.adobe.element.text+dcx":{"application/illustrator-text":["ILST_EDIT_TEXT"],"application/vnd.adobe.indesign-idms-text":["IDSN_EDIT_TEXT"]},"application/vnd.adobe.element.template+dcx":{"image/vnd.adobe.photoshop.template":["PHXS_PLACE"],"application/illustrator.template":["ILST_PLACE"],"application/vnd.adobe.indesign.template":["IDSN_PLACE"]},"application/vnd.adobe.element.3d+dcx":{"application/vnd.adobe.obj.3d+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.material+dcx":{"application/vnd.adobe.mdl.material+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.light+dcx":{"application/vnd.adobe.ibl.light+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.animation+dcx":{"application/vnd.adobe.animate-xfl+zip":["FLPR_EDIT"],"application/vnd.adobe.animate-sym+zip":["FLPR_EDIT"]}},products:{}},VECTOR_RENDITION_ELEMENT_TYPES:["application/illustrator"],ANALYTICS_ENABLED:!1,DEVICE_DESCRIPTION:!1},_="cclibraries",E="LIBS",w=JSON.stringify({apiVersion:12}),L=["start","limit","selector","type","orderBy","group","owner"],x={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,CONFLICT:409,PRECONDITION_FAILED:412,UNSUPPOERTED_MEDIA_TYPE:415,IM_A_TEAPOT:418,INTERNAL_SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503},S="AbortError";var O=r(50586);function T(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I(e,t)}(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}const P="@PLACEHOLDER-[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}",C=new RegExp(`^${P}$`),A=new RegExp(`(${P})`),k=()=>`@PLACEHOLDER-${(0,O.v4)()}`,D=e=>C.test(e),N=e=>Object.assign({ownership:"private",groups:[],elements:[],documentationElements:[],deletable:!0,removedElements:[],areElementsLoaded:!0,isLibraryLoaded:!0,isWritable:!0,isParentWritable:!0,details:{elementCount:0,documentationElementCount:0,removedElementCount:0},removeType:"delete"},e);function R(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(e,t)}(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 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 j(e){try{if(e&&"object"==typeof e&&!Array.isArray(e))return e;const t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch(e){return}}function Z(e){const t=B(e);return t?JSON.stringify(t,Object.keys(t).sort()):""}const F=new RegExp("([^/]+);node=(.*)");function B(e){return j(e)||function(e){const t=e.match(F);if(!t)return;const r=R(t,3),n=r[1],i=r[2];return{"dc:format":"application/vnd.adobe.library+dcx","stRef:documentID":n,"stRef:fromPart":`id=${i}`}}(e)}function G(e){var t;const r=B(e);if(!r)return;return{libraryAssetId:r["repo:assetId"],libraryId:r["stRef:documentID"],elementId:null===(t=r["stRef:fromPart"])||void 0===t?void 0:t.substring(3)}}function U(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function z(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function V(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){z(o,n,i,a,s,"next",e)}function s(e){z(o,n,i,a,s,"throw",e)}a(void 0)}))}}function H(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y(e,t)}(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(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 W(e){const t=e&&e.replace(/^.*[\\/]/,""),r=t?t.lastIndexOf("."):-1;if(-1!==r)return t.substr(r+1).toLowerCase()}function $(e){return H(s(W(e))||[],1)[0]||"application/octet-stream"}function K(e){e.sort(((e,t)=>t.size-e.size));const t=Math.ceil(e.length/6);return e.splice(0,t).reduce(((e,t)=>e+Math.round(t.size/1024*2.5)),0)}function q(e){return new Promise((t=>{const r=new FileReader;r.onload=e=>{var r;const n=new Image;n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t(void 0)},n.src=null===(r=e.target)||void 0===r?void 0:r.result},r.readAsDataURL(e)}))}function X(e,t){return J.apply(this,arguments)}function J(){return(J=V(U().mark((function e(t,r){return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c(r)){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,"undefined"==typeof window||!window.FileReader||!window.Image){e.next=7;break}return e.abrupt("return",q(t));case 7:return e.abrupt("return");case 8:e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(2),e.abrupt("return");case 13:case"end":return e.stop()}}),e,null,[[2,10]])})))).apply(this,arguments)}class Q extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}const ee=["OPERATION_CANCELLED","EXCEEDS_MAX_LIBRARY_SIZE","THUMBNAIL_NOT_AVAILABLE","RENDITION_NOT_AVAILABLE","URL_VALIDATION_FAILED","CORRUPTED_LIBRARY","TRANSFER_ABORTED","TRANSFER_ERROR","NETWORK_ERROR","EXCEEDS_QUOTA","EXCEEDS_COMPONENT_LIMIT","RETRYABLE_SERVER_ERROR","LOGGED_OUT","FILE_TOO_LARGE","INVALID_DATA","FS_ERROR","OUT_OF_SPACE","ACCESS_DENIED","NOT_ALLOWED","DELETED_LOCALLY","REQUIRES_FILESYSTEM","NOT_SUPPORTED","NOT_IMPLEMENTED","INVALID_PARAMETER","READ_ONLY","CONNECTION_FAILED","REQUEST_FAILED","INVALID_RESPONSE","INVALID_JSON"];class te extends Q{constructor(e,t,r,n){(function(e){const t=e;return!!t.code&&!!t.message})(e)&&(t=e.message,r=e.libraryId,n=e.underlyingError,e=e.code),super(`[${e}] ${t}`),this.code=e,this.libraryId=r,this.underlyingError=n}}var re=r(5939),ne=r.n(re);class ie{constructor(){this._emitter=new re.EventEmitter}get DANGEROUS(){return{removeAllListeners:e=>(e?this._emitter.removeAllListeners(e):this._emitter.removeAllListeners(),this)}}addListener(e,t){return this._emitter.addListener(e,t),this}on(e,t){return this.addListener(e,t)}once(e,t){return this._emitter.once(e,t),this}removeListener(e,t){return this._emitter.removeListener(e,t),this}off(e,t){return this.removeListener(e,t)}setMaxListeners(e){return this._emitter.setMaxListeners(e),this}getMaxListeners(){return this._emitter.getMaxListeners()}listeners(e){return this._emitter.listeners(e)}rawListeners(e){return this._emitter.rawListeners(e)}emit(e,...t){return this._emitter.emit(e,...t)}listenerCount(e){return this._emitter.listenerCount(e)}prependListener(e,t){return this._emitter.prependListener(e,t),this}prependOnceListener(e,t){return this._emitter.prependOnceListener(e,t),this}eventNames(){return this._emitter.eventNames()}}class oe extends ie{constructor(){super(...arguments),this._abortController=new AbortController,this._isComplete=!1,this._progress=0}abort(){this.DANGEROUS.removeAllListeners(),this._abortController.abort()}get isComplete(){return 100===this.progress}get progress(){return this._progress}set progress(e){this._progress=Math.min(e,100)}}var ae=r(85878);class se extends Event{constructor(e,t){super("messageLogged"),this.message=e,this.logLevel=t}}class ce extends re.EventEmitter{_loggerEvent(e,t){this.emit("messageLogged",new se(`[CCLibs] ${e}`,t))}log(e){this._loggerEvent(e,ae.in.Info)}warn(e){this._loggerEvent(e,ae.in.Warn),console.warn(e)}error(e){this._loggerEvent(e,ae.in.Err),console.error(e)}info(e){this._loggerEvent(e,ae.in.Info)}debug(e){this._loggerEvent(e,ae.in.Debug)}}const le=new ce;class ue extends Q{static isRequestError(e){return!!e.code}constructor(e,t,r,n){super(`[${e}] ${t}`),this._code=e,this._response=r,this._underlyingError=n}get code(){return this._code}get response(){return this._response}get underlyingError(){return this._underlyingError}set underlyingError(e){this._underlyingError=e}setResponse(e){return this.response?le.warn("Request Error response reference is already set."):this._response=e,this}}function pe(e,t){return de(null==e?void 0:e.status,t).setResponse(e)}function de(e,t){switch(e){case 304:return new ue("NOT_MODIFIED","Response has not changed.");case 401:return new ue("UNAUTHORIZED","Token expired or invalid");case 403:return new ue("INVALID_CREDENTIALS","You do not have access to this resource.");case 404:return new ue("ENOENT"===t?t:"NOT_FOUND","Resource not found");case 408:return new ue("REQUEST_TIMEOUT","Server could not respond in a timely manner");case 412:return new ue("PRECONDITION_FAILED","This resource does not match the requisite conditions.");case 422:return new ue("INVALID_DATA","Library is corrupt, unzipping failed.");case 507:return new ue("OUT_OF_SPACE","Hard disk ran out of space.");default:return new ue("GENERIC_ERROR",`Something went wrong: ${e}`)}}function he(e){const t=pe(e._additionalInfo.response);return t.underlyingError=e,t}function fe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function me(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ge(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){me(o,n,i,a,s,"next",e)}function s(e){me(o,n,i,a,s,"throw",e)}a(void 0)}))}}class ve{constructor(e,t,r,n,i){this.url=e,this.headers=t,this.status=r,this.statusText=n,this._text=i}get ok(){const e=this.status;return e>=x.OK&&e<x.MULTIPLE_CHOICES}get redirected(){return!1}get type(){return"basic"}json(){var e=this;return ge(fe().mark((function t(){return fe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",JSON.parse(e._text));case 4:throw t.prev=4,t.t0=t.catch(0),new te("INVALID_DATA",`Failed to parse JSON response from '${e.url}' async request.`,void 0,t.t0);case 7:case"end":return t.stop()}}),t,null,[[0,4]])})))()}text(){var e=this;return ge(fe().mark((function t(){return fe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._text);case 1:case"end":return t.stop()}}),t)})))()}get trailer(){throw new te("NOT_IMPLEMENTED","AsyncResponse.trailer not implemented.")}clone(){const e=new Headers;return this.headers.forEach(((t,r)=>e.set(r,t))),new ve(this.url,e,this.status,this.statusText,this._text)}get bodyUsed(){throw new te("NOT_IMPLEMENTED","AsyncResponse.bodyUsed not implemented.")}get body(){throw new te("NOT_IMPLEMENTED","AsyncResponse.body not implemented.")}arrayBuffer(){return ge(fe().mark((function e(){return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new te("NOT_IMPLEMENTED","AsyncResponse.arrayBuffer not implemented.");case 1:case"end":return e.stop()}}),e)})))()}blob(){return ge(fe().mark((function e(){return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new te("NOT_IMPLEMENTED","AsyncResponse.blob not implemented.");case 1:case"end":return e.stop()}}),e)})))()}formData(){return ge(fe().mark((function e(){return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new te("NOT_IMPLEMENTED","AsyncResponse.formData not implemented.");case 1:case"end":return e.stop()}}),e)})))()}}const ye=function(){let e=33;const t=["^(["];for(let r=34;r<=127;++r)127!==r&&-1==='()<@,;:"/[]={}'.indexOf(String.fromCharCode(r))||(t.push("\\"+e.toString(8)),e<r-1&&t.push("-\\"+(r-1).toString(8)),e=r+1);return t.push("]+):(.*)$"),new RegExp(t.join(""))}(),be=/^[^\s]+\s+(\d+)\s*(.*)$/;class _e{constructor(e){this._text=e,this._index=0}readLine(){const e=this._index,t=this._text,r=t.indexOf("\n",e);if(-1===r)return;this._index=r+"\n".length;let n=t.slice(e,r);return n.endsWith("\r")&&(n=n.slice(0,-1)),n}get remainderText(){return this._text.slice(this._index)}}function Ee(e,t){if(!t)throw new te("INVALID_DATA","Invalid async response body.");const r=new _e(t);let n,i;const o=r.readLine();if(o){const e=o.match(be);if(!e)throw new te("INVALID_DATA","Invalid status line for async response.");if(n=parseInt(e[1],10),!n)throw new te("INVALID_DATA","Could not find status code for async response.");i=e[2]}else n=x.OK,i="";const a=[];let s,c=r.readLine();for(;c;){const e=c.match(ye);e?(s=e[1],a.push([s,e[2]])):s&&a.push([s,c]),c=r.readLine()}return new ve(e,new Headers(a),n,i,r.remainderText)}function we(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */we=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Le(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class xe extends oe{constructor(e,t){super(),this._driver=e,this._handleResponse(t)}cancel(){this.abort(),this._location&&(this._driver.abortOperation(this._location),this._location=void 0)}get error(){return this._error}_handleResponse(e){var t,r=this;return(t=we().mark((function t(){var n,i,o,a,s,c,l,u;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e;case 3:if(i=t.sent,![x.NO_CONTENT,x.OK].includes(i.status)){t.next=17;break}if(r.progress=100,i.status!==x.OK){t.next=10;break}return t.next=9,i.text().then((e=>(o=e,Ee("",e)))).then((e=>(s=e.headers,e.json().catch((()=>{}))))).catch((()=>JSON.parse(o))).catch((()=>{le.error(`Error parsing async response: ${i}`)}));case 9:a=t.sent;case 10:if(!(null==a?void 0:a.exception_code)){t.next=14;break}throw new ue(a.status,a.message,i,a);case 14:return r.emit("change",!0,a,s),r.DANGEROUS.removeAllListeners(),t.abrupt("return");case 17:if(i.status!==x.ACCEPTED){t.next=36;break}return c={},t.prev=19,t.next=22,i.json();case 22:c=t.sent,t.next=27;break;case 25:t.prev=25,t.t0=t.catch(19);case 27:if(c.progress&&(r.progress=c.progress,r.emit("change")),(l=null!==(n=i.headers.get("location"))&&void 0!==n?n:c.href)&&(r._location=l),u=i.headers.get("retry-after")?parseInt(i.headers.get("retry-after"),10):1,r._location){t.next=33;break}throw new ue("MALFORMED_RESPONSE","Location header is missing from ops monitor response");case 33:return t.next=35,r._driver.sleep(1e3*u,r._abortController.signal);case 35:return t.abrupt("return",r._handleResponse(r._driver.fetch(r._location,{signal:r._abortController.signal})));case 36:throw new ue("UNEXPECTED_RESPONSE",`Unexpected response from ops monitor: ${i.status}`);case 39:t.prev=39,t.t1=t.catch(0),r._error=t.t1,r.progress=100,r.emit("change",!0),r.DANGEROUS.removeAllListeners();case 45:case"end":return t.stop()}}),t,null,[[0,39],[19,25]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){Le(o,n,i,a,s,"next",e)}function s(e){Le(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}function Se(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||Oe(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 Oe(e,t){if(e){if("string"==typeof e)return Te(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)?Te(e,t):void 0}}function Te(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}const Ie=new class{constructor(){this._contexts=new Map}register(e,t){const r=(0,O.v4)();return this._contexts.set(r,{createAtom:e,transaction:t}),()=>this._contexts.delete(r)}transaction(e){const t=Array.from(this._contexts.values()).reduce(((e,{transaction:t})=>()=>t((()=>e()))),e);return t()}reportObserved(e,t){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Oe(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this._contexts);try{for(n.s();!(r=n.n()).done;){const n=Se(r.value,2),i=n[0],o=n[1].createAtom,a=`_atom_${i}_${t}`;let s=e[a];if(!s){const r=()=>s.reportChanged();s=o(`${e.constructor.name}${a}`,(()=>e.on(t,r)),(()=>e.off(t,r))),e[a]=s}s.reportObserved()}}catch(e){n.e(e)}finally{n.f()}}};function Pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ce(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ce(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Ce(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 Ae(...e){return function(t,r,n){const i=n.get?"get":n.value?"value":void 0;if(i){const t=n[i];n[i]=function(...r){var n,i=Pe(e);try{for(i.s();!(n=i.n()).done;){const e=n.value;Ie.reportObserved(this,e)}}catch(e){i.e(e)}finally{i.f()}return t.apply(this,r)}}}}function ke(...e){return(e=>"string"!=typeof e[0])(e)?Ae("change")(...e):Ae(...e)}const De={Date:!0,RegExp:!0,String:!0,Number:!0};function Ne(e,t,r={cyclesFix:!0},n=[]){let i=[];const o=Array.isArray(e);for(const a in e){const s=e[a],c=o?+a:a;if(!(a in t)){i.push({type:"REMOVE",path:[c],oldValue:e[a]});continue}const l=t[a],u="object"==typeof s&&"object"==typeof l;if(!(s&&l&&u)||De[Object.getPrototypeOf(s).constructor.name]||r.cyclesFix&&n.includes(s))s===l||u&&(isNaN(s)?s+""==l+"":+s==+l)||i.push({path:[c],type:"CHANGE",value:l,oldValue:s});else{const e=Ne(s,l,r,r.cyclesFix?n.concat([s]):[]);i.push.apply(i,e.map((e=>(e.path.unshift(c),e))))}}const a=Array.isArray(t);for(const r in t)r in e||i.push({type:"CREATE",path:[a?+r:r],value:t[r]});return i}function Re(e){return e=e.toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),(isNaN(parseInt(e,10))||parseInt(e,10)>250)&&(e="0"),e}function Me(e="0",t="0"){if(e===t)return 0;const r=Re(e).split("."),n=Re(t).split(".");let i;for(let e=0;e<r.length&&e<n.length;e++){const t=parseInt(r[e],10);if(i=t-parseInt(n[e],10),isNaN(i))return isNaN(t)?1:-1;if(i>0)return-1;if(i<0)return 1}return i=r.length-n.length,i>0?-1:i<0?1:0}function je(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */je=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ze(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Fe{constructor(e,t){this._item=e,this._applicationActionData=t}get item(){return this._item}get minVersion(){return this._applicationActionData.minVersion}get appCode(){return this._applicationActionData.appCode}get appName(){return this._applicationActionData.appName}get action(){return this._applicationActionData.action}get installedVersions(){return this.item.apiRoot.driver.config.installedApps.filter((e=>e.code===this._applicationActionData.appCode)).map((e=>e.version)).sort(Me)}isCompatibleVersionInstalled(){return this.installedVersions.length&&Me(this._applicationActionData.minVersion,this.installedVersions[0])>=0}invoke(){var e,t=this;return(e=je().mark((function e(){return je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isCompatibleVersionInstalled()){e.next=2;break}throw new te("NOT_SUPPORTED","A compatible version of the application is needed for this action",t.item instanceof Ft?t.item.library.id:t.item.id);case 2:return e.abrupt("return",t.item.apiRoot.driver.sendAction(t));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ze(o,n,i,a,s,"next",e)}function s(e){Ze(o,n,i,a,s,"throw",e)}a(void 0)}))})()}toJSON(){return JSON.stringify(Object.assign(Object.assign({},this._applicationActionData),this.item instanceof Ft?{libraryId:this.item.library.id,elementId:this.item.id}:{libraryId:this.item.id}))}}function Be(e,t,r,n){return r.map((r=>{const i=n[r];if(i&&(!t||t===i.action))return new Fe(e,i)})).filter(Boolean).sort(((e,t)=>(null==e?void 0:e.isCompatibleVersionInstalled)&&!(null==t?void 0:t.isCompatibleVersionInstalled)?-1:!(null==e?void 0:e.isCompatibleVersionInstalled)&&(null==t?void 0:t.isCompatibleVersionInstalled)?1:0))}class Ge{constructor(e){this.data=e}get config(){return this.data.config}get user(){return this.data.user}get ignoreRenditionGrids(){return this.data.ignoreRenditionGrids}get installedApps(){return this.data.installedApps||[]}get processInfo(){return this.data.processInfo}get environment(){return this.data.environment}get renditionSize(){return this.data.config.RENDITION_SIZES}get fullRenditionConfig(){return this.data.config.FULL_RENDITION_CONFIG}}function Ue(e,t){return new Promise(((r,n)=>{const i=()=>{clearTimeout(o),null==t||t.removeEventListener("abort",i),n(new DOMException("Request aborted","AbortError"))},o=setTimeout((()=>{null==t||t.removeEventListener("abort",i),r()}),e);t&&(t.addEventListener("abort",i),t.aborted&&i())}))}function ze(e,...t){for(var r=0,n=t;r<n.length;r++){const t=n[r];for(const r in t)"object"==typeof t[r]&&e[r]?ze(e[r],t[r]):Object.assign(e,{[r]:t[r]})}return e}function Ve(e){const t={};return Object.keys(e).forEach((r=>{if("object"==typeof e[r]){const n=Ve(e[r]);Object.keys(n).forEach((e=>{t[`${r}.${e}`]=n[e]}))}else t[r]=e[r]})),t}function He(e){let t;return function(r,n,i){const o=i.value;i.value=function(...r){clearTimeout(t),t=setTimeout((()=>o.apply(this,r)),e)}}}function Ye(e,t){return`CCLibraries_${null==e?void 0:e.id}_${t}`}var We;function $e(e,t){let r;return{future:new Promise(((...n)=>{r=setTimeout(n[e],t)})),cancel:()=>clearTimeout(r)}}!function(e){e[e.RESOLVE=0]="RESOLVE",e[e.REJECT=1]="REJECT"}(We||(We={}));const Ke=(...e)=>{const t=new AbortController,r=()=>{t.abort(),e.forEach((e=>e.removeEventListener("abort",r)))};return e.some((e=>e.aborted))?r():e.forEach((e=>e.addEventListener("abort",r))),t.signal};const qe=new class{constructor(){this.signalToReasonMap=new WeakMap}getSignal(e){var t;return null!==(t=e.signal)&&void 0!==t?t:e}reason(e){return this.signalToReasonMap.get(this.getSignal(e))}give(e,t){this.signalToReasonMap.set(this.getSignal(e),t)}};function Xe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Je(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Je(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Je(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 Qe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function et(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function tt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){et(o,n,i,a,s,"next",e)}function s(e){et(o,n,i,a,s,"throw",e)}a(void 0)}))}}var rt,nt=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}};function it(e){return ot.apply(this,arguments)}function ot(){return ot=tt(Qe().mark((function e(t){var r,n,i,o,a,s,c,l,u;return Qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],e.prev=1,s=!0,c=nt(t);case 3:return e.next=5,c.next();case 5:if(l=e.sent,r=l.done){e.next=13;break}o=l.value,s=!1;try{u=o,a.push(...u)}finally{s=!0}case 11:e.next=3;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),n={error:e.t0};case 18:if(e.prev=18,e.prev=19,s||r||!(i=c.return)){e.next=23;break}return e.next=23,i.call(c);case 23:if(e.prev=23,!n){e.next=26;break}throw n.error;case 26:return e.finish(23);case 27:return e.finish(18);case 28:return e.abrupt("return",a);case 29:case"end":return e.stop()}}),e,null,[[1,15,18,28],[19,,23,27]])}))),ot.apply(this,arguments)}!function(e){e.CONNECTED="connected",e.CONNECTING="connecting",e.LOADING="loading",e.ERROR="error"}(rt||(rt={}));class at extends ie{constructor(e){super(),this._connector=e,this._isConnected=!1,this._failedConnectionAttempt=!1,this._options={},this._config=new Ge({config:{},environment:"production"}),this._cachedFetch=function(e){const t=new Map;return(...r)=>{const n=JSON.stringify(r),i=t.get(n);if(i)return i;const o=e.apply(void 0,r);return t.set(n,o),setTimeout((()=>o.finally((()=>t.delete(n))))),o}}(fetch),this._loadElementsAbortController=new AbortController}get config(){return this._config}get environment(){return this._config.environment}get token(){return this._token}get isConnected(){return this._isConnected}get connectionState(){return this._failedConnectionAttempt?rt.ERROR:this.isConnected?rt.CONNECTED:this._connectionPromise?rt.CONNECTING:rt.LOADING}resetAbortController(){this._abortController=new AbortController}get abortController(){return this._abortController}init(e={},t=(()=>{}),r=(()=>{})){return this._options=Object.assign(Object.assign({},this._options),e),this.on("connect",t),this.on("disconnect",r),this._options.skipConnectingOnInit?Promise.resolve():this.connect()}get _isConnectingOrConnected(){return Boolean(this._abortController&&!this._abortController.signal.aborted)}connect(){return this._isConnectingOrConnected||(this.resetAbortController(),this._connectionPromise=this._connect(),this.emit("connecting")),this._connectionPromise}_attemptToConnect(e){var t=this;return tt(Qe().mark((function r(){return Qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise(function(){var r=tt(Qe().mark((function r(n){var i,o,a,s,c;return Qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,i=$e(We.REJECT,1e4),o=i.future,a=i.cancel,s=new AbortController,r.next=5,Promise.race([t._connector(s.signal),o]).finally((()=>{s.abort(),a()}));case 5:if(c=r.sent,!(null==e?void 0:e.aborted)){r.next=8;break}return r.abrupt("return",n(!1));case 8:return r.next=10,t._handleConnected(c);case 10:return t._isConnected=!0,r.abrupt("return",n(!0));case 14:return r.prev=14,r.t0=r.catch(0),r.abrupt("return",n(!1));case 17:case"end":return r.stop()}}),r,null,[[0,14]])})));return function(e){return r.apply(this,arguments)}}()).then((e=>(t._failedConnectionAttempt=!e,t._failedConnectionAttempt&&t.emit("failedConnection"),e))));case 1:case"end":return r.stop()}}),r)})))()}_connect(){var e=this;return tt(Qe().mark((function t(){var r,n,i,o;return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=null===(r=e._abortController)||void 0===r?void 0:r.signal,i=0;case 2:return t.next=4,e._attemptToConnect(n);case 4:if(t.sent){t.next=23;break}if(!(void 0!==e._options.retryCount&&e._options.retryCount<=i)){t.next=8;break}return le.log(`[DRIVER] Failed to connect to server (Attempt: ${i}). Exceeded max retries.`),t.abrupt("return");case 8:return o=1e3*l[Math.min(i,l.length-1)],le.log(`[DRIVER] Failed to connect to server (Attempt: ${i}). Will retry in ${o}ms.`),t.prev=10,t.next=13,Ue(o,n);case 13:t.next=20;break;case 15:if(t.prev=15,t.t0=t.catch(10),!(t.t0 instanceof Error&&"AbortError"===t.t0.name)){t.next=19;break}return t.abrupt("return");case 19:throw t.t0;case 20:i+=1,t.next=2;break;case 23:e.emit("connect",e);case 24:case"end":return t.stop()}}),t,null,[[10,15]])})))()}disconnect(){var e,t;null===(e=this._abortController)||void 0===e||e.abort(),this._isConnected=!1,this._failedConnectionAttempt=!1,null===(t=this._handleDisconnected)||void 0===t||t.call(this),this.emit("disconnect",this)}reconnect(){var e=this;return tt(Qe().mark((function t(){return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return le.warn("Process restart. Attempting to reconnect"),e.disconnect(),t.next=4,e.connect();case 4:case"end":return t.stop()}}),t)})))()}sleep(e,t){var r,n;return Ue(e,t&&(null===(r=this._abortController)||void 0===r?void 0:r.signal)?Ke(t,this._abortController.signal):null===(n=this._abortController)||void 0===n?void 0:n.signal)}getAllLibraries(e,t){return it(this.getLibraries(e,t))}getAllElements(e,t,r){return it(this.getElements(e,t,r))}getAllDocumentationElements(e,t,r){return it(this.getDocumentationElements(e,t,r))}getAllRemovedElements(e,t,r){return it(this.getRemovedElements(e,t,r))}getAllGroups(e){return it(this.getGroups(e))}publishBrand(e){throw new te("NOT_IMPLEMENTED","Driver.publishBrand is not implemented.")}unpublishBrand(e){throw new te("NOT_IMPLEMENTED","Driver.unpublishBrand is not implemented.")}setRenditionCacheChangeListener(e){}addWatchedLibrary(e){}removeWatchedLibrary(e){}addLibrariesSyncGroupListener(e){}removeLibrariesSyncGroupListener(){}operationFactory(e,t,r){return new e(t,r)}getOperationTypes(e){return this._operationTypes}constructOperation(e){var t;if(0===e.actions.length)return;if(this._options.readOnly)throw new te("NOT_ALLOWED","Cannot perform write action -- in read-only mode.");const r=null===(t=this.getOperationTypes(e))||void 0===t?void 0:t.find((t=>t.supportsAction(e.actions[0])));if(!r)throw new Error;const n=this.operationFactory(r,this,e);var i,o=Xe(e.actions);try{for(o.s();!(i=o.n()).done;){const e=i.value;if(!n.addAction(e))break}}catch(e){o.e(e)}finally{o.f()}return n}getLocalSettings(){var e;const t=null!==(e=this._localStorage)&&void 0!==e?e:new Map;return{config:Object.fromEntries(t.entries())}}}function st(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||lt(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 ct(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=lt(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function lt(e,t){if(e){if("string"==typeof e)return ut(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)?ut(e,t):void 0}}function ut(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 pt=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},dt=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 i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};function ht(e,t,r){const n=r.value;r.value=function(...e){let t;this._squelchModelChangeEvents();try{t=n.apply(this,e)}finally{this._unsquelchModelChangeEvents()}return t}}class ft extends ie{constructor(e,t,r=(null==e?void 0:e.driver)){super(),this._parent=e,this._Class=t,this._driver=r,this._models=[],this._indices=new Map,this._isSquelched=!1,this._changedModelsQueue=new Set,this._receivedEventDuringSquelchPeriod=!1,this._dataSinceLastReport=[],this._onModelChange=e=>{if(this._isSquelched)return this._receivedEventDuringSquelchPeriod=!0,void this._changedModelsQueue.add(e);this.emit("modelChange",[e])},this._squelchModelChangeEvents=()=>{this._receivedEventDuringSquelchPeriod=!1,this._isSquelched=!0},this._unsquelchModelChangeEvents=()=>{this._isSquelched=!1,this._receivedEventDuringSquelchPeriod&&(this.emit("modelChange",Array.from(this._changedModelsQueue)),this._changedModelsQueue.clear())},this.registerIndex("id")}registerIndex(e){this._indices.set(e,new Map)}updateIndices(e,t){var r,n=ct(this._indices.entries());try{for(n.s();!(r=n.n()).done;){const n=st(r.value,2),i=n[0],o=n[1],a=e.data[i],s=t[i];s&&a!==s&&(D(a)||o.delete(a),o.set(s,e))}}catch(e){n.e(e)}finally{n.f()}}get(e){return this.getByIndex("id",e)}getByIndex(e,t){var r;return null===(r=this._indices.get(e))||void 0===r?void 0:r.get(t)}add(e,t=!0){return this._add(e,t)}remove(e,t=!0){this._remove(e,t)}replace(e,t=!0){const r=Array.isArray(e)?e:[e];this._replace(r,t)}upsert(...e){this._upsertItems(e)&&this.emit("change")}all(){return this._models}get length(){return this._models.length}get driver(){return this._driver}get changes(){const e=[...this._dataSinceLastReport],t=this._models.map((e=>{const t=e.data;t.elements,t.removedElements,t.documentationElements,t.groups;return dt(t,["elements","removedElements","documentationElements","groups"])})),r=Ne(e,t,{cyclesFix:!1}).reduce(((r,n)=>{const i="REMOVE"===n.type?e[n.path[0]]:t[n.path[0]],o=i.id,a=i.previousPlaceholderId,s=r.get(o)||{id:o,previousPlaceholderId:a,changes:[]};return s.changes.push(n),r.set(o,s),r}),new Map);return this._dataSinceLastReport=t,[...r.values()]}_upsertItems(e,t=!0){let r=!1;var n,i=ct(this._findCachedModels(...e));try{for(i.s();!(n=i.n()).done;){const e=st(n.value,2),i=e[0],o=e[1];o?o.update(i,t):(this._add(i),r=!0)}}catch(e){i.e(e)}finally{i.f()}return r}_findCachedModels(...e){var t;const r=[];if(!(null===(t=this._indices)||void 0===t?void 0:t.size)||!(null==e?void 0:e.length))return r;const n=Array.from(this._indices.entries());for(var i=0,o=e;i<o.length;i++){const e=o[i];let t;var a,s=ct(n);try{for(s.s();!(a=s.n()).done;){const r=st(a.value,2),n=r[0];if(t=r[1].get(e[n]),t)break}}catch(e){s.e(e)}finally{s.f()}t?r.push([e,t]):r.push([e,this.getByIndex("id",e.previousPlaceholderId)])}return r}_add(e,t=!1){const r=new this._Class(this,this._parent,e);this._models.push(r);var n,i=ct(this._indices);try{for(i.s();!(n=i.n()).done;){const e=st(n.value,2),t=e[0];e[1].set(r.data[t],r)}}catch(e){i.e(e)}finally{i.f()}return t&&this.emit("change"),r.on("change",(()=>this._onModelChange(r))),r}_remove(e,t=!0){const r="string"==typeof e?this.get(e):e;if(r){this._models.splice(this._models.indexOf(r),1);var n,i=ct(this._indices.entries());try{for(i.s();!(n=i.n()).done;){const e=st(n.value,2),t=e[0],i=e[1];i.delete(r.data[t]),i.delete(r.data.previousPlaceholderId)}}catch(e){i.e(e)}finally{i.f()}r.emit("remove"),r.DANGEROUS.removeAllListeners(),t&&this.emit("change")}}_replace(e,t=!0){let r=this._upsertItems(e,t);const n=e.map((e=>e.id));this._models.filter((e=>!n.includes(e.id))).forEach((e=>{this._remove(e,!1),r=!0})),r&&t&&this.emit("change")}}function mt(e){return class extends e{constructor(...e){super(...e);for(var t=0,r=Object.values(this._childModelCaches);t<r.length;t++){const e=r[t].cache;e.on("change",(()=>this.emit("change"))),e.on("modelChange",(()=>this.emit("change")))}this._updateCaches()}}}pt([ht],ft.prototype,"replace",null),pt([ht],ft.prototype,"upsert",null);class gt extends ie{constructor(e,t,r){super(),this._modelCache=e,this._parent=t,this._data=r,this._childModelCaches={},this._isCommitted=!1,this._waitingForCommit=!1,this._isSquelched=!1,this._receivedEventDuringSquelchPeriod=!1,this._commitFuture=new Promise(((e,t)=>{this._commitResolver=()=>{this._isCommitted=!0,e()},D(this._data.id)||this._commitResolver(),this.on("remove",(()=>{this._waitingForCommit&&!this._isCommitted&&t()}))}))}get id(){return this.data.id}get data(){return this._data}update(e,t=!0){var r;const n=D(this.id)&&e.id&&this.id!==e.id;return null===(r=this._modelCache)||void 0===r||r.updateIndices(this,e),Object.assign(this._data,e),this._updateCaches(t),t&&this.emit("change"),n&&this._commitResolver&&this._commitResolver(),this._data}get committed(){return this._waitingForCommit=!0,this._commitFuture}get isCommitted(){return this._isCommitted}squelchChangeEvents(){this._isSquelched=!0}unsquelchChangeEvents(){this._isSquelched=!1,this._receivedEventDuringSquelchPeriod&&(this._receivedEventDuringSquelchPeriod=!1,this.emit("change"))}emit(e,...t){return this._isSquelched&&"change"===e?(this._receivedEventDuringSquelchPeriod=!0,this.listenerCount(e)>0):super.emit(e,...t)}_updateCaches(e=!0){for(var t=0,r=Object.values(this._childModelCaches);t<r.length;t++){const n=r[t],i=n.cache,o=(0,n.accessor)(this.data);o&&i.replace(o,e)}}get apiRoot(){return this._parent.apiRoot}get driver(){var e;return(null===(e=this._modelCache)||void 0===e?void 0:e.driver)||this.apiRoot.driver}get isLocallyManaged(){return this.apiRoot.isLocallyManaged}}function vt(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!(this.library?this.library:this).isWritable)throw new te("NOT_ALLOWED",`${t} requires write access`,this.id);return e.apply(this,r)}}}function yt(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!this.apiRoot.cloudDriver)throw new te("NOT_ALLOWED",`${t} requires a cloud driver`);return e.apply(this,r)}}}function bt(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!(this.apiRoot.driver instanceof Cc))throw new te("NOT_ALLOWED",`${t} requires a local driver`);return e.apply(this,r)}}}const _t=e=>"RGB"===e.mode,Et=e=>_t(e)&&(!e.profileName||"sRGB IEC61966-2.1"===e.profileName),wt=(e,t,r)=>{let n=(Math.round(e)<<16|Math.round(t)<<8|Math.round(r)).toString(16);for(;n.length<6;)n="0"+n;return`#${n}`.toUpperCase()},Lt=(e,t,r)=>{const n=`application/vnd.adobe.${t}+json`;for(let i=0;i<e.representations.length;i++){const o=e.representations[i];if(o.type===n){const e=o.getValue(t,"data");if(e&&(!r||r(e)))return e}}},xt=e=>t=>{const r=Lt(t,e);if(r){const e=r.adbeFont&&r.adbeFont.style.toLowerCase();return!e||e.includes("normal")||e.includes("regular")?r.fontFamily:`${r.fontFamily} ${r.adbeFont.style}`}},St={"application/vnd.adobe.element.color+dcx":e=>(e=>{const t=Array.isArray(e)?e.find(Et)||e.find(_t):e;return t&&t.value?wt(t.value.r,t.value.g,t.value.b):""})(Lt(e,"color",Et)||Lt(e,"color",_t)),"application/vnd.adobe.element.characterstyle+dcx":xt("characterstyle"),"application/vnd.adobe.element.paragraphstyle+dcx":xt("paragraphstyle"),"application/vnd.adobe.element.font+dcx":e=>{const t=Lt(e,"font");return(null==t?void 0:t.name)||""}};function Ot(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tt(e,t)}(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 Tt(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 It=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class Pt extends gt{get library(){return this._parent}get sourceRefString(){return this.data.sourceRef}get sourceRef(){if(!this.sourceRefString)return;let e=j(this.sourceRefString);if(!e){const t=Ot(this.sourceRefString.split("#"),2);e={"repo:assetId":t[0],"stRef:fromPart":t[1]};const r=this.data.sourceModifiedDate;r&&(e["stRef:fromPartInstanceID"]=`${r}`)}return e}set sourceRef(e){if("object"!=typeof e||!j(e))throw new te("INVALID_PARAMETER","sourceRef must be a valid JSON object",this.library.id);this.dispatch({name:this._updateAction,type:"update",data:{sourceRef:JSON.stringify(e,Object.keys(e).sort())}})}}It([ke],Pt.prototype,"sourceRefString",null),It([ke,vt],Pt.prototype,"sourceRef",null);const Ct=new WeakMap;function At(e){return class extends e{constructor(){super(...arguments),this._isChangeListenerBound=!1}emit(e,...t){if("change"===e){if(this._isChangeListenerBound)return!0;this._isChangeListenerBound=!0;let e=Ct.get(this._parent);if(!e){e=[],Ct.set(this._parent,e);const t=()=>{var r;Ct.delete(this._parent),this._parent.off("change",t),r=()=>{e&&e.forEach((e=>e()))},Ie.transaction(r)};this._parent.on("change",t)}return e.push(((...e)=>{this._isChangeListenerBound=!1,super.emit("change",...e)})),!0}return super.emit(e,...t)}}}function kt(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Dt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dt(e,t)}(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 Dt(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 Nt(e){e=null!=e?e:{};const t=[];for(var r=0,n=Object.entries(e);r<n.length;r++){const e=kt(n[r],2),i=e[0],o=e[1],a=kt(i.split("#",2),2),s=a[0],c=a[1];t.push({namespace:s,key:c,value:o})}return t}function Rt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Rt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Mt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var jt=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let Zt=class extends Pt{constructor(){super(...arguments),this.isElement=!0,this._updateAction="updateElement",this._childModelCaches={representations:{cache:new ft(this,At($r)),accessor:e=>e.representations}},this._lastLocalUpdateDate=0}get id(){return this.data.id}get type(){return this.data.type}get modified(){return Math.max(this.data.modifiedDate,this._lastLocalUpdateDate)}get created(){return this.data.createdDate}get instanceId(){const e=this.getPrimaryRepresentation();return null==e?void 0:e.id}getReference(){const e={"dc:format":this.library.type,"repo:assetId":this.library.assetId,"repo:name":this.library.name,"stRef:manager":"Adobe Cloud","stRef:documentID":this.library.id,"stRef:fromPart":`id=${this.id}`,"stRef:fromPartName":this.name};return this.instanceId&&(e["stRef:fromPartInstanceID"]=this.instanceId),this.sourceRef&&"application/vnd.adobe.firefly-recipe+dcx"!==this.sourceRef["dc:format"]&&(e["stRef:fromPartDerivedFrom"]=this.sourceRef),e}getReferenceString(){return Z(this.getReference())}getLegacyReference(){var e;return null!==(e=this.data.elementRef)&&void 0!==e?e:`cloud-asset://${this.library.id};node=${this.id}`}get name(){return this.isAutoNamed?(e=>{const t=St[e.type];return t?t(e):""})(this):this.data.name}set name(e){this.dispatch({name:"updateElement",type:"update",data:{name:null==e?void 0:e.normalize()}})}get isAutoNamed(){const e=this.data.name,t=this.data.autoName;return!e||e===t}get isCommitted(){return!D(this.id)}getLocalizedName(e="en_US"){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.dispatch({name:"updateElement",type:"update",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get library(){return this._parent}get isWritable(){return this.library.isWritable}get tags(){return this.data.tags||[]}set tags(e){this.dispatch({name:"updateElement",type:"update",data:{tags:e}})}get dependencies(){var e;return(null===(e=this._data.dependencyIds)||void 0===e?void 0:e.map((e=>this.library.getElementById(e))).filter((e=>!!e)))||[]}set dependencies(e){const t=e.map((e=>e.id));this.dispatch({name:"updateElement",type:"update",data:{dependencyIds:t}})}createGroup(){}getGroups(e="$default"){return this.library.getGroups(e).filter((e=>this.data.groups.find((t=>t.id===e.id))))}getOrderInGroup(e){if(e.library!==this.library)return;const t=this.data.groups.find((t=>t.classifier===e.classifierName&&t.id===e.id));return t&&t.order}setOrderInGroup(e,t,r=!0){const n=r?this.data.groups.filter((t=>t.classifier!==e.classifierName)):[...this.data.groups],i=this.data.groups.findIndex((({id:t})=>t===e.id)),o={id:e.id,classifier:e.classifierName,order:t};t||-1===i?t&&-1!==i?n.splice(i,1,o):-1===i&&n.push(o):n.splice(i,1),this.dispatch({name:"updateElement",type:"update",data:{groups:n}})}get description(){return this.data.description}set description(e){this.dispatch({name:"updateElement",type:"update",data:{description:e}})}get descriptionModified(){return this.data.descriptionModifiedDate}get descriptionModifiedBy(){return this.data.descriptionModifiedBy}get descriptionModifiedContext(){return this.data.descriptionModifiedContext}get wasDescriptionModifiedLocally(){return this.data.descriptionModifiedLocally}get modifiedBy(){return this.data.modifiedBy}get modifiedContext(){return this.data.modifiedContext}get wasModifiedLocally(){return this.data.modifiedLocally}get createdBy(){return this.data.createdBy}get createdContext(){return this.data.createdContext}get wasCreatedLocally(){return this.data.createdLocally}get removed(){return this._removed||this.data.removedDate}set removed(e){this._removed=e}get removedBy(){return this.data.removedBy}get removedContext(){return this.data.removedContext}get wasRemovedLocally(){return this.data.removedLocally}get isDeletedLocally(){return!1}beginOperation(){return this.library.beginOperation()}endOperation(e){return this.library.endOperation(e)}get representations(){return this._representationCache.all()}getPrimaryRepresentation(){return this.representations.find((e=>"primary"===e.relationship))}getRepresentationById(e){return this.representations.find((t=>t.id===e))}createRepresentation(e,t,r,n){const i=k(),o=[...this.data.representations];return o.splice(1,0,{id:i,type:e,relationship:t,isFullSize:!1,isExternalLink:!1}),this.dispatch({name:"updateElementContent",type:"update",data:{representations:o}}),this.getRepresentationById(i)}removeRepresentation(e){const t=[...this.data.representations],r=t.findIndex((t=>t.id===e.id));-1!==r&&(t.splice(r,1),this.dispatch({name:"updateElementContent",type:"update",data:{representations:t}}))}removeAllRepresentations(){this.dispatch({name:"updateElementContent",type:"update",data:{renditionUrl:{},representations:[]}})}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return Nt(this.data.customData)}setValue(e,t,r){this.dispatch({name:"updateElement",type:"update",data:{customData:{[`${e}#${t}`]:r}}})}removeValue(e,t){this.setValue(e,t,null)}getThumbnailURL(e){return this.driver.getRenditionUrl(this,e)}getAuthenticatedThumbnailURL(e){return this.driver.getAuthenticatedThumbnailURL(this,e)}getThumbnailPath(e="full"){var t,r=this;return(t=Rt().mark((function t(){return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.committed;case 2:return t.abrupt("return",r.driver.getRenditionPath(r.library.id,r.id,e));case 3:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){Mt(o,n,i,a,s,"next",e)}function s(e){Mt(o,n,i,a,s,"throw",e)}a(void 0)}))})()}getThumbnailContent(e){return this.driver.getRendition(this,e).then((e=>e.blob()))}setThumbnailCache(e,t){return Promise.resolve({})}getCachedThumbnailPath(e){return""}supportsVectorThumbnail(){const e=this.getPrimaryRepresentation();return!!e&&b.VECTOR_RENDITION_ELEMENT_TYPES.includes(e.type)}getActions(e){const t=this.getPrimaryRepresentation();if(!t)return[];if(this.library.documentType){const t=this.apiRoot.getOption("DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP"),r=t.types[this.library.documentType]||[];return Be(this.library,e,r,t.products)}const r=this.apiRoot.getOption("ELEMENT_ACTION_PRODUCT_MAP");return Be(this,e,(r.types[this.type]||{})[t.type]||[],r.products)}get roles(){return this.data.roles||[]}set roles(e){this.dispatch({name:"updateElement",type:"update",data:{roles:e}})}get isStockAsset(){const e=Object.values(g).includes(this.type),t=void 0!==this.getStockDataForElement();return e&&t}get isLicensed(){var e;return"purchased"===(null===(e=this.getStockDataForElement())||void 0===e?void 0:e.state)}get _representationCache(){return this._childModelCaches.representations.cache}update(e,t=!0){const r=super.update(e,!1);return t&&this.emit("change"),r}dispatch(e){e.path||(e.path=`$.elements[?(@.id == "${this.id}")]`),this._lastLocalUpdateDate=Date.now(),this.library.dispatch(e)}getStockDataForElement(e){const t=void 0===e?this.getPrimaryRepresentation():this.representations[e];let r=null==t?void 0:t.getValue("adobestock","trackingdata");if(r&&(null==t?void 0:t.isExternalLink)&&(null==t?void 0:t.getCachedExternalLinkError())&&""!==(null==t?void 0:t.getContentURL())){const t=this.getStockDataForElement(void 0===e?0:e+1);r=t||Object.assign(Object.assign({},r),{state:"not_purchased"})}return r}};jt([ke],Zt.prototype,"id",null),jt([ke],Zt.prototype,"modified",null),jt([ke],Zt.prototype,"created",null),jt([ke,vt],Zt.prototype,"name",null),jt([ke],Zt.prototype,"isAutoNamed",null),jt([ke],Zt.prototype,"isCommitted",null),jt([ke],Zt.prototype,"getLocalizedName",null),jt([ke],Zt.prototype,"getLocalizedNames",null),jt([vt],Zt.prototype,"setLocalizedName",null),jt([ke],Zt.prototype,"isWritable",null),jt([ke],Zt.prototype,"tags",null),jt([ke,vt],Zt.prototype,"dependencies",null),jt([vt],Zt.prototype,"createGroup",null),jt([ke],Zt.prototype,"getGroups",null),jt([ke],Zt.prototype,"getOrderInGroup",null),jt([vt],Zt.prototype,"setOrderInGroup",null),jt([ke,vt],Zt.prototype,"description",null),jt([ke],Zt.prototype,"descriptionModified",null),jt([ke],Zt.prototype,"descriptionModifiedBy",null),jt([ke],Zt.prototype,"descriptionModifiedContext",null),jt([ke],Zt.prototype,"wasDescriptionModifiedLocally",null),jt([ke],Zt.prototype,"modifiedBy",null),jt([ke],Zt.prototype,"modifiedContext",null),jt([ke],Zt.prototype,"wasModifiedLocally",null),jt([ke],Zt.prototype,"createdBy",null),jt([ke],Zt.prototype,"createdContext",null),jt([ke],Zt.prototype,"wasCreatedLocally",null),jt([ke,vt],Zt.prototype,"removed",null),jt([ke],Zt.prototype,"removedBy",null),jt([ke],Zt.prototype,"removedContext",null),jt([ke],Zt.prototype,"wasRemovedLocally",null),jt([ke],Zt.prototype,"isDeletedLocally",null),jt([ke],Zt.prototype,"representations",null),jt([ke],Zt.prototype,"getPrimaryRepresentation",null),jt([ke],Zt.prototype,"getRepresentationById",null),jt([vt],Zt.prototype,"createRepresentation",null),jt([vt],Zt.prototype,"removeRepresentation",null),jt([vt],Zt.prototype,"removeAllRepresentations",null),jt([ke],Zt.prototype,"getValue",null),jt([ke],Zt.prototype,"getValues",null),jt([vt],Zt.prototype,"setValue",null),jt([vt],Zt.prototype,"removeValue",null),jt([ke],Zt.prototype,"getCachedThumbnailPath",null),jt([ke],Zt.prototype,"supportsVectorThumbnail",null),jt([ke],Zt.prototype,"getActions",null),jt([ke,vt],Zt.prototype,"roles",null),Zt=jt([mt],Zt);const Ft=Zt;function Bt(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gt(e,t)}(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 Gt(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}const Ut=e=>e.replace(/ |\t|\n/g,""),zt=/^(\$\.(?:elements|removedElements|documentationElements))\[\?\(@\.id=="([^"]+)"\)\]$/,Vt=/^\$\.groups\[\?\(@\.id=="([^"]+)"\)\]$/;function Ht(e){e=Ut(e);return Bt(zt.exec(e)||[],3)[2]}function Yt(e){e=Ut(e);return Bt(zt.exec(e)||[],2)[1]}function Wt(e){e=Ut(e);return Bt(Vt.exec(e)||[],2)[1]}function $t(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kt(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Kt(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 qt(e){return"undefined"!=typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}function Xt(e,t,r){var n;const i=r.reduce(((e,r)=>r(e,t)),e);return i!==e&&(i.originalAction=e),"aggregate"===i.type&&(i.actions=null===(n=i.actions)||void 0===n?void 0:n.map((e=>Xt(e,t,r)))),i}function Jt(e,t){var r,n,i;t||(t=e);const o={};var a,s=$t(e);try{for(s.s();!(a=s.n()).done;){const e=a.value;D(null===(n=null===(r=e.originalAction)||void 0===r?void 0:r.data)||void 0===n?void 0:n.id)&&(o[null===(i=e.originalAction)||void 0===i?void 0:i.data.id]=e.data)}}catch(e){s.e(e)}finally{s.f()}const c=[Qt,er,tr];return t.map((e=>Xt(e,o,c)))}function Qt(e,t){var r;const n=e.path&&function(e){const t=Ht(e)||Wt(e);return D(t)&&t}(e.path);if(n){const s=null===(r=t[n])||void 0===r?void 0:r.id;if(s)return Object.assign(Object.assign({},e),{path:(i=e.path,o=n,a=s,i.replace(o,a))})}var i,o,a;return e}function er(e,t){var r,n,i,o,a,s,c,l,u,p;let d=!1;const h=[];if(null===(n=null===(r=e.data)||void 0===r?void 0:r.groups)||void 0===n||n.forEach((e=>{var r;if(e.id&&D(e.id)){const n=null===(r=t[e.id])||void 0===r?void 0:r.id;if(n)return d=!0,void h.push(Object.assign(Object.assign({},e),{id:n}))}h.push(e)})),d)return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{groups:h})});if((null===(i=e.data)||void 0===i?void 0:i.id)&&D(null===(o=e.data)||void 0===o?void 0:o.id)){const r=null===(s=t[null===(a=e.data)||void 0===a?void 0:a.id])||void 0===s?void 0:s.id;r&&(e.data.id=r)}if((null===(c=e.data)||void 0===c?void 0:c.parentId)&&D(null===(l=e.data)||void 0===l?void 0:l.parentId)){const r=null===(p=t[null===(u=e.data)||void 0===u?void 0:u.parentId])||void 0===p?void 0:p.id;r&&(e.data.parentId=r)}return e}function tr(e,t){var r,n;const i=[];let o=!1;const a=e=>{let r=Object.assign({},e);if(e.id&&D(e.id)){const n=t[e.id];n&&(r=n,o=!0)}return r};return null===(n=null===(r=e.data)||void 0===r?void 0:r.representations)||void 0===n||n.forEach((e=>{e.source&&(e.source=a(e.source)),i.push(a(e))})),o?Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{representations:i})}):e}function rr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nr(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function nr(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 ir(e,t){var r,n=rr(t);try{for(n.s();!(r=n.n()).done;){const t=r.value;if(t.id===e.id)return t;if(t.children){const r=ir(e,t.children);if(r)return r}}}catch(e){n.e(e)}finally{n.f()}}function or(e,t){if(e instanceof Ft)return t;const r=qt(e.element.data.representations),n=ir(e,r);return n&&(n.children=t),r}var ar=r(20859),sr=r.n(ar);const cr="platform-cs",lr=["https://platform-cs.adobe.io/index","https://platform-cs-stage.adobe.io/index"],ur={Priority:"u=1"};function pr(e){const t=e.split(".");if(3===t.length)try{return JSON.parse(atob(t[1]))}catch(e){return}}function dr(e){const t=pr(e);if(t)return{user:{id:t.user_id,clientId:t.client_id}}}function hr(e){const t=pr(e);if(t){const e=Date.now()-parseInt(t.created_at,10);return Math.max(parseInt(t.expires_in,10)-e,0)}}function fr(e){let t;try{t=new URL(e)}catch(t){return{url:e,headers:{}}}return t.hostname.includes(cr)?(lr.includes(e)&&(t.hostname=t.hostname.replace(cr,"platform-cs-edge")),{url:t.href,headers:Object.assign({},ur)}):{url:e,headers:{}}}function mr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return gr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gr(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function gr(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 vr(e,t=200){const r=e.data.renditionUrl,n=void 0===r?{}:r,i="string"==typeof n?{template:n}:n,o=i.template,a=i.substitutions,s=void 0===a?{}:a;if(o){return fr(sr()(o).fill(Object.assign(Object.assign({},s),{size:`${t}`,type:"image/png"}))).url}}function yr(e){let t;switch(e.type){case"application/vnd.adobe.element.color+dcx":t=e=>{const t=e.representations.map((e=>e.getValue("color","data"))).find((e=>e&&"RGB"===e.mode));if(t)return{id:e.id,type:"application/vnd.adobe.element.color+dcx",rendition:{swatches:[[{alpha:t.alpha,mode:t.mode,type:t.type,value:t.value}]]}}};break;case"application/vnd.adobe.element.colortheme+dcx":t=e=>{const t=e.getPrimaryRepresentation();return t&&{id:e.id,type:"application/vnd.adobe.element.colortheme+dcx",rendition:t.getValue("colortheme","data")}};break;case"application/vnd.adobe.element.gradient+dcx":t=e=>{const t=e.getPrimaryRepresentation();return t&&{id:e.id,type:"application/vnd.adobe.element.gradient+dcx",rendition:t.getValue("gradient","data")}};break;default:t=e=>{let t=vr(e);if(t||(t=e.getThumbnailURL(202)),t)return{id:e.id,type:"href",rendition:t}}}return t(e)}function br(e){if(0===e.elements.length)return;const t=[...e.elements].sort(((e,t)=>t.modified-e.modified)),r=[...e.elements].sort(((e,t)=>e.created-t.created));let n=r.find((e=>{if("application/vnd.adobe.element.image+dcx"!==e.type)return;const t=yr(e);return t&&"href"===t.type}));const i={gridGenerationEtag:e.etag};n&&(i.main=yr(n));for(let e=0;e<r.length&&!i.main;e++)i.main=yr(r[e])||void 0,n=i.main&&r[e];i.tiles=[];for(let e=0;e<t.length&&i.tiles.length<3;e++){if(t[e]===n)continue;const r=yr(t[e]);r&&i.tiles.push(r)}return i}function _r(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Er(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Er(e,t)}(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 Er(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 wr;function Lr(e,t=e.manifest.data){var r,n,i,o,a,s,c;const l=null===(r=e.manifest)||void 0===r?void 0:r.etag,u=xr(e,null===(n=t.children)||void 0===n?void 0:n.find((e=>"elements"===e.name))),p=xr(e,null===(i=t.children)||void 0===i?void 0:i.find((e=>"removed_elements"===e.name))),d=xr(e,null===(o=t.children)||void 0===o?void 0:o.find((e=>"documentation_elements"===e.name))),h=null===(a=t.children)||void 0===a?void 0:a.find((e=>"groups"===e.name)),f=(null===(s=null==h?void 0:h.children)||void 0===s?void 0:s.map((e=>({id:e.id,name:e.name,classifier:e["library#classifier"],order:e["library#order"],parentId:e["library#parentId"],sourceRef:e["library#sourceRef"],customData:Tr(e)}))))||[],m={id:t.id,name:t.name,etag:l,localizedNames:t["library#localizedName"],toolkitId:t["toolkit#id"],documentId:t["library#documentId"],documentType:t["library#documentType"],createdBy:e.createdBy,modifiedBy:e.modifiedBy,createdDate:e.created.valueOf(),modifiedDate:e.modified.valueOf(),version:t.components&&t.components[0].version,roles:t["library#roles"],description:t["library#description"],details:{elementCount:u.length,documentationElementCount:d.length,removedElementCount:p.length},groups:f,elements:u,documentationElements:d,removedElements:p,customData:Tr(t),isLibraryLoaded:!0,areElementsLoaded:!0,appMetadata:null===(c=e.appMetadata)||void 0===c?void 0:c.data};return t.components&&t.components[0].version&&(m.version=t.components[0].version),m}function xr(e,t){var r;return t&&(null===(r=t.children)||void 0===r?void 0:r.map((t=>{const r={id:t.id,name:t.name,isAutoNamed:t["library#autoName"],type:t.type,tags:t.tags||[],dependencyIds:t["library#dependencies"]||[],localizedNames:t["library#localizedName"],createdDate:t["library#created"],createdLocally:!1,createdContext:t["library#createdData"]||{},modifiedDate:t["library#modified"],modifiedLocally:!1,description:t["library#description"],descriptionModifiedLocally:!1,removedLocally:!1,representations:Or(e,t),groups:t["library#groups"]?Object.entries(t["library#groups"]).map((([e,{order:t}])=>{const r=_r(e.split("#"),2),n=r[0];return{id:r[1],classifier:n,order:t}})):[],sourceRef:t["library#sourceRef"],roles:t["library#roles"],customData:Tr(t)};return function(e,t){var r;const n=e.links[wr.RENDITION],i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.href,o=function(e=[]){let t,r=0;var n,i=mr(e);try{for(i.s();!(n=i.n()).done;){const e=n.value,i=e.isFullSize?Number.POSITIVE_INFINITY:Math.max(e.height||0,e.width||0);(!t||e.isPreferredThumbnail&&!t.isPreferredThumbnail||"primary"===e.relationship&&"primary"!==t.relationship||"rendition"===e.relationship&&!["primary","rendition"].includes(null==t?void 0:t.relationship)||"rendition"===e.relationship&&"rendition"===t.relationship&&i>r)&&c(e.type)&&(t=e,r=i)}}catch(e){i.e(e)}finally{i.f()}return t}(t.representations);o&&(t.renditionUrl={template:i,substitutions:{fragment:`id=${o.id}`,size:200}})}(e,r),r})))||[]}function Sr(e,t){var r;const n=e.links[wr.COMPONENT],i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.href,o=i&&sr()(i);return null==o?void 0:o.fill({revision:t.version,component_id:t.id})}function Or(e,t){var r,n;return[...(null===(r=t.components)||void 0===r?void 0:r.map((t=>({id:t.id,type:t.type,relationship:t.rel,url:Sr(e,t),isFullSize:t["library#isFullSize"]||t["library#isfullSize"],isExternalLink:!1,width:t.width,height:t.height,contentLength:t.length,isPreferredThumbnail:t["library#isPreferredThumbnail"],customData:Tr(t)}))))||[],...(null===(n=t.children)||void 0===n?void 0:n.map((e=>({id:e.id,type:e.type,linktype:e["library#linktype"],relationship:e["library#rel"],isFullSize:!1,isExternalLink:!1,customData:Tr(e)}))))||[]]}function Tr(e){const t={};for(var r=0,n=Object.entries(e);r<n.length;r++){const e=_r(n[r],2),i=e[0],o=e[1],a=_r(i.split("#"),2),s=a[0],c=a[1];"library"!==s&&c&&(t[i]=o)}return t}function Ir(e,t){var r;const n=null===(r=t.links)||void 0===r?void 0:r[wr.MANIFEST].href,i=n?sr()(n):void 0;return{id:t.versionId,assetId:e,createdDate:t.created.getTime(),createdBy:t.createdBy,manifestUrl:null==i?void 0:i.fill({})}}function Pr(e,t){return{id:t.collaboratorID,assetId:e,imsUserId:t.imsUserId,email:t.email,name:t.name,role:t.role,type:t.type,inheritances:t.inheritances,isDirect:t.isDirect,hasContributorRole:t.hasContributorRole,hasName:t.hasName,invited:t.invited,isAdmin:t.isAdmin}}function Cr(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ar(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ar(e,t)}(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 Ar(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){e.DOWNLOAD="http://ns.adobe.com/adobecloud/rel/download",e.MANIFEST="http://ns.adobe.com/adobecloud/rel/manifest",e.APPLICATION="http://ns.adobe.com/adobecloud/rel/metadata/application",e.EMBEDDED="http://ns.adobe.com/adobecloud/rel/metadata/embedded",e.REPOSITORY="http://ns.adobe.com/adobecloud/rel/metadata/repository",e.PRIMARY="http://ns.adobe.com/adobecloud/rel/primary",e.RENDITION="http://ns.adobe.com/adobecloud/rel/rendition",e.COMPONENT="http://ns.adobe.com/adobecloud/rel/component",e.RESOLVE="http://ns.adobe.com/adobecloud/rel/resolve/id",e.BLOCK_INIT="http://ns.adobe.com/adobecloud/rel/block/init",e.BLOCK_TRANSFER="http://ns.adobe.com/adobecloud/rel/block/transfer",e.BLOCK_FINALIZE="http://ns.adobe.com/adobecloud/rel/block/finalize"}(wr||(wr={}));const kr=["color#data","colortheme#data","channel#data","imageguideline#data","gradient#data","audio#data","font#data","characterstyle#data","paragraphstyle#data","text#data","3d#data","video#data","pattern#data","candy#data","graphic#data","clio#data","firefly#cme"];function Dr(e){return e&&!["id","storage_href","asset_id","type","content_length","etag","md5","version"].some((t=>!e.hasOwnProperty(t)))}function Nr(e){var t,r;const n={id:null!==(t=e.elementId)&&void 0!==t?t:(0,O.v4)(),name:"temp rendition element",type:e.type,createdDate:Date.now(),modifiedDate:Date.now(),representations:[{id:(0,O.v4)(),type:e.rendition_mimetype,relationship:"primary",isFullSize:!1,isExternalLink:!1,isPreferredThumbnail:!0}],groups:[]};switch(e.type){case"application/vnd.adobe.gradient.noise+json":case"href":n.type="application/vnd.adobe.element.image+dcx",n.renditionUrl=e.rendition,n.representations[0].type="image/png",n.representations[0].url=e.rendition;break;case"application/vnd.adobe.color+json":case"application/vnd.adobe.element.color+dcx":n.representations[0].customData={"color#data":null===(r=e.rendition.swatches[0])||void 0===r?void 0:r.find((e=>"RGB"===e.mode))};break;case"application/vnd.adobe.colortheme+json":case"application/vnd.adobe.element.colortheme+dcx":n.representations[0].type="application/vnd.adobe.colortheme+json",n.representations[0].customData={"colortheme#data":e.rendition};break;case"application/vnd.adobe.gradient+json":case"application/vnd.adobe.element.gradient+dcx":n.representations[0].customData={"gradient#data":e.rendition};break;default:return}return n}function Rr(e,t=!1,r=!1){var n,i,o,a;const s=e.manifest_etag||'""',c=!t&&(e=>{const t=e.asset_acl;if(!t)return;const r=t["http://ns.adobe.com/adobecloud/rel/primary"];if(r)return r.includes("write");const n=t["*"];return!!n&&n.includes("write")})(e),l=Object.assign({id:"public"===e.ownership&&(null===(n=e.bookmark)||void 0===n?void 0:n.id)||e.id,name:e.name,ownership:"team"===e.ownership?"incoming":e.ownership,etag:s,version:e.version,default:e.default,localizedNames:e.localized_names,toolkitId:e.toolkit_id,documentId:e.document_id,documentType:e.document_type,createdDate:e.created_date,modifiedDate:e.modified_date,createdBy:e.created_by,modifiedBy:e.modified_by,groups:null===(i=e.groups)||void 0===i?void 0:i.map(jr),details:{elementCount:e.elements_count,documentationElementCount:0,removedElementCount:e.removed_elements_count},appMetadata:e.application_metadata,collaboration:e.collaboration,assetId:e.library_urn,isWritable:c,isParentWritable:!0,removeType:c?"discard":"none",deletable:c,roles:e.roles,description:e.description,owner:null===(o=e.storage_assignee)||void 0===o?void 0:o.id,ownerType:e.ownership?"team"===e.ownership?"org":"user":void 0,customData:Tr(e),isLibraryLoaded:!0,publicLinkId:"public"===e.ownership?e.id:void 0,bookmark:e.bookmark},r?function(e,t){var r;if(!e||!e.main)return{};const n=Nr(e.main),i=(null===(r=e.tiles)||void 0===r?void 0:r.filter(Boolean).map(Nr))||[];return{renditionGrid:{main:n?{id:n.id}:void 0,tiles:i.map((e=>e?{id:e.id}:void 0)).filter(Boolean),gridGenerationEtag:t},elements:[n,...i].filter(Boolean)}}(e.rendition_grid,s):{});return(e.workspace_urn||e.parent_assetId)&&(l.team={id:null!==(a=e.workspace_urn)&&void 0!==a?a:e.parent_assetId}),l}function Mr(e){var t,r,n,i,o;return{id:e.id,name:e.name,isAutoNamed:e.is_auto_named,type:e.type,tags:e.tags||[],dependencyIds:e.dependency_ids||[],localizedNames:e.localized_names||{},createdDate:e.created_date,createdLocally:!1,createdContext:(null===(t=e.details)||void 0===t?void 0:t.created)||{},modifiedDate:e.modified_date,modifiedLocally:!1,description:null===(r=e.details)||void 0===r?void 0:r.description,descriptionModifiedLocally:!1,removedLocally:!1,representations:(null===(n=e.representations)||void 0===n?void 0:n.map(Fr))||[],renditionUrl:"href"===(null===(i=e.thumbnail)||void 0===i?void 0:i.type)&&e.thumbnail.rendition,groups:(null===(o=e.groups)||void 0===o?void 0:o.map(Zr))||[],sourceRef:e.sourceRef,roles:e.roles,customData:Tr(e)}}function jr(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parentId:e.parent_id,createdDate:e.created_date,modifiedDate:e.modified_date,sourceRef:e.sourceRef}}function Zr(e){return{id:e.id,classifier:e.classifier,order:e.order}}function Fr(e){var t,r,n,i;return{id:e.id,type:e.type,linktype:e.linktype,relationship:e.relationship,isFullSize:e.is_full_size,isExternalLink:e.is_external_link,height:e.height,width:e.width,contentLength:e.content_length,url:null===(r=null===(t=e._links)||void 0===t?void 0:t["http://ns.adobe.com/melville/rel/primary"])||void 0===r?void 0:r.href,blockDownloadUrl:null===(i=null===(n=e._links)||void 0===n?void 0:n["http://ns.adobe.com/melville/rel/download"])||void 0===i?void 0:i.href,customData:{"channel#data":e["channel#data"],"imageguideline#data":e["imageguideline#data"],"color#data":e["color#data"],"characterstyle#data":e["characterstyle#data"],"paragraphstyle#data":e["paragraphstyle#data"],"gradient#data":e["gradient#data"],"colortheme#data":e["colortheme#data"],"font#data":e["font#data"],"adobestock#trackingdata":e["adobestock#trackingdata"],"firefly#cme":e["firefly#cme"]}}}function Br(e){return{name:e.name,id:e.id,isWritable:"editor"===e.collaboratorRole,owner:e.repositoryOwner,ownerName:e.repositoryName}}function Gr(e){var t;return Object.assign({id:e.id,name:e.name,roles:e.roles,description:e.description,tags:e.tags,sourceRef:e.sourceRef,group:null===(t=e.groups)||void 0===t?void 0:t[0]},zr(e.customData))}function Ur(e){var t,r,n,i,o;const a=Dr(e.source)?e.source:void 0;return Object.assign({id:null!==(t=null==a?void 0:a.id)&&void 0!==t?t:e.id,type:null!==(r=null==a?void 0:a.type)&&void 0!==r?r:e.type,relationship:e.relationship,path:e.path,is_full_size:e.isFullSize,is_external_link:e.isExternalLink,width:null!==(n=null==a?void 0:a.width)&&void 0!==n?n:e.width,height:null!==(i=null==a?void 0:a.height)&&void 0!==i?i:e.height,content_length:null!==(o=null==a?void 0:a.content_length)&&void 0!==o?o:e.contentLength,is_preferred_thumbnail:e.isPreferredThumbnail,name:null==a?void 0:a.name,storage_href:null==a?void 0:a.storage_href,asset_id:null==a?void 0:a.asset_id,etag:null==a?void 0:a.etag,md5:null==a?void 0:a.md5,version:null==a?void 0:a.version},zr(e.customData,kr))}function zr(e={},t){const r={};for(var n=0,i=Object.entries(e);n<i.length;n++){const e=Cr(i[n],2),o=e[0],a=e[1],s=o;!(null==t?void 0:t.includes(s))&&t||(r[s]=a)}return r}function Vr(e,t){var r;return Object.assign(Object.assign({},Gr(e)),{client:t,type:e.type,representations:null===(r=e.representations)||void 0===r?void 0:r.map(Ur)})}var Hr,Yr=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let Wr=Hr=class extends gt{constructor(){super(...arguments),this._childModelCaches={children:{cache:new ft(this,At(Hr)),accessor:e=>e.children}}}get _childCache(){return this._childModelCaches.children.cache}get children(){return this._childCache.all()}get parent(){return this._parent}get element(){let e=this._parent;for(;e instanceof Hr;)e=e._parent;return e}get library(){return this.element.library}get id(){return this._data.id}get isWritable(){return this.element.isWritable}get type(){const e=this._data.type;return"application/vnd.adobe.library.link+dcx"===e?this._data.linktype:e}get relationship(){return this._data.relationship}set relationship(e){this._updateRepresentationData({relationship:e})}get width(){return this._data.width}set width(e){this._updateRepresentationData({width:e})}get height(){return this._data.height}set height(e){this._updateRepresentationData({height:e})}get isFullSize(){return this._data.isFullSize}set isFullSize(e){this._updateRepresentationData({isFullSize:e})}get isPreferredThumbnail(){return this._data.isPreferredThumbnail}set isPreferredThumbnail(e){this._updateRepresentationData({isPreferredThumbnail:e})}get contentLength(){return this._data.contentLength}set contentLength(e){this._updateRepresentationData({contentLength:e})}get isDeletedLocally(){return!1}get isExternalLink(){return this._data.isExternalLink}isCompatibleType(e){const t=this.getCachedContentPath();if(t&&!this.isExternalLink){const r=W(t);if(-1===a(e).indexOf(r))return!1}return e===this.type}getValue(e,t){var r;return null===(r=this._data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return Nt(this.data.customData)}setValue(e,t,r,n){this._updateRepresentationData({customData:Object.assign(Object.assign({},this.data.customData),{[`${e}#${t}`]:r})})}removeValue(e,t,r){this.setValue(e,t,null,r)}setContent(e,t,r){if(e instanceof Blob)return this.driver.stageRepresentationForCommit(this.library,new File([e],r,{type:e instanceof File?e.type:$(r)})).then((e=>this.setStagedContent(e)));let n;if("string"!=typeof e||!["base64","utf8"].includes(t))throw new Error("Not implemented");return n=e,this._updateRepresentationData({source:{filename:r,data:n}})}setContentFromPath(e,t){if(!this.library.locallyManaged)throw new Error;return this._updateRepresentationData({source:{path:e,moveFile:!1}})}setStagedContent(e){try{const t=JSON.parse(e);if(!(Dr(t)||t&&D(t.id)))throw new Error;return this._updateRepresentationData({source:t})}catch(e){throw new te("INVALID_PARAMETER","Payload is not consumable by remote target",this.library.id,e)}}setContentFromURL(e,t,r){return this._updateRepresentationData({source:{url:t,createLink:e,headers:r}})}getContentPath(){return Promise.resolve(this.getCachedContentPath())}getCachedContentPath(){return this._data.path}getContent(){return this.driver.getRepresentationContent(this).then((e=>e.blob()))}getContentURL(){return this._data.url}getAuthenticatedContentURL(){return Promise.resolve("")}createChild(e){const t=k(),r=this.data.children?[...this.data.children]:[];return r.push({id:t,type:e,isFullSize:!1,isExternalLink:!1}),this.element.dispatch({name:"updateElementContent",type:"update",data:{representations:or(this,r)}}),this.children.find((e=>e.id===t))}removeChild(e){const t=this.data.children?[...this.data.children]:[],r=t.findIndex((t=>t.id===e.id));-1!==r&&(t.splice(r,1),this.element.dispatch({name:"updateElementContent",type:"update",data:{representations:or(this,t)}}))}testExternalLink(){return Promise.resolve(!1)}clearCachedExternalLink(){}getCachedExternalLinkError(){}getExternalLinkDownloadProgress(){if(this.isExternalLink){const e=`${this.library.id}.${this.element.id}.${this.id}`;return this.library.apiRoot.syncState.getExternalLinkDownloadProgressByKey(e)}}_updateRepresentationData(e){const t=(this.parent instanceof Ft?this.parent.data.representations:this.parent.data.children||[]).filter((e=>e.id!==this.id));return this.element.dispatch({name:"updateElementContent",type:"update",data:{representations:or(this.parent,[...t,Object.assign(Object.assign({},this.data),e)])}}),Promise.resolve()}};Yr([vt],Wr.prototype,"relationship",null),Yr([vt],Wr.prototype,"width",null),Yr([vt],Wr.prototype,"height",null),Yr([vt],Wr.prototype,"isFullSize",null),Yr([vt],Wr.prototype,"isPreferredThumbnail",null),Yr([vt],Wr.prototype,"contentLength",null),Yr([vt],Wr.prototype,"setValue",null),Yr([vt],Wr.prototype,"removeValue",null),Yr([vt],Wr.prototype,"setContent",null),Yr([vt],Wr.prototype,"setContentFromPath",null),Yr([vt],Wr.prototype,"setStagedContent",null),Yr([vt],Wr.prototype,"setContentFromURL",null),Wr=Hr=Yr([mt],Wr);const $r=Wr,Kr={staging:{hostname:"ccx-melville-stage.adobe.io",invitation_hostname:"invitations-stage.adobe.io",teams_hostname:"ccprojects-stage.adobe.io",platform_hostname:"platform-cs-stage.adobe.io"},production:{hostname:"libraries.adobe.io",invitation_hostname:"invitations.adobe.io",teams_hostname:"ccprojects.adobe.io",platform_hostname:"platform-cs.adobe.io"}};function qr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Xr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Jr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Xr(o,n,i,a,s,"next",e)}function s(e){Xr(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Qr(e,t,r){const n=r.value;r.value=Jr(qr().mark((function e(...t){return qr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._actions.length){e.next=2;break}throw new te("NOT_SUPPORTED","Operation must have at least one action to be executed.",this._library.id);case 2:return le.log(`[OPERATION] Performing ${this._actions.length} actions.`),e.abrupt("return",n.apply(this,t));case 4:case"end":return e.stop()}}),e,this)})))}class en{static supportsAction(e){return this.prototype.supportsAction(e)}constructor(e,t){this._actions=[],this._driver=e,this._library=t}addAction(e){return!!this.supportsAction(e)&&(this._actions.push(e),!0)}get actions(){return this._actions}}function tn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function rn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var nn=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class on extends en{constructor(){super(...arguments),this._actionMappers={}}get action(){return this._actions[0]}execute(){var e,t=this;return(e=tn().mark((function e(){var r;return tn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._actionMappers[t.action.name||""](t.action);case 2:return r=e.sent,e.abrupt("return",{actions:[r]});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rn(o,n,i,a,s,"next",e)}function s(e){rn(o,n,i,a,s,"throw",e)}a(void 0)}))})()}addAction(e){return 1!==this._actions.length&&super.addAction(e)}}function an(e){return Symbol.for(e)}nn([Qr],on.prototype,"execute",null);var sn=function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(e){return r._currentContext.get(e)},r.setValue=function(t,n){var i=new e(r._currentContext);return i._currentContext.set(t,n),i},r.deleteValue=function(t){var n=new e(r._currentContext);return n._currentContext.delete(t),n}},cn=new sn,ln=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},un=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},pn=function(){function e(){}return e.prototype.active=function(){return cn},e.prototype.with=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return t.call.apply(t,un([r],ln(n),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),dn="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},hn="1.3.0",fn=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var mn=function(e){var t=new Set([e]),r=new Set,n=e.match(fn);if(!n)return function(){return!1};var i=+n[1],o=+n[2],a=+n[3];if(null!=n[4])return function(t){return t===e};function s(e){return r.add(e),!1}function c(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(fn);if(!n)return s(e);var l=+n[1],u=+n[2],p=+n[3];return null!=n[4]||i!==l?s(e):0===i?o===u&&a<=p?c(e):s(e):o<=u?c(e):s(e)}}(hn),gn=hn.split(".")[0],vn=Symbol.for("opentelemetry.js.api."+gn),yn=dn;function bn(e,t,r,n){var i;void 0===n&&(n=!1);var o=yn[vn]=null!==(i=yn[vn])&&void 0!==i?i:{version:hn};if(!n&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(a.stack||a.message),!1}if(o.version!==hn){a=new Error("@opentelemetry/api: All API registration versions must match");return r.error(a.stack||a.message),!1}return o[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+"1.3.0."),!0}function _n(e){var t,r,n=null===(t=yn[vn])||void 0===t?void 0:t.version;if(n&&mn(n))return null===(r=yn[vn])||void 0===r?void 0:r[e]}function En(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+"1.3.0.");var r=yn[vn];r&&delete r[e]}var wn,Ln=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},xn=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},Sn=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return On("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return On("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return On("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return On("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return On("verbose",this._namespace,e)},e}();function On(e,t,r){var n=_n("diag");if(n)return r.unshift(t),n[e].apply(n,xn([],Ln(r),!1))}!function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(wn||(wn={}));var Tn,In=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Pn=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},Cn=function(){function e(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=_n("diag");if(n)return n[e].apply(n,Pn([],In(t),!1))}}var t=this;t.setLogger=function(e,r){var n,i,o;if(void 0===r&&(r={logLevel:wn.INFO}),e===t){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var s=_n("diag"),c=function(e,t){function r(r,n){var i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<wn.NONE?e=wn.NONE:e>wn.ALL&&(e=wn.ALL),t=t||{},{error:r("error",wn.ERROR),warn:r("warn",wn.WARN),info:r("info",wn.INFO),debug:r("debug",wn.DEBUG),verbose:r("verbose",wn.VERBOSE)}}(null!==(i=r.logLevel)&&void 0!==i?i:wn.INFO,e);if(s&&!r.suppressOverrideMessage){var l=null!==(o=(new Error).stack)&&void 0!==o?o:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+l),c.warn("Current logger will overwrite one already registered from "+l)}return bn("diag",c,t,!0)},t.disable=function(){En("diag",t)},t.createComponentLogger=function(e){return new Sn(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),An=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},kn=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},Dn="context",Nn=new pn,Rn=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return bn(Dn,e,Cn.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,kn([e,t,r],An(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return _n(Dn)||Nn},e.prototype.disable=function(){this._getContextManager().disable(),En(Dn,Cn.instance())},e}(),Mn=Rn.getInstance(),jn=Cn.instance(),Zn=(Tn=function(e,t){return Tn=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])},Tn(e,t)},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}Tn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Fn=function(){function e(){}return e.prototype.createHistogram=function(e,t){return qn},e.prototype.createCounter=function(e,t){return Kn},e.prototype.createUpDownCounter=function(e,t){return Xn},e.prototype.createObservableGauge=function(e,t){return Qn},e.prototype.createObservableCounter=function(e,t){return Jn},e.prototype.createObservableUpDownCounter=function(e,t){return ei},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),Bn=function(){},Gn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zn(t,e),t.prototype.add=function(e,t){},t}(Bn),Un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zn(t,e),t.prototype.add=function(e,t){},t}(Bn),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zn(t,e),t.prototype.record=function(e,t){},t}(Bn),Vn=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),Hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zn(t,e),t}(Vn),Yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zn(t,e),t}(Vn),Wn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zn(t,e),t}(Vn),$n=new Fn,Kn=new Gn,qn=new zn,Xn=new Un,Jn=new Hn,Qn=new Yn,ei=new Wn;var ti=new(function(){function e(){}return e.prototype.getMeter=function(e,t,r){return $n},e}()),ri="metrics",ni=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return bn(ri,e,Cn.instance())},e.prototype.getMeterProvider=function(){return _n(ri)||ti},e.prototype.getMeter=function(e,t,r){return this.getMeterProvider().getMeter(e,t,r)},e.prototype.disable=function(){En(ri,Cn.instance())},e}().getInstance(),ii=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),oi={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},ai={set:function(e,t,r){null!=e&&(e[t]=r)}},si=an("OpenTelemetry Baggage Key");function ci(e){return e.getValue(si)||void 0}function li(e,t){return e.setValue(si,t)}function ui(e){return e.deleteValue(si)}var pi=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},di=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.")},hi=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){var t=pi(e,2);return[t[0],t[1]]}))},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new e(this._entries);try{for(var a=di(n),s=a.next();!s.done;s=a.next()){var c=s.value;o._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}();Cn.instance();function fi(e){return void 0===e&&(e={}),new hi(new Map(Object.entries(e)))}var mi,gi="propagation",vi=new ii,yi=function(){function e(){this.createBaggage=fi,this.getBaggage=ci,this.setBaggage=li,this.deleteBaggage=ui}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return bn(gi,e,Cn.instance())},e.prototype.inject=function(e,t,r){return void 0===r&&(r=ai),this._getGlobalPropagator().inject(e,t,r)},e.prototype.extract=function(e,t,r){return void 0===r&&(r=oi),this._getGlobalPropagator().extract(e,t,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){En(gi,Cn.instance())},e.prototype._getGlobalPropagator=function(){return _n(gi)||vi},e}(),bi=yi.getInstance();!function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(mi||(mi={}));var _i="0000000000000000",Ei="00000000000000000000000000000000",wi={traceId:Ei,spanId:_i,traceFlags:mi.NONE},Li=function(){function e(e){void 0===e&&(e=wi),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),xi=an("OpenTelemetry Context Key SPAN");function Si(e){return e.getValue(xi)||void 0}function Oi(){return Si(Rn.getInstance().active())}function Ti(e,t){return e.setValue(xi,t)}function Ii(e){return e.deleteValue(xi)}function Pi(e,t){return Ti(e,new Li(t))}function Ci(e){var t;return null===(t=Si(e))||void 0===t?void 0:t.spanContext()}var Ai=/^([0-9a-f]{32})$/i,ki=/^[0-9a-f]{16}$/i;function Di(e){return r=e.traceId,Ai.test(r)&&r!==Ei&&(t=e.spanId,ki.test(t)&&t!==_i);var t,r}function Ni(e){return new Li(e)}var Ri=Rn.getInstance(),Mi=function(){function e(){}return e.prototype.startSpan=function(e,t,r){if(Boolean(null==t?void 0:t.root))return new Li;var n,i=r&&Ci(r);return"object"==typeof(n=i)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&Di(i)?new Li(i):new Li},e.prototype.startActiveSpan=function(e,t,r,n){var i,o,a;if(!(arguments.length<2)){2===arguments.length?a=t:3===arguments.length?(i=t,a=r):(i=t,o=r,a=n);var s=null!=o?o:Ri.active(),c=this.startSpan(e,i,s),l=Ti(s,c);return Ri.with(l,a,void 0,c)}},e}();var ji=new Mi,Zi=function(){function e(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r)},e.prototype.startActiveSpan=function(e,t,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ji},e}(),Fi=new(function(){function e(){}return e.prototype.getTracer=function(e,t,r){return new Mi},e}()),Bi=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var n;return null!==(n=this.getDelegateTracer(e,t,r))&&void 0!==n?n:new Zi(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:Fi},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)},e}(),Gi="trace";const Ui={context:Mn,diag:jn,metrics:ni,propagation:bi,trace:function(){function e(){this._proxyTracerProvider=new Bi,this.wrapSpanContext=Ni,this.isSpanContextValid=Di,this.deleteSpan=Ii,this.getSpan=Si,this.getActiveSpan=Oi,this.getSpanContext=Ci,this.setSpan=Ti,this.setSpanContext=Pi}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=bn(Gi,this._proxyTracerProvider,Cn.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return _n(Gi)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){En(Gi,Cn.instance()),this._proxyTracerProvider=new Bi},e}().getInstance()};function zi(e){return(t,r,n)=>{const i=n.value;return n.value=function(...t){const r=Ui.trace.getTracer("cclibraries-jsapi"),n=Ui.context.active();return r.startActiveSpan(e,{},n,(e=>{const r=i.apply(this,t);return Promise.resolve(r).then((()=>{e.end()})).catch((()=>{e.end()})),r}))},n}}function Vi(e,t){var r;null===(r=Ui.trace.getActiveSpan())||void 0===r||r.setAttribute(e,t||"")}function Hi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Yi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Wi(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Yi(o,n,i,a,s,"next",e)}function s(e){Yi(o,n,i,a,s,"throw",e)}a(void 0)}))}}var $i=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},Ki=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 i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};const qi=e=>e.map((e=>{const t=e.id,r=e.version,n=Ki(e,["id","version"]);return Object.assign(Object.assign({},n),{"repo:assetId":t,"repo:version":r})})),Xi={read:"team_view",all:"team_edit"},Ji=["createLibrary","removeLibrary","unfollowLibrary","leaveLibrary","permanentlyDeleteLibrary","copyLibrary","moveLibrary"];class Qi extends on{constructor(){var e,t,r,n,i,o;super(...arguments),e=this,this._actionMappers={createLibrary:e=>this._createLibraryActionMap(e),copyLibrary:e=>this._createLibraryActionMap(e),removeLibrary:(o=Wi(Hi().mark((function t(r){return Hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return o.apply(this,arguments)}),permanentlyDeleteLibrary:(i=Wi(Hi().mark((function t(r){return Hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._permanentlyDeleteLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return i.apply(this,arguments)}),unfollowLibrary:(n=Wi(Hi().mark((function t(r){return Hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._unfollowLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)}),leaveLibrary:(r=Wi(Hi().mark((function t(r){return Hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._leaveLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)}),moveLibrary:(t=Wi(Hi().mark((function t(r){var n;return Hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._moveLibrary();case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})},this._createLibraryActionMap=function(){var t=Wi(Hi().mark((function t(r){var n;return Hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._createLibrary(r);case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{type:"update",data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}supportsAction(e){return Ji.includes(e.name)}_createLibrary(e){return new Promise(((t,r)=>{var n,i;const o=null!==(n=e.data)&&void 0!==n?n:{},a=o.name,s=o.team,c=o.roles,l=o.documentExtractionData,u=null!==(i=e.flags)&&void 0!==i?i:{},p=u.permissionInheritance,d=u.source,h=u.includeAppMetadata,f={name:a,roles:c,documentExtractionData:(null==l?void 0:l.length)>0?qi(l):void 0,source:null==d?void 0:d.assetId,parent_assetId:null==s?void 0:s.id,access:Xi[p]||void 0,includeResources:h?[{relType:"http://ns.adobe.com/adobecloud/rel/metadata/application"},{relType:"http://ns.adobe.com/adobecloud/rel/primary"}]:void 0},m=this._driver.fetch("/api/v1/libraries?invocation_mode=async",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}),g=new xe(this._driver,m);g.on("change",((e,n)=>{if(e)if(g.error)r(g.error);else if(n){const e=Rr(n);(null==l?void 0:l.length)>0&&e.assetId&&this._patchBrandAppMetadata(e.assetId,"/brand:extractedFrom",qi(l)),e.isWritable=!0,e.isParentWritable=!0,t(e)}else t(void 0)}))}))}_removeLibrary(){return this._driver.fetch(`/api/v1/libraries/${this._library.assetId}`,{method:"DELETE"})}_permanentlyDeleteLibrary(){return this._driver.fetch(`/api/v1/libraries/${this._library.assetId}?permanent=true`,{method:"DELETE"})}_unfollowLibrary(){var e;return this._driver.fetch(`/api/v1/libraries/bookmarks/${null===(e=this._library.bookmark)||void 0===e?void 0:e.id}`,{method:"DELETE"})}_leaveLibrary(){var e=this;return Wi(Hi().mark((function t(){var r,n,i,o,a;return Hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=null===(r=e._driver.config.user)||void 0===r?void 0:r.id,t.next=3,e._driver.fetch(`https://${e._driver.driverConfig.invitation_hostname}/api/v4/share/${e._library.assetId}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({collaborators:[{action:"remove",id:i}]})});case 3:return o=t.sent,t.next=6,o.json();case 6:if(a=t.sent,null===(n=a.collaborators)||void 0===n?void 0:n.find((e=>e.statusCode>300))){t.next=12;break}return t.abrupt("return",e._unfollowLibrary());case 12:throw pe(o);case 13:case"end":return t.stop()}}),t)})))()}_moveLibrary(){return this._driver.moveLibrary(this._library.assetId,this.action.data.team.id,this.action.data.owner)}_patchBrandAppMetadata(e,t,r){var n=this;return Wi(Hi().mark((function i(){var o;return Hi().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._driver.getAssetWithCloudID(e);case 2:null==(o=i.sent)||o.patchAppMetadata([{op:"add",path:t,value:r}]);case 4:case"end":return i.stop()}}),i)})))()}}function eo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */eo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function to(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}$i([zi("cclibraries-cloudDriver-createLibrary")],Qi.prototype,"_createLibrary",null);var ro=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class no extends en{supportsAction(e){return["moveElement","copyElement","dependent"].includes(e.name)}addAction(e){var t,r,n,i,o,a;if(!this.supportsAction(e))return!1;const s=this._actions[this._actions.length-1];if(!s&&"dependent"!==e.name)return super.addAction(e);if(e.library===(null===(t=e.link)||void 0===t?void 0:t.library)){if("dependent"===e.name)return s.link===e&&(this._actions.push(e),!0);return(null===(r=e.library)||void 0===r?void 0:r.actions.indexOf(e))+1===(null===(i=null===(n=e.link)||void 0===n?void 0:n.library)||void 0===i?void 0:i.actions.indexOf(e.link))&&super.addAction(e)}return(null===(o=s.link)||void 0===o?void 0:o.library)===(null===(a=e.link)||void 0===a?void 0:a.library)&&s.type===e.type&&super.addAction(e)}execute(){var e,t=this;return(e=eo().mark((function e(){var r,n,i,o,a,s,c,l,u,p,d;return eo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="moveElement"===t._actions[0].name,i=null===(r=t._actions[0].link)||void 0===r?void 0:r.library,o=t._actions.filter((e=>"dependent"!==e.name)),a=o.map((e=>Ht(e.path))),e.next=6,t._doMoveCopyRequest(n,t._library,i,a);case 6:if(s=e.sent,c=s.elements,l=s.etag,u=s.sourceEtag,c.length===o.length){e.next=12;break}throw new Error;case 12:return i===t._library?(p=[],d=t._actions.map((e=>{if("dependent"!==e.name)return e;const t=o.findIndex((t=>t===e.link||t.originalAction===e.link));return Object.assign(Object.assign({},e),{data:c[t],originalAction:e})}))):(d=t._actions,p=t._actions.map(((e,t)=>Object.assign(Object.assign({},e.link),{data:c[t],originalAction:e.link})))),e.abrupt("return",{actions:d,etag:u,linkedActions:p,linkedEtag:l});case 14:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){to(o,n,i,a,s,"next",e)}function s(e){to(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}function io(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */io=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function oo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}ro([Qr],no.prototype,"execute",null);class ao extends no{_doMoveCopyRequest(e,t,r,n){var i,o=this;return(i=io().mark((function t(){var i,a,s,c;return io().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=o._library.assetId,a=r.assetId,t.next=4,o._driver.fetch(`/api/v1/libraries/${a}/elements`,{method:"POST",headers:{"Content-Type":"application/json","If-Match":r.etag},body:JSON.stringify({[e?"self":"source"]:{id:i,elements:n,"if-match":o._library.etag}})});case 4:return s=t.sent,t.next=7,s.json();case 7:return c=t.sent,t.abrupt("return",{elements:c.elements.map(Mr),etag:s.headers.get("etag"),sourceEtag:s.headers.get("x-source-etag")});case 9:case"end":return t.stop()}}),t)})),function(){var e=this,t=arguments;return new Promise((function(r,n){var o=i.apply(e,t);function a(e){oo(o,r,n,a,s,"next",e)}function s(e){oo(o,r,n,a,s,"throw",e)}a(void 0)}))})()}}function so(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||lo(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 co(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=lo(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function lo(e,t){if(e){if("string"==typeof e)return uo(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)?uo(e,t):void 0}}function uo(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 po(e){var t;const r={};for(let a=0;a<e.length;a+=1){const s=e[a],c=null===(t=s.body)||void 0===t?void 0:t.id;if("POST"===s.method&&D(c)&&(r[c]=`$${a}.id`,delete s.body.id),["PUT","DELETE"].includes(s.method)){const e=(o=s.path,T(A.exec(o)||[],1)[0]);if(e){if(!r[e])throw new Error(`Unmapped placeholder ID: ${e}`);s.path=s.path.replace(e,r[e])}}if(["PUT","POST"].includes(s.method)){if(s.path.startsWith("elements")&&s.body.representations&&fo(s.body.representations),s.path.startsWith("elements")&&s.body.groups){var n,i=co(s.body.groups);try{for(i.s();!(n=i.n()).done;){const e=n.value;if(D(e.id)){if(!r[e.id])throw new Error(`Unmapped placeholder ID: ${e.id}`);e.id=r[e.id]}}}catch(e){i.e(e)}finally{i.f()}}if(s.path.startsWith("groups")&&s.body.parent_id&&D(s.body.parent_id)){if(!r[s.body.parent_id])throw new Error(`Unmapped placeholder ID: ${s.body.parent_id}`);s.body.parent_id=r[s.body.parent_id]}}}var o;return e}function ho(e,t){const r={};for(var n=0,i=Object.entries(e);n<i.length;n++){const e=so(i[n],2),o=e[0],a=e[1];(void 0!==a||(null==t?void 0:t.includes(o)))&&(r[o]=a)}return r}function fo(e){var t,r=co(e);try{for(r.s();!(t=r.n()).done;){const e=t.value;D(e.id)&&(e.id=void 0)}}catch(e){r.e(e)}finally{r.f()}return e}function mo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */mo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function go(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var vo=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};const yo=["updateLibrary","createElement","updateElement","removeElement","restoreElement","deleteElement","createGroup","removeGroup"];function bo(e,t){return Object.assign(Object.assign({},e),{data:t,originalAction:e})}const _o={updateLibrary:(e,t)=>bo(e,ho(Rr(t,!1,!1),["documentId","documentType","roles"])),createElement:(e,t)=>bo(e,Mr(t.elements[0])),updateElement:(e,t)=>bo(e,Mr(t.elements[0])),restoreElement:e=>e,removeElement:e=>e,deleteElement:e=>e,createGroup:(e,t)=>bo(e,jr(t)),removeGroup:e=>e};class Eo extends en{constructor(){super(...arguments),this._baseLibraryOperationPath=`/api/v1/libraries/${this._library.assetId}`,this._actionMappers={updateLibrary:e=>{return{method:"PUT",path:"metadata",body:(t=e.data,Object.assign({name:t.name,document_id:t.documentId,roles:t.roles,description:t.description},zr(t.customData)))};var t},createElement:e=>({method:"POST",path:"elements",body:Vr(e.data,this._driver.getClientInfo())}),updateElement:e=>({method:"PUT",path:"elements/metadata",body:{elements:[Gr(Object.assign({id:Ht(e.path)},e.data))]}}),removeElement:e=>({method:"DELETE",path:`elements/${Ht(e.path)}`}),restoreElement:e=>({method:"POST",path:"archive",body:{elementIds:[`${e.data.id}`]}}),deleteElement:e=>({method:"DELETE",path:`elements/${Ht(e.path)}`,query_params:{permanent:"true"}}),createGroup:e=>{return{method:"POST",path:"groups",body:(t=e.data,r=this._driver.getClientInfo(),{group:{name:t.name,classifier:t.classifier,order:t.order,parent_id:t.parentId},client:r})};var t,r},removeGroup:e=>{var t;return{method:"DELETE",path:`groups/${Wt(e.path)}`,query_params:(null===(t=e.flags)||void 0===t?void 0:t.includeElements)?{include_contents:"true"}:void 0}}},this._actions=[]}execute(){var e,t=this;return(e=mo().mark((function e(){var r,n,i,o,a,s;return mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._actions.map((e=>t._actionMappers[e.name](e))),n=po(r),e.next=4,t._driver.fetch(t._baseLibraryOperationPath,{method:"PATCH",headers:{"Content-Type":"application/json","If-Match":t._library.etag},body:JSON.stringify({requests:n.map((e=>Object.assign(Object.assign({},e),{path:`${t._baseLibraryOperationPath}/${e.path}`})))})});case 4:return i=e.sent,e.next=7,i.json();case 7:if(o=e.sent,a=o.responses,Array.isArray(a)&&a.length===t._actions.length){e.next=11;break}throw new te("INVALID_RESPONSE","Malformed batch response.",t._library.id);case 11:return s=Jt(s=t._actions.map(((e,t)=>_o[e.name](e,a[t])))),e.abrupt("return",{actions:s,etag:i.headers.get("ETag")});case 14:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){go(o,n,i,a,s,"next",e)}function s(e){go(o,n,i,a,s,"throw",e)}a(void 0)}))})()}supportsAction(e){return function(e){return yo.includes(e.name)}(e)}}function wo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Lo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}vo([Qr,zi("cclibraries-cloudDriver-batchOperation")],Eo.prototype,"execute",null);var xo=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class So extends en{supportsAction(e){return"updateElementContent"===e.name}addAction(e){return(!this._actions[0]||this._actions[0].path===e.path)&&super.addAction(e)}execute(){var e,t=this;return(e=wo().mark((function e(){var r,n,i,o,a;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._actions[t._actions.length-1],e.next=3,t._updateElementContent(Ht(r.path),r.data);case 3:return n=e.sent,e.next=6,n.json();case 6:return i=e.sent,o=Mr(i.elements[0]),a=t._actions.map(((e,r)=>r!==t._actions.length-1?Object.assign(Object.assign({},e),{type:"no-op",originalAction:e}):Object.assign(Object.assign({},e),{data:o,originalAction:e}))),e.abrupt("return",{actions:a,etag:n.headers.get("ETag")});case 10:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Lo(o,n,i,a,s,"next",e)}function s(e){Lo(o,n,i,a,s,"throw",e)}a(void 0)}))})()}_updateElementContent(e,t){return fo(t.representations),this._driver.fetch(`/api/v1/libraries/${this._library.assetId}/elements/${e}/representations`,{method:"PUT",headers:{"If-Match":this._library.etag,"Content-Type":"application/json"},body:JSON.stringify(Vr(t,this._driver.getClientInfo()))})}}function Oo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Oo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function To(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}xo([Qr,zi("cclibraries-cloudDriver-updateElementContent")],So.prototype,"execute",null);var Io=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class Po extends en{constructor(){super(...arguments),this._actionMappers={}}execute(){var e,t=this;return(e=Oo().mark((function e(){var r;return Oo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.actions.map((e=>t._actionMappers[e.name](e))),e.next=3,Promise.all(r);case 3:return e.t0=e.sent,e.abrupt("return",{actions:e.t0});case 5:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){To(o,n,i,a,s,"next",e)}function s(e){To(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}function Co(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Co=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ao(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}Io([Qr],Po.prototype,"execute",null);class ko extends Po{constructor(){var e,t,r;super(...arguments),e=this,this._actionMappers={uploadComponent:(t=Co().mark((function t(r){var n;return Co().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=JSON,t.next=3,e._driver.stageRepresentationForCommit(r.library,r.data.file,r.data.type);case 3:return t.t1=t.sent,n=t.t0.parse.call(t.t0,t.t1),t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 6:case"end":return t.stop()}}),t)})),r=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){Ao(o,n,i,a,s,"next",e)}function s(e){Ao(o,n,i,a,s,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)})}}supportsAction(e){return"uploadComponent"===e.name}}function Do(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return No(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return No(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function No(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 Ro(e){const t={};do{const r=e.indexOf("<");if(-1===r)break;let n=e.indexOf("<",r+1);-1===n&&(n=e.length);const i=Mo(e.substring(r,n));i&&(t[i.rel]=i),e=e.substring(n)}while(e.length>0);return t}function Mo(e){const t=e.match(/^<(.*)>;/);if(!t)return;const r={href:t[1]};var n,i=Do(e.matchAll(/\s([\w:]*)="([^"]*)"[;,]?/g));try{for(i.s();!(n=i.n()).done;){const e=n.value,t=e[1],i=e[2];r[t]=jo(i)}}catch(e){i.e(e)}finally{i.f()}return r}function jo(e){if("true"===e||"false"===e)return"true"===e;const t=+e;return!isNaN(t)?t:e}var Zo=r(24560),Fo=r(59614),Bo=r.n(Fo);function Go(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Uo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uo(e,t)}(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 Uo(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 zo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */zo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}var Vo=function(e){return this instanceof Vo?(this.v=e,this):new Vo(e)},Ho=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}},Yo=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:Vo(e[n](t)),done:"return"===n}:i?i(t):t}:i}},Wo=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof Vo?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}};const $o={field:"modifiedDate",direction:"descending"},Ko={modifiedDate:"modified_date",name:"name"};class qo{constructor(e){this._driver=e}routePublicLibraryRequestIfNeeded(e,t,r,...n){return"public"===e.ownership?t(e.data.publicLinkId,this.getLibraryParams(e),...n):r(e.assetId,...n)}getLibraryParams(e){return{modifiedDate:e.modified,areElementsLoaded:e.areElementsLoaded,elements:e.data.elements}}getLibraryByPublicLinkId(e,t,r={}){var n,i;return Wo(this,arguments,zo().mark((function o(){var a;return zo().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,Vo(this._getLibrary(e));case 3:return a=o.sent,(null==t?void 0:t.areElementsLoaded)&&(a.elements=t.elements),o.next=7,Vo(a);case 7:return o.next=9,o.sent;case 9:if(!(null==t?void 0:t.areElementsLoaded)||t.modifiedDate!==a.modifiedDate){o.next=13;break}return o.next=12,Vo(void 0);case 12:return o.abrupt("return",o.sent);case 13:return o.t0=Vo,o.delegateYield(Yo(Ho(this._getAllElements(e,Object.assign({},r.elementParams)))),"t1",15);case 15:return o.t2=o.t1,o.next=18,(0,o.t0)(o.t2);case 18:o.next=24;break;case 20:if(o.prev=20,o.t3=o.catch(0),null===(i=null===(n=r.elementParams)||void 0===n?void 0:n.abortController)||void 0===i?void 0:i.signal.aborted){o.next=24;break}throw o.t3;case 24:case"end":return o.stop()}}),o,this,[[0,20]])})))}getElementsByPublicLinkId(e,t,r=$o,n=100,i){return Wo(this,arguments,zo().mark((function t(){var o,a,s;return zo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e=>e.elements.map(Mr),a=`${"descending"===r.direction?"-":""}${Ko[r.field]}`,s={limit:n,orderBy:a,selector:["default","representations","details"]},t.t0=Vo,t.delegateYield(Yo(Ho(this.fetchAllPages(`/api/v1/public/libraries/${e}/elements?${(0,Zo.stringify)(s,{arrayFormat:"comma"})}`,o,i))),"t1",5);case 5:return t.t2=t.t1,t.next=8,(0,t.t0)(t.t2);case 8:case"end":return t.stop()}}),t,this)})))}getRemovedElementsByPublicLinkId(e,t,r=$o,n=100,i){return Wo(this,arguments,zo().mark((function e(){return zo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Vo(void 0);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}getDocumentationElementsByPublicLinkId(e,t,r=$o,n=100,i){return Wo(this,arguments,zo().mark((function e(){return zo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Vo(void 0);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}getElement(e,t,r){return this.fetch(`/api/v1/public/libraries/${e}/elements/${r}?selector=default,representations,details,tags`).then((e=>e.json())).then((e=>Mr(e)))}_getLibrary(e){return this.fetch(`/api/v1/public/libraries/${e}?selector=default,rendition_grid,details`).then((e=>e.json())).then((e=>Rr(e,!0)))}_getAllElements(e,t){var r,n,i;return Wo(this,arguments,zo().mark((function o(){var a,s,c,l,u,p,d,h,f,m,g,v,y,b;return zo().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:u={},p=0,d=[["elements","getElementsByPublicLinkId"],["documentationElements","getDocumentationElementsByPublicLinkId"],["removedElements","getRemovedElementsByPublicLinkId"]];case 3:if(!(p<d.length)){o.next=47;break}if(h=Go(d[p],2),f=h[0],m=h[1],!(null===(r=null==t?void 0:t.types)||void 0===r?void 0:r.includes(f))){o.next=44;break}o.prev=6,g=!0,s=void 0,v=Ho(this[m](e,void 0,null==t?void 0:t.sort,void 0,null===(n=null==t?void 0:t.abortController)||void 0===n?void 0:n.signal));case 8:return o.next=10,Vo(v.next());case 10:if(y=o.sent,a=y.done){o.next=29;break}if(l=y.value,g=!1,o.prev=15,b=l,u[f]=u[f]||[],null===(i=u[f])||void 0===i||i.push(...b),!(null==t?void 0:t.loadProgressively)){o.next=24;break}return o.next=22,Vo({[f]:u[f]});case 22:return o.next=24,o.sent;case 24:return o.prev=24,g=!0,o.finish(24);case 27:o.next=8;break;case 29:o.next=34;break;case 31:o.prev=31,o.t0=o.catch(6),s={error:o.t0};case 34:if(o.prev=34,o.prev=35,g||a||!(c=v.return)){o.next=39;break}return o.next=39,Vo(c.call(v));case 39:if(o.prev=39,!s){o.next=42;break}throw s.error;case 42:return o.finish(39);case 43:return o.finish(34);case 44:p++,o.next=3;break;case 47:return o.next=49,Vo(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:u));case 49:return o.next=51,o.sent;case 51:case"end":return o.stop()}}),o,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}fetchAllPages(e,t,r){var n,i;return Wo(this,arguments,zo().mark((function o(){var a,s,c,l,u,p,d;return zo().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:s=e;case 1:if(!s){o.next=21;break}return o.next=4,Vo(this.fetch(s,{signal:r}).then((e=>e.json())));case 4:return c=o.sent,o.next=7,Vo(t(c));case 7:return o.next=9,o.sent;case 9:if(null!=a||(a=c.total_count),l=null===(i=null===(n=c._links)||void 0===n?void 0:n.page)||void 0===i?void 0:i.href,u=c._page,p=l&&sr()(l),d=parseInt(u.start)+u.count,p&&u&&!(d>a)){o.next=18;break}return o.next=17,Vo(void 0);case 17:return o.abrupt("return",o.sent);case 18:s=p.fill({orderBy:u.orderBy,start:`${d}`,limit:`${u.count}`,selector:"default,representations,details"}),o.next=1;break;case 21:case"end":return o.stop()}}),o,this)})))}fetch(e,t){var r,n;return(null===(r=this._driver.config.user)||void 0===r?void 0:r.id)&&((t=t||{}).headers=t.headers||{},t.headers["x-gw-ims-user-id"]=null===(n=this._driver.config.user)||void 0===n?void 0:n.id),this._driver.fetch(e,t)}}function Xo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Jo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Qo(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Jo(o,n,i,a,s,"next",e)}function s(e){Jo(o,n,i,a,s,"throw",e)}a(void 0)}))}}class ea extends ie{constructor(e){super(),this._driver=e,this._onChangeCallback=e=>{var t;null===(t=this._changeCallback)||void 0===t||t.call(this,e)}}connect(){var e;this._librariesToMonitor=this._driver.createAssetLinkList(),null===(e=this._librariesToMonitor)||void 0===e||e.on("notified",this._onChangeCallback)}disconnect(){var e,t;this._changeCallback=void 0,null===(e=this._librariesToMonitor)||void 0===e||e.clear(),null===(t=this._librariesToMonitor)||void 0===t||t.off("notified",this._onChangeCallback),this._librariesToMonitor=void 0}get isConnected(){return!!this._librariesToMonitor}setWatchedLibraries(e,t){var r=this;return Qo(Xo().mark((function n(){var i,o;return Xo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r._librariesToMonitor){n.next=2;break}return n.abrupt("return");case 2:i=r._librariesToMonitor,o=new Set(e.map((e=>e.assetId))),i.monitoredAssetIDs.forEach((e=>!o.has(e)&&i.removeAssetID(e))),o.forEach((e=>e&&i.addAssetID(e))),r._changeCallback=t;case 7:case"end":return n.stop()}}),n)})))()}addWatchedLibrary(e){var t=this;return Qo(Xo().mark((function r(){var n;return Xo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.assetId&&(null===(n=t._librariesToMonitor)||void 0===n||n.addAssetID(e.assetId));case 1:case"end":return r.stop()}}),r)})))()}removeWatchedLibrary(e){var t;e.assetId&&(null===(t=this._librariesToMonitor)||void 0===t||t.removeAssetID(e.assetId))}addLibrariesSyncGroupListener(e){var t=this;return Qo(Xo().mark((function r(){var n,i;return Xo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._syncGroupListener&&e){r.next=2;break}return r.abrupt("return");case 2:return t._syncGroupListener={notify:e},i=void 0,r.prev=4,r.next=7,null===(n=t._driver.sam)||void 0===n?void 0:n.hostAssetContext.getAssetWithRepoPath("/assets/adobe-libraries");case 7:i=r.sent,r.next=15;break;case 10:if(r.prev=10,r.t0=r.catch(4),21!==r.t0.code){r.next=14;break}return r.abrupt("return");case 14:throw r.t0;case 15:if(i){r.next=18;break}return delete t._syncGroupListener,r.abrupt("return");case 18:t._syncGroupListener.asset=i,i.on("change",e);case 20:case"end":return r.stop()}}),r,null,[[4,10]])})))()}removeLibrariesSyncGroupListener(){if(this._syncGroupListener){const e=this._syncGroupListener,t=e.asset,r=e.notify;null==t||t.off("change",r),delete this._syncGroupListener}}}function ta(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ta=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}var ra=function(e){return this instanceof ra?(this.v=e,this):new ra(e)},na=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof ra?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}};function ia(e,t){return e.next().then((e=>({result:e,index:t})))}function oa(...e){return na(this,arguments,ta().mark((function t(){var r,n,i;return ta().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.map(ia),n=r.length;case 2:if(!n){t.next=18;break}return t.next=5,ra(Promise.race(r));case 5:if((i=t.sent).result.done){t.next=14;break}return t.next=9,ra(i.result.value);case 9:return t.next=11,t.sent;case 11:r[i.index]=ia(e[i.index],i.index),t.next=16;break;case 14:r[i.index]=new Promise((()=>{})),n--;case 16:t.next=2;break;case 18:case"end":return t.stop()}}),t)})))}class aa{constructor(){this._data=new Map}get length(){return this._data.size}key(e){return Array.from(this._data.keys())[e]}getItem(e){return this._data.get(e)}setItem(e,t){this._data.set(e,t)}removeItem(e){this._data.delete(e)}clear(){this._data.clear()}}class sa{constructor(e,t){this._settings=new Map,this._storageKey=e,this._storage=null!=t?t:"undefined"!=typeof window?window.localStorage:new aa,this._load()}entries(){return this._settings.entries()}setItem(e,t){this._settings.set(e,t),this._save()}getItem(e){return this._settings.get(e)}_setItem(e,t){this._storage.setItem(e,t)}_load(){const e=this._storage.getItem(this._storageKey);if(e)try{this._settings=new Map(JSON.parse(e))}catch(e){le.error("Error restoring previous settings."),this._storage.removeItem(this._storageKey)}}_save(){const e=JSON.stringify(Array.from(this._settings.entries()));this._setItem(this._storageKey,e)}}function ca(e){var t;return{name:e.name,id:e.id,owner:e.storageAssignee,ownerName:null!==(t=e.storageAssignee.displayName)&&void 0!==t?t:"",isWritable:!0}}function la(e){return{type:e.type,angle:e.angle,stops:e.stops}}function ua(e){return new Promise(((t,r)=>{function n(){e.status!==ae.ak.Loading&&(e.errors&&r(e.errors),e.off(ae.mC,n),t())}e.on(ae.mC,n),n()}))}function pa(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||da(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 da(e,t){if(e){if("string"==typeof e)return ha(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)?ha(e,t):void 0}}function ha(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 fa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ma(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ga(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ma(o,n,i,a,s,"next",e)}function s(e){ma(o,n,i,a,s,"throw",e)}a(void 0)}))}}var va=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},ya=function(e){return this instanceof ya?(this.v=e,this):new ya(e)},ba=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}},_a=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:ya(e[n](t)),done:"return"===n}:i?i(t):t}:i}},Ea=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof ya?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}};const wa={field:"modifiedDate",direction:"descending"},La={modifiedDate:"modified_date",name:"name"},xa=["off","error","warn","info","debug"];class Sa extends at{constructor(){super(...arguments),this._fetch=fetch,this._notificationManager=new ea(this),this._assets=new Map,this._operationTypes=[ao,Qi,Eo,So,ko],this._publicExt=new qo(this)}getLibrary(e,t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getLibraryByPublicLinkId.bind(this._publicExt),this.getLibraryByAssetId.bind(this),t)}getElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getElementsByPublicLinkId.bind(this._publicExt),this._getElementsByAssetId.bind(this),...t)}getRemovedElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getRemovedElementsByPublicLinkId.bind(this._publicExt),this._getRemovedElementsByAssetId.bind(this),...t)}getDocumentationElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getDocumentationElementsByPublicLinkId.bind(this._publicExt),this._getDocumentationElementsByAssetId.bind(this),...t)}getElement(e,t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getElement.bind(this._publicExt),this._getElement.bind(this),t)}_handleConnected(e){var t=this;return ga(fa().mark((function r(){var n,i,o,a,s,c,l,u,p,d;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return d=dr(e.token),t._localStorage=new sa(Ye(null==d?void 0:d.user,"cloud"),e.localStorage),t._env=e.env,t._token=e.token,t._refreshAccessToken=e.refreshAccessToken,t._clientId=null===(n=null==d?void 0:d.user)||void 0===n?void 0:n.clientId,t._analyticsEnabled=(null===(o=null===(i=e.config)||void 0===i?void 0:i.processInfo)||void 0===o?void 0:o.analyticsEnabled)||!1,t._ignoreRenditionGrids=(null===(a=e.config)||void 0===a?void 0:a.ignoreRenditionGrids)||!1,t._codeVersion=null===(c=null===(s=e.config)||void 0===s?void 0:s.processInfo)||void 0===c?void 0:c.codeVersion,t._fetch=e.fetch||fetch,r.prev=10,r.next=13,(0,ae.jz)({USER_ID:null===(l=null==d?void 0:d.user)||void 0===l?void 0:l.id,CLIENT_ID:t._clientId,ACCESS_TOKEN:t._token,ENVIRONMENT:"staging"===t._env?ae.Xb.Stage:ae.Xb.Production,HOST_PRODUCT_DATA:{PRODUCT_ID:"CCLibraries",PRODUCT_LOCATION:"cc-libraries-js/1.0"},DISABLE_ONS:null!==(u=e.samDisableOns)&&void 0!==u&&u,HIGH_PRIORITY_RAPI_REQUESTS:!0},{persistentCache:e.samPersistentCache,refreshAccessToken:e.refreshAccessToken});case 13:t._sam=r.sent,t._sam.on(ae.Hf,t._samLoggingHandler),r.next=26;break;case 17:if(r.prev=17,r.t0=r.catch(10),!((e.handleConnectRetries||0)<3)){r.next=25;break}if(19!==r.t0.code){r.next=25;break}return r.next=23,null===(p=t._refreshAccessToken)||void 0===p?void 0:p.call(t);case 23:e.handleConnectRetries=(e.handleConnectRetries||0)+1,t._handleConnected(e);case 25:throw r.t0;case 26:return t._notificationManager.connect(),r.next=29,t.getConfiguration();case 29:case"end":return r.stop()}}),r,null,[[10,17]])})))()}_handleDisconnected(){var e,t;null===(e=this._sam)||void 0===e||e.off(ae.Hf,this._samLoggingHandler),null===(t=this._notificationManager)||void 0===t||t.disconnect(),this._assets.clear()}_samLoggingHandler(e){e.logLevel&&le[xa[e.logLevel]](`[SAM] ${e.message}`)}getConfiguration(){var e=this;return ga(fa().mark((function t(){var r,n;return fa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.getLocalSettings(),n=dr(e._token),e._config=new Ge(Object.assign(Object.assign(Object.assign({},r),n),{environment:e._env,processInfo:{analyticsEnabled:e._analyticsEnabled,codeVersion:e._codeVersion,syncingEnabled:!0},ignoreRenditionGrids:e._ignoreRenditionGrids})),t.abrupt("return",e.config);case 4:case"end":return t.stop()}}),t)})))()}get driverConfig(){return Kr[this._env]}get sam(){return this._sam}updateOptions(e){this._options=e}fetchAccessToken(e,t,r,n){return Promise.resolve({access_token:this._token,expires_in:hr(this._token)})}getLibraryById(e){var t=this;return ga(fa().mark((function r(){var n,i;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t.getLibraryByAssetId(e).next();case 4:return n=r.sent,i=n.value,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()}getLibraryByAssetId(e,t={}){var r,n;return Ea(this,arguments,fa().mark((function i(){var o,a,s,c;return fa().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e){i.next=4;break}return i.next=3,ya({});case 3:case 22:return i.abrupt("return",i.sent);case 4:if(o=t.etag,a=["default"],t.getRenditionGrid&&a.push("rendition_grid"),t.getAppMetadata&&a.push("app_metadata"),t.elementParams){i.next=23;break}return i.prev=9,i.next=12,ya(this._getLibrary(e,o,a));case 12:return i.next=14,i.sent;case 14:i.next=20;break;case 16:if(i.prev=16,i.t0=i.catch(9),i.t0 instanceof ue&&"NOT_MODIFIED"===i.t0.code){i.next=20;break}throw i.t0;case 20:return i.next=22,ya(void 0);case 23:if((s=this._getManifest(e,t)).then((()=>{var e;const r=null===(e=t.elementParams)||void 0===e?void 0:e.abortController;r&&(r.abort(),qe.give(r,"REQUEST NOT NEEDED"))})),!(null===(r=t.elementParams)||void 0===r?void 0:r.loadProgressively)){i.next=53;break}return i.prev=26,i.prev=27,i.next=30,ya(this._getLibrary(e,o,a));case 30:return c=i.sent,o=c.etag,i.next=34,ya(c);case 34:return i.next=36,i.sent;case 36:i.next=42;break;case 38:if(i.prev=38,i.t1=i.catch(27),i.t1 instanceof ue&&"NOT_MODIFIED"===i.t1.code&&t.elementParams){i.next=42;break}throw i.t1;case 42:return i.t2=ya,i.delegateYield(_a(ba(this._getAllElements(e,Object.assign(Object.assign({},t.elementParams),{etag:o})))),"t3",44);case 44:return i.t4=i.t3,i.next=47,(0,i.t2)(i.t4);case 47:i.next=53;break;case 49:if(i.prev=49,i.t5=i.catch(26),(null===(n=t.elementParams.abortController)||void 0===n?void 0:n.signal.aborted)||i.t5 instanceof ue&&"NOT_FOUND"===i.t5.code){i.next=53;break}throw i.t5;case 53:return i.next=55,ya(s);case 55:return i.next=57,i.sent;case 57:case"end":return i.stop()}}),i,this,[[9,16],[26,49],[27,38]])})))}_getLibrary(e,t,r=["default"]){const n={};t&&(n["if-none-match"]=t);const i=new URLSearchParams({selector:r});r.includes("app_metadata")&&i.set("randomizer",(0,O.v4)());const o=`/api/v1/libraries/${e}?${i.toString()}`;return this.fetch(o,{headers:n}).then((e=>e.json())).then((e=>Rr(e,this._options.readOnly,null==r?void 0:r.includes("rendition_grid"))))}getAssetWithCloudID(e){var t=this;return ga(fa().mark((function r(){var n,i;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.t0=t._assets.get(e),r.t0){r.next=5;break}return r.next=4,null===(n=t._sam)||void 0===n?void 0:n.hostAssetContext.getAssetWithCloudID(e);case 4:r.t0=r.sent;case 5:return i=r.t0,t._assets.set(e,i),r.abrupt("return",i);case 8:case"end":return r.stop()}}),r)})))()}createAssetLinkList(){var e;return null===(e=this._sam)||void 0===e?void 0:e.assetLinkManager.createList()}_getManifest(e,t){var r=this;return ga(fa().mark((function n(){var i,o,a;return fa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.getAssetWithCloudID(e);case 3:i=n.sent,n.next=9;break;case 6:throw n.prev=6,n.t0=n.catch(0),he(n.t0);case 9:if(i&&!(null==i?void 0:i.isDiscarded)){n.next=11;break}throw de(404);case 11:return n.prev=11,o=[i.manifest],t.getAppMetadata&&o.push(i.appMetadata),n.next=16,Promise.all(o.map((e=>!e.isLoaded&&e.load())));case 16:return a=Lr(i),i.manifest.unload(),n.abrupt("return",a);case 21:throw n.prev=21,n.t1=n.catch(11),he(n.t1);case 24:case"end":return n.stop()}}),n,null,[[0,6],[11,21]])})))()}getLibraries(e,t=!0){return Ea(this,arguments,fa().mark((function r(){var n,i,o,a,s,c;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!this._options.enableBrandLifecycleManagement){r.next=29;break}return r.next=3,ya(this.getProjectByName("Adobe GenStudio Brands"));case 3:if(n=r.sent){r.next=17;break}return le.error("[CLOUD DRIVER] M3 - Adobe GenStudio Brands project not found."),i={itemFilter:["publishedBrands"],roles:["brand"]},r.t0=ya,r.delegateYield(_a(ba(this.getLibrariesList(e,i))),"t1",9);case 9:return r.t2=r.t1,r.next=12,(0,r.t0)(r.t2);case 12:return r.next=14,ya(void 0);case 14:case 26:return r.abrupt("return",r.sent);case 17:return le.info("[CLOUD DRIVER] M3 - Loading brands inside project."),o={team:[n.id],roles:["brand"]},r.t3=ya,r.delegateYield(_a(ba(this.getLibrariesList(e,o))),"t4",21);case 21:return r.t5=r.t4,r.next=24,(0,r.t3)(r.t5);case 24:return r.next=26,ya(void 0);case 27:r.next=39;break;case 29:return le.info("[CLOUD DRIVER] M2 - Loading all libraries."),a={owner:["private","incoming"],selector:t?["rendition_grid"]:["default"]},s={owner:["public"],selector:t?["rendition_grid","details"]:["default","details"]},c=[this.getLibrariesList(e,a),this.getLibrariesList(e,s)],this._options.includeApprovedBrandsInLibraries&&(le.info("[CLOUD DRIVER] M2 - Loading approved brands."),c.push(this.getApprovedBrandLibraries(e))),r.t6=ya,r.delegateYield(_a(ba(oa(...c))),"t7",36);case 36:return r.t8=r.t7,r.next=39,(0,r.t6)(r.t8);case 39:case"end":return r.stop()}}),r,this)})))}getApprovedBrandLibraries(e){return Ea(this,arguments,fa().mark((function t(){return fa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=ya,t.delegateYield(_a(ba(this.fetchAllApprovedBrandPages("/api/v1/search",this._getLibrariesResponseMapper(),e))),"t1",2);case 2:return t.t2=t.t1,t.next=5,(0,t.t0)(t.t2);case 5:case"end":return t.stop()}}),t,this)})))}fetchAllApprovedBrandPages(e,t,r){var n,i;return Ea(this,arguments,fa().mark((function o(){var a,s;return fa().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:a=e;case 1:if(!a){o.next=12;break}return o.next=4,ya(this.fetch(a,{signal:r,method:"POST",body:JSON.stringify({library_roles_type:["approvedbrand"]}),headers:{owner:"all","content-type":"application/json"}}).then((e=>e.json())));case 4:return s=o.sent,o.next=7,ya(t(s));case 7:return o.next=9,o.sent;case 9:a=null===(i=null===(n=s._links)||void 0===n?void 0:n.next)||void 0===i?void 0:i.href,o.next=1;break;case 12:case"end":return o.stop()}}),o,this)})))}getLibrariesList(e,t){return Ea(this,arguments,fa().mark((function r(){return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=ya,r.delegateYield(_a(ba(this.fetchAllPages(this._getLibrariesURL(t),this._getLibrariesResponseMapper(t),e))),"t1",2);case 2:return r.t2=r.t1,r.next=5,(0,r.t0)(r.t2);case 5:case"end":return r.stop()}}),r,this)})))}getLibrariesPage(e,t){return Ea(this,arguments,fa().mark((function r(){return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=ya,r.delegateYield(_a(ba(this.fetchOnePage(this._getLibrariesURL(t),this._getLibrariesResponseMapper(t),e,!1))),"t1",2);case 2:return r.t2=r.t1,r.next=5,(0,r.t0)(r.t2);case 5:case"end":return r.stop()}}),r,this)})))}getPresignedDownloadUrl(e){var t=this;return ga(fa().mark((function r(){var n,i,o;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch(e);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,o={size:(a=i).size,type:a.type,url:a.href},r.abrupt("return",o);case 8:case"end":return r.stop()}var a}),r)})))()}loadVersionHistory(e){var t=this;return ga(fa().mark((function r(){var n,i,o,a;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=null===(n=t._sam)||void 0===n?void 0:n.hostAssetContext,r.next=3,i.getAssetWithCloudID(e);case 3:return o=r.sent,r.next=6,new Promise(((e,t)=>{(a=o.versions.getList(ae.Fp.default,void 0,{loadAllPages:!0})).on(ae.mC,(function r(){(null==a?void 0:a.status)!==ae.ak.Loading&&(null==a||a.off(ae.mC,r),(null==a?void 0:a.errors)&&t(),e())}))}));case 6:return r.abrupt("return",null==a?void 0:a.items.map((t=>Ir(e,t))));case 7:case"end":return r.stop()}}),r)})))()}loadVersion(e,t){var r=this;return ga(fa().mark((function n(){var i,o,a,s,c;return fa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=null===(i=r._sam)||void 0===i?void 0:i.hostAssetContext,n.next=3,o.getAssetWithCloudID(e);case 3:return a=n.sent,n.next=6,r.fetch(t);case 6:return s=n.sent,n.next=9,s.json();case 9:return c=n.sent,n.abrupt("return",Lr(a,c));case 11:case"end":return n.stop()}}),n)})))()}getCollaborators(e){var t=this;return ga(fa().mark((function r(){var n,i,o;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=null===(n=t._sam)||void 0===n?void 0:n.collaborationContext.getCollaborators(e),r.next=3,new Promise(((e,t)=>{null==(o=null==i?void 0:i.getList(ae.kc.default,void 0,{loadAllPages:!0}))||o.on(ae.mC,(function r(){(null==o?void 0:o.status)!==ae.ak.Loading&&(null==o||o.off(ae.mC,r),(null==o?void 0:o.errors)?t():e())}))}));case 3:return r.abrupt("return",null==o?void 0:o.items.map((t=>Pr(e,t))));case 4:case"end":return r.stop()}}),r)})))()}followLibrary(e,t){return this.fetch("/api/v1/libraries/bookmarks",{method:"POST",body:JSON.stringify({bookmarks:[{type:"collab",id:t,urn:e}]}),headers:{"content-type":"application/json"}}).then((()=>{}))}moveLibrary(e,t,r){return new Promise(((n,i)=>{const o={"content-type":"application/json"};r&&(o["x-organization-id"]=r);const a=this.fetch(`/api/v1/libraries?${(0,Zo.stringify)({invocation_mode:"async"})}`,{method:"POST",body:JSON.stringify({self:e,repository:t}),headers:o}),s=new xe(this,a);s.on("change",((e,t)=>{e&&(s.error?i(s.error):n(ho(Rr(t))))}))}))}importLibrary(e){throw new Error("Not implemented")}exportLibrary(e,t){throw new Error("Not implemented")}publishBrand(e){if(!e.assetId)throw new te("INVALID_PARAMETER","Brand asset id must be defined for publishing. Please wait before trying again.");return this.fetch(`/api/v1/brands/${e.assetId}/publish`,{method:"POST",headers:{"content-type":"application/json"}})}unpublishBrand(e){let t;if(e.publishedTo)t=e.publishedTo;else{if(!e.publishedFrom)throw new te("INVALID_PARAMETER","Brand must be publsihed before unpublishing. Please wait before trying again.");t=e.assetId}return this.fetch(`/api/v1/brands/${t}/unpublish`,{method:"POST",headers:{"content-type":"application/json"}})}abortOperation(e){return ga(fa().mark((function e(){return fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}setLibraryChangeListener(e,t){this._notificationManager.setWatchedLibraries(e,(e=>t(e,"assetId")))}setSyncStateListener(){}removeLibraryChangeListener(){this._notificationManager.disconnect()}removeSyncStateListener(){}removeFontDataChangeListeners(){}addWatchedLibrary(e){this._notificationManager.addWatchedLibrary(e)}removeWatchedLibrary(e){this._notificationManager.removeWatchedLibrary(e),this._assets.delete(e.assetId)}addLibrariesSyncGroupListener(e){this._notificationManager.addLibrariesSyncGroupListener(e)}removeLibrariesSyncGroupListener(){this._notificationManager.removeLibrariesSyncGroupListener()}_getLibrariesURL(e){return`/api/v1/libraries?${new URLSearchParams(e).toString()}`}_getLibrariesResponseMapper(e){return t=>void 0===t.libraries?[]:t.libraries.map((t=>{var r,n;return Rr(t,this._options.readOnly,null===(n=null===(r=null==e?void 0:e.selector)||void 0===r?void 0:r.includes("rendition_grid"))||void 0===n||n)}))}_getElement(e,t){return this.fetch(`/api/v1/libraries/${e}/elements/${t}?selector=default,representations,details,tags`).then((e=>e.json())).then((e=>Mr(e)))}_getAllElements(e,t){var r,n;return Ea(this,arguments,fa().mark((function i(){var o,a,s,c,l,u,p,d,h,f,m,g,v,y;return fa().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:l={},u=0,p=[["elements","_getElementsByAssetId"],["documentationElements","_getDocumentationElementsByAssetId"],["removedElements","_getRemovedElementsByAssetId"]];case 3:if(!(u<p.length)){i.next=47;break}if(d=pa(p[u],2),h=d[0],f=d[1],!t.types.includes(h)){i.next=44;break}i.prev=6,m=!0,a=void 0,g=ba(this[f](e,t.sort,t.etag,void 0,null===(r=t.abortController)||void 0===r?void 0:r.signal));case 8:return i.next=10,ya(g.next());case 10:if(v=i.sent,o=v.done){i.next=29;break}if(c=v.value,m=!1,i.prev=15,y=c,l[h]=l[h]||[],null===(n=l[h])||void 0===n||n.push(...y),!t.loadProgressively){i.next=24;break}return i.next=22,ya({[h]:l[h]});case 22:return i.next=24,i.sent;case 24:return i.prev=24,m=!0,i.finish(24);case 27:i.next=8;break;case 29:i.next=34;break;case 31:i.prev=31,i.t0=i.catch(6),a={error:i.t0};case 34:if(i.prev=34,i.prev=35,m||o||!(s=g.return)){i.next=39;break}return i.next=39,ya(s.call(g));case 39:if(i.prev=39,!a){i.next=42;break}throw a.error;case 42:return i.finish(39);case 43:return i.finish(34);case 44:u++,i.next=3;break;case 47:return i.next=49,ya(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:l));case 49:return i.next=51,i.sent;case 51:case"end":return i.stop()}}),i,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}_getElementsByAssetId(e,t=wa,r,n=100,i){return Ea(this,arguments,fa().mark((function o(){return fa().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=ya,o.delegateYield(_a(ba(this._getElementsOfTypeByAssetId("elements",e,t,r,n,i))),"t1",2);case 2:return o.t2=o.t1,o.next=5,(0,o.t0)(o.t2);case 5:case"end":return o.stop()}}),o,this)})))}_getRemovedElementsByAssetId(e,t=wa,r,n=100,i){return Ea(this,arguments,fa().mark((function o(){return fa().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=ya,o.delegateYield(_a(ba(this._getElementsOfTypeByAssetId("archive",e,t,r,n,i))),"t1",2);case 2:return o.t2=o.t1,o.next=5,(0,o.t0)(o.t2);case 5:case"end":return o.stop()}}),o,this)})))}_getDocumentationElementsByAssetId(e,t=wa,r,n=100,i){return Ea(this,arguments,fa().mark((function e(){return fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ya(Promise.resolve([]));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}_getElementsOfTypeByAssetId(e,t,r=wa,n,i=100,o){return Ea(this,arguments,fa().mark((function a(){var s,c,l;return fa().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=e=>e.elements.map((e=>{if(!e.manifest_etag&&'""'===n||e.manifest_etag===n)return Mr(e);throw new ue("PRECONDITION_FAILED",`An element did not match the provided etag: ${n}`)})),c=`${"descending"===r.direction?"-":""}${La[r.field]}`,l={limit:i,orderBy:c,selector:["default","representations","details"]},a.t0=ya,a.delegateYield(_a(ba(this.fetchAllPages(`/api/v1/libraries/${t}/${e}?${(0,Zo.stringify)(l,{arrayFormat:"comma"})}`,s,o))),"t1",5);case 5:return a.t2=a.t1,a.next=8,(0,a.t0)(a.t2);case 8:case"end":return a.stop()}}),a,this)})))}getSearchResults(e,t,r,n){return Ea(this,arguments,fa().mark((function e(){return fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ya(Promise.resolve(void 0));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}getTeams(){var e=this;return ga(fa().mark((function t(){var r,n;return fa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch(`https://${e.driverConfig.teams_hostname}/api/v2/teams`);case 2:return r=t.sent,t.next=5,r.json();case 5:if(n=t.sent,void 0!==n.teams){t.next=8;break}return t.abrupt("return",[]);case 8:return t.abrupt("return",n.teams.filter((e=>"org"===e.repositoryOwner.type)).map(Br));case 9:case"end":return t.stop()}}),t)})))()}getProjects(){var e=this;return ga(fa().mark((function t(){var r;return fa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._sam){t.next=2;break}return t.abrupt("return",[]);case 2:return t.next=4,e._sam.projectContext.projects().getList(ae.G$.default,ae.R8.AllProjects,{loadAllPages:!0});case 4:return r=t.sent,t.next=7,ua(r);case 7:return t.abrupt("return",r.items.map(ca));case 8:case"end":return t.stop()}}),t)})))()}getProjectByName(e){var t=this;return ga(fa().mark((function r(){return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._sam){r.next=2;break}return r.abrupt("return",void 0);case 2:return r.next=4,t.getProjects();case 4:return r.abrupt("return",r.sent.find((t=>t.name===e)));case 5:case"end":return r.stop()}}),r)})))()}getProjectGradient(e){var t=this;return ga(fa().mark((function r(){var n;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._sam){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._sam.projectContext.getProjectbyID(e.id);case 4:return n=r.sent,r.abrupt("return",t._sam.projectContext.getGradient(n.gradientID).then(la));case 6:case"end":return r.stop()}}),r)})))()}getGroups(e){return Ea(this,arguments,fa().mark((function e(){return fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ya(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getRenditionUrl(e,t){let r;try{const n=vr(e,t);if(!n)return"";r=new URL(n)}catch(e){return le.log(String(e)),""}return r.searchParams.set("api_key",this._clientId),r.searchParams.set("user_token",this._token),r.toString()}getAuthenticatedThumbnailURL(e,t){return Promise.resolve(this.getRenditionUrl(e,t))}getRenditionPath(e,t,r){return Promise.resolve("")}getRendition(e,t){return this.fetch(vr(e,t))}getRepresentationContent(e){var t=this;return ga(fa().mark((function r(){var n,i;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e.contentLength<u)){r.next=4;break}n=e.data.url,r.next=9;break;case 4:return r.next=6,t.getPresignedDownloadUrl(e.data.blockDownloadUrl);case 6:i=r.sent,(n=i&&i.url)||(n=e.data.url);case 9:return r.abrupt("return",t.fetch(n));case 10:case"end":return r.stop()}}),r)})))()}setLocalSetting(e,t){var r=this;return ga(fa().mark((function n(){var i;return fa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=JSON.stringify(t),null===(i=r._localStorage)||void 0===i||i.setItem(e,t);case 2:case"end":return n.stop()}}),n)})))()}getLocalSetting(e){var t;const r=null===(t=this._localStorage)||void 0===t?void 0:t.getItem(e);return r&&JSON.parse(r)}getInstalledVersion(e){throw new Error("Not supported in cloud mode.")}setFontDataChangeListener(e){}moveUrlQueryParamsToHeaders(e){const t=pa(e.split("?"),2),r=t[0],n=t[1],i=new URLSearchParams(n),o={};var a,s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=da(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(L);try{for(s.s();!(a=s.n()).done;){const e=a.value,t=i.get(e);t&&(o[e]=t,i.delete(e))}}catch(e){s.e(e)}finally{s.f()}return[`${r}${[...i].length>0?"?":""}${i}`,o]}sendAction(e){return ga(fa().mark((function t(){return fa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:throw new te("NOT_SUPPORTED","Application actions are not supported in a cloud environment",e.item.id);case 1:case"end":return t.stop()}}),t)})))()}openInCCD(e){return ga(fa().mark((function e(){return fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}fetch(e,t,r={}){var n=this;return ga(fa().mark((function i(){var o,a,s,c,l,u,p,d,h;return fa().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return Vi("path",e),(t=t||{}).headers=t.headers||{},t.headers["x-api-key"]=n._clientId,!1!==r.includeAuthHeader&&(t.headers.Authorization=`Bearer ${n._token}`),c=fr(e),l=c.url,u=c.headers,e=l,t.headers=Object.assign(Object.assign({},u),t.headers),t.signal=t.signal?Ke(t.signal,null===(o=n._abortController)||void 0===o?void 0:o.signal):null===(a=n._abortController)||void 0===a?void 0:a.signal,e.startsWith("/")&&(e=`https://${n.driverConfig.hostname}${e}`),p=Date.now(),i.next=13,n._fetch(e,t).catch((e=>{if(e.name===S)return new Response("{}");throw le.info(`Error - ${e} (${Date.now()-p}ms)`),e}));case 13:if(d=i.sent,h=d.headers.get("X-Request-Id")||"no requestId",le.info(`[${h}] ${t.method||"GET"} ${e} ${d.status} (${Date.now()-p}ms)`),!(d.status>=300)){i.next=22;break}return"UNAUTHORIZED"===pe(d).code&&(null===(s=n._refreshAccessToken)||void 0===s||s.call(n)),i.next=21,n._getFetchError(d);case 21:throw i.sent;case 22:return i.abrupt("return",d);case 23:case"end":return i.stop()}}),i)})))()}_getFetchError(e){return ga(fa().mark((function t(){var r;return fa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(403!==e.status){t.next=11;break}return t.prev=1,t.next=4,e.json();case 4:if("string"!=typeof(r=t.sent).type||"quota"!==r.type.toLowerCase()){t.next=7;break}return t.abrupt("return",new te("EXCEEDS_QUOTA",r.problem_type_message||"Storage quota exceeded"));case 7:t.next=11;break;case 9:t.prev=9,t.t0=t.catch(1);case 11:return t.abrupt("return",pe(e));case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()}fetchAllPages(e,t,r,n=!0){var i,o;return Ea(this,arguments,fa().mark((function a(){var s,c,l,u,p;return fa().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:s=e;case 1:if(!s){a.next=13;break}return n&&(l=this.moveUrlQueryParamsToHeaders(s),u=pa(l,2),s=u[0],c=u[1]),a.next=5,ya(this.fetch(s,{signal:r,headers:c}).then((e=>e.json())));case 5:return p=a.sent,a.next=8,ya(t(p));case 8:return a.next=10,a.sent;case 10:s=null===(o=null===(i=p._links)||void 0===i?void 0:i.next)||void 0===o?void 0:o.href,a.next=1;break;case 13:case"end":return a.stop()}}),a,this)})))}fetchOnePage(e,t,r,n=!0){return Ea(this,arguments,fa().mark((function i(){var o,a,s,c;return fa().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n&&(a=this.moveUrlQueryParamsToHeaders(e),s=pa(a,2),e=s[0],o=s[1]),i.next=3,ya(this.fetch(e,{signal:r,headers:o}).then((e=>e.json())));case 3:return c=i.sent,i.next=6,ya(t(c));case 6:return i.next=8,i.sent;case 8:case"end":return i.stop()}}),i,this)})))}copyFile(e,t,r){return ga(fa().mark((function e(){return fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}getFileSize(e){return ga(fa().mark((function e(){return fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}getRenditionGrid(e){throw new Error("Not supported in cloud mode.")}stageRepresentationForCommit(e,t,r){var n=this;return ga(fa().mark((function i(){var o,a,s,c,l,p,d,h,f,m,g,v,y;return fa().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=r||t.type,i.next=3,n._fetchLibraryLinks(e);case 3:if(a=i.sent,s=a[wr.COMPONENT],c=a[wr.BLOCK_INIT],l=(null==c?void 0:c["repo:maxSingleTransferSize"])||u,s){i.next=9;break}throw new te("NOT_ALLOWED","Library is missing component upload link",e.id);case 9:return p=(0,O.v4)(),d=sr()(s.href),h=d.fill({component_id:p}),i.next=14,X(t,o);case 14:if(f=i.sent,m={id:p,storage_href:h,asset_id:e.assetId,type:o,content_length:t.size,name:t.name,width:null==f?void 0:f.width,height:null==f?void 0:f.height},!(t.size>l&&c)){i.next=27;break}return i.next=19,n._initializeBlockUpload(c,p,t,o);case 19:return g=i.sent,i.next=22,n._transferBlocks(g,t);case 22:return i.next=24,n._finalizeBlockUpload(g);case 24:return v=i.sent,Object.assign(m,v),i.abrupt("return",JSON.stringify(m));case 27:return i.t0=n,i.t1=h,i.t2={"Content-Type":o},i.next=32,t.arrayBuffer();case 32:return i.t3=i.sent,i.t4={method:"PUT",headers:i.t2,body:i.t3},i.next=36,i.t0.fetch.call(i.t0,i.t1,i.t4);case 36:return y=i.sent,Object.assign(m,{etag:y.headers.get("etag"),md5:y.headers.get("content-md5"),version:y.headers.get("revision")}),i.abrupt("return",JSON.stringify(m));case 39:case"end":return i.stop()}}),i)})))()}_fetchLibraryLinks(e){var t=this;return ga(fa().mark((function r(){var n,i,o,a,s,c,l;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.assetId){r.next=2;break}throw new te("NOT_SUPPORTED","Library does not have an assetId",e.id);case 2:return r.next=4,t.fetch(`https://${t.driverConfig.platform_hostname}`);case 4:return n=r.sent,r.next=7,n.json();case 7:return i=r.sent._links,o=i[wr.RESOLVE],a=sr()(o.href),s=a.fill({id:e.assetId}),r.next=13,t.fetch(s,{method:"HEAD"});case 13:return c=r.sent,l=c.headers.get("link"),r.abrupt("return",l?Ro(l):{});case 16:case"end":return r.stop()}}),r)})))()}_initializeBlockUpload(e,t,r,n){var i=this;return ga(fa().mark((function o(){var a,s;return fa().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a={"repo:size":r.size,"repo:blocksize":e["repo:maxSingleTransferSize"]||u,"repo:reltype":wr.COMPONENT,component_id:t,"dc:format":n},o.next=3,i.fetch(e.href,{method:"POST",headers:{"Content-Type":"application/vnd.adobecloud.bulk-transfer+json"},body:JSON.stringify(a)});case 3:return s=o.sent,o.next=6,s.json();case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),o)})))()}_transferBlocks(e,t){var r=this;return ga(fa().mark((function n(){var i,o,a,s,c,l;return fa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(i=e["repo:blocksize"],o=e._links[wr.BLOCK_TRANSFER],a=0,s=[],c=0;a<=t.size;c+=1)l=Math.min(a+i,t.size),s.push(r.fetch(o[c].href,{method:"PUT",headers:{"Content-Length":String(l-a)},body:t.slice(a,l),duplex:"half"},{includeAuthHeader:!1})),a+=i;return n.next=7,Promise.all(s);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()}_finalizeBlockUpload(e){var t=this;return ga(fa().mark((function r(){var n,i,o,a,s;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e._links[wr.BLOCK_FINALIZE],i=n.href,n.templated&&(o=sr()(n.href),i=o.fill({})),a=t.fetch(i,{method:"POST",headers:{"Content-Type":"application/vnd.adobecloud.bulk-transfer+json"},body:JSON.stringify(e)}),r.next=6,a;case 6:if((s=r.sent).status!==x.ACCEPTED){r.next=9;break}return r.abrupt("return",new Promise(((e,r)=>{const n=new xe(t,a);n.on("change",((t,i,o)=>{t&&(n.error?r(n.error):e({etag:o.get("etag"),md5:o.get("content-md5"),version:o.get("version")}))}))})));case 9:return r.abrupt("return",{etag:s.headers.get("etag"),md5:s.headers.get("content-md5"),version:s.headers.get("version")});case 10:case"end":return r.stop()}}),r)})))()}getLocalDriver(){return new Cc((()=>this._requestProcessToUploadData((0,O.v4)(),Date.now())))}_requestProcessToUploadData(e,t){var r=this;return ga(fa().mark((function n(){var i,o,a,s,c,l,u,d;return fa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(Date.now()-t>15e3)){n.next=3;break}throw le.log("Timed out and no response received from process and/or server"),new Error("Unable to get process connection info (timed out)");case 3:for(o=Bo()(null===(i=r.config.user)||void 0===i?void 0:i.id),a=`https://${e}.${o}.adobelocalhost.com`,s=[],c=p[0];c<=p[1];c+=1)s.push(`${a}:${c}`);return r.resetAbortController(),n.next=10,Promise.allSettled(s.map((e=>fetch(e))));case 10:return n.prev=10,n.next=13,Promise.all([r._fetchProcessConnectInfo(e).catch((()=>{})),Ue(1e3)]);case 13:if(l=n.sent,u=pa(l,1),d=u[0]){n.next=18;break}throw new ue("MALFORMED_RESPONSE",`Invalid response retrieving process connection data for uuid: ${e}`);case 18:return n.abrupt("return",d);case 21:return n.prev=21,n.t0=n.catch(10),le.error(String(n.t0)),n.abrupt("return",r._requestProcessToUploadData(e,t));case 25:case"end":return n.stop()}}),n,null,[[10,21]])})))()}_fetchProcessConnectInfo(e){var t=this;return ga(fa().mark((function r(){var n,i,o,a,s;return fa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`https://${t.driverConfig.hostname}/api/v1/client-tokens/${e}`,r.next=3,t.fetch(n).then((e=>e.json()),(e=>le.error(e)));case 3:if(i=r.sent,o=JSON.parse(i.token),a=o.restApiToken,s=o.restApiPort,a&&s){r.next=7;break}throw new ue("MALFORMED_RESPONSE","Response did not include necessary process connection data");case 7:return r.abrupt("return",{hostname:`http://127.0.0.1:${s}`,token:a});case 8:case"end":return r.stop()}}),r)})))()}getClientInfo(){var e;return{deviceId:`${this._clientId}-${null===(e=this.config.user)||void 0===e?void 0:e.id}`,device:"undefined"!=typeof window?window.navigator.userAgent:"node-js",app:this._clientId}}getTempDir(e){return ga(fa().mark((function e(){return fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}ignoreLocalSyncEvents(){return!1}}function Oa(e){return"insert"===e.type}function Ta(e){return"update"===e.type}function Ia(e){return"remove"===e.type}function Pa(e){return"aggregate"===e.type}function Ca(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Aa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Aa(e,t)}(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 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}va([zi("cclibraries-cloudDriver-getLibraryById")],Sa.prototype,"getLibraryById",null),va([zi("cclibraries-cloudDriver-getAllElements")],Sa.prototype,"_getAllElements",null),va([zi("cclibraries-cloudDriver-getElementsOfTypeByAssetId")],Sa.prototype,"_getElementsOfTypeByAssetId",null),va([zi("cclibraries-cloudDriver-getTeams")],Sa.prototype,"getTeams",null),va([zi("cclibraries-cloudDriver-getProjects")],Sa.prototype,"getProjects",null),va([zi("cclibraries-cloudDriver-getProjectByName")],Sa.prototype,"getProjectByName",null),va([zi("cclibraries-cloudDriver-getProjectGradient")],Sa.prototype,"getProjectGradient",null),va([zi("cclibraries-cloudDriver-getRendition")],Sa.prototype,"getRendition",null),va([zi("cclibraries-cloudDriver-fetch")],Sa.prototype,"fetch",null),va([zi("cclibraries-cloudDriver-stageRepresentationForCommit")],Sa.prototype,"stageRepresentationForCommit",null);var ka=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};const Da=/(\.[a-zA-Z0-9]+)|(\[\?\(([^\[\]]+)\)\])/g,Na=/^\$(?:(\.[a-zA-Z0-9]+)|(\[\?\(([^\[\]]+)\)\]))*$/,Ra=/^([^ ]+) *== *"(.+)"$/;function Ma(){return function(e,t,r){const n=r.value;return r.value=function(e,t,...r){if(!Na.test(t))throw new te("INVALID_PARAMETER","JSON Path is not valid");return n.apply(this,[e,t,...r])},r}}class ja{static get(e,t){var r;return"$"===t?e:null===(r=t.match(Da))||void 0===r?void 0:r.reduce(((e,t)=>e&&this._handlePathPart(e,t)),e)}static set(e,t,r){if("$"===t)throw new te("INVALID_PARAMETER","Cannot set in root of object");const n=t.match(Da);if(n){const t=n.pop(),i=n.join("");if(!t)throw new te("INVALID_PARAMETER","JSON path must end in a field");let o=e;if(i&&(o=this.get(e,`$${i}`),!o))throw new te("INVALID_PARAMETER","JSON path parent does not exist");return o[t.substring(1)]=r,r}}static insert(e,t,r){var n;const i=null!==(n=this.get(e,t))&&void 0!==n?n:this.set(e,t,[]);Array.isArray(i)?i.push(r):le.warn("JSONPath.insert failed to insert into non-array")}static remove(e,t){const r=null==t?void 0:t.match(Da),n=null==r?void 0:r.pop(),i=(null==r?void 0:r.reduce(((e,t)=>e&&this._handlePathPart(e,t)),e))||[];if(!(null==n?void 0:n.startsWith("[?(")))throw new te("INVALID_PARAMETER","JSON Path must end in a filter");if(!Array.isArray(i))return;const o=this._handleFilterExpression(i,n.substring(3,n.length-2)),a=i.indexOf(o);-1!==a&&i.splice(a,1)}static _handlePathPart(e,t){return t.startsWith("[?(")?this._handleFilterExpression(e,t.substring(3,t.length-2)):e[t.substring(1)]}static _handleFilterExpression(e,t){const r=Ca(Ra.exec(t)||[],3),n=r[1],i=r[2],o=n.replace(/^@/,"$");if(Array.isArray(e))return e.find((e=>this.get(e,o)===i))}}function Za(e,t){return Pa(t)?t.actions.reduce(((e,t)=>Za(e,t)),e):Oa(t)?function(e,t){return ja.insert(e,t.path,t.data),e}(e,t):Ta(t)?function(e,t){const r=ja.get(e,t.path);return Object.assign(r,t.data),e}(e,t):Ia(t)?function(e,t){return ja.remove(e,t.path),e}(e,t):e}ka([Ma()],ja,"get",null),ka([Ma()],ja,"set",null),ka([Ma()],ja,"insert",null),ka([Ma()],ja,"remove",null);class Fa{constructor(e=10){this._cache=new Map,this._capacity=e}has(e){if(this._cache.get(e))return e}add(e){if(this._cache.has(e))this._cache.delete(e);else if(this._cache.size>=this._capacity){const e=Array.from(this._cache.entries()).reduce(((e,t)=>e[1]<t[1]?e:t))[0];this._cache.delete(e)}this._cache.set(e,Date.now())}}function Ba(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ga(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ga(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Ga(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}const Ua=Symbol("operationPending");class za extends gt{constructor(e,t,r){super(e,t,r),this._actions=[],this._reducer=Za,this._operation=void 0,this._pendingActionSemaphore=0,this._pendingOperationResolvers=[],this._lastLocalUpdateDate=0,this._previouslySeenEtags=new Fa,this._pendingActions=[],this._baseData=r,this._currentData=qt(r)}get data(){return this._currentData}get baseData(){return this._baseData}get actions(){return this._actions}dispatch(e,t=!0){return this._dispatch(e,t)}revert(){this._actions=[],this._pendingActions=[],this._pendingActionSemaphore=0,this._currentData=qt(this._baseData),this._updateCaches(),this.emit("change")}commit(e,t){this._confirmActionsAtHead(e),function(e){var t,r,n,i,o=$t(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;e.data&&D(null===(r=null===(t=e.originalAction)||void 0===t?void 0:t.data)||void 0===r?void 0:r.id)&&(e.data.previousPlaceholderId=null===(n=e.originalAction)||void 0===n?void 0:n.data.id)}}catch(e){o.e(e)}finally{o.f()}}(e);let r=Object.assign({},this._baseData);var n,i=Ba(e);try{for(i.s();!(n=i.n()).done;){const e=n.value;r=this._reducer(r,e),this._actions.shift()}}catch(e){i.e(e)}finally{i.f()}this._actions=Jt(e,this._actions),t&&(this._previouslySeenEtags.add(this.etag),r.etag=t),this._lastLocalUpdateDate=Date.now(),this.update(r),e.forEach((e=>{var t;(function(e){return["removeLibrary","unfollowLibrary","leaveLibrary","permanentlyDeleteLibrary"].includes(e.name)})(e)&&(null===(t=this._modelCache)||void 0===t||t.remove(this,!1))})),this.emit("action",...e.map((e=>({type:"commit",action:e})))),this.emit("commit")}_confirmActionsAtHead(e){if(this._actions.length<e.length)return!1;for(const t in e)if(e[t]!==this._actions[t])return!1;return!0}update(e,t=!0){const r=D(this.id)&&e.id&&this.id!==e.id;return this._modelCache&&this._modelCache.updateIndices(this,e),this._baseData=Object.assign(Object.assign({},this._baseData),e),this._rebaseActions(),t&&this.emit("change"),r&&this._commitResolver&&this._commitResolver(),this._baseData}beginOperation(){this.squelchChangeEvents(),this._pendingActionSemaphore+=1,le.log(`[STORE] Starting operation (Depth: ${this._pendingActionSemaphore})`)}endOperation(e){if(this._pendingActionSemaphore=Math.max(0,this._pendingActionSemaphore-1),le.log(`[STORE] Ending operation (Depth: ${this._pendingActionSemaphore})`),0===this._pendingActionSemaphore){le.log("[STORE] Reached end of operation stack. Adding actions to queue...");const e=this._collapseActions(this._pendingActions);return this._actions=this.actions.concat(e),this._pendingActions=[],this.emit("action",...e.map((e=>({type:"dispatch",action:e})))),this.unsquelchChangeEvents(),new Promise((e=>{const t=()=>{this._actions.length||(this._pendingOperationResolvers.forEach((e=>e())),this._pendingOperationResolvers=[],e(),this.off("commit",t))};this.on("commit",t)}))}return new Promise((e=>{this._pendingOperationResolvers.push(e)}))}get etag(){return this._baseData.etag}set etag(e){this._baseData.etag=e}get isOperationInProgress(){return 0!==this._pendingActionSemaphore}set operation(e){this._operation=e}get operation(){return this._operation}_dispatch(e,t=!0){(Oa(e)||Ta(e))&&(e.data=qt(e.data));const r=this._reducer(this._currentData,e);this.isOperationInProgress?this._pendingActions.push(e):this._actions.push(e),this._currentData=r,this._lastLocalUpdateDate=Date.now(),t&&this.emit("change"),this.isOperationInProgress||this.emit("action",{type:"dispatch",action:e})}_rebaseActions(){this._currentData=[...this._actions,...this._pendingActions].reduce(((e,t)=>this._reducer(e,t)),qt(this._baseData))}_collapseActions(e){return e}}var Va=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class Ha extends Pt{constructor(){super(...arguments),this.isGroup=!0,this._isDeletedLocally=!1,this._updateAction="updateGroup"}get id(){return this.data.id}get classifierName(){return this.data.classifier}get name(){return this.data.name}set name(e){this.dispatch({name:"updateGroup",type:"update",data:{name:e}})}get order(){return this.data.order}set order(e){this.dispatch({name:"updateGroup",type:"update",data:{order:e}})}get modified(){return this.data.modifiedDate}get modifiedBy(){return this.data.modifiedBy}get modifiedContext(){return this.data.modifiedContext}get wasModifiedLocally(){return this.data.modifiedLocally}get created(){return this.data.createdDate}get createdBy(){return this.data.createdBy}get createdContext(){return this.data.createdContext}get wasCreatedLocally(){return this.data.createdLocally}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return Nt(this.data.customData)}get children(){return this.library.getGroups(this.classifierName).filter((e=>e.parent&&e.parent.id===this.id))}getFilteredChildren(e){return this.children.filter(e)}get elements(){const e=[],t=t=>void 0!==t.getOrderInGroup(this)&&e.push(t);return this.library.elements.forEach(t),this.library.documentationElements.forEach(t),e}isEmpty(){return 0===this.elements.length&&0===this.children.length}setValue(e,t,r,n){this.dispatch({name:"updateGroup",type:"update",data:{customData:Object.assign(Object.assign({},this.data.customData),{[`${e}#${t}`]:r})}})}removeValue(e,t,r){this.setValue(e,t,null,r)}get isDeletedLocally(){return this._isDeletedLocally}set isDeletedLocally(e){this._isDeletedLocally=e,this.emit("change")}get library(){return this._parent}getLocalizedName(e="en_US"){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.dispatch({name:"updateGroup",type:"update",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get parent(){return this.library.getGroupById(this._data.parentId)}set parent(e){this.dispatch({name:"updateGroup",type:"update",data:{parentId:(null==e?void 0:e.id)||null}})}createChild(e,t){const r=k();return this.dispatch({name:"createGroup",type:"insert",data:{id:r,name:e,order:t,classifier:this.classifierName,parentId:this.id},path:"$.groups"}),this.library.getGroupById(r)}dispatch(e){e.path||(e.path=`$.groups[?(@.id == "${this.id}")]`),this.library.dispatch(e)}update(e,t=!0){const r=super.update(e,!1);return t&&this.emit("change"),r}}Va([ke,vt],Ha.prototype,"name",null),Va([ke,vt],Ha.prototype,"order",null),Va([ke],Ha.prototype,"modified",null),Va([ke],Ha.prototype,"modifiedBy",null),Va([ke],Ha.prototype,"modifiedContext",null),Va([ke],Ha.prototype,"wasModifiedLocally",null),Va([ke],Ha.prototype,"created",null),Va([ke],Ha.prototype,"createdBy",null),Va([ke],Ha.prototype,"createdContext",null),Va([ke],Ha.prototype,"wasCreatedLocally",null),Va([ke],Ha.prototype,"getValue",null),Va([ke],Ha.prototype,"getValues",null),Va([ke],Ha.prototype,"children",null),Va([ke],Ha.prototype,"getFilteredChildren",null),Va([ke],Ha.prototype,"elements",null),Va([ke],Ha.prototype,"isEmpty",null),Va([vt],Ha.prototype,"setValue",null),Va([vt],Ha.prototype,"removeValue",null),Va([ke],Ha.prototype,"isDeletedLocally",null),Va([ke],Ha.prototype,"getLocalizedName",null),Va([ke],Ha.prototype,"getLocalizedNames",null),Va([vt],Ha.prototype,"setLocalizedName",null),Va([vt,ke],Ha.prototype,"parent",null);class Ya extends gt{constructor(e,t,r){super(e,t,r),this._groupCache=new ft(this,Ha),this._elementCache=new ft(this,Ft),this._documentationElementCache=new ft(this,Ft),this._removedElementCache=new ft(this,Ft);const n=this.data,i=n.groups,o=n.elements,a=n.documentationElements,s=n.removedElements;i&&this._groupCache.replace(i),o&&this._elementCache.replace(o),a&&this._documentationElementCache.replace(a),s&&this._removedElementCache.replace(s)}get isPublic(){return"public"===this.data.ownership}get collaboration(){return this.data.collaboration}get elements(){return this._elementCache.all()}get elementCount(){return this.elements.length}get documentationElements(){return this._documentationElementCache.all()}get documentationElementCount(){return this.documentationElements.length}get removedElements(){return this._removedElementCache.all()}get removedElementCount(){return this.removedElements.length}getElementById(e){return this.elements.find((t=>t.id===e))}getElementsAndDependencies(e){const t={},r=e=>{const n=this.getElementById(e);if(!n||t[e])return;t[e]=n;(n.dependencies.map((e=>e.id))||[]).forEach(r)};return e.forEach((e=>r(e.id))),Object.keys(t).map((e=>t[e]))}getFilteredElements(e){return this.elements.filter(e)}getGroupCount(e){return this.getGroups(e).length}getGroups(e){return this._groupCache.all().filter((t=>t.classifierName===e))}getGroupById(e){return this._groupCache.get(e)}getFilteredGroups(e="$default",t){var r;return(null===(r=this.getGroups(e))||void 0===r?void 0:r.filter(t))||[]}hasUngroupedElements(e="$default"){return this.elementCount>this.getGroups(e).reduce(((e,t)=>e+t.elements.length),0)}getLocalizedName(e){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getActions(){return[]}get areElementsLoaded(){return!0}get assetId(){return this.data.assetId}get created(){return this.data.createdDate}get documentId(){return this.data.documentId}get documentType(){return this.data.documentType}get isLibraryLoaded(){return!0}get isTransient(){return!0}get isDeletedLocally(){return!1}get isParentWritable(){return!1}get isPushedToServer(){return!0}get isWritable(){return!1}get modified(){return this.data.modifiedDate}get name(){return this.data.name}get owner(){return this.data.owner}get ownerType(){return this.data.ownerType}get ownership(){return this.data.ownership}get parentDirectoryId(){var e;return null===(e=this.data.team)||void 0===e?void 0:e.id}get team(){return this.apiRoot.teams.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get toolkitId(){return this.data.toolkitId}get isDeletedFromServer(){return!1}get renditionGrid(){}get storageUsed(){return 0}get syncProgress(){return 0}get syncState(){}get isQuotaExceeded(){return!1}}function Wa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function $a(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var Ka=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class qa extends gt{get id(){return this._data.id}get createdDate(){return this._data.createdDate}get createdBy(){return this._data.createdBy}get library(){return this._parent}load(){var e,t=this;return(e=Wa().mark((function e(){var r;return Wa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._libraryVersion){e.next=2;break}return e.abrupt("return",t._libraryVersion);case 2:return e.next=4,t.apiRoot.cloudDriver.loadVersion(t.library.assetId,t._data.manifestUrl);case 4:return r=e.sent,t._libraryVersion=new Ya(void 0,t,r),e.abrupt("return",t._libraryVersion);case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){$a(o,n,i,a,s,"next",e)}function s(e){$a(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}Ka([yt],qa.prototype,"load",null);class Xa extends gt{get imsUserId(){return this.data.imsUserId}get email(){return this.data.email}get name(){return this.data.name}get role(){return this.data.role}get inheritances(){return this.data.inheritances}get type(){return this.data.type}get isDirect(){return this.data.isDirect}get hasContributorRole(){return this.data.hasContributorRole}get hasName(){return this.data.hasName}get invited(){return this.data.invited}get isAdmin(){return this.data.isAdmin}get isPredefinedGroup(){return"predefinedPrincipal"===this.type}get isStorageAdminOnly(){var e;return 1===(null===(e=this.inheritances)||void 0===e?void 0:e.length)&&"deep_override"===this.inheritances[0]}}function Ja(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ja=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qa(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function es(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qa(o,n,i,a,s,"next",e)}function s(e){Qa(o,n,i,a,s,"throw",e)}a(void 0)}))}}class ts extends ie{constructor(){super(...arguments),this._isLocked=!1,this._queue=[]}execute(e){const t=e=>(this.release(),e);return this.obtain().then(e).then((e=>t(e)),(e=>t(Promise.reject(e))))}_obtain(e){this._isLocked?this._queue.push(e):(this._isLocked=!0,this.emit("change"),e(null))}obtain(){return new Promise(((e,t)=>this._obtain((r=>r?t(r):e()))))}release(){if(this._queue.length>0){const e=this._queue.shift();setTimeout((()=>e(null)))}else this._isLocked=!1,this.emit("change")}abortPendingOperations(e){const t=this._queue;this._queue=[],t.forEach((t=>t(e)))}get isLocked(){return this._isLocked}hasPendingRequest(){return this._queue.length>0}}function rs(e,t,r){const n=r.value;r.value=es(Ja().mark((function e(...t){var r;return Ja().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._lock=this._lock||new ts,e.next=3,this._lock.obtain();case 3:return e.prev=3,e.next=6,n.apply(this,t);case 6:return r=e.sent,this._lock.release(),e.abrupt("return",r);case 11:throw e.prev=11,e.t0=e.catch(3),this._lock.release(),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])})))}function ns(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return is(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return is(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function is(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}const os=[{test:e=>Pa(e)&&["moveGroup","copyGroup"].includes(e.name),handler:function(e,t){var r;const n=[],i=Wt(t.path),o=t.actions.map((e=>"removeElement"===e.name&&e.baseData)),a=(null===(r=e.elements)||void 0===r?void 0:r.filter((e=>e.groups.find((e=>e.id===i)))))||[];var s,c=ns(a.filter((e=>!o.find((t=>t.id===e.id)))));try{for(c.s();!(s=c.n()).done;){const e=s.value;n.push({name:"updateElement",type:"update",path:`$.elements[?(@.id == "${e.id}")]`,data:{groups:e.groups.filter((e=>e.id!==i))}})}}catch(e){c.e(e)}finally{c.f()}const l=o.filter((e=>!a.find((t=>t.id===e.id))));for(let e=t.actions.length-1;e>=0;e-=1){const r=t.actions[e];l.find((e=>e.id===r.baseData.id))&&t.actions.splice(e,1)}return n.push(t),n}},{test:e=>Ta(e)&&"updateElementContent"===e.name,handler:function(e,t){const r=ja.get(e,t.path);if(r&&r.modifiedDate!==t.baseData.modifiedDate&&!Ne(r.representations,t.baseData.representations,{cyclesFix:!1}).find((e=>"id"!==e.path[1]&&"CREATE"!==e.type&&!(void 0===e.oldValue&&"REMOVE"===e.type))))return[t];if(!r||r.modifiedDate!==t.baseData.modifiedDate)return[{name:"createElement",type:"insert",path:Yt(t.path),data:qt(Object.assign(Object.assign(Object.assign({},t.baseData),t.data),{id:k()}))}];return[t]}},{test:e=>Ta(e)&&"updateGroup"===e.name,handler:function(e,t){const r=ja.get(e,t.path);if(!r)return[{name:"createGroup",type:"insert",path:"$.groups",data:qt(Object.assign(Object.assign(Object.assign({},t.baseData),t.data),{id:k()}))}];return[Object.assign(Object.assign({},t),{baseData:qt(r)})]}},{test:e=>Ta(e)&&"updateElement"===e.name,handler:function(e,t){const r=ja.get(e,t.path);if(!r)return[];return[Object.assign(Object.assign({},t),{baseData:qt(r)})]}},{test:e=>Pa(e)&&"removeElement"===e.name,handler:function(e,t){const r=ja.get(e,t.path),n=t.actions.find((e=>"removeElement"===e.name));if(!r||r.modifiedDate!==(null==n?void 0:n.baseData.modifiedDate))return[];return[t]}},{test:e=>Ia(e),handler:function(e,t){const r=ja.get(e,t.path);if(!r||r.modifiedDate!==t.baseData.modifiedDate)return[];return[t]}}];function as(e,t){var r,n=ns(os);try{for(n.s();!(r=n.n()).done;){const n=r.value,i=n.test,o=n.handler;if(i(t))return o(e,t)}}catch(e){n.e(e)}finally{n.f()}return[t]}function ss(e){const t="incoming"===e.ownership&&"org"===e.ownerType;return Boolean("incoming"===e.ownership&&e.team||t)}function cs(e){var t;return!!(null===(t=e.roles)||void 0===t?void 0:t.find((e=>"brand"===e.type)))}function ls(e,t){var r,n;if(!e||function(e){var t;return!!(null===(t=e.roles)||void 0===t?void 0:t.find((e=>["cme","cm_training_set"].includes(e.type))))}(e))return!1;const i="incoming"===e.ownership,o="private"===e.ownership||"outgoing"===e.ownership,a=t?i:o,s=!!(null===(r=e.bookmark)||void 0===r?void 0:r.id),c=!!(null===(n=e.roles)||void 0===n?void 0:n.find((e=>"approvedbrand"===e.type)));return a||s||c}function us(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ps(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ps(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function ps(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 ds(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ds=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function hs(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function fs(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){hs(o,n,i,a,s,"next",e)}function s(e){hs(o,n,i,a,s,"throw",e)}a(void 0)}))}}var ms=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},gs=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}};let vs=class extends za{constructor(e,t,r){super(e,t,Object.assign({groups:[],elements:[],documentationElements:[],removedElements:[]},r)),this._lock=new ts,this._versionCache=new ft(this,qa),this._collaboratorCache=new ft(this,Xa),this._isDeletedLocally=!1,this._childModelCaches={groups:{cache:new ft(this,At(Ha)),accessor:e=>e.groups},elements:{cache:new ft(this,At(Ft)),accessor:e=>e.elements},documentationElements:{cache:new ft(this,At(Ft)),accessor:e=>e.documentationElements},removedElements:{cache:new ft(this,At(Ft)),accessor:e=>e.removedElements}},this._hasExplicitlyLoadedElements=!1,this.isLibrary=!0,this.on("action",(()=>this.syncStatus={})),this.on("commit",(()=>this.syncStatus={})),this._lock.on("change",(()=>this.syncStatus={}))}obtainLock(){return this._lock.obtain()}releaseLock(){return this._lock.release()}get isLocked(){return this._lock.isLocked}load(e,t){return this._load(!1,e,t)}loadElements(e){var t=this;return fs(ds().mark((function r(){return ds().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.areElementsLoaded&&t._hasExplicitlyLoadedElements){r.next=4;break}return t._hasExplicitlyLoadedElements=!0,r.next=4,t._load(!0,e);case 4:case"end":return r.stop()}}),r)})))()}clearElements(e=!0){const t=0===this.elements.length&&0===this.documentationElements.length;this.areElementsLoaded||t||this.update({elements:[],documentationElements:[],removedElements:[],areElementsLoaded:!1},e)}abortLoadElements(){this._loadElementsAbortController&&this._loadElementsAbortController.abort()}_load(e=!1,t,r){var n=this;return fs(ds().mark((function i(){var o,a,s,c,l,u,p,d,h,f,m,g,v,y,b,_;return ds().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n._loadElementsAbortController=new AbortController,e&&!n.areElementsLoaded&&(n.apiRoot.abortSearch(),n.clearElements()),f={etag:n.data.appMetadata?void 0:n.data.etag,optimisticFetch:!0,firstElementsLoad:!n.areElementsLoaded,getRenditionGrid:!0,elementParams:e||n.areElementsLoaded?{types:n.apiRoot.options.elementTypes,sort:t,abortController:n._loadElementsAbortController,loadProgressively:!n.areElementsLoaded}:void 0},r&&(f.optimisticFetch=!1),n.data.appMetadata&&(f.getAppMetadata=!0),i.prev=5,i.prev=6,m=!0,g=gs(n.driver.getLibrary(n,f));case 8:return i.next=10,g.next();case 10:if(v=i.sent,o=v.done){i.next=31;break}if(c=v.value,m=!1,i.prev=15,!(y=c).etag||f.getAppMetadata){i.next=21;break}if(!n._previouslySeenEtags.has(y.etag)){i.next=20;break}return i.abrupt("continue",29);case 20:n._previouslySeenEtags.add(y.etag);case 21:n.update(y),(b=null===(u=null===(l=y.appMetadata)||void 0===l?void 0:l["brand:publishedTo"])||void 0===u?void 0:u["repo:assetId"])&&n.apiRoot.resolveLibraryWithoutCache(b),(_=null===(d=null===(p=y.appMetadata)||void 0===p?void 0:p["brand:publishedFrom"])||void 0===d?void 0:d["repo:assetId"])&&n.apiRoot.resolveLibraryWithoutCache(_);case 26:return i.prev=26,m=!0,i.finish(26);case 29:i.next=8;break;case 31:i.next=36;break;case 33:i.prev=33,i.t0=i.catch(6),a={error:i.t0};case 36:if(i.prev=36,i.prev=37,m||o||!(s=g.return)){i.next=41;break}return i.next=41,s.call(g);case 41:if(i.prev=41,!a){i.next=44;break}throw a.error;case 44:return i.finish(41);case 45:return i.finish(36);case 46:i.next=59;break;case 48:if(i.prev=48,i.t1=i.catch(5),!(i.t1 instanceof ue)){i.next=58;break}if("PRECONDITION_FAILED"!==i.t1.code){i.next=53;break}return i.abrupt("return",n._load(e,t,r));case 53:if("NOT_MODIFIED"!==i.t1.code){i.next=55;break}return i.abrupt("return");case 55:if("NOT_FOUND"!==i.t1.code){i.next=58;break}return D(n.id)||null===(h=n._modelCache)||void 0===h||h.remove(n.id),i.abrupt("return");case 58:throw i.t1;case 59:case"end":return i.stop()}}),i,null,[[5,48],[6,33,36,46],[15,,26,29],[37,,41,45]])})))()}loadGivenElements(e,t=!1,r=!1){if(!t&&this.data.areElementsLoaded)return;if(t||(e=e.filter((e=>!this.getElementById(e.id)))),0===e.length)return;const n=(this.data.elements||[]).concat(e);this.update({elements:n},r)}get type(){return"application/vnd.adobe.library+dcx"}get id(){return this.data.id}get version(){return this.data.version}get publicLinkId(){return this.data.publicLinkId}get bookmark(){var e;return{id:null===(e=this.data.bookmark)||void 0===e?void 0:e.id}}get previousPlaceHolderId(){return this._baseData.previousPlaceholderId}get isPublic(){return"public"===this.data.ownership}get ownership(){return this.data.ownership}get locallyManaged(){return!!this.data.locallyManaged}set locallyManaged(e){this.data.locallyManaged=e}get name(){return this.data.name}set name(e){this.dispatch({name:"updateLibrary",type:"update",data:{name:e}})}getLocalizedName(e="en_US"){return this.data.localizedNames[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.dispatch({name:"updateLibrary",type:"update",path:"$",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get created(){return this.data.createdDate}get modified(){return Math.max(this.data.modifiedDate,this._lastLocalUpdateDate)}get createdBy(){return this.data.createdBy}get modifiedBy(){return this.data.modifiedBy}get toolkitId(){return this.data.toolkitId}set toolkitId(e){this.dispatch({name:"updateLibrary",type:"update",data:{toolkitId:e}})}get roles(){return this.data.roles||[]}set roles(e){this.dispatch({name:"updateLibrary",type:"update",data:{roles:e}})}get description(){return this.data.description}set description(e){this.dispatch({name:"updateLibrary",type:"update",data:{description:e}})}get copyGuidelines(){var e;return(null===(e=this.apiRoot.options.featureFlags)||void 0===e?void 0:e.enableGenStudioAPIs)?this.getValue("brand","copyGuidelines")||{}:(le.warn("library.copyGuidelines is only accessible when the feature flag enableGenStudioAPIs is enabled."),{})}set copyGuidelines(e){var t;(null===(t=this.apiRoot.options.featureFlags)||void 0===t?void 0:t.enableGenStudioAPIs)?this.setValue("brand","copyGuidelines",e):le.warn("library.copyGuidelines is only accessible when the feature flag enableGenStudioAPIs is enabled.")}get documentId(){return this.data.documentId}get renditionGrid(){var e;const t=this.data.etag!==(null===(e=this.data.renditionGrid)||void 0===e?void 0:e.gridGenerationEtag);return this.areElementsLoaded&&t?br(this)||void 0:this.data.renditionGrid}get documentType(){return this.data.documentType}get collaboration(){return this.data.collaboration}get appMetadata(){return this.data.appMetadata||{}}get assetId(){return this.data.assetId}get isWritable(){return this.data.isWritable}get isParentWritable(){return this.data.isParentWritable}get removeType(){return this.data.removeType}get deletable(){return this.data.deletable}get owner(){var e;return this.data.owner||("private"===this.data.ownership?null===(e=this.driver.config.user)||void 0===e?void 0:e.id:void 0)}get ownerType(){return this.data.ownerType}get parentDirectoryId(){var e;return null===(e=this.data.team)||void 0===e?void 0:e.id}get team(){return"staging"===this.driver.config.environment&&le.warn("Library.team is deprecated. Use Library.project instead."),this.apiRoot.teams.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get project(){return this.apiRoot.projects.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get isDeletedFromServer(){return!1}get isDeletedLocally(){return this._isDeletedLocally}set isDeletedLocally(e){this._isDeletedLocally=e,this.emit("change")}get isQuotaExceeded(){return!1}get storageUsed(){return this.data.storageUsed}set syncStatus({syncState:e,syncProgress:t}){const r=this._syncState,n=this._syncProgress;this._syncState=e,this._syncProgress=t,(this.isLocked||this._actions.length>0)&&(this._syncState=this._syncState||this._actions.length>0?"uploading":"downloading"),this._syncState===r&&this._syncProgress===n||this.emit("sync")}get syncState(){return this._syncState}get syncProgress(){return this._syncProgress}get syncError(){var e;return null===(e=this.apiRoot.syncState.errorMap.get(this.id))||void 0===e?void 0:e.error}get isPushedToServer(){return Boolean(this.assetId)}get areElementsLoaded(){return Boolean(this.data.areElementsLoaded)}get elements(){return this._elementCache.all()}get elementCount(){return this.elements.length}getFilteredElements(e){return this.elements.filter(e)}get documentationElements(){return this._documentationElementCache.all()}get documentationElementCount(){return this.documentationElements.length}get removedElements(){return this._removedElementCache.all()}get removedElementCount(){return this.removedElements.length}get publishedTo(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:publishedTo"])||void 0===t?void 0:t["repo:assetId"]}get publishedFrom(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:publishedFrom"])||void 0===t?void 0:t["repo:assetId"]}get lastPublishedVersion(){var e;return null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:lastPublishedVersion"]}get extractedFrom(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:extractedFrom"])||void 0===t?void 0:t.map((e=>e["repo:assetId"]))}getElementById(e,t=!1,r=!1){var n,i=us([this.elements,!t&&this.removedElements,!r&&this.documentationElements].filter(Boolean));try{for(i.s();!(n=i.n()).done;){const t=n.value.find((t=>t.id===e||t.data.previousPlaceholderId===e));if(t)return t}}catch(e){i.e(e)}finally{i.f()}}getReference(){return{"dc:format":this.type,"repo:assetId":this.assetId,"repo:name":this.name,"stRef:manager":"Adobe Cloud","stRef:documentID":this.id}}getReferenceString(){return Z(this.getReference())}createElement(e,t){return this._createElementAtPath(e,t,"$.elements")}createDocumentationElement(e,t){return this._createElementAtPath(e,t,"$.documentationElements")}_createElementAtPath(e,t,r){this.beginOperation();const n=k();return this.dispatch({name:"createElement",type:"insert",path:r,data:{id:n,name:e,type:t,createdDate:Date.now(),modifiedDate:Date.now(),representations:[],groups:[]}}),this.getElementById(n)}removeElement(e,t){e.removed=Date.now();const r={name:"removeElement",path:`$.elements[?(@.id == "${e.id}")]`};if(t)this.dispatch(Object.assign(Object.assign({},r),{type:"remove"}));else{const t=[Object.assign(Object.assign({},r),{type:"remove"})];t.push({name:"createElement",type:"insert",path:"$.removedElements",data:e.data}),this.dispatch(Object.assign(Object.assign({},r),{type:"aggregate",actions:t}))}}restoreElement(e){const t=[{name:"restoreElement",type:"insert",path:"$.elements",data:e.data},{name:"removeElement",type:"remove",path:`$.removedElements[?(@.id == "${e.id}")]`}];return this.dispatch({name:"restoreElement",type:"aggregate",data:e.data,actions:t}),this.getElementById(e.id)}copyElement(e,t){return this._transferElement(e,t,!1)}moveElement(e,t){return this._transferElement(e,t,!0)}_transferElement(e,t,r){const n=k(),i={name:r?"moveElement":"copyElement",type:r?"remove":"no-op",path:`$.elements[?(@.id == "${e.id}")]`,library:this},o={name:"dependent",type:"insert",path:"$.elements",library:t,data:Object.assign(Object.assign({},e.data),{id:n})};return i.link=o,o.link=i,this.dispatch(i),t.dispatch(o),Promise.resolve(t.getElementById(n))}stageRepresentationForCommit(e,t){var r=this;return fs(ds().mark((function n(){var i;return ds().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=k(),r.dispatch({name:"uploadComponent",type:"no-op",data:{id:i,type:t,file:e}}),n.abrupt("return",JSON.stringify({id:i,type:t}));case 3:case"end":return n.stop()}}),n)})))()}getGroups(e="$default"){return this._groupCache.all().filter((t=>t.classifierName===e))}getGroupCount(e="$default"){return this.getGroups(e).length}getFilteredGroups(e="$default",t){var r;return(null===(r=this.getGroups(e))||void 0===r?void 0:r.filter(t))||[]}getGroupById(e){return this._groupCache.get(e)}createGroup(e,t,r="$default"){const n=k();return this.dispatch({name:"createGroup",type:"insert",path:"$.groups",data:{id:n,name:e,order:t,classifier:r}}),this.getGroupById(n)}removeGroup(e,t){const r={name:"removeGroup",path:`$.groups[?(@.id == "${e.id}")]`};if(e.isDeletedLocally=!0,t){const t=[Object.assign(Object.assign({},r),{type:"remove"})];var n,i=us(e.elements);try{for(i.s();!(n=i.n()).done;){const e=n.value;t.push({name:"removeElement",type:"remove",path:`$.elements[?(@.id == "${e.id}")]`})}}catch(e){i.e(e)}finally{i.f()}this.dispatch(Object.assign(Object.assign({},r),{type:"aggregate",flags:{includeElements:!0},actions:t}))}else this.dispatch(Object.assign(Object.assign({},r),{type:"remove"}))}copyGroup(e,t,r){return this._transferGroup(e,t,r,!1)}moveGroup(e,t,r){return this._transferGroup(e,t,r,!0)}_transferGroup(e,t,r,n){const i=[];if(n&&(i.push({type:"remove",path:`$.groups[?(@.id == "${e.id}")]`}),r)){var o,a=us(e.elements);try{for(a.s();!(o=a.n()).done;){const e=o.value;i.push({type:"remove",path:`$.elements[?(@.id == "${e.id}")]`})}}catch(e){a.e(e)}finally{a.f()}}const s=k(),c={name:n?"moveGroup":"copyGroup",type:n?"aggregate":"no-op",path:`$.groups[?(@.id == "${e.id}")]`,library:this,actions:i,flags:{includeElements:r}},l={name:"dependent",type:"insert",path:"$.groups",library:t,data:Object.assign(Object.assign({},e.data),{id:s})};return c.link=l,l.link=c,this.dispatch(c),t.dispatch(l),Promise.resolve(t.getGroupById(s))}hasUngroupedElements(e="$default"){return this.elementCount>this.getGroups(e).reduce(((e,t)=>e+t.elements.length),0)}getAuthenticatedRenditionURL(e){return Promise.resolve("")}getRenditionPath(e){return Promise.reject()}getRenditionURL(e){}setRendition(e,t,r,n){return Promise.reject()}setRenditionFromPath(e,t,r){return Promise.reject()}removeRendition(e){return Promise.reject()}sync(){return Promise.resolve(void 0)}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return Nt(this.data.customData)}setValue(e,t,r,n){this.dispatch({name:"updateLibrary",type:"update",data:{customData:{[`${e}#${t}`]:r}}})}removeValue(e,t,r){this.setValue(e,t,null,r)}linkToDocument(e,t){if(this.isDeletedLocally)throw new te("DELETED_LOCALLY","deleted/orphan object");if(e||t){if(!e||!t)throw new te("INVALID_PARAMETER","Need to pass strings for both documentId and documentType");this.dispatch({name:"updateLibrary",type:"update",data:{documentId:e,documentType:t}})}else this.dispatch({name:"updateLibrary",type:"update",data:{documentId:null,documentType:null}})}getElementsAndDependencies(e){const t={},r=e=>{const n=this.getElementById(e);if(!n||t[e])return;t[e]=n;(n.dependencies.map((e=>e.id))||[]).forEach(r)};return e.forEach((e=>r(e.id))),Object.keys(t).map((e=>t[e]))}getActions(e){if(!this.documentType)return[];const t=this.apiRoot.getOption("DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP");return Be(this,e,t.types[this.documentType]||[],t.products)}get _elementCache(){return this._childModelCaches.elements.cache}get _documentationElementCache(){return this._childModelCaches.documentationElements.cache}get _removedElementCache(){return this._childModelCaches.removedElements.cache}get _groupCache(){return this._childModelCaches.groups.cache}update(e,t=!0){const r=super.update(e,!1);return this._updateCaches(t),t&&this.emit("change"),r}get isLibraryLoaded(){return Boolean(this.data.isLibraryLoaded)}get isTransient(){return Boolean(this.data.isTransient)}loadVersionHistory(){var e=this;return fs(ds().mark((function t(){var r;return ds().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apiRoot.cloudDriver.loadVersionHistory(e.assetId);case 2:return r=t.sent,e._versionCache.upsert(...r),e.emit("change"),t.abrupt("return",e.versions);case 6:case"end":return t.stop()}}),t)})))()}get versions(){return this._versionCache.all()}loadCollaborators(){var e=this;return fs(ds().mark((function t(){var r;return ds().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.assetId){t.next=6;break}return t.next=3,e.apiRoot.cloudDriver.getCollaborators(e.assetId);case 3:r=t.sent,e._collaboratorCache.upsert(...r),e.emit("change");case 6:return t.abrupt("return",e.collaborators);case 7:case"end":return t.stop()}}),t)})))()}get collaborators(){return this._collaboratorCache.all()}get visibleCollaborators(){return this.collaborators.filter((e=>!e.isPredefinedGroup&&!e.isStorageAdminOnly))}_dispatch(e){var t;if(this.isDeletedLocally)le.log(`[LIBRARY] Cannot dispatch action on deleted library: ${this.id}`);else{if(e.path||(e.path="$"),e.library||(e.library=this),"aggregate"===e.type&&(null===(t=e.actions)||void 0===t||t.map((t=>{if("remove"===t.type){const r=ja.get(this._currentData,e.path);t.baseData={modifiedDate:r.modifiedDate}}return t}))),"remove"===e.type){const t=ja.get(this._currentData,e.path);e.baseData={modifiedDate:t.modifiedDate}}"update"===e.type&&(e.baseData=qt(ja.get(this._currentData,e.path))),super._dispatch(e,!1),"no-op"!==e.type&&(this._updateCaches(),this.emit("change"))}}_collapseActions(e){const t=[],r={},n={};var i,o=us(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;if(["updateElement","updateElementContent"].includes(e.name)&&Ta(e)){const t=Ht(e.path),i=r[t];if(i){le.log("[LIBRARY] Identified collapsible action (updateElement). Combining with (createElement)"),i.data=Object.assign(Object.assign({},i.data),e.data);continue}const o=n[t];if(o){o.data=Object.assign(Object.assign({},o.data),e.data);continue}}"createElement"===e.name&&Oa(e)&&(r[e.data.id]=e),"updateElementContent"===e.name&&Ta(e)&&(n[Ht(e.path)]=e),t.push(e)}}catch(e){o.e(e)}finally{o.f()}return t}_rebaseActions(){let e=qt(this._baseData);this._actions=this._actions.map((t=>{const r=as(e,t);return e=r.reduce(((t,r)=>this._reducer(e,r)),e),r})).flat(),this._pendingActions=this._pendingActions.map((t=>{const r=as(e,t);return e=r.reduce(((t,r)=>this._reducer(e,r)),e),r})).flat(),this._currentData=e}};ms([rs],vs.prototype,"load",null),ms([rs],vs.prototype,"loadElements",null),ms([ke],vs.prototype,"id",null),ms([ke],vs.prototype,"version",null),ms([ke],vs.prototype,"publicLinkId",null),ms([ke],vs.prototype,"bookmark",null),ms([ke],vs.prototype,"previousPlaceHolderId",null),ms([ke],vs.prototype,"locallyManaged",null),ms([ke,vt],vs.prototype,"name",null),ms([ke],vs.prototype,"getLocalizedName",null),ms([ke],vs.prototype,"getLocalizedNames",null),ms([vt],vs.prototype,"setLocalizedName",null),ms([ke],vs.prototype,"created",null),ms([ke],vs.prototype,"modified",null),ms([ke],vs.prototype,"createdBy",null),ms([ke],vs.prototype,"modifiedBy",null),ms([ke,vt],vs.prototype,"toolkitId",null),ms([ke,vt],vs.prototype,"roles",null),ms([ke,vt],vs.prototype,"description",null),ms([ke,vt],vs.prototype,"copyGuidelines",null),ms([ke],vs.prototype,"documentId",null),ms([ke],vs.prototype,"renditionGrid",null),ms([ke],vs.prototype,"documentType",null),ms([ke],vs.prototype,"collaboration",null),ms([ke],vs.prototype,"appMetadata",null),ms([ke],vs.prototype,"assetId",null),ms([ke],vs.prototype,"isWritable",null),ms([ke],vs.prototype,"isParentWritable",null),ms([ke],vs.prototype,"removeType",null),ms([ke],vs.prototype,"deletable",null),ms([ke],vs.prototype,"owner",null),ms([ke],vs.prototype,"ownerType",null),ms([ke],vs.prototype,"parentDirectoryId",null),ms([ke],vs.prototype,"team",null),ms([ke],vs.prototype,"project",null),ms([ke],vs.prototype,"isDeletedFromServer",null),ms([ke],vs.prototype,"isDeletedLocally",null),ms([ke],vs.prototype,"isQuotaExceeded",null),ms([ke],vs.prototype,"storageUsed",null),ms([ke("sync")],vs.prototype,"syncState",null),ms([ke("sync")],vs.prototype,"syncProgress",null),ms([ke("sync")],vs.prototype,"syncError",null),ms([ke],vs.prototype,"isPushedToServer",null),ms([ke],vs.prototype,"areElementsLoaded",null),ms([ke],vs.prototype,"elements",null),ms([ke],vs.prototype,"elementCount",null),ms([ke],vs.prototype,"getFilteredElements",null),ms([ke],vs.prototype,"documentationElements",null),ms([ke],vs.prototype,"documentationElementCount",null),ms([ke],vs.prototype,"removedElements",null),ms([ke],vs.prototype,"removedElementCount",null),ms([ke],vs.prototype,"publishedTo",null),ms([ke],vs.prototype,"publishedFrom",null),ms([ke],vs.prototype,"lastPublishedVersion",null),ms([ke],vs.prototype,"extractedFrom",null),ms([ke],vs.prototype,"getElementById",null),ms([vt],vs.prototype,"createElement",null),ms([vt],vs.prototype,"createDocumentationElement",null),ms([vt],vs.prototype,"removeElement",null),ms([vt],vs.prototype,"restoreElement",null),ms([vt],vs.prototype,"moveElement",null),ms([vt],vs.prototype,"stageRepresentationForCommit",null),ms([ke],vs.prototype,"getGroups",null),ms([ke],vs.prototype,"getGroupCount",null),ms([ke],vs.prototype,"getFilteredGroups",null),ms([ke],vs.prototype,"getGroupById",null),ms([vt],vs.prototype,"createGroup",null),ms([vt],vs.prototype,"removeGroup",null),ms([vt],vs.prototype,"moveGroup",null),ms([ke],vs.prototype,"hasUngroupedElements",null),ms([ke],vs.prototype,"getAuthenticatedRenditionURL",null),ms([ke],vs.prototype,"getRenditionPath",null),ms([ke],vs.prototype,"getRenditionURL",null),ms([vt],vs.prototype,"setRendition",null),ms([vt],vs.prototype,"setRenditionFromPath",null),ms([vt],vs.prototype,"removeRendition",null),ms([ke],vs.prototype,"getValue",null),ms([ke],vs.prototype,"getValues",null),ms([vt],vs.prototype,"setValue",null),ms([vt],vs.prototype,"removeValue",null),ms([vt],vs.prototype,"linkToDocument",null),ms([ke],vs.prototype,"getElementsAndDependencies",null),ms([ke],vs.prototype,"getActions",null),ms([yt],vs.prototype,"loadVersionHistory",null),ms([ke,yt],vs.prototype,"versions",null),ms([yt],vs.prototype,"loadCollaborators",null),ms([ke],vs.prototype,"collaborators",null),ms([ke],vs.prototype,"visibleCollaborators",null),vs=ms([mt],vs);const ys=vs;class bs{static getInstance(e){let t=this.libAbortControllerMap.get(e);return t||(t=new AbortController,this.libAbortControllerMap.set(e,t)),t}static removeInstance(e){return this.libAbortControllerMap.delete(e)}}bs.libAbortControllerMap=new Map;function _s(e,t=!1){var r;const n=!t&&e.is_writable,i={id:e.id,etag:e.etag,name:e.name,ownership:e.ownership,default:e.default,localizedNames:e.localized_names,toolkitId:e.toolkit_id,documentId:e.document_id,documentType:e.document_type,createdDate:e.created_date,modifiedDate:e.modified_date,groups:(e.groups||[]).map(xs),details:{elementCount:e.details.num_elements,documentationElementCount:e.details.num_documentation_elements,removedElementCount:e.details.num_archived_elements},renditionGrid:e.rendition_grid,collaboration:e.collaboration,assetId:e.asset_id,isWritable:n,isParentWritable:!t&&e.is_parent_writable,team:e.team_id?{id:e.team_id}:void 0,roles:e.roles,owner:e.owner,ownerType:e.owner_type,customData:e.custom_data,isLibraryLoaded:!0,storageUsed:e.storage_used,publicLinkId:(o=e.public_link,null==o?void 0:o.substring(o.lastIndexOf("/")+1)),locallyManaged:e.locally_managed,bookmark:e.bookmark,removeType:null!==(r=e.remove_type)&&void 0!==r?r:n?"delete":"none",deletable:n};var o;return e.elements&&(i.elements=e.elements.map(ws)),i}function Es(e){var t,r;return{id:e.id,name:e.name,ownership:e.ownership,default:e.default,localized_names:e.localizedNames,toolkit_id:e.toolkitId,document_id:e.documentId,document_type:e.documentType,groups:null===(t=e.groups)||void 0===t?void 0:t.map(Ss),collaboration:e.collaboration,details:{num_elements:0,num_documentation_elements:0,num_archived_elements:0},team_id:null===(r=e.team)||void 0===r?void 0:r.id,roles:e.roles,custom_data:e.customData}}function ws(e){var t,r,n;return{id:e.id,name:e.name,isAutoNamed:e.is_auto_named,autoName:e.auto_name,type:e.type,libraryId:null===(t=e.library)||void 0===t?void 0:t.id,sourceRef:e.source_ref,sourceModifiedDate:e.source_modified_date,tags:e.tags,dependencyIds:e.dependency_ids,localizedNames:e.localized_names,createdDate:e.created_date,createdLocally:e.created_locally,createdBy:e.created_by,createdContext:e.created_context,modifiedDate:e.modified_date,modifiedLocally:e.modified_locally,modifiedBy:e.modified_by,modifiedContext:e.modified_context,description:e.description,descriptionModifiedDate:e.description_modified_date,descriptionModifiedLocally:e.description_modified_locally,descriptionModifiedBy:e.description_modified_by,descriptionModifiedContext:e.description_modified_context,removedDate:e.removed_date,removedLocally:e.removed_locally,removedBy:e.removed_by,removedContext:e.removed_context,representations:null===(r=e.representations)||void 0===r?void 0:r.map(Is),groups:null===(n=e.groups)||void 0===n?void 0:n.map(Os),roles:e.roles,customData:e.custom_data,elementRef:e.element_ref}}function Ls(e){var t,r;return{id:e.id,name:e.name,is_auto_named:e.isAutoNamed,auto_name:e.autoName,type:e.type,source_ref:e.sourceRef,description:e.description,tags:e.tags,dependency_ids:e.dependencyIds,localized_names:e.localizedNames,created_date:e.createdDate,modified_date:e.modifiedDate,representations:null===(t=e.representations)||void 0===t?void 0:t.map((e=>Ps(e,!1))),groups:null===(r=e.groups)||void 0===r?void 0:r.map(Ts),roles:e.roles,custom_data:e.customData}}function xs(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parentId:e.parent_id,localizedNames:e.localized_names,createdDate:e.created_date,createdBy:e.created_by,createdContext:e.created_context,createdLocally:e.created_locally,modifiedDate:e.modified_date,modifiedBy:e.modified_by,modifiedContext:e.modified_context,modifiedLocally:e.modified_locally,sourceRef:e.source_ref,customData:e.custom_data}}function Ss(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parent_id:e.parentId,localized_names:e.localizedNames,created_date:e.createdDate,modified_date:e.modifiedDate,source_ref:e.sourceRef,custom_data:e.customData}}function Os(e){return{id:e.id,classifier:e.classifier,order:e.order}}function Ts(e){return{id:e.id,classifier:e.classifier,order:e.order}}function Is(e){var t;return{id:e.id,type:e.type,relationship:e.relationship,isFullSize:e.is_full_size,isExternalLink:e.is_external_link,isPreferredThumbnail:e.is_preferred_thumbnail,customData:e.custom_data,path:e.path,width:e.width,height:e.height,contentLength:e.content_length,url:e.url,children:null===(t=e.children)||void 0===t?void 0:t.map(Is)}}function Ps(e,t=!1){var r;return{id:e.id,type:e.type,relationship:t?void 0:e.relationship,is_full_size:!1,is_external_link:!1,source:e.source,children:null===(r=e.children)||void 0===r?void 0:r.map((e=>Ps(e,!0))),custom_data:e.customData}}function Cs(e){return{name:e.name,id:e.id,owner:{type:e.ownerType,id:e.ownerId},ownerName:e.ownerName,isWritable:e.permissions.includes("write")}}function As(e){return{name:e.name,id:e.id,owner:{type:e.storageAssignee.type,id:e.storageAssignee.id},ownerName:e.storageAssignee.displayName,isWritable:!0}}function ks(e,t){if(e=(e||"0").toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),t=(t||"0").toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),(isNaN(parseInt(e,10))||parseInt(e,10)>250)&&(e="0"),(isNaN(parseInt(t,10))||parseInt(t,10)>250)&&(t="0"),e===t)return 0;const r=e.split("."),n=t.split(".");let i;for(let e=0;e<r.length&&e<n.length;e++){if(i=parseInt(r[e],10)-parseInt(n[e],10),isNaN(i))return isNaN(parseInt(r[e],10))?1:-1;if(i>0)return-1;if(i<0)return 1}return i=r.length-n.length,i>0?-1:i<0?1:0}function Ds(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ds=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ns(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var Rs=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};const Ms=["updateLibrary","createElement","updateElement","removeElement","restoreElement","deleteElement","createGroup","updateGroup","removeGroup"];function js(e,t){return Object.assign(Object.assign({},e),{data:t,originalAction:e})}const Zs={updateLibrary:(e,t)=>js(e,_s(t)),createElement:(e,t)=>js(e,ws(t)),updateElement:(e,t)=>js(e,ws(t)),restoreElement:(e,t)=>js(e,ws(t)),removeElement:e=>e,deleteElement:e=>e,createGroup:(e,t)=>js(e,xs(t)),updateGroup:(e,t)=>js(e,xs(t)),removeGroup:e=>e};class Fs extends en{constructor(){super(...arguments),this._actionMappers={updateLibrary:e=>({method:"PUT",path:"",body:Es(e.data)}),createElement:e=>({method:"POST",path:"elements",body:Ls(e.data)}),updateElement:e=>({method:"PUT",path:`elements/${Ht(e.path)}`,body:Ls(e.data)}),removeElement:e=>({method:"DELETE",path:`elements/${Ht(e.path)}`}),restoreElement:e=>({method:"POST",path:`removed_elements/${e.data.id}/restore`}),deleteElement:e=>({method:"DELETE",path:`elements/${Ht(e.path)}?permanent=true`}),createGroup:e=>({method:"POST",path:"groups",body:Ss(e.data)}),updateGroup:e=>({method:"PUT",path:`groups/${Wt(e.path)}`,body:Ss(e.data)}),removeGroup:e=>{var t;return{method:"DELETE",path:`groups/${Wt(e.path)}${(null===(t=e.flags)||void 0===t?void 0:t.includeElements)?"?include_contents=true":""}`}}},this._actions=[]}execute(){var e,t=this;return(e=Ds().mark((function e(){var r,n,i,o,a;return Ds().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._actions.map((e=>t._actionMappers[e.name](e))),n=po(r),e.next=4,t._driver.fetch(`/libraries/${t._library.id}`,{method:"PATCH",headers:{"If-Match":t._library.etag},body:JSON.stringify(n)});case 4:return i=e.sent,e.next=7,i.json();case 7:if(o=e.sent,Array.isArray(o)&&o.length===t._actions.length){e.next=10;break}throw new te("INVALID_RESPONSE","Malformed batch response.",t._library.id);case 10:return a=Jt(a=t._actions.map(((e,t)=>Zs[e.name](e,o[t])))),e.abrupt("return",{actions:a,etag:i.headers.get("ETag")});case 13:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ns(o,n,i,a,s,"next",e)}function s(e){Ns(o,n,i,a,s,"throw",e)}a(void 0)}))})()}supportsAction(e){return function(e){return Ms.includes(e.name)}(e)}}function Bs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Bs=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Gs(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}Rs([Qr],Fs.prototype,"execute",null);var Us=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class zs extends en{supportsAction(e){return"updateElementContent"===e.name}addAction(e){return(!this._actions[0]||this._actions[0].path===e.path)&&super.addAction(e)}execute(){var e,t=this;return(e=Bs().mark((function e(){var r,n,i,o,a;return Bs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._actions[t._actions.length-1],e.next=3,t._updateElementContent(Ht(r.path),r.data);case 3:return n=e.sent,e.next=6,n.json();case 6:return i=e.sent,o=ws(i),a=t._actions.map(((e,r)=>r!==t._actions.length-1?Object.assign(Object.assign({},e),{type:"no-op",originalAction:e}):Object.assign(Object.assign({},e),{data:o,originalAction:e}))),e.abrupt("return",{actions:a,etag:n.headers.get("ETag")});case 10:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Gs(o,n,i,a,s,"next",e)}function s(e){Gs(o,n,i,a,s,"throw",e)}a(void 0)}))})()}_updateElementContent(e,t){const r=Object.assign(Object.assign({},t),{representations:fo(qt(t.representations))});return this._driver.fetch(`/libraries/${this._library.id}/elements/${e}`,{method:"PUT",headers:{"If-Match":this._library.etag},body:JSON.stringify(Ls(r))})}}function Vs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vs=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Hs(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ys(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Hs(o,n,i,a,s,"next",e)}function s(e){Hs(o,n,i,a,s,"throw",e)}a(void 0)}))}}Us([Qr],zs.prototype,"execute",null);class Ws extends on{constructor(){var e,t,r,n,i;super(...arguments),e=this,this._actionMappers={createLibrary:e=>this._createLibraryActionMap(e),copyLibrary:e=>this._createLibraryActionMap(e),permanentlyDeleteLibrary:e=>this._permanentlyDeleteLibrary(e),removeLibrary:(i=Ys(Vs().mark((function t(r){return Vs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return i.apply(this,arguments)}),unfollowLibrary:(n=Ys(Vs().mark((function t(r){return Vs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary("unfollow");case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)}),leaveLibrary:(r=Ys(Vs().mark((function t(r){return Vs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary("leave");case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)}),moveLibrary:(t=Ys(Vs().mark((function t(r){var n;return Vs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._moveLibrary();case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}}supportsAction(e){return["createLibrary","removeLibrary","permanentlyDeleteLibrary","unfollowLibrary","leaveLibrary","copyLibrary","moveLibrary"].includes(e.name)}_createLibraryActionMap(e){var t=this;return Ys(Vs().mark((function r(){var n;return Vs().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._createLibrary(e);case 2:return n=r.sent,r.abrupt("return",Object.assign(Object.assign({},e),{type:"update",data:n,originalAction:e}));case 4:case"end":return r.stop()}}),r)})))()}_createLibrary(e){const t=e.data,r=void 0===t?{}:t,n=e.flags,i=void 0===n?{}:n;return new Promise(((e,t)=>{var n,o;const a=this._driver.fetch("/libraries",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r.name,team_id:null===(n=r.team)||void 0===n?void 0:n.id,roles:r.roles,team_permission_inheritance:i.permissionInheritance,source:null===(o=i.source)||void 0===o?void 0:o.id})}),s=new xe(this._driver,a);s.on("change",((r,n)=>{if(r){s.error&&t(s.error);const r=n?_s(n):void 0;e(r)}}))}))}_permanentlyDeleteLibrary(e){throw new Error("permanentlyDeleteLibrary not supported by LocalDriver, use removeLibrary instead")}_removeLibrary(e="remove"){"remove"===e&&bs.getInstance(this._library.id).abort();return this._driver.fetch(`/libraries/${this._library.id}?action=${e}`,{method:"DELETE"}).then((()=>{"remove"===e&&bs.removeInstance(this._library.id)}))}_moveLibrary(){return this._driver.moveLibrary(this._library.id,this.action.data.team.id)}}function $s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ks(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class qs extends Po{constructor(){var e,t,r;super(...arguments),e=this,this._actionMappers={uploadComponent:(t=$s().mark((function t(r){var n;return $s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._driver.stageRepresentationForCommit(r.library,r.data.file,r.data.type);case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:{path:n},originalAction:r}));case 4:case"end":return t.stop()}}),t)})),r=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){Ks(o,n,i,a,s,"next",e)}function s(e){Ks(o,n,i,a,s,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)})}}supportsAction(e){return"uploadComponent"===e.name}}function Xs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xs=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Js(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Qs extends no{_doMoveCopyRequest(e,t,r,n){var i,o=this;return(i=Xs().mark((function t(){var i,a,s,c;return Xs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=o._library.id,a=r.id,t.next=4,o._driver.fetch(`/libraries/${a}/elements`,{method:"POST",headers:{"If-Match":r.etag},body:JSON.stringify({[e?"self":"source"]:{id:i,elements:n,etag:o._library.etag}})});case 4:return s=t.sent,t.next=7,s.json();case 7:return c=t.sent,t.abrupt("return",{elements:c.elements.map(ws),etag:s.headers.get("ETag"),sourceEtag:s.headers.get("Source-ETag")});case 9:case"end":return t.stop()}}),t)})),function(){var e=this,t=arguments;return new Promise((function(r,n){var o=i.apply(e,t);function a(e){Js(o,r,n,a,s,"next",e)}function s(e){Js(o,r,n,a,s,"throw",e)}a(void 0)}))})()}}function ec(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ec=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function tc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var rc=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class nc extends en{get action(){return this._actions[0]}supportsAction(e){return["moveGroup","copyGroup","dependent"].includes(e.name)}addAction(e){if(!this.supportsAction(e))return!1;return this._actions[this._actions.length-1]||"dependent"===e.name?"dependent"===e.name&&super.addAction(e):super.addAction(e)}execute(){var e,t=this;return(e=ec().mark((function e(){var r,n,i,o,a,s,c,l,u,p,d;return ec().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="moveGroup"===t.action.name,o=t._library.id,a=null===(r=t.action.link)||void 0===r?void 0:r.library,s=null==a?void 0:a.id,c=Wt(t.action.path),e.next=7,t._driver.fetch(`/libraries/${s}/groups`,{method:"POST",headers:{"If-Match":null==a?void 0:a.etag},body:JSON.stringify({[i?"self":"source"]:{id:o,group_id:c,include_contents:null===(n=t.action.flags)||void 0===n?void 0:n.includeElements,etag:t._library.etag}})});case 7:return l=e.sent,e.next=10,l.json();case 10:return u=e.sent,a===t._library?(p=[],d=t._actions.map((e=>"dependent"!==e.name?e:Object.assign(Object.assign({},e),{data:u,originalAction:e})))):(d=t._actions,p=t._actions.map((e=>Object.assign(Object.assign({},e.link),{data:u,originalAction:e.link})))),e.abrupt("return",{actions:d,etag:l.headers.get("Source-ETag"),linkedActions:p});case 13:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){tc(o,n,i,a,s,"next",e)}function s(e){tc(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}rc([Qr],nc.prototype,"execute",null);class ic extends(ne()){constructor(e){super(),this._listenedEvents=new Set,this._errorCount=0,this._eventSource=new EventSource(e),this._eventSource.onopen=()=>{this._errorCount=0},this._eventSource.onerror=e=>{this._errorCount+=1,this._errorCount>=3&&(this.close(),this.emit("error",e))}}on(e,t){return super.on(e,t),this._listenedEvents.has(e)||(this._listenedEvents.add(e),this._eventSource.addEventListener(e,(t=>{le.log(`[NOTIFICATIONS] Received event: ${e}`);try{this.emit(e,JSON.parse(t.data))}catch(e){t.data?this.emit("error",new te("INVALID_JSON","Received invalid JSON")):this.emit("error",new te("INVALID_RESPONSE","Received invalid response (no data)"))}}))),this}close(){this.removeAllListeners(),this._eventSource.close()}}class oc extends(ne()){constructor(e){super();const t=e.replace(/http(s?):\/\//,"ws$1://");this._ws=new WebSocket(t),this._ws.addEventListener("message",(e=>{try{const t=JSON.parse(e.data),r=t.type,n=t.message;le.log(`[NOTIFICATIONS] Received event: ${r}`),this.emit(r,n)}catch(e){this.emit("error",new te("INVALID_JSON","Received invalid JSON"))}})),this._ws.addEventListener("error",(e=>{this.close(),this.emit("error",e)}))}get isOpen(){return this._ws.readyState===this._ws.OPEN}close(){this.isOpen&&(this.removeAllListeners(),this._ws.close())}}var ac,sc,cc,lc=r(20286),uc=r.n(lc);class pc extends(ne()){constructor(e){super();const t=e.replace(/http(s?):\/\//,"ws$1://");this._ws=new(uc())(t),this._ws.addEventListener("message",(e=>{try{const t=JSON.parse(e.data),r=t.type,n=t.message;le.log(`[NOTIFICATIONS] Received event: ${r}`),this.emit(r,n)}catch(e){this.emit("error",new te("INVALID_JSON","Received invalid JSON"))}})),this._ws.addEventListener("error",(e=>{this.close(),this.emit("error",e)}))}get isOpen(){return this._ws.readyState===this._ws.OPEN}close(){this.isOpen&&(this.removeAllListeners(),this._ws.close())}}const dc="undefined"==typeof window?pc:(null===(cc=null===(sc=null===(ac=null===window||void 0===window?void 0:window.navigator)||void 0===ac?void 0:ac.userAgent)||void 0===sc?void 0:sc.startsWith)||void 0===cc?void 0:cc.call(sc,"Adobe UXP Runtime"))?oc:ic;function hc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */hc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function fc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function mc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){fc(o,n,i,a,s,"next",e)}function s(e){fc(o,n,i,a,s,"throw",e)}a(void 0)}))}}class gc{constructor(e,t,r=2e3,n=8e3){this.vulcanInterface=e,this.VulcanMessage=t,this._timeout=r,this._launchTimeout=n}_generateListener(e,t){const r=n=>{clearTimeout(this._timeoutId),this.removeListener(r,t),e(n)};return r}_connectionInfoHandler(e,t){var r=this;return mc(hc().mark((function n(){var i,o;return hc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null==t?void 0:t.aborted)){n.next=2;break}return n.abrupt("return");case 2:if(e){n.next=4;break}throw new te("REQUEST_FAILED","No Vulcan response received");case 4:if(n.prev=4,i=JSON.parse(r.getPayload(e)),o={apiVersion:i.apiVersion,apiMinVersion:i.apiMinVersion,apiMaxVersion:i.apiMaxVersion},!i.updateRequired){n.next=9;break}return n.abrupt("return",Object.assign(Object.assign({},o),{updateRequired:i.updateRequired}));case 9:if(!i.serviceToken||!i.serviceHostname){n.next=11;break}return n.abrupt("return",Object.assign(Object.assign({},o),{token:i.serviceToken,hostname:i.serviceHostname}));case 11:throw new te("INVALID_RESPONSE","Incorrect data was returned via Vulcan");case 14:throw n.prev=14,n.t0=n.catch(4),new te("INVALID_RESPONSE","Incorrect data was returned via Vulcan",void 0,n.t0);case 17:case"end":return n.stop()}}),n,null,[[4,14]])})))()}_launchProcessHandler(e,t){var r=this;return mc(hc().mark((function n(){return hc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null==t?void 0:t.aborted)){n.next=2;break}return n.abrupt("return");case 2:if(e){n.next=4;break}throw new te("REQUEST_FAILED","No Vulcan response received");case 4:return n.abrupt("return",r._requestConnectionInfo(t));case 5:case"end":return n.stop()}}),n)})))()}_launchProcess(e){var t=this;return new Promise(function(){var r=mc(hc().mark((function r(n){var i;return hc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=t._generateListener((r=>n(t._launchProcessHandler(r,e))),t.getMessageType("INITIALIZE")),t._timeoutId=setTimeout(i,t._launchTimeout),t.sendMessage(i,t.getMessageType("INITIALIZE")),t.launchApp(i);case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())}_requestConnectionInfo(e){return new Promise((t=>{const r=this._generateListener((r=>{t(this._connectionInfoHandler(r,e))}));this._timeoutId=setTimeout(r,this._timeout),this.sendMessage(r)}))}connect(e){var t=this;return mc(hc().mark((function r(){return hc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._requestConnectionInfo(e).catch(function(){var r=mc(hc().mark((function r(n){return hc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.isAppRunning().catch((()=>!1));case 2:if(r.sent){r.next=4;break}return r.abrupt("return",t._launchProcess(e));case 4:throw n;case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()));case 1:case"end":return r.stop()}}),r)})))()}getMessageType(e){return this.messageTypes[e]}}function vc(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||bc(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 yc(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=bc(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function bc(e,t){if(e){if("string"==typeof e)return _c(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)?_c(e,t):void 0}}function _c(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 Ec(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ec=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function wc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Lc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){wc(o,n,i,a,s,"next",e)}function s(e){wc(o,n,i,a,s,"throw",e)}a(void 0)}))}}var xc=function(e){return this instanceof xc?(this.v=e,this):new xc(e)},Sc=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof xc?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}},Oc=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}},Tc=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:xc(e[n](t)),done:"return"===n}:i?i(t):t}:i}};const Ic={field:"modifiedDate",direction:"descending"},Pc={reconnectOnErrors:[401,403],reconnectOnNoResponse:!0};class Cc extends at{constructor(e,t={}){super(e),this._libraryChangeListener=()=>{},this._renditionCacheChangeListener=()=>{},this._lastNotificationPayload={},this._operationTypes=[Fs,zs,Ws,Qs,nc,qs],this._handleConfigurationMutation=e=>{const t=new Ge(e);return this._needToReconnect(t)&&this.reconnect(),this._config=t,this.emit("configChange"),this.config},this._handleRenditionCacheMutation=e=>{this._renditionCacheChangeListener(ws(e))},this._handleLibraryMutation=e=>{if(!e)return;const t=new Set(Object.keys(e)),r=Object.keys(this._lastNotificationPayload).filter((r=>{const n=e[r];return t.delete(r),!n||"number"!=typeof n&&"string"!=typeof n}));r.push(...t),this._lastNotificationPayload=Object.keys(e).reduce(((t,r)=>{const n=e[r];return"number"==typeof n||"string"==typeof n?n&&(t[r]=n):t[r]=n.modified_date,t}),{}),this._libraryChangeListener(r)},this._options=t}getLibrary(e,t){return this._getLibraryById(e.id,t)}getElements(e,...t){return this._getElementsByLibraryId(e.id,...t)}getRemovedElements(e,...t){return this._getRemovedElementsByLibraryId(e.id,...t)}getDocumentationElements(e,...t){return this._getDocumentationElementsByLibraryId(e.id,...t)}getElement(e,t){return this._getElement(e.id,t)}reconnect(){var e;return null===(e=this._notificationEventSource)||void 0===e||e.close(),this.isConnected?super.reconnect():Promise.resolve()}_handleConnected(e){var t=this;return Lc(Ec().mark((function r(){return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!("updateRequired"in e)){r.next=3;break}throw t._handleConfigurationMutation({config:{},environment:t._config.environment,processInfo:{updateRequired:e.updateRequired,apiVersion:e.apiVersion}}),new te("CONNECTION_FAILED",`LocalDriver failed to connect - ${e.updateRequired} update required`);case 3:return t._hostname=e.hostname,t._token=e.token,t._cloudParams=e.cloudParams,t._notificationEventSource=new dc(`${t._hostname}/notifications?token=${t._token}`),t._notificationEventSource.on("error",(e=>{e instanceof te&&"INVALID_JSON"===e.code?le.log("[NOTIFICATIONS] Received invalid JSON object."):t.reconnect()})),r.next=10,t.getConfiguration();case 10:t._notificationEventSource.on("configurationMutation",t._handleConfigurationMutation.bind(t)),t._notificationEventSource.on("libraryMutation",t._handleLibraryMutation.bind(t)),t._notificationEventSource.on("renditionCacheMutation",t._handleRenditionCacheMutation.bind(t));case 13:case"end":return r.stop()}}),r)})))()}_handleDisconnected(){var e;null===(e=this._notificationEventSource)||void 0===e||e.close()}get cloudParams(){var e,t;if(this._cloudParams&&(null===(e=this.config.user)||void 0===e?void 0:e.id))return Object.assign(Object.assign({},this._cloudParams),{userId:null===(t=this.config.user)||void 0===t?void 0:t.id})}getCloudDriver(){var e=this;if(!this.cloudParams)return;const t=function(){var t=Lc(Ec().mark((function t(){var r,n,i,o,a,s,c;return Ec().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.cloudParams,n=r.userId,i=r.clientId,o=r.clientSecret,a=r.scopes,t.next=3,e.fetchAccessToken(n,i,o,a);case 3:return s=t.sent,c=s.access_token,t.abrupt("return",{env:e.config.environment,token:c});case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return new Sa(t)}fetchAccessToken(e,t,r,n){var i;return this.fetch("/configuration/access_token",{method:"POST",body:JSON.stringify({userId:null===(i=this._config.user)||void 0===i?void 0:i.id,clientId:t,clientSecret:r,scopes:n})}).then((e=>e.json()))}_getElement(e,t){return this.fetch(`/libraries/${e}/elements/${t}`).then((e=>e.json())).then(ws)}_getElementsOfType(e,t,r=Ic,n,i){return Sc(this,arguments,Ec().mark((function r(){var o,a,s;return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},n&&(o["if-none-match"]=n),r.next=4,xc(this.fetch(`/libraries/${t}/${e}`,{headers:o,signal:i}));case 4:return a=r.sent,r.next=7,xc(a.json());case 7:return s=r.sent,r.next=10,xc(s.elements.map(ws));case 10:return r.next=12,r.sent;case 12:case"end":return r.stop()}}),r,this)})))}_getElementsByLibraryId(e,t=Ic,r,n,i){return Sc(this,arguments,Ec().mark((function n(){return Ec().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=xc,n.delegateYield(Tc(Oc(this._getElementsOfType("elements",e,t,r,i))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}getSearchResults(e,t,r,n){return Sc(this,arguments,Ec().mark((function i(){var o,a,s,c,l,u,p;return Ec().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t.elements_only=!0,o="name"===r.field?"name":"modified_date","descending"===r.direction&&(o=`-${o}`),a=e=>{var t,r;return null!==(r=null===(t=e.results)||void 0===t?void 0:t.map(ws))&&void 0!==r?r:[]},s={method:"POST",headers:{"Content-Type":"application/json"},signal:n},c=300,"type"===r.sectionType){i.next=15;break}return s.body=JSON.stringify({q:e,order_by:o,filters:t,limit:c}),i.t0=xc,i.delegateYield(Tc(Oc(this.fetchAllPages("/search",s,a))),"t1",10);case 10:return i.t2=i.t1,i.next=13,(0,i.t0)(i.t2);case 13:i.next=37;break;case 15:l=yc(r.sections),i.prev=16,l.s();case 18:if((u=l.n()).done){i.next=29;break}return p=u.value,t.element_types=t.element_types=[p],s.body=JSON.stringify({q:e,order_by:o,filters:t,limit:c}),i.t3=xc,i.delegateYield(Tc(Oc(this.fetchAllPages("/search",s,a))),"t4",24);case 24:return i.t5=i.t4,i.next=27,(0,i.t3)(i.t5);case 27:i.next=18;break;case 29:i.next=34;break;case 31:i.prev=31,i.t6=i.catch(16),l.e(i.t6);case 34:return i.prev=34,l.f(),i.finish(34);case 37:case"end":return i.stop()}}),i,this,[[16,31,34,37]])})))}fetchAllPages(e,t,r){var n,i,o,a;return Sc(this,arguments,Ec().mark((function s(){var c,l,u;return Ec().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:c=e;case 1:if(!c){s.next=14;break}return s.next=4,xc(this.fetch(c,t).then((e=>e.json())));case 4:return l=s.sent,s.next=7,xc(r(l));case 7:return s.next=9,s.sent;case 9:c=null===(i=null===(n=l._links)||void 0===n?void 0:n.next)||void 0===i?void 0:i.uri,(u=null===(a=null===(o=l._links)||void 0===o?void 0:o.next)||void 0===a?void 0:a.body)&&(t.body=JSON.stringify(u)),s.next=1;break;case 14:case"end":return s.stop()}}),s,this)})))}_getDocumentationElementsByLibraryId(e,t=Ic,r){return Sc(this,arguments,Ec().mark((function n(){return Ec().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=xc,n.delegateYield(Tc(Oc(this._getElementsOfType("documentation_elements",e,t,r))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}_getRemovedElementsByLibraryId(e,t=Ic,r){return Sc(this,arguments,Ec().mark((function n(){return Ec().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=xc,n.delegateYield(Tc(Oc(this._getElementsOfType("removed_elements",e,t,r))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}getTeams(){var e=this;return Lc(Ec().mark((function t(){var r,n;return Ec().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/teams");case 2:return r=t.sent,t.next=5,r.json();case 5:return n=t.sent,t.abrupt("return",void 0!==n.teams?n.teams.map(Cs):[]);case 7:case"end":return t.stop()}}),t)})))()}getProjects(){var e=this;return Lc(Ec().mark((function t(){var r,n,i,o;return Ec().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/projects");case 2:return i=t.sent,t.next=5,i.json();case 5:return o=t.sent,t.abrupt("return",null!==(n=null===(r=null==o?void 0:o.projects)||void 0===r?void 0:r.map(As))&&void 0!==n?n:[]);case 7:case"end":return t.stop()}}),t)})))()}getProjectGradient(e){var t=this;return Lc(Ec().mark((function r(){var n,i;return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch(`/projects/${e.id}/gradient`);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.gradient?{type:(o=i.gradient).type,angle:o.angle,stops:o.stops}:void 0);case 7:case"end":return r.stop()}var o}),r)})))()}getGroups(e){return Sc(this,arguments,Ec().mark((function e(){return Ec().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xc(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getLibraries(){return Sc(this,arguments,Ec().mark((function e(){var t;return Ec().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/libraries",this._options.ignoreRenditionGrids||(t+="?includeRenditionGrid=true"),e.next=4,xc(this.fetch(t).then((e=>e.json())).then((e=>void 0!==e.libraries?e.libraries.map((e=>_s(e,this._options.readOnly))):[])));case 4:return e.next=6,e.sent;case 6:case"end":return e.stop()}}),e,this)})))}getLibrariesList(){return Sc(this,arguments,Ec().mark((function e(){return Ec().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xc(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getLibrariesPage(){return Sc(this,arguments,Ec().mark((function e(){return Ec().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xc(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}_getAllElements(e,t){var r,n;return Sc(this,arguments,Ec().mark((function i(){var o,a,s,c,l,u,p,d,h,f,m,g,v,y;return Ec().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:l={},u=0,p=[["elements","_getElementsByLibraryId"],["documentationElements","_getDocumentationElementsByLibraryId"],["removedElements","_getRemovedElementsByLibraryId"]];case 3:if(!(u<p.length)){i.next=47;break}if(d=vc(p[u],2),h=d[0],f=d[1],!t.types.includes(h)){i.next=44;break}i.prev=6,m=!0,a=void 0,g=Oc(this[f](e,t.sort,t.etag,void 0,null===(r=t.abortController)||void 0===r?void 0:r.signal));case 8:return i.next=10,xc(g.next());case 10:if(v=i.sent,o=v.done){i.next=29;break}if(c=v.value,m=!1,i.prev=15,y=c,l[h]=l[h]||[],null===(n=l[h])||void 0===n||n.push(...y),!t.loadProgressively){i.next=24;break}return i.next=22,xc({[h]:l[h]});case 22:return i.next=24,i.sent;case 24:return i.prev=24,m=!0,i.finish(24);case 27:i.next=8;break;case 29:i.next=34;break;case 31:i.prev=31,i.t0=i.catch(6),a={error:i.t0};case 34:if(i.prev=34,i.prev=35,m||o||!(s=g.return)){i.next=39;break}return i.next=39,xc(s.call(g));case 39:if(i.prev=39,!a){i.next=42;break}throw a.error;case 42:return i.finish(39);case 43:return i.finish(34);case 44:u++,i.next=3;break;case 47:return i.next=49,xc(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:l));case 49:return i.next=51,i.sent;case 51:case"end":return i.stop()}}),i,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}getLibraryById(e,t){var r=this;return Lc(Ec().mark((function n(){var i,o;return Ec().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getLibraryById(e,t).next();case 2:return i=n.sent,o=i.value,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}_getLibraryById(e,t={}){var r;return Sc(this,arguments,Ec().mark((function n(){var i,o,a,s,c,l,u;return Ec().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.etag,n.prev=1,o={},i&&(o["if-none-match"]=i),void 0!==t.optimisticFetch&&(a={optimisticFetch:t.optimisticFetch}),s=`/libraries/${e}`,this._options.ignoreRenditionGrids||(s+="?includeRenditionGrid=true"),n.next=9,xc(this.fetch(s,{headers:o},a));case 9:if(202!==(c=n.sent).status){n.next=14;break}return n.next=13,xc(void 0);case 13:return n.abrupt("return",n.sent);case 14:return n.next=16,xc(c.json());case 16:return(l=n.sent).etag=c.headers.get("ETag"),t.elementParams?delete l.elements:null!==(r=l.elements)&&void 0!==r||(l.elements=[]),u=_s(l,this._options.readOnly),n.next=22,xc(u);case 22:return n.next=24,n.sent;case 24:n.next=30;break;case 26:if(n.prev=26,n.t0=n.catch(1),n.t0 instanceof ue&&"NOT_MODIFIED"===n.t0.code&&t.elementParams){n.next=30;break}throw n.t0;case 30:if(!t.elementParams){n.next=36;break}return n.t1=xc,n.delegateYield(Tc(Oc(this._getAllElements(e,Object.assign(Object.assign({},t.elementParams),{etag:t.firstElementsLoad?void 0:i})))),"t2",33);case 33:return n.t3=n.t2,n.next=36,(0,n.t1)(n.t3);case 36:case"end":return n.stop()}}),n,this,[[1,26]])})))}followLibrary(e,t){return this.fetch("/libraries",{method:"POST",body:JSON.stringify({follow:!0,type:"collab",id:t,assetId:e})}).then((()=>{}))}moveLibrary(e,t){return new Promise(((r,n)=>{const i=this.fetch("/libraries",{method:"POST",body:JSON.stringify({self:e,team_id:t})}),o=new xe(this,i);o.on("change",((e,t)=>{e&&(o.error?n(o.error):t?r(_s(t)):r())}))}))}importLibrary(e,t=(()=>{})){if("string"!=typeof e)throw new Error("Input must be a local path in local mode.");const r=this.fetch("/libraries",{method:"POST",body:JSON.stringify({source:{path:e}})}),n=new xe(this,r);return n.on("change",((e,r)=>{if(e){const e=r?_s(r):void 0;t(n.error,e)}})),n}exportLibrary(e,t,r=(()=>{})){if(!t)throw new Error("Destination path is required in local mode.");const n=this.fetch(`/libraries/${e.id}/export`,{method:"POST",body:JSON.stringify({path:t})}),i=new xe(this,n);return i.on("change",(e=>{e&&r(i.error)})),i}abortOperation(e){var t=this;return Lc(Ec().mark((function r(){return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch(e,{method:"DELETE"}));case 1:case"end":return r.stop()}}),r)})))()}getRenditionUrl(e,t){return`${this._hostname}/libraries/${e.library.id}/elements/${e.id}/renditions/${t}?token=${this._token}`}getAuthenticatedThumbnailURL(e,t){return this.fetch(`/libraries/${e.library.id}/elements/${e.id}/renditions/${t}/url`,{headers:{"cache-control":"none"}}).then((e=>e.json())).then((e=>e.url))}getRenditionPath(e,t,r){const n=bs.getInstance(e);return this.fetch(`/libraries/${e}/elements/${t}/renditions/${r}/path`,{headers:{"cache-control":"none"},signal:n.signal}).then((e=>e.json())).then((e=>e.path))}getRendition(e,t){return this.fetch(`/libraries/${e.library.id}/elements/${e.id}/renditions/${t}`)}getRepresentationContent(e){return this.fetch(`/libraries/${e.library.id}/elements/${e.element.id}/representations/${e.id}`)}setLibraryChangeListener(e,t){this._libraryChangeListener=t}setRenditionCacheChangeListener(e){this._renditionCacheChangeListener=e}setFontDataChangeListener(e){var t;this.removeFontDataChangeListeners(),null===(t=this._notificationEventSource)||void 0===t||t.on("fontDataMutation",e)}setSyncStateListener(e){var t,r;null===(t=this._notificationEventSource)||void 0===t||t.removeAllListeners("syncMutation"),null===(r=this._notificationEventSource)||void 0===r||r.on("syncMutation",e)}removeLibraryChangeListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("libraryMutation")}removeFontDataChangeListeners(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("fontDataMutation")}removeSyncStateListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("syncMutation")}removeRenditionCacheChangeListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("renditionCacheMutation")}_needToReconnect(e){var t,r,n;return(null===(r=null===(t=this.config)||void 0===t?void 0:t.user)||void 0===r?void 0:r.id)&&this.config.user.id!==(null===(n=e.user)||void 0===n?void 0:n.id)||!1}getConfiguration(){var e=this;return Lc(Ec().mark((function t(){var r,n;return Ec().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/configuration");case 2:return r=t.sent,t.next=5,r.json();case 5:return n=t.sent,e._handleConfigurationMutation(n),t.abrupt("return",e.config);case 8:case"end":return t.stop()}}),t)})))()}updateRenditionCacheConfiguration(e,t){var r=this;return Lc(Ec().mark((function n(){return Ec().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e||t){n.next=2;break}return n.abrupt("return",r.config);case 2:return n.next=4,r.updateConfiguration({RENDITION_SIZES:e,FULL_RENDITION_CONFIG:t}).catch((e=>{le.error(`Unable to update process configuration. ${e}`)}));case 4:return n.abrupt("return",r.config);case 5:case"end":return n.stop()}}),n)})))()}updateConfiguration(e){var t=this;return Lc(Ec().mark((function r(){var n,i;return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Object.keys(e).length){r.next=8;break}return r.next=3,t.fetch("/configuration",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});case 3:return n=r.sent,r.next=6,n.json();case 6:i=r.sent,t._handleConfigurationMutation(i);case 8:return r.abrupt("return",t.config);case 9:case"end":return r.stop()}}),r)})))()}setLocalSetting(e,t){var r=this;return Lc(Ec().mark((function n(){return Ec().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return void 0===t&&(t=null),n.next=3,r.updateConfiguration(Object.fromEntries([[e,t]]));case 3:r._config.config[e]=t;case 4:case"end":return n.stop()}}),n)})))()}getLocalSetting(e){var t;return null===(t=this._config.config)||void 0===t?void 0:t[e]}getInstalledVersion(e){return this._config.installedApps.filter((t=>t.code.toLowerCase()===e.toLowerCase())).map((e=>e.version)).sort(ks)[0]}sendAction(e){var t=this;return Lc(Ec().mark((function r(){return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch("/action",{method:"POST",body:e.toJSON()}));case 1:case"end":return r.stop()}}),r)})))()}openInCCD(e){var t=this;return Lc(Ec().mark((function r(){return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch("/action/open_ccd",{method:"POST",body:JSON.stringify({path:e})}));case 1:case"end":return r.stop()}}),r)})))()}fetch(e,t,r={}){var n=this;return Lc(Ec().mark((function i(){var o,a,s,c,l,u,p,d;return Ec().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return(t=t||{}).headers=t.headers||{},t.headers.token=n._token,t.headers["Content-Type"]=t.headers["Content-Type"]||"application/json",t.headers["x-client-version"]="15",r=Object.assign(Object.assign({},Pc),r),!n._options.optimistic||void 0!==r.optimisticFetch&&!0!==r.optimisticFetch||(t.headers["x-optimism"]="true"),t.signal=t.signal?Ke(t.signal,null===(o=n._abortController)||void 0===o?void 0:o.signal):null===(a=n._abortController)||void 0===a?void 0:a.signal,i.prev=8,i.next=11,fetch(`${/^https?:\/\//.test(e)?"":n._hostname}${e}`,t);case 11:if(!((l=i.sent).status>=300)){i.next=18;break}return i.next=15,l.text();case 15:throw u=i.sent,p=u.replace(/["]+/g,""),pe(l,p);case 18:return i.abrupt("return",l);case 21:if(i.prev=21,i.t0=i.catch(8),!ue.isRequestError(i.t0)){i.next=33;break}if(!(d=(null===(s=null==r?void 0:r.reconnectOnErrors)||void 0===s?void 0:s.includes(null===(c=i.t0.response)||void 0===c?void 0:c.status))&&n.isConnected)){i.next=29;break}n.reconnect(),i.next=31;break;case 29:if(d||i.t0.name!==S){i.next=31;break}return i.abrupt("return",new Response("{}"));case 31:i.next=34;break;case 33:"Failed to fetch"===i.t0.message&&(null==r?void 0:r.reconnectOnNoResponse)?(le.warn(`Fetch request failed to respond: ${i.t0}`),n.reconnect()):"Network request failed"===i.t0.message&&(le.warn(`Network request failed to respond: ${i.t0}`),n.reconnect());case 34:throw i.t0;case 35:case"end":return i.stop()}}),i,null,[[8,21]])})))()}copyFile(e,t,r=!1){var n=this;return Lc(Ec().mark((function i(){var o,a;return Ec().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.fetch("/util/file/copy",{method:"POST",body:JSON.stringify({source:e,destination:t,allowOverride:Boolean(r)})},{reconnectOnNoResponse:!0,reconnectOnErrors:[401]});case 2:return o=i.sent,i.next=5,o.json();case 5:return a=i.sent,i.abrupt("return",a.path);case 7:case"end":return i.stop()}}),i)})))()}getFileSize(e){var t=this;return Lc(Ec().mark((function r(){var n,i;return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch("/util/file/size",{method:"POST",body:JSON.stringify({path:e})});case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.size);case 7:case"end":return r.stop()}}),r)})))()}getRenditionGrid(e){return e.renditionGrid}stageRepresentationForCommit(e,t,r){var n=this;return Lc(Ec().mark((function e(){var r,i,o,a,c;return Ec().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t instanceof File)){e.next=9;break}return e.next=4,n.fetch("/util/file",{method:"POST",headers:{"Content-Type":null===(i=s(null===(r=t.name)||void 0===r?void 0:r.split(".")[1]))||void 0===i?void 0:i[0]},body:t});case 4:return a=e.sent,e.next=7,a.json();case 7:return c=e.sent,e.abrupt("return",c.path);case 9:e.next=15;break;case 11:if(e.prev=11,e.t0=e.catch(0),(null===(o=null===e.t0||void 0===e.t0?void 0:e.t0.response)||void 0===o?void 0:o.status)!==x.INTERNAL_SERVER_ERROR){e.next=15;break}return e.abrupt("return",Promise.reject(e.t0));case 15:return e.abrupt("return",t.path);case 16:case"end":return e.stop()}}),e,null,[[0,11]])})))()}isSystemFontAvailable(e,t){var r=this;return Lc(Ec().mark((function n(){var i,o;return Ec().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.fetch("/util/font/available",{method:"POST",body:JSON.stringify({font_name:e,match_family:t})});case 2:return i=n.sent,n.next=5,i.json();case 5:return o=n.sent,n.abrupt("return",o.is_font_available);case 7:case"end":return n.stop()}}),n)})))()}getFontData(e){var t=this;return Lc(Ec().mark((function r(){var n,i;return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch("/util/font/data",{method:"POST",body:JSON.stringify({font_id:e})});case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.font_data);case 7:case"end":return r.stop()}}),r)})))()}getTempDir(e){var t=this;return Lc(Ec().mark((function r(){var n,i;return Ec().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&e.id){r.next=2;break}throw new te("INVALID_PARAMETER","Need to pass a library with an ID");case 2:return r.next=4,t.fetch(`/libraries/${e.id}/temp_dir`);case 4:return n=r.sent,r.next=7,n.json();case 7:return i=r.sent,r.abrupt("return",i.path);case 9:case"end":return r.stop()}}),r)})))()}getCollaborators(e){throw new te("NOT_IMPLEMENTED","LocalDriver.getCollaborators not implemented.")}ignoreLocalSyncEvents(){return!0}}function Ac(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ac=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function kc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Dc extends Sa{constructor(e,t,r={}){super((()=>t().then((e=>Object.assign({samDisableOns:!0},e))))),this._localConnector=e,this._cloudConnector=t,this._localDriver=new Cc(e,Object.assign(Object.assign({},r),{optimistic:!0}))}connect(){return Promise.all([this.localDriver.connect(),super.connect()]).then((()=>{}))}get localDriver(){return this._localDriver}call(e,t,...r){return e.locallyManaged?this._localDriver[t](...r):super[t](...r)}_handleDisconnected(){super._handleDisconnected(),this.localDriver.isConnected&&this.localDriver.disconnect()}setLibraryChangeListener(e,t){this.localDriver.setLibraryChangeListener(e,t)}setFontDataChangeListener(e){this.localDriver.setFontDataChangeListener(e)}removeFontDataChangeListeners(){this.localDriver.removeFontDataChangeListeners()}getLibraries(){return this.localDriver.getLibraries()}getLibrary(e,t){return e.locallyManaged||(null==t?void 0:t.optimisticFetch)?this.localDriver.getLibrary(e,t):super.getLibrary(e,t)}getElements(e,t,r,n,i){return this.call(e,"getElements",t,r,n,i)}getElement(e,t){return this.call(e,"getElement",e,t)}getLibraryById(e,t){var r,n=()=>super.getLibraryById,i=this;return(r=Ac().mark((function r(){return Ac().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i._localDriver._getLibraryById(e,t).next();case 2:if(r.t0=r.sent,r.t0){r.next=5;break}r.t0=n().call(i,e);case 5:return r.abrupt("return",r.t0);case 6:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){kc(o,n,i,a,s,"next",e)}function s(e){kc(o,n,i,a,s,"throw",e)}a(void 0)}))})()}getRenditionUrl(e,t){return this.call(e.library,"getRenditionUrl",e,t)}getRendition(e,t){return this.call(e.library,"getRendition",e,t)}getRepresentationContent(e){return this.call(e.library,"getRepresentationContent",e)}getOperationTypes(e){return e.locallyManaged?this._localDriver.getOperationTypes(e):super.getOperationTypes(e)}operationFactory(e,t,r){return new e(r.locallyManaged?this._localDriver:this,r)}ignoreLocalSyncEvents(){return this.localDriver.isConnected?this.localDriver.ignoreLocalSyncEvents():super.ignoreLocalSyncEvents()}}function Nc(e){return void 0!==e.launchAppEx?new jc(e):new Mc(e)}class Rc extends class{}{constructor(e){super(),this._specifer=_,this._vulcanInterface=e}addMessageListener(e,t,r){this.vulcanInterface.addMessageListener(e,t,r)}removeMessageListener(e,t,r){this.vulcanInterface.removeMessageListener(e,t,r)}dispatchMessage(e){this.vulcanInterface.dispatchMessage(e)}getPayload(e){return this.vulcanInterface.getPayload(e)}}class Mc extends Rc{constructor(e){super(e),this._vulcanInterface=e,this._specifer=_}get vulcanInterface(){return this._vulcanInterface}getTargetSpecifiers(){return this.vulcanInterface.getTargetSpecifiers()}launchApp(e,t){return this.vulcanInterface.launchApp(this._specifer,e,t)}isAppRunning(){return this.vulcanInterface.isAppRunning(this._specifer)}isAppInstalled(){return this.vulcanInterface.isAppInstalled(this._specifer)}getAppPath(){return this.vulcanInterface.getAppPath(this._specifer)}}class jc extends Rc{constructor(e){super(e),this._specifer=E}get vulcanInterface(){return this._vulcanInterface}getTargetSpecifiers(){return this.vulcanInterface.getTargetSpecifiersEx()}launchApp(e,t){return this.vulcanInterface.launchAppEx(this._specifer,e,t)}isAppRunning(){return this.vulcanInterface.isAppRunningEx(this._specifer)}isAppInstalled(){return this.vulcanInterface.isAppInstalledEx(this._specifer)}getAppPath(){return this.vulcanInterface.getAppPathEx(this._specifer)}}function Zc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Fc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Bc extends gc{constructor(e,t,r){super(Nc(e),t,r),this.messageTypes={REQUEST:"vulcan.SuiteMessage.cclibraries.api.QueryRequest",RESPONSE:"vulcan.SuiteMessage.cclibraries.api.QueryResponse",INITIALIZE:"vulcan.SuiteMessage.cclibraries.service.Initialized"}}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,e),t!==this.messageTypes.INITIALIZE){const e=new this.VulcanMessage(this.messageTypes.REQUEST);e.setPayload(w),this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e,t=this;return(e=Zc().mark((function e(){return Zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.vulcanInterface.isAppRunning());case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Fc(o,n,i,a,s,"next",e)}function s(e){Fc(o,n,i,a,s,"throw",e)}a(void 0)}))})()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return this.vulcanInterface.getPayload(e)}}const Gc=(e,t,r=8e3)=>{const n=new Bc(e,t,r);return e=>n.connect(e)};function Uc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Uc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function zc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Vc extends gc{constructor(e,t,r){super(Nc(e),t,r),this.messageTypes={REQUEST:"cclibraries.api.QueryRequest",RESPONSE:"cclibraries.api.QueryResponse",INITIALIZE:"cclibraries.service.Initialized"}}_wrapHandler(e){return(t,r)=>e(r)}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,this._wrapHandler(e)),t!==this.messageTypes.INITIALIZE){const e=new this.VulcanMessage(this.messageTypes.REQUEST);e.data=w,this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e,t=this;return(e=Uc().mark((function e(){return Uc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.vulcanInterface.isAppRunning());case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){zc(o,n,i,a,s,"next",e)}function s(e){zc(o,n,i,a,s,"throw",e)}a(void 0)}))})()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return e}}const Hc=(e,t,r=8e3)=>{const n=new Vc(e,t,r);return e=>n.connect(e)};function Yc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Yc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Wc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class $c extends gc{constructor(e,t,r){super(Nc(e),t,r),this.messageTypes={REQUEST:"cclibraries.api.QueryRequest",RESPONSE:"cclibraries.api.QueryResponse",INITIALIZE:"cclibraries.service.Initialized"}}_wrapHandler(e){return(t,r)=>e(t)}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,this._wrapHandler(e)),t!==this.messageTypes.INITIALIZE){const e={message:w,type:t||this.messageTypes.REQUEST};this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e,t=this;return(e=Yc().mark((function e(){return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.vulcanInterface.isAppRunning());case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Wc(o,n,i,a,s,"next",e)}function s(e){Wc(o,n,i,a,s,"throw",e)}a(void 0)}))})()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return e}}const Kc=(e,t,r=8e3)=>{const n=new $c(e,t,r);return e=>n.connect(e)};function qc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Xc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Jc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Xc(o,n,i,a,s,"next",e)}function s(e){Xc(o,n,i,a,s,"throw",e)}a(void 0)}))}}class Qc extends gc{constructor(){super(...arguments),this.messageTypes={REQUEST:"vulcan.SuiteMessage.cclibraries.api.QueryRequest",RESPONSE:"vulcan.SuiteMessage.cclibraries.api.QueryResponse",INITIALIZE:null}}get _installedAppsFn(){const e=this.vulcanInterface.control,t=e.getInstalledApps,r=e.getInstalledAppsEx;return r?r.bind(this.vulcanInterface.control):t.bind(this.vulcanInterface.control)}_getCCLibrariesInstall(){var e=this;return Jc(qc().mark((function t(){return qc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._installedAppsFn();case 2:return t.abrupt("return",t.sent.find((e=>e.name===_||e.sapCode===E)));case 3:case"end":return t.stop()}}),t)})))()}removeListener(e,t){null!==t&&this.vulcanInterface.dispatcher.removeEventListener(this.messageTypes.RESPONSE,e)}sendMessage(e,t){null!==t&&(this.vulcanInterface.dispatcher.addEventListener(this.messageTypes.RESPONSE,e),this.vulcanInterface.dispatcher.broadcastMessage(new this.vulcanInterface.message(this.messageTypes.REQUEST,w)))}isAppRunning(){var e=this;return Jc(qc().mark((function t(){var r;return qc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getCCLibrariesInstall();case 2:if(t.t1=r=t.sent,t.t0=null===t.t1,t.t0){t.next=6;break}t.t0=void 0===r;case 6:if(!t.t0){t.next=10;break}t.t2=void 0,t.next=11;break;case 10:t.t2=r.isRunning();case 11:return t.abrupt("return",t.t2);case 12:case"end":return t.stop()}}),t)})))()}launchApp(e){var t=this;return Jc(qc().mark((function r(){var n;return qc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getCCLibrariesInstall();case 2:if(!(n=r.sent)){r.next=7;break}return r.next=6,n.launch();case 6:e("launched");case 7:case"end":return r.stop()}}),r)})))()}getPayload(e){return e.payload}}const el=(e,t=8e3)=>{const r=new Qc(e,void 0,t);return e=>r.connect(e)};function tl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tl=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function rl(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var nl=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}};class il extends oe{constructor(e){super(),this._generator=e,this._results=[],this._getPages()}_getPages(){var e,t=this;return(e=tl().mark((function e(){var r,n,i,o,a,s,c,l;return tl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,a=!0,s=nl(t._generator(t._abortController.signal));case 2:return e.next=4,s.next();case 4:if(c=e.sent,r=c.done){e.next=12;break}o=c.value,a=!1;try{l=o,t._results.push(...l),t.emit("change",!1)}finally{a=!0}case 10:e.next=2;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),n={error:e.t0};case 17:if(e.prev=17,e.prev=18,a||r||!(i=s.return)){e.next=22;break}return e.next=22,i.call(s);case 22:if(e.prev=22,!n){e.next=25;break}throw n.error;case 25:return e.finish(22);case 26:return e.finish(17);case 27:t.progress=100,t.emit("change",!0);case 29:case"end":return e.stop()}}),e,null,[[0,14,17,27],[18,,22,26]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rl(o,n,i,a,s,"next",e)}function s(e){rl(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get results(){return this._results}}function ol(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ol=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function al(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var sl=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class cl extends gt{get id(){return this._data.id}get name(){return this._data.name}get owner(){return this._data.owner}get ownerName(){return this._data.ownerName}get isWritable(){return this._data.isWritable}_refreshGradient(){var e,t=this;return(e=ol().mark((function e(){var r;return ol().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._data.gradient){e.next=2;break}return e.abrupt("return",t._data.gradient);case 2:return e.next=4,t.apiRoot.driver.getProjectGradient(t);case 4:r=e.sent,t.update({gradient:r});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){al(o,n,i,a,s,"next",e)}function s(e){al(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get gradientData(){return this._refreshGradient(),this._data.gradient}}function ll(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ll=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ul(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function pl(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ul(o,n,i,a,s,"next",e)}function s(e){ul(o,n,i,a,s,"throw",e)}a(void 0)}))}}sl([ke],cl.prototype,"gradientData",null);var dl=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};const hl=[e=>{e.createObjectStore("libraries",{keyPath:"id"})}];function fl(e){return function(t,r,n){const i=n.value;n.value=pl(ll().mark((function t(...n){return ll().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connect();case 2:if(this.supported){t.next=5;break}return le.info(`IndexedDB not supported. Cannot complete ${r} request`),t.abrupt("return",e);case 5:return t.abrupt("return",i.apply(this,n));case 6:case"end":return t.stop()}}),t,this)})))}}class ml{constructor(e){this._databaseName=e}get supported(){if(void 0!==this._supported)return this._supported;"undefined"!=typeof window&&window.indexedDB||(this._supported=!1);try{const e=window.indexedDB.open("cclibs_indexeddb_test",1);e.onsuccess=()=>e.result.close(),this._supported=!0}catch(e){this._supported=!1}return this._supported||le.info("IndexedDB not supported."),this._supported}connect(){return this.supported?(this._connectPromise=this._connectPromise||new Promise(((e,t)=>{const r=window.indexedDB.open(this._databaseName,hl.length);r.onerror=()=>{t(new te("CONNECTION_FAILED","Unable to connect to IndexedDB database"))},r.onupgradeneeded=e=>{this._database=r.result,this._createSchema(e.oldVersion)},r.onsuccess=()=>{this._database=r.result,e(this)}})),this._connectPromise):Promise.resolve(this)}get(e){return this.transaction("readonly",(t=>new Promise((r=>{const n=t.get(e);n.onsuccess=()=>{r(n.result)}}))))}getAll(){return this.transaction("readonly",(e=>new Promise((t=>{const r=e.getAll();r.onsuccess=()=>t(r.result)}))))}set(...e){var t=this;return pl(ll().mark((function r(){return ll().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.transaction("readwrite",(t=>{e.forEach((e=>t.put(e)))}));case 2:case"end":return r.stop()}}),r)})))()}delete(e){var t=this;return pl(ll().mark((function r(){return ll().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.transaction("readwrite",(t=>{t.delete(e)}));case 2:case"end":return r.stop()}}),r)})))()}deleteAll(){var e=this;return pl(ll().mark((function t(){return ll().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.transaction("readwrite",(e=>{e.clear()}));case 2:case"end":return t.stop()}}),t)})))()}_createSchema(e){hl.slice(e).forEach((e=>e(this._database)))}transaction(e,t){return new Promise(((r,n)=>{var i;const o=null===(i=this._database)||void 0===i?void 0:i.transaction("libraries",e),a=o.objectStore("libraries"),s=t(a);o.onerror=()=>{n(o.error)},o.oncomplete=()=>{r(s||void 0)}}))}}function gl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */gl=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function vl(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function yl(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){vl(o,n,i,a,s,"next",e)}function s(e){vl(o,n,i,a,s,"throw",e)}a(void 0)}))}}dl([fl()],ml.prototype,"get",null),dl([fl([])],ml.prototype,"getAll",null),dl([fl()],ml.prototype,"set",null),dl([fl()],ml.prototype,"delete",null),dl([fl()],ml.prototype,"deleteAll",null);var bl=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class _l{constructor(e,t,r){this._fs=e,this._path=t,this._getData=r}get supported(){return!0}connect(){return Promise.resolve(this)}get(e){return Promise.reject("not implemented")}getAll(){var e=this;return yl(gl().mark((function t(){var r;return gl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._fs.readFile(e._path,{encoding:"utf8"});case 3:if("string"==typeof(r=t.sent)){t.next=6;break}throw new Error("expected a string, got something else: "+typeof r);case 6:return t.abrupt("return",JSON.parse(r));case 9:return t.prev=9,t.t0=t.catch(0),le.warn(`Unable to read cache file: ${t.t0}`),t.abrupt("return",[]);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()}set(...e){return this._debouncedWriteFile()}delete(e){return this._debouncedWriteFile()}deleteAll(){return this._debouncedWriteFile()}_debouncedWriteFile(){var e=this;return yl(gl().mark((function t(){return gl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._writeFile());case 1:case"end":return t.stop()}}),t)})))()}_writeFile(){var e=this;return yl(gl().mark((function t(){var r;return gl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=JSON.stringify(e._getData()),t.next=4,e._fs.writeFile(e._path,r,{encoding:"utf8"});case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),le.warn(`Unable to write cache file: ${t.t0}`);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()}}function El(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */El=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function wl(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ll(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){wl(o,n,i,a,s,"next",e)}function s(e){wl(o,n,i,a,s,"throw",e)}a(void 0)}))}}bl([He(1e3)],_l.prototype,"_debouncedWriteFile",null);class xl extends ft{constructor(e,t){var r;super(e,(r=t,class extends r{update(e,t=!0){var r;const n=super.update(e,t);return null===(r=this._modelCache)||void 0===r||r.persistUpdate(n),n}})),this.waitForHydrate()}init(e,t=!0,r){var n=this;return Ll(El().mark((function i(){return El().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!n.db){i.next=2;break}return i.abrupt("return");case 2:if(n.db=new ml(e),n.db.supported||!r){i.next=6;break}return i.next=6,n._createFileSystemCache(e,r);case 6:t&&n.hydrate();case 7:case"end":return i.stop()}}),i)})))()}_createFileSystemCache(e,t){var r=this;return Ll(El().mark((function n(){var i,o,a,s;return El().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.fs,o=t.dir,a=!1,n.prev=2,n.next=5,i.lstat(o);case 5:n.sent&&(a=!0),n.next=11;break;case 9:n.prev=9,n.t0=n.catch(2);case 11:if(a){n.next=21;break}return n.prev=12,n.next=15,i.mkdir(o,{recursive:!0});case 15:a=!0,n.next=21;break;case 18:n.prev=18,n.t1=n.catch(12),le.warn(`Unable to create cache directory: ${n.t1}`);case 21:if(a){n.next=23;break}return n.abrupt("return");case 23:s=o+e,r.db=new _l(i,s,(()=>r.all().map((e=>e.data))));case 25:case"end":return n.stop()}}),n,null,[[2,9],[12,18]])})))()}hydrate(){var e=()=>super._replace,t=this;return Ll(El().mark((function r(){var n,i;return El().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.db){r.next=8;break}if(!t.db.supported){r.next=6;break}return r.next=4,t.db.getAll();case 4:(i=r.sent).length&&!t.length&&(le.info(`Loaded ${i.length} libraries from local cache.`),t._bookmarkMigration(i),e().call(t,i));case 6:null===(n=t._resolveWaitForCacheRestore)||void 0===n||n.call(t),t.emit("hydrate");case 8:case"end":return r.stop()}}),r)})))()}waitForHydrate(){return this._cacheRestorePromise||(this._cacheRestorePromise=new Promise((e=>{this._resolveWaitForCacheRestore=e}))),this._cacheRestorePromise}persistUpdate(e){var t;(null===(t=this.db)||void 0===t?void 0:t.supported)&&(le.info(`Library ${e.id} updated. Updating database entry`),this.driver.addWatchedLibrary(e),this.db.set(e))}_add(e,t=!1){var r;const n=super._add(e,t);return(null===(r=this.db)||void 0===r?void 0:r.supported)&&!D(n.id)&&(le.info(`New library ${e.id} found. Adding database entry`),this.driver.addWatchedLibrary(n.data),this.db.set(e)),n}_remove(e){var t;const r="string"==typeof e?this.get(e):e;if(super._remove(e),null===(t=this.db)||void 0===t?void 0:t.supported){const t="string"==typeof e?e:e.id;r&&this.driver.removeWatchedLibrary(r.data),le.info(`Library ${t} deleted. Deleting database entry`),this.db.delete(t)}}_replace(e,t=!0){var r;super._replace(e,t),(null===(r=this.db)||void 0===r?void 0:r.supported)&&(le.info(`Replacing Stored Libraries with new ${e.length} libraries`),this.db.deleteAll(),this.db.set(...this.all().map((e=>e.data))))}_bookmarkMigration(e){e.map((e=>{(function(e){return e.ownership&&e.details})(e)&&"public"===e.ownership&&e.bookmark&&e.bookmark.id!==e.id&&(e.id=e.bookmark.id)}))}}class Sl extends ie{constructor(e,t){super(),this._driver=e,this._orchestrator=t,this._state="ok",this._syncErrors=new Map,this._progress=100,this._transientProgress=[],this._externalLinkDownloadProgress={},this._handleLocalUpdate=this._handleUpdate.bind(this,"local"),this._handleRemoteUpdate=this._handleUpdate.bind(this,"remote")}init(){this._driver.setSyncStateListener(this._handleRemoteUpdate),this._orchestrator.on("syncChange",this._handleLocalUpdate),this._orchestrator.on("change",this._handleLocalUpdate)}halt(){this._driver.removeSyncStateListener(),this._orchestrator.off("syncChange",this._handleLocalUpdate),this._orchestrator.off("change",this._handleLocalUpdate)}get status(){return this._state}get primaryError(){return this._primaryError}get transientProgress(){var e;return null!==(e=this._transientProgress)&&void 0!==e?e:[]}get progress(){return this._progress}get errors(){return[...this._syncErrors.values()].map((e=>e.error))}get errorMap(){return this._syncErrors}get commitError(){return this._commitError}get externalLinkDownloadProgress(){return this._externalLinkDownloadProgress}getExternalLinkDownloadProgressByKey(e){return this._externalLinkDownloadProgress[e]}sync(){this._orchestrator.doOperations()}changeDriver(e){this._driver.removeSyncStateListener(),this._driver=e,this._driver.setSyncStateListener(this._handleRemoteUpdate)}_update(){const e=this._serialize();this._lastUpdate!==e&&(this._lastUpdate=e,le.info(`SYNC STATUS UPDATE: ${this._lastUpdate}`),this.emit("change"))}_handleUpdate(e,t={}){var r,n,i,o,a,s,c;"local"===e?this._resolveLocalErrors(null===(r=t.details)||void 0===r?void 0:r.resolvedErrors):this._resolveRemoteErrors(null===(n=t.details)||void 0===n?void 0:n.errors),this._setErrors(null===(i=t.details)||void 0===i?void 0:i.errors,e),this._setPrimaryError(),this._setCommitError(t.commitError,e),this._setProgress(null===(o=t.details)||void 0===o?void 0:o.progress,null===(a=t.details)||void 0===a?void 0:a.operations,e),this._setState(t.state,e),this._setTransientProgress(null===(s=t.details)||void 0===s?void 0:s.newLibraryProgress,e),this._setExternalLinkDownloadProgress(null===(c=t.details)||void 0===c?void 0:c.externalLinkProgress,e),this._update()}_setState(e,t="local"){if(e&&"remote"==t)return void(this._state=e);if(this._driver.ignoreLocalSyncEvents())return;const r="object"==typeof window&&!window.navigator.onLine;this.errors.length||this.commitError||r?this._state="error":this._orchestrator.all().some((e=>!e.isDeletedLocally&&e.syncState))?this._state="syncing":this._state=null!=e?e:"ok"}_setPrimaryError(){this._primaryError=this.errors.reduce(((e,t)=>!e||ee.indexOf(t.code)>ee.indexOf(e.code)?t:e),void 0)}_setCommitError(e,t="local"){"remote"===t&&(this._commitError=e?new te(e):void 0)}_resolveLocalErrors(e={}){Object.keys(e).forEach((e=>{const t=this._syncErrors.get(e);t&&"local"===t.source&&this._syncErrors.delete(e)}))}_resolveRemoteErrors(e={}){this._syncErrors.forEach((({source:t},r)=>{"remote"!==t||e[r]||this._syncErrors.delete(r)}))}_setErrors(e,t="local"){e&&Object.entries(e).forEach((([e,r])=>{const n=this._syncErrors.get(e);if("local"===(null==n?void 0:n.source)&&"remote"===t)return;const i=this._orchestrator.get(e);i&&(i.syncStatus={syncState:void 0}),this._syncErrors.set(e,{error:new te(r),source:t})}))}_setProgress(e=100,t,r="local"){this._orchestrator.all().filter((e=>!e.isDeletedLocally)).map((e=>("remote"===r&&e.syncProgress&&(e.syncStatus={syncState:void 0}),e))).map((e=>{const r=null==t?void 0:t[e.id];r&&(r.type="unknown"===r.type?void 0:r.type,e.syncStatus={syncState:r.type,syncProgress:r.progress})})),"remote"===r&&(this._progress=e)}_setTransientProgress(e,t="local"){"remote"===t&&(this._transientProgress=e)}_setExternalLinkDownloadProgress(e,t="local"){"remote"===t&&(this._externalLinkDownloadProgress=null!=e?e:{})}_serialize(){const e=this.status,t=this.progress,r=this.commitError,n=this.primaryError,i=this.errors,o=this.transientProgress,a=this.externalLinkDownloadProgress;return JSON.stringify({status:e,progress:t,commitError:r,primaryError:n,errors:i,transientProgress:o,externalLinkDownloadProgress:a})}}function Ol(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Tl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tl(e,t)}(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Tl(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 Il(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Il=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Pl(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Cl(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Pl(o,n,i,a,s,"next",e)}function s(e){Pl(o,n,i,a,s,"throw",e)}a(void 0)}))}}var Al=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},kl=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}};class Dl extends xl{constructor(e,t,r={}){var n;super(e,ys),n=this,this._driver=t,this._options=r,this._isPaused=!1,this._initialLibrariesLoaded=!1,this._isLoaded=!1,this._isLoading=!0,this._quietPeriodDuration=0,this._libraryPullLockCount=0,this._libraryRequestRetryMap=new Map,this._lockedLibraryPullCallbacks=[],this._isSyncGroupChangeInProgress=!1,this._hasUnhandledSyncGroupNotification=!1,this._loadedLibraryLists=new Map,this._inFlightOperations={},this._halt=()=>{this._isLoaded=!1,this._isLoading=!0,this._initialLibrariesLoaded=!1,this._driver.removeLibraryChangeListener(),this._driver.removeFontDataChangeListeners(),this.syncStatus.halt(),this.syncStatus.DANGEROUS.removeAllListeners(),this._driver.removeLibrariesSyncGroupListener(),this.isPaused&&this._setDriverConnectionListeners("off")},this._handleLibraryChange=(e,t)=>{this.emit("syncChange",{state:"syncing"}),0===e.length&&this._options.enableBrandLifecycleManagement&&this._handleRefreshGrid(),e.forEach((e=>{var r;const n=this.getByIndex(t||"id",e),i=t=>{t.then((()=>this.emit("syncChange",{details:{resolvedErrors:{[e]:{code:"REQUEST_FAILED"}}}}))).catch((t=>this.emit("syncChange",{state:"error",details:{errors:{[e]:{code:"REQUEST_FAILED",message:"Failed to fetch library",libraryId:e,underlyingError:t}}}})))},o=null!==(r=null==n?void 0:n.load(void 0,"notification"))&&void 0!==r?r:(()=>{if(!(this._libraryPullLockCount>0))return this._driver.getLibraryById(e,{optimisticFetch:!1}).then((e=>this.upsert(e)));this._lockedLibraryPullCallbacks.push((()=>i(this.lockedNewLibraryUpdate(e))))})();o&&i(o)}))},this._handleRenditionChange=function(){var e=Cl(Il().mark((function e(t){var r,i,o,a,s,c,l;return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.elementRef){e.next=2;break}return e.abrupt("return");case 2:if(i=G(t.elementRef)||{},o=i.libraryId,a=i.elementId,o&&a){e.next=5;break}return e.abrupt("return");case 5:if(null==(s=n.get(o))?void 0:s.locallyManaged){e.next=8;break}return e.abrupt("return");case 8:c=[...null!==(r=s.data.elements)&&void 0!==r?r:[]],(l=null==c?void 0:c.findIndex((e=>e.id===a)))>-1?c[l]=t:c.push(t),s.update({elements:c}),s.update({renditionGrid:br(s)});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._setRenditionCacheChangeListener=()=>{this._driver.setRenditionCacheChangeListener(this._handleRenditionChange)},this._setLibraryChangeListener=()=>{this._driver.setLibraryChangeListener([],this._handleLibraryChange)},this.handleSyncGroupChange=Cl(Il().mark((function e(){var t,r,i,o,a,s;return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n._isSyncGroupChangeInProgress){e.next=3;break}return n._hasUnhandledSyncGroupNotification=!0,e.abrupt("return");case 3:return n._isSyncGroupChangeInProgress=!0,n.emit("syncChange",{state:"syncing"}),e.prev=5,(t=n.all().map((e=>e.obtainLock()))).push(new Promise((e=>setTimeout(e,3e3)))),e.next=10,Promise.all(t);case 10:return e.next=12,n._driver.getAllLibraries();case 12:r=e.sent,i=n._diffLibraries(r),o=i.add,a=i.remove,s=i.promote,o.length&&n._cleanupRenditionElements(o).forEach((e=>n.add(e))),a.length&&a.forEach((e=>n.remove(e))),s.length&&s.forEach((e=>{const t=n.get(e.id);null==t||t.update(e)})),n.all().forEach((e=>{e.releaseLock()})),n._isSyncGroupChangeInProgress=!1,n.emit("syncChange",{state:"ok"}),n._hasUnhandledSyncGroupNotification&&(n._hasUnhandledSyncGroupNotification=!1,n.handleSyncGroupChange()),e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(5),n._isSyncGroupChangeInProgress=!1,n.emit("syncChange",{state:"error"}),e.t0;case 29:case"end":return e.stop()}}),e,null,[[5,24]])}))),this._diffLibraries=e=>{const t={add:[],promote:[],remove:[]},r={};return e.forEach((e=>{const n=this.get(e.id);n?e.assetId!==n.assetId&&t.promote.push(e):t.add.push(e),r[e.id]=e})),this.all().forEach((e=>{r[e.id]||D(e.id)||!ls(e.data,this._options.enableBrandLifecycleManagement)||t.remove.push(e)})),t},this._handleConnect=Cl(Il().mark((function e(){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.isPaused){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,n.init(Ye(n._driver.config.user,n._driver instanceof Sa?"cloud":"local"),!0,n._options.fileSystemCache);case 4:n.syncStatus.on("change",(()=>n.emit("sync"))),n.syncStatus.init(),n._setLibraryChangeListener(),n._driver.setFontDataChangeListener((()=>{n.emit("fontDataChange")})),n._setRenditionCacheChangeListener(),n._apiRoot.options.disablePreemptiveLibraryLoad||n.initialLibrariesLoad(),n.emit("connect");case 11:case"end":return e.stop()}}),e)}))),this._onSync=()=>this.emit("syncChange"),this._onAction=(...e)=>{this.emit("report",...e),this._doOperations()},this._apiRoot=e,this.syncStatus=new Sl(this._driver,this),this.registerIndex("assetId"),this._initializeDriver()}changeDriver(e){var t=this;return Cl(Il().mark((function r(){return Il().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.pause(!0,!0);case 2:t._driver=e,t.syncStatus.changeDriver(e),t._isPaused=!1,t._initialLibrariesLoaded=!1,t._initializeDriver();case 7:case"end":return r.stop()}}),r)})))()}_initializeDriver(){var e,t;this._loadedLibraryLists.clear(),this._driver.isConnected?(this._setDriverConnectionListeners("on"),this._handleConnect(),this._apiRoot.updateOptions(this._options)):this._driver.init(Object.assign({includeApprovedBrandsInLibraries:!!(null===(e=this._apiRoot.options)||void 0===e?void 0:e.includeApprovedBrandsInLibraries),enableBrandLifecycleManagement:!!(null===(t=this._apiRoot.options)||void 0===t?void 0:t.enableBrandLifecycleManagement)},this._options),this._handleConnect,this._halt)}_setDriverConnectionListeners(e="on"){"on"===e&&this._driver.listeners("connect").includes(this._handleConnect)||(this._driver[e]("connect",this._handleConnect),this._driver[e]("disconnect",this._halt))}lockedNewLibraryUpdate(e){const t=this.get(e);return t?t.load(void 0,"notification"):this._driver.getLibraryById(e,{optimisticFetch:!1}).then((e=>this.add(e)))}_handleRefreshGrid(){this._loadLibraryList("default",(()=>this._driver.getLibraries()))}_cleanupRenditionElements(e){var t,r=Ol(e);try{for(r.s();!(t=r.n()).done;){const e=t.value,r=this.get(e.id);(null==r?void 0:r.areElementsLoaded)&&delete e.elements}}catch(e){r.e(e)}finally{r.f()}return e}initialLibrariesLoad(){var e=this;return Cl(Il().mark((function t(){return Il().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._initialLibrariesLoaded){t.next=2;break}return t.abrupt("return");case 2:return e._initialLibrariesLoaded=!0,t.next=5,e._loadLibraryList("default",(()=>e._driver.getLibraries()));case 5:e.driver.addLibrariesSyncGroupListener(e.handleSyncGroupChange),e._isLoaded=!0,e.emit("loaded");case 8:case"end":return t.stop()}}),t)})))()}_loadLibraryList(e,t){var r=this;return Cl(Il().mark((function n(){var i,o,a,s,c,l,u,p,d,h,f,m,g,v,y,b;return Il().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r._isLoading=!0,c=[],r.emit("syncChange",{state:"syncing"}),n.next=5,r._driver.connect();case 5:r._apiRoot.refreshProjects(),n.prev=6,n.prev=7,l=!0,u=kl(t());case 9:return n.next=11,u.next();case 11:if(p=n.sent,i=p.done){n.next=19;break}s=p.value,l=!1;try{d=s,r._cleanupRenditionElements(d),c.push(...d),r.upsert(...d)}finally{l=!0}case 17:n.next=9;break;case 19:n.next=24;break;case 21:n.prev=21,n.t0=n.catch(7),o={error:n.t0};case 24:if(n.prev=24,n.prev=25,l||i||!(a=u.return)){n.next=29;break}return n.next=29,a.call(u);case 29:if(n.prev=29,!o){n.next=32;break}throw o.error;case 32:return n.finish(29);case 33:return n.finish(24);case 34:h=[],f=r._loadedLibraryLists.size?r._loadedLibraryLists.get(e)||[]:r.all().map((e=>e.id)),m=Ol(f);try{for(m.s();!(g=m.n()).done;)!(v=g.value)||D(v)||c.find((e=>e.id===v))||h.push(v)}catch(e){m.e(e)}finally{m.f()}for(y=0,b=h;y<b.length;y++)v=b[y],r.remove(v);r._isLoading=!1,r.emit("syncChange",{state:"ok"}),n.next=50;break;case 43:if(n.prev=43,n.t1=n.catch(6),r._isLoading=!1,r.emit("syncChange",{state:"error"}),n.t1.name===S){n.next=49;break}throw n.t1;case 49:return n.abrupt("return",[]);case 50:return r._loadedLibraryLists.set(e,c.map((e=>e.id))),n.abrupt("return",c);case 52:case"end":return n.stop()}}),n,null,[[6,43],[7,21,24,34],[25,,29,33]])})))()}loadList(e={}){var t=this;return Cl(Il().mark((function r(){var n,i;return Il().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=Object.fromEntries(Object.entries(e).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort()),n=JSON.stringify(e),r.next=4,t._loadLibraryList(n,(()=>t._driver.getLibrariesList(void 0,e)));case 4:if(i=r.sent){r.next=7;break}return r.abrupt("return",[]);case 7:return r.abrupt("return",i.map((e=>t.get(e.id))));case 8:case"end":return r.stop()}}),r)})))()}loadPage(e={},t){var r=this;return Cl(Il().mark((function n(){var i,o;return Il().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=Object.fromEntries(Object.entries(e).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort()),i=JSON.stringify(e),n.next=4,r._loadLibraryList(i,(()=>r._driver.getLibrariesPage(t,e)));case 4:if(o=n.sent){n.next=7;break}return n.abrupt("return",[]);case 7:return n.abrupt("return",o.map((e=>r.get(e.id))));case 8:case"end":return n.stop()}}),n)})))()}get isLoading(){return this._isLoading}get isLoaded(){return this._isLoaded}get isPaused(){return this._isPaused}pause(e=!1,t=!1){var r=this;return Cl(Il().mark((function n(){var i,o;return Il().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r._isPaused=!0,r._quietPeriodTimeoutId&&(clearTimeout(r._quietPeriodTimeoutId),delete r._quietPeriodTimeoutId),i=Object.values(r._inFlightOperations).map((e=>e.deref())).filter((e=>!!e)),o=Promise.all(i).then((()=>{})),!e){n.next=9;break}if(!t){n.next=8;break}return n.next=8,o;case 8:r._driver.disconnect();case 9:return r.emit("syncChange"),n.abrupt("return",o);case 11:case"end":return n.stop()}}),n)})))()}resume(){var e=this;return Cl(Il().mark((function t(){return Il().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._isPaused){t.next=2;break}return t.abrupt("return");case 2:return e._isPaused=!1,e._setDriverConnectionListeners("on"),t.next=6,e._driver.reconnect();case 6:e.emit("syncChange"),e._doOperations();case 8:case"end":return t.stop()}}),t)})))()}doOperations(){var e=this;return Cl(Il().mark((function t(){return Il().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._isPaused){t.next=2;break}return t.abrupt("return");case 2:e.emit("syncChange"),e._doOperations();case 4:case"end":return t.stop()}}),t)})))()}get syncState(){return this.syncStatus.status}_doOperations(){this._quietPeriodTimeoutId?le.log("[ORCHESTRATOR] Operation requested in quiet period..."):this._quietPeriodTimeoutId=setTimeout((()=>{le.log("[ORCHESTRATOR] Performing operations..."),delete this._quietPeriodTimeoutId;var e,t=Ol(this.all());try{for(t.s();!(e=t.n()).done;){const t=e.value;if(!this._canDoOperation(t))continue;const r=t.obtainLock().then((()=>this._doOperation(t))).finally((()=>{t.releaseLock(),delete this._inFlightOperations[t.id]}));this._inFlightOperations[t.id]=new WeakRef(r)}}catch(e){t.e(e)}finally{t.f()}}),this._quietPeriodDuration)}_canDoOperation(e){return!e.operation&&0!==e.actions.length&&!this._isPaused}_doOperation(e){if(!this._canDoOperation(e))return;le.log(`[ORCHESTRATOR] Found pending actions for library: ${e.id}`);return e.actions[0].link?this._doLinkedAction(e):this._doIsolatedAction(e)}_handleActionError(e,t,r=t){var n=this;return Cl(Il().mark((function i(){var o,a,s,c,l;return Il().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if((s=t===r)||(null===(o=n._libraryRequestRetryMap.get(r))||void 0===o?void 0:o.inProgress)||r.releaseLock(),"AbortError"!==e.name){i.next=6;break}return t.operation=void 0,r.operation=void 0,i.abrupt("return");case 6:if(!(e instanceof ue&&"PRECONDITION_FAILED"===e.code)){i.next=15;break}if(le.log(`[ORCHESTRATOR] Server conflict. Pulling library: ${r.id}`),t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=12;break}return i.abrupt("return");case 12:return i.next=14,Promise.all([t._load(void 0,void 0,"action"),!s&&r._load(void 0,void 0,"action")]);case 14:return i.abrupt("return",n._doOperation(t));case 15:if(!(e instanceof ue)){i.next=44;break}if(t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=20;break}return i.abrupt("return");case 20:if(c=n._libraryRequestRetryMap.get(t)||{retryCount:0},l=d[c.retryCount],c.retryCount++,n._libraryRequestRetryMap.set(t,c),!(c.retryCount<=h)){i.next=40;break}return n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!0})),i.prev=26,i.next=29,n._driver.sleep(l);case 29:i.next=35;break;case 31:return i.prev=31,i.t0=i.catch(26),n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!1})),i.abrupt("return");case 35:return n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!1})),i.next=38,n._doOperation(t);case 38:i.next=43;break;case 40:t.revert(),s||r.revert(),n.emit("syncChange",{state:"error",details:{resolvedErrors:{[t.id]:{code:"REQUEST_FAILED"}},errors:{[t.id]:{code:"REQUEST_FAILED",message:"Action failed",libraryId:t.id,underlyingError:e}}}});case 43:return i.abrupt("return");case 44:if(!(e instanceof te)){i.next=53;break}if(t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=49;break}return i.abrupt("return");case 49:return t.revert(),s||r.revert(),n.emit("syncChange",{state:"error",details:{errors:{[t.id]:{code:e.code,message:e.message,libraryId:null!==(a=e.libraryId)&&void 0!==a?a:t.id,underlyingError:e.underlyingError}}}}),i.abrupt("return");case 53:throw e;case 54:case"end":return i.stop()}}),i,null,[[26,31]])})))()}_doIsolatedAction(e){var t=this;return Cl(Il().mark((function r(){var n,i,o,a,s,c,l;return Il().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._driver.constructOperation(e)){r.next=3;break}return r.abrupt("return");case 3:return e.operation=n,t.emit("report",...n.actions.map((e=>({type:"processing",action:e})))),i=n.actions.some((e=>{var t;return null===(t=e.flags)||void 0===t?void 0:t.lockNewLibraries})),i&&t._libraryPullLockCount++,r.prev=7,r.next=10,n.execute();case 10:return o=r.sent,a=o.actions,s=o.etag,r.next=15,e.commit(a,s);case 15:e.operation=void 0,le.log(`[ORCHESTRATOR] Successfully completed ${a.length} actions for library: ${e.id}`),e.actions.length>0&&t._doOperations(),r.next=24;break;case 20:return r.prev=20,r.t0=r.catch(7),r.next=24,t._handleActionError(r.t0,e);case 24:if(r.prev=24,(c=t._libraryRequestRetryMap.get(e))&&!c.inProgress&&t._libraryRequestRetryMap.delete(e),i&&t._libraryPullLockCount--,0===t._libraryPullLockCount)for(;t._lockedLibraryPullCallbacks[0];)l=t._lockedLibraryPullCallbacks.shift(),setTimeout((()=>l&&l()));return r.finish(24);case 30:return r.abrupt("return");case 31:case"end":return r.stop()}}),r,null,[[7,20,24,30]])})))()}_doLinkedAction(e){var t,r=this;const n=e.actions[0];if("dependent"===n.name)return;const i=null===(t=n.link)||void 0===t?void 0:t.library;if(!i)return;const o=i.actions[0],a=e===i;if(a&&i.actions[1]!==n.link)throw new Error("CATASTROPHIC");if(a||!(null==i?void 0:i.operation)&&o===n.link)return e.operation=Ua,i.operation=Ua,Promise.resolve(!a&&i.obtainLock()).then((()=>{le.log("[ORCHESTRATOR] Got lock on both libraries. Linked actions are ready to be executed.");const t=this._driver.constructOperation(e);if(t)return e.operation=t,i.operation=t,this.emit("report",...t.actions.map((e=>({type:"processing",action:e})))),t.execute().then((({actions:t,etag:r,linkedActions:n,linkedEtag:o})=>{e.operation=void 0,i.operation=void 0,e.commit(t,r),i.commit(n,o),a||i.releaseLock(),(e.actions.length>0||i.actions.length>0)&&this._doOperations()}),function(){var t=Cl(Il().mark((function t(n){return Il().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r._handleActionError(n,e,i));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());i.releaseLock()}));le.log("[ORCHESTRATOR] Action cannot be executed because linked action is not at head.")}_add(e,t=!1){const r=super._add(e,t);return r.on("action",this._onAction),r.on("sync",this._onSync),r}_remove(e){const t="string"==typeof e?this.get(e):e;t&&(t.off("action",this._onAction),t.off("sync",this._onSync)),super._remove(e)}}Al([He(5e3)],Dl.prototype,"_handleRefreshGrid",null);var Nl,Rl,Ml,jl=r(97582);function Zl(e){return e.type===Rl.literal}function Fl(e){return e.type===Rl.argument}function Bl(e){return e.type===Rl.number}function Gl(e){return e.type===Rl.date}function Ul(e){return e.type===Rl.time}function zl(e){return e.type===Rl.select}function Vl(e){return e.type===Rl.plural}function Hl(e){return e.type===Rl.pound}function Yl(e){return e.type===Rl.tag}function Wl(e){return!(!e||"object"!=typeof e||e.type!==Ml.number)}function $l(e){return!(!e||"object"!=typeof e||e.type!==Ml.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"}(Nl||(Nl={})),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"}(Rl||(Rl={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Ml||(Ml={}));var Kl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ql=/(?:[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 Xl(e){var t={};return e.replace(ql,(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 Jl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ql=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,eu=/^(@+)?(\+|#+)?[rs]?$/g,tu=/(\*)(0+)|(#+)(0+)|(0+)/g,ru=/^(0+)$/;function nu(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(eu,(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 iu(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 ou(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)),!ru.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function au(e){var t=iu(e);return t||{}}function su(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=i.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,jl.__assign)((0,jl.__assign)((0,jl.__assign)({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return(0,jl.__assign)((0,jl.__assign)({},e),au(t))}),{}));continue;case"engineering":t=(0,jl.__assign)((0,jl.__assign)((0,jl.__assign)({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return(0,jl.__assign)((0,jl.__assign)({},e),au(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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(tu,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)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(ru.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Ql.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ql,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=(0,jl.__assign)((0,jl.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,jl.__assign)((0,jl.__assign)({},t),nu(o)))}else if(eu.test(i.stem))t=(0,jl.__assign)((0,jl.__assign)({},t),nu(i.stem));else{var a=iu(i.stem);a&&(t=(0,jl.__assign)((0,jl.__assign)({},t),a));var s=ou(i.stem);s&&(t=(0,jl.__assign)((0,jl.__assign)({},t),s))}}return t}var cu,lu={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 uu(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),(lu[r||""]||lu[n||""]||lu["".concat(n,"-001")]||lu["001"])[0]}var pu=new RegExp("^".concat(Kl.source,"*")),du=new RegExp("".concat(Kl.source,"*$"));function hu(e,t){return{start:e,end:t}}var fu=!!String.prototype.startsWith,mu=!!String.fromCodePoint,gu=!!Object.fromEntries,vu=!!String.prototype.codePointAt,yu=!!String.prototype.trimStart,bu=!!String.prototype.trimEnd,_u=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Eu=!0;try{Eu="a"===(null===(cu=Pu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===cu?void 0:cu[0])}catch(e){Eu=!1}var wu,Lu=fu?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},xu=mu?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>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},Su=gu?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},Ou=vu?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Tu=yu?function(e){return e.trimStart()}:function(e){return e.replace(pu,"")},Iu=bu?function(e){return e.trimEnd()}:function(e){return e.replace(du,"")};function Pu(e,t){return new RegExp(e,t)}if(Eu){var Cu=Pu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wu=function(e,t){var r;return Cu.lastIndex=t,null!==(r=Cu.exec(e)[1])&&void 0!==r?r:""}}else wu=function(e,t){for(var r=[];;){var n=Ou(e,t);if(void 0===n||Du(n)||Nu(n))break;r.push(n),t+=n>=65536?2:1}return xu.apply(void 0,r)};var Au=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 n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Nl.UNMATCHED_CLOSING_TAG,hu(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ku(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Rl.pound,location:hu(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Rl.literal,value:"<".concat(n,"/>"),location:hu(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ku(this.char()))return this.error(Nl.INVALID_TAG,hu(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(Nl.UNMATCHED_CLOSING_TAG,hu(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Rl.tag,value:n,children:o,location:hu(r,this.clonePosition())},err:null}:this.error(Nl.INVALID_TAG,hu(a,this.clonePosition())))}return this.error(Nl.UNCLOSED_TAG,hu(r,this.clonePosition()))}return this.error(Nl.INVALID_TAG,hu(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 o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=hu(r,this.clonePosition());return{val:{type:Rl.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ku(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 xu.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(),xu(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Nl.EXPECT_ARGUMENT_CLOSING_BRACE,hu(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Nl.EMPTY_ARGUMENT,hu(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Nl.MALFORMED_ARGUMENT,hu(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Nl.EXPECT_ARGUMENT_CLOSING_BRACE,hu(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Rl.argument,value:n,location:hu(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Nl.EXPECT_ARGUMENT_CLOSING_BRACE,hu(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Nl.MALFORMED_ARGUMENT,hu(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=wu(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:hu(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Nl.EXPECT_ARGUMENT_TYPE,hu(o,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(h=Iu(v.val)).length)return this.error(Nl.EXPECT_ARGUMENT_STYLE,hu(this.clonePosition(),this.clonePosition()));c={style:h,styleLocation:hu(l,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var u=hu(n,this.clonePosition());if(c&&Lu(null==c?void 0:c.style,"::",0)){var p=Tu(c.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(p,c.styleLocation)).err?v:{val:{type:Rl.number,value:r,location:u,style:v.val},err:null};if(0===p.length)return this.error(Nl.EXPECT_DATE_TIME_SKELETON,u);var d=p;this.locale&&(d=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),c=uu(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(p,this.locale));var h={type:Ml.dateTime,pattern:d,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Xl(d):{}};return{val:{type:"date"===a?Rl.date:Rl.time,value:r,location:u,style:h},err:null}}return{val:{type:"number"===a?Rl.number:"date"===a?Rl.date:Rl.time,value:r,location:u,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Nl.EXPECT_SELECT_ARGUMENT_OPTIONS,hu(f,(0,jl.__assign)({},f)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Nl.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,hu(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(Nl.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Nl.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=v.val}var y,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(n)).err)return y;var _=hu(n,this.clonePosition());return"select"===a?{val:{type:Rl.select,value:r,options:Su(b.val),location:_},err:null}:{val:{type:Rl.plural,value:r,options:Su(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(Nl.INVALID_ARGUMENT_TYPE,hu(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Nl.EXPECT_ARGUMENT_CLOSING_BRACE,hu(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(Nl.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,hu(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(Jl).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(Nl.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ml.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?su(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,c=n.value,l=n.location;;){if(0===c.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(Nl.EXPECT_PLURAL_ARGUMENT_SELECTOR,Nl.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;l=hu(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}if(s.has(c))return this.error("select"===t?Nl.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Nl.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Nl.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Nl.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,hu(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var f=this.tryParseArgumentClose(d);if(f.err)return f;a.push([c,{value:h.val,location:hu(d,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===a.length?this.error("select"===t?Nl.EXPECT_SELECT_ARGUMENT_SELECTOR:Nl.EXPECT_PLURAL_ARGUMENT_SELECTOR,hu(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Nl.MISSING_OTHER_CLAUSE,hu(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=hu(n,this.clonePosition());return i?_u(o*=r)?{val:o,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=Ou(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(Lu(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()&&Du(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 ku(e){return e>=97&&e<=122||e>=65&&e<=90}function Du(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Nu(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 Ru(e){e.forEach((function(e){if(delete e.location,zl(e)||Vl(e))for(var t in e.options)delete e.options[t].location,Ru(e.options[t].value);else Bl(e)&&Wl(e.style)||(Gl(e)||Ul(e))&&$l(e.style)?delete e.style.location:Yl(e)&&Ru(e.children)}))}function Mu(e,t){void 0===t&&(t={}),t=(0,jl.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Au(e,t).parse();if(r.err){var n=SyntaxError(Nl[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Ru(r.val),r.val}function ju(e,t){var r=t&&t.cache?t.cache:Hu,n=t&&t.serializer?t.serializer:Uu;return(t&&t.strategy?t.strategy:Gu)(e,{cache:r,serializer:n})}function Zu(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function Fu(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function Bu(e,t,r,n,i){return r.bind(t,e,n,i)}function Gu(e,t){return Bu(e,this,1===e.length?Zu:Fu,t.cache.create(),t.serializer)}var Uu=function(){return JSON.stringify(arguments)};function zu(){this.cache=Object.create(null)}zu.prototype.get=function(e){return this.cache[e]},zu.prototype.set=function(e,t){this.cache[e]=t};var Vu,Hu={create:function(){return new zu}},Yu={variadic:function(e,t){return Bu(e,this,Fu,t.cache.create(),t.serializer)},monadic:function(e,t){return Bu(e,this,Zu,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Vu||(Vu={}));var Wu,$u=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,jl.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ku=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Vu.INVALID_VALUE,i)||this}return(0,jl.__extends)(t,e),t}($u),qu=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Vu.INVALID_VALUE,n)||this}return(0,jl.__extends)(t,e),t}($u),Xu=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,'"'),Vu.MISSING_VALUE,r)||this}return(0,jl.__extends)(t,e),t}($u);function Ju(e){return"function"==typeof e}function Qu(e,t,r,n,i,o,a){if(1===e.length&&Zl(e[0]))return[{type:Wu.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(Zl(u))s.push({type:Wu.literal,value:u.value});else if(Hl(u))"number"==typeof o&&s.push({type:Wu.literal,value:r.getNumberFormat(t).format(o)});else{var p=u.value;if(!i||!(p in i))throw new Xu(p,a);var d=i[p];if(Fl(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?Wu.literal:Wu.object,value:d});else if(Gl(u)){var h="string"==typeof u.style?n.date[u.style]:$l(u.style)?u.style.parsedOptions:void 0;s.push({type:Wu.literal,value:r.getDateTimeFormat(t,h).format(d)})}else if(Ul(u)){h="string"==typeof u.style?n.time[u.style]:$l(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:Wu.literal,value:r.getDateTimeFormat(t,h).format(d)})}else if(Bl(u)){(h="string"==typeof u.style?n.number[u.style]:Wl(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),s.push({type:Wu.literal,value:r.getNumberFormat(t,h).format(d)})}else{if(Yl(u)){var f=u.children,m=u.value,g=i[m];if(!Ju(g))throw new qu(m,"function",a);var v=g(Qu(f,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?Wu.literal:Wu.object,value:e}})))}if(zl(u)){if(!(y=u.options[d]||u.options.other))throw new Ku(u.value,d,Object.keys(u.options),a);s.push.apply(s,Qu(y.value,t,r,n,i))}else if(Vl(u)){var y;if(!(y=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new $u('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Vu.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0));y=u.options[b]||u.options.other}if(!y)throw new Ku(u.value,d,Object.keys(u.options),a);s.push.apply(s,Qu(y.value,t,r,n,i,d-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===Wu.literal&&t.type===Wu.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function ep(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?(0,jl.__assign)((0,jl.__assign)((0,jl.__assign)({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=(0,jl.__assign)((0,jl.__assign)({},i[t]),o[t]||{}),e}),{})):i),r}),(0,jl.__assign)({},e)):e}function tp(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Wu||(Wu={}));var rp,np=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Wu.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 Qu(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.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 s=i||{},c=(s.formatters,(0,jl.__rest)(s,["formatters"]));this.ast=e.__parse(t,(0,jl.__assign)((0,jl.__assign)({},c),{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=ep(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ju((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,jl.__spreadArray)([void 0],t,!1)))}),{cache:tp(o.number),strategy:Yu.variadic}),getDateTimeFormat:ju((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,jl.__spreadArray)([void 0],t,!1)))}),{cache:tp(o.dateTime),strategy:Yu.variadic}),getPluralRules:ju((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,jl.__spreadArray)([void 0],t,!1)))}),{cache:tp(o.pluralRules),strategy:Yu.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=Mu,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}();!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"}(rp||(rp={}));var ip=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=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(o,t),o}return(0,jl.__extends)(t,e),t}(Error),op=function(e){function t(t,r){return e.call(this,rp.UNSUPPORTED_FORMATTER,t,r)||this}return(0,jl.__extends)(t,e),t}(ip),ap=function(e){function t(t,r){return e.call(this,rp.INVALID_CONFIG,t,r)||this}return(0,jl.__extends)(t,e),t}(ip),sp=function(e){function t(t,r){return e.call(this,rp.MISSING_DATA,t,r)||this}return(0,jl.__extends)(t,e),t}(ip),cp=function(e){function t(t,r,n){return e.call(this,rp.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this}return(0,jl.__extends)(t,e),t}(ip),lp=function(e){function t(t,r,n,i){var o=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,i)||this;return o.descriptor=n,o}return(0,jl.__extends)(t,e),t}(cp),up=function(e){function t(t,r){var n=e.call(this,rp.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 n.descriptor=t,n}return(0,jl.__extends)(t,e),t}(ip);function pp(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 dp={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function hp(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function fp(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new op("No ".concat(t," format named: ").concat(r)))}var mp=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function gp(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&fp(i,"number",a,o)||{};return t(n,pp(r,mp,s))}function vp(e,t,r,n){void 0===n&&(n={});try{return gp(e,t,n).format(r)}catch(t){e.onError(new ip(rp.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function yp(e,t,r,n){void 0===n&&(n={});try{return gp(e,t,n).formatToParts(r)}catch(t){e.onError(new ip(rp.FORMAT_ERROR,"Error formatting number.",t))}return[]}var bp=["numeric","style"];function _p(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new $u('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Vu.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&fp(i,"relative",a,o)||{};return t(n,pp(r,bp,s))}(e,t,i).format(r,n)}catch(t){e.onError(new cp("Error formatting relative time.",e.locale,t))}return String(r)}var Ep=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function wp(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,l=(0,jl.__assign)((0,jl.__assign)({},s&&{timeZone:s}),c&&fp(o,t,c,a)),u=pp(n,Ep,l);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=(0,jl.__assign)((0,jl.__assign)({},u),{hour:"numeric",minute:"numeric"})),r(i,u)}function Lp(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return wp(e,"date",t,a).format(s)}catch(t){e.onError(new ip(rp.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function xp(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return wp(e,"time",t,a).format(s)}catch(t){e.onError(new ip(rp.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function Sp(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,l=e.locale,u=e.onError,p=pp(s,Ep,c?{timeZone:c}:{});try{return t(l,p).formatRange(i,o)}catch(e){u(new ip(rp.FORMAT_ERROR,"Error formatting date time range.",e))}return String(i)}function Op(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return wp(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new ip(rp.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Tp(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return wp(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new ip(rp.FORMAT_ERROR,"Error formatting time.",t))}return[]}var Ip=["type"];function Pp(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new $u('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Vu.MISSING_INTL_API));var a=pp(n,Ip);try{return t(i,a).select(r)}catch(e){o(new cp("Error formatting plural.",i,e))}return"other"}function Cp(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=(0,jl.__assign)({timeZone:t},e[n]),r}),{})}function Ap(e,t){return Object.keys((0,jl.__assign)((0,jl.__assign)({},e),t)).reduce((function(r,n){return r[n]=(0,jl.__assign)((0,jl.__assign)({},e[n]||{}),t[n]||{}),r}),{})}function kp(e,t){if(!t)return e;var r=np.formats;return(0,jl.__assign)((0,jl.__assign)((0,jl.__assign)({},r),e),{date:Ap(Cp(r.date,t),Cp(e.date||{},t)),time:Ap(Cp(r.time,t),Cp(e.time||{},t))})}var Dp=function(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,p=e.onError,d=e.timeZone,h=e.defaultRichTextElements;void 0===r&&(r={id:""});var f=r.id,m=r.defaultMessage;!function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}(!!f,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(f),v=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(v)&&1===v.length&&v[0].type===Rl.literal)return v[0].value;if(!n&&v&&"string"==typeof v&&!h)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=(0,jl.__assign)((0,jl.__assign)({},h),n||{}),a=kp(a,d),l=kp(l,d),!v){if(!1===u&&""===v)return v;if((!m||o&&o.toLowerCase()!==c.toLowerCase())&&p(new up(r,o)),m)try{return t.getMessageFormat(m,c,l,i).format(n)}catch(e){return p(new lp('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),o,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(v,o,a,(0,jl.__assign)({formatters:t},i||{})).format(n)}catch(e){p(new lp('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),o,r,e))}if(m)try{return t.getMessageFormat(m,c,l,i).format(n)}catch(e){p(new lp('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),o,r,e))}return"string"==typeof v?v:"string"==typeof m?m:g},Np=["type","style"],Rp=Date.now();function Mp(e,t,r,n){void 0===n&&(n={});var i=jp(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:0===i.length?"":i}function jp(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new $u('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Vu.MISSING_INTL_API));var a=pp(n,Np);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(Rp,"_").concat(e,"_").concat(Rp)}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(c).map((function(e){return"literal"===e.type?e:(0,jl.__assign)((0,jl.__assign)({},e),{value:s[e.value]||e.value})}))}catch(e){o(new ip(rp.FORMAT_ERROR,"Error formatting list.",e))}return r}var Zp=["style","type","fallback","languageDisplay"];function Fp(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new $u('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Vu.MISSING_INTL_API));var a=pp(n,Zp);try{return t(i,a).of(r)}catch(e){o(new ip(rp.FORMAT_ERROR,"Error formatting display name.",e))}}function Bp(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function Gp(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=ju((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,jl.__spreadArray)([void 0],t,!1)))}),{cache:hp(e.dateTime),strategy:Yu.variadic}),o=ju((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,jl.__spreadArray)([void 0],t,!1)))}),{cache:hp(e.number),strategy:Yu.variadic}),a=ju((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,jl.__spreadArray)([void 0],t,!1)))}),{cache:hp(e.pluralRules),strategy:Yu.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:ju((function(e,t,r,n){return new np(e,t,r,(0,jl.__assign)({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:hp(e.message),strategy:Yu.variadic}),getRelativeTimeFormat:ju((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,(0,jl.__spreadArray)([void 0],e,!1)))}),{cache:hp(e.relativeTime),strategy:Yu.variadic}),getPluralRules:a,getListFormat:ju((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,(0,jl.__spreadArray)([void 0],e,!1)))}),{cache:hp(e.list),strategy:Yu.variadic}),getDisplayNames:ju((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,jl.__spreadArray)([void 0],e,!1)))}),{cache:hp(e.displayNames),strategy:Yu.variadic})}}(t),n=(0,jl.__assign)((0,jl.__assign)({},dp),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new sp('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new sp('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new ap('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Bp(n),(0,jl.__assign)((0,jl.__assign)({},n),{formatters:r,formatNumber:vp.bind(null,n,r.getNumberFormat),formatNumberToParts:yp.bind(null,n,r.getNumberFormat),formatRelativeTime:_p.bind(null,n,r.getRelativeTimeFormat),formatDate:Lp.bind(null,n,r.getDateTimeFormat),formatDateToParts:Op.bind(null,n,r.getDateTimeFormat),formatTime:xp.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Sp.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Tp.bind(null,n,r.getDateTimeFormat),formatPlural:Pp.bind(null,n,r.getPluralRules),formatMessage:Dp.bind(null,n,r),$t:Dp.bind(null,n,r),formatList:Mp.bind(null,n,r.getListFormat),formatListToParts:jp.bind(null,n,r.getListFormat),formatDisplayName:Fp.bind(null,n,r.getDisplayNames)})}function Up(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Up=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function zp(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Vp="en-US",Hp={"cs-CZ":()=>r.e(4027).then(r.t.bind(r,74027,19)),"da-DK":()=>r.e(3142).then(r.t.bind(r,93142,19)),"de-DE":()=>r.e(6838).then(r.t.bind(r,76838,19)),"en-US":()=>r.e(1982).then(r.t.bind(r,61982,19)),"es-ES":()=>r.e(327).then(r.t.bind(r,50327,19)),"fi-FI":()=>r.e(8893).then(r.t.bind(r,98893,19)),"fr-CA":()=>r.e(2300).then(r.t.bind(r,62300,19)),"fr-FR":()=>r.e(3898).then(r.t.bind(r,73898,19)),"fr-MA":()=>r.e(9154).then(r.t.bind(r,59154,19)),"hu-HU":()=>r.e(8983).then(r.t.bind(r,98983,19)),"it-IT":()=>r.e(1281).then(r.t.bind(r,31281,19)),"ja-JP":()=>r.e(2742).then(r.t.bind(r,42742,19)),"ko-KR":()=>r.e(3121).then(r.t.bind(r,53121,19)),"nb-NO":()=>r.e(5752).then(r.t.bind(r,15752,19)),"nl-NL":()=>r.e(7371).then(r.t.bind(r,37371,19)),"pl-PL":()=>r.e(5318).then(r.t.bind(r,65318,19)),"pt-BR":()=>r.e(9259).then(r.t.bind(r,89259,19)),"ru-RU":()=>r.e(3449).then(r.t.bind(r,73449,19)),"sv-SE":()=>r.e(3856).then(r.t.bind(r,93856,19)),"tr-TR":()=>r.e(5673).then(r.t.bind(r,55673,19)),"uk-UA":()=>r.e(5636).then(r.t.bind(r,25636,19)),"zh-CN":()=>r.e(4864).then(r.t.bind(r,74864,19)),"zh-TW":()=>r.e(2270).then(r.t.bind(r,62270,19)),"zu-ZU":()=>r.e(1616).then(r.t.bind(r,71616,19)),"zz-ZZ":()=>r.e(7982).then(r.t.bind(r,17982,19))};class Yp{constructor(e="en-US"){this.setLocale(e)}get locale(){return this._locale}setLocale(e){var t,r=this;return(t=Up().mark((function t(){var n,i,o;return Up().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Hp[e]||(le.log(`[INTL] ${e} is not a supported language. Falling back to en-US`),e=Vp),t.next=3,r._loadLocaleData(e);case 3:return n=t.sent,i=n.messages,o=n.locale,r._intl=Gp({locale:e,messages:i,defaultLocale:Vp},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}),r._locale=o,t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){zp(o,n,i,a,s,"next",e)}function s(e){zp(o,n,i,a,s,"throw",e)}a(void 0)}))})()}_loadLocaleData(e){return Hp[e]().then((t=>({messages:t,locale:e}))).catch((e=>this._loadLocaleData(Vp)))}formatMessage(e,t){if(this._intl)return this._intl.formatMessage({id:e},t);le.log("[INTL] no localization data loaded")}}function Wp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wp=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function $p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Kp(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){$p(o,n,i,a,s,"next",e)}function s(e){$p(o,n,i,a,s,"throw",e)}a(void 0)}))}}var qp=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class Xp extends ie{constructor(e){super(),this._driver=e,this._fontsCache={}}getFontData(e){var t=this;return Kp(Wp().mark((function r(){var n,i;return Wp().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._fontsCache[e])){r.next=3;break}return r.abrupt("return",n);case 3:return r.next=5,t._driver.getFontData(e);case 5:return i=r.sent,t._updateFontData(e,i),r.abrupt("return",i);case 8:case"end":return r.stop()}}),r)})))()}_updateFontData(e,t){this._fontsCache[e]=t}isSystemFontAvailable(e,t){var r=this;return Kp(Wp().mark((function n(){return Wp().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._driver.isSystemFontAvailable(e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}_clearCache(){this._fontsCache={},this.emit("change")}}qp([ke],Xp.prototype,"getFontData",null),qp([ke],Xp.prototype,"isSystemFontAvailable",null);var Jp=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class Qp extends ie{constructor(){super(...arguments),this._map=new Map}set(e,t){this._map.set(e,t),this.emit("change")}delete(e){this._map.delete(e),this.emit("change")}clear(){this._map.clear(),this.emit("change")}entries(){return this._map.entries()}get(e){return this._map.get(e)}}function ed(e){let t="private";return e.isPublic?t="follow":e.collaboration&&(t="outgoing"===e.collaboration.state?"owner":e.isWritable?"edit":"view"),t=e.toolkitId?"presets":t,{content:{author:t},event:{context_guid:e.id},ccl:{library_storage_type:ss(e)?"business":"user"},"custom.library":{filter:cs(e)?"brands":"libraries"}}}function td(e){var t;const r=ed(e.library),i=e.getPrimaryRepresentation(),o=i&&i.getValue("adobestock","trackingdata");r.ccl=r.ccl||{},o&&(r.ccl.tracking_data=JSON.stringify(o));r.ccl.asset_linked_data=JSON.stringify({isLinked:!1}),r.content=r.content||{author:null},r.content.id=e.id;const a=e.getValue("capture","data");return r.content.action=a?null===(t=a.app)||void 0===t?void 0:t.split("-")[0]:e.createdContext&&e.createdContext.app,r.content.mimetype=e.type,r.content.type=rd(e),r.content.size=e.representations.reduce(((e,t)=>e+(t.contentLength||0)),0),r.content.extension=i?function(e){var t;return null===(t=n[e.toLowerCase()])||void 0===t?void 0:t.badge}(i.type):void 0,e.isStockAsset&&(r.content.status=e.isLicensed?"licensed":"unlicensed"),ze(r,function(e){const t=e.roles.find((e=>"brand"===e.type)),r={"custom.library":{asset_role:(null==t?void 0:t.usage)||"none",asset_priority:(null==t?void 0:t.priority)||"none"}};let n;switch(rd(e)){case"color":n=function(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("color","data");if((null==r?void 0:r.value)&&"RGB"===(null==r?void 0:r.mode)){const e=r.value,t=e.r,n=e.g,i=e.b;return{"custom.content":{name:wt(t,n,i)}}}return{}}(e);break;case"font":n=function(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("font","data");if(r)return{"custom.content":{name:r.postScriptName,status:r.isPremium?"premium":"free"}};return{}}(e);break;case"image":n=function(e){return{"custom.content":{name:e.name||""}}}(e);break;default:n={}}return Object.assign(Object.assign({},r),n)}(e))}function rd(e){const t=e.type.match(v);return t&&t.length>=2?t[1]:"unsupported"}function nd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nd=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function id(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function od(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){id(o,n,i,a,s,"next",e)}function s(e){id(o,n,i,a,s,"throw",e)}a(void 0)}))}}Jp([ke("change")],Qp.prototype,"entries",null),Jp([ke("change")],Qp.prototype,"get",null);const ad={ALLOW_NO_TOKEN:!1,ANALYTICS_DEBOUNCE:15e3,ANALYTICS_MAX_QUEUED_EVENTS:50,ANALYTICS_PROJECT:"cclib-panel",ANALYTICS_USER_AGENT:"undefined"==typeof window?"cc-libraries-js/1.0":null===window||void 0===window?void 0:window.navigator.userAgent,ENVIRONMENT:"prod"};class sd{constructor(e){this.baseProperties={},this.apiRoot=e}get isInitialized(){return!!this.ingest}initialize(){var e=this;return od(nd().mark((function t(){var n,i,o,a,s,c,l,u;return nd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.apiKey&&e.product&&e.productLocation){t.next=2;break}throw new Error("apiKey, product, and productLocation must be set before using analytics");case 2:return n={getAccessToken:t=>t(void 0,e.apiRoot.driver.token)},t.next=5,r.e(6823).then(r.t.bind(r,75895,23));case 5:i=t.sent,o=i.default,a=e.product,(s=e.product.split("/")).length>=2&&(c=s[0],l=y[c]||c,u=s[1],a=`${l}/${u}`),e.ingest=new o(n,Object.assign({},ad,{ENVIRONMENT:"staging"===e.apiRoot.driver.environment?"stage":"prod",ANALYTICS_API_KEY:e.apiKey,ANALYTICS_X_PRODUCT:a,ANALYTICS_X_PRODUCT_LOCATIONS:e.productLocation})),e.setEnabled(e.apiRoot.getOption("ANALYTICS_ENABLED"));case 12:case"end":return t.stop()}}),t)})))()}setEnabled(e){var t;null===(t=this.ingest)||void 0===t||t.enable(e)}addBaseProperties(e){Object.assign(this.baseProperties,e)}setBaseProperties(e){this.baseProperties=e}reportUseElement(e,t){var r=this;return od(nd().mark((function n(){var i,o,a;return nd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ze(r.basePayload(),{"event.workflow":"Library:Use Assets","event.subcategory":"Element","event.type":"click","event.subtype":"use"},td(e),r.baseProperties,t||{}),a=Ve(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportCreateBrandFromDocument(e,t){var r=this;return od(nd().mark((function n(){var i,o,a;return nd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ze(r.basePayload(),{"event.workflow":"Library:Create Library","event.subcategory":"New Library","event.type":"click","event.subtype":"create-from-document","event.pagename":"Root View"},ed(e),r.baseProperties,t||{}),a=Ve(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportPublishBrand(e,t){var r=this;return od(nd().mark((function n(){var i,o,a;return nd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ze(r.basePayload(),{"event.workflow":"Library:Publish","event.subcategory":"Brand","event.type":"click","event.subtype":"publish"},ed(e),r.baseProperties,t||{}),a=Ve(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportUnpublishBrand(e,t){var r=this;return od(nd().mark((function n(){var i,o,a;return nd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ze(r.basePayload(),{"event.workflow":"Library:Unpublish","event.subcategory":"Brand","event.type":"click","event.subtype":"unpublish"},ed(e),r.baseProperties,t||{}),a=Ve(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportEditElement(e,t){var r=this;return od(nd().mark((function n(){var i,o,a;return nd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ze(r.basePayload(),{"event.workflow":"Library:Element Operations","event.subcategory":"Element","event.type":"click"},td(e),r.baseProperties,t||{}),a=Ve(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportEditLibrary(e,t){var r=this;return od(nd().mark((function n(){var i,o,a;return nd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ze(r.basePayload(),{"event.workflow":"Library:Library Operations","event.subcategory":"Metadata","event.type":"click"},ed(e),r.baseProperties,t||{}),a=Ve(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}basePayload(){var e,t,r,n,i,o,a,s,c,l,u,p,d,h,f,m;const g="error"===this.apiRoot.syncState.status&&("NETWORK_ERROR"===(null===(e=this.apiRoot.syncState.primaryError)||void 0===e?void 0:e.code)||"LOGGED_OUT"===(null===(t=this.apiRoot.syncState.primaryError)||void 0===t?void 0:t.code)),v=this.getOSName(),y=this.getOSVersion(),b=null===(r=this.product)||void 0===r?void 0:r.split("/"),_=null!==(n=null==b?void 0:b[0])&&void 0!==n?n:"Unknown",E=null!==(i=null==b?void 0:b.length)&&void 0!==i&&i?null==b?void 0:b[1]:"Unknown",w=null===(o=this.productLocation)||void 0===o?void 0:o.split("/");return{"consumer.name":_,"consumer.platform":v,"consumer.os_version":y,"consumer.version":E,"env.com.name":null!==(a=null==w?void 0:w[0])&&void 0!==a?a:"Unknown","env.com.version":null!==(s=null==w?void 0:w.length)&&void 0!==s&&s?null==w?void 0:w[1]:"Unknown","event.category":this.platform,"event.context_guid":"Unknown","event.guid":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),"event.language":this.apiRoot.getLocale(),"event.offline":g,"event.session_guid":this.sessionGuid,"event.user_guid":null!==(u=null===(l=null===(c=this.apiRoot.driver.config)||void 0===c?void 0:c.user)||void 0===l?void 0:l.id)&&void 0!==u?u:"Unknown","event.org_guid":null!==(d=null===(p=null===window||void 0===window?void 0:window.top)||void 0===p?void 0:p.corpId)&&void 0!==d?d:"Unknown","source.client_id":null!==(m=null===(f=null===(h=this.apiRoot.driver.config)||void 0===h?void 0:h.user)||void 0===f?void 0:f.clientId)&&void 0!==m?m:"Unknown","source.name":_,"source.os_version":y,"source.platform":v,"source.version":E,"user.service_code":"creativecloud","user.service_level":this.userAccountStatus}}getOSName(){const e=this.apiRoot.getOption("DEVICE_DESCRIPTION"),t=e&&e.split("-")[0],r=window.navigator.platform;let n="Unknown Operation System";return"Win32"===r||"Windows"===r?n="Windows":"MacIntel"!==r&&"Macintosh"!==r||(n="Mac OS X"),t&&{win:"Windows",winarm:"Win-ARM:64",mac:"Mac OS X",macarm:"Mac-ARM:64"}[t]||n}getOSVersion(){const e=window.navigator.platform,t=window.navigator.userAgent;if("Win32"===e||"Windows"===e){let e="";return t.includes("Windows")&&(t.includes("Windows NT 6.1")?e="Windows 7":t.includes("Windows NT 6.2")?e="Windows 8":t.includes("Windows NT 6.3")?e="Windows 8.1":t.includes("Windows NT 10")&&(e="Windows 10"),e+=t.includes("WOW64")?" 64-bit":" 32-bit"),e}if("MacIntel"===e||"Macintosh"===e){const e=/[Apple Silicon | Mac OS X ]([0-9_.]+)/.exec(t);return e&&e[1]?e[1].replace(/_/g,"."):""}return""}}function cd(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||ud(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 ld(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ud(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function ud(e,t){if(e){if("string"==typeof e)return pd(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)?pd(e,t):void 0}}function pd(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 dd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */dd=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function hd(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function fd(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){hd(o,n,i,a,s,"next",e)}function s(e){hd(o,n,i,a,s,"throw",e)}a(void 0)}))}}var md=function(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},gd=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}},vd=function(e){return this instanceof vd?(this.v=e,this):new vd(e)},yd=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof vd?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}};const bd={enableBrandLifecycleManagement:!1,includeApprovedBrandsInLibraries:!1,elementTypes:["elements"],readOnly:!1,skipConnectingOnInit:!1};class _d extends ie{constructor(e,t={}){var n;super(),this._missingResolutionTargetsMap=new Qp,this._resolutionProgressMap=new Map,this._teamsCache=new ft(this,cl),this._handleDriverConnect=e=>e instanceof Sa?this._handleCloudDriverConnect(e):e instanceof Cc?this._handleLocalDriverConnect(e):void 0,this._handleDriverDisconnect=e=>{if(e instanceof Cc)return this._handleLocalDriverDisconnect(e)},this.translate=(e,t)=>this._intl.formatMessage(e,t),r.g.CCLIBS=null!==(n=r.g.CCLIBS)&&void 0!==n?n:this,this._options=Object.assign(Object.assign({},bd),t),this._driver=e,this._options.mobXCreateAtom&&this._options.mobXTransaction&&Ie.register(this._options.mobXCreateAtom,this._options.mobXTransaction),e instanceof Sa?this._cloudDriver=e:this._options.cloudDriver instanceof Sa&&(this._cloudDriver=this._options.cloudDriver),e instanceof Cc&&(this._fontManager=new Xp(e));const i=new sd(this);i.apiKey=this._options.ingestApiKey,i.product=this._options.product,i.productLocation=this._options.productLocation,i.platform=this._options.platform,i.sessionGuid=this._options.sessionGuid,i.userAccountStatus=this._options.userAccountStatus,this.utils=Object.assign(Object.assign({},_d.utils),{copyFile:this.copyFile.bind(this),getInstalledVersion:this.getInstalledVersion.bind(this),getFileSize:this.getFileSize.bind(this),getRenditionGrid:this.getRenditionGrid.bind(this),extractElementId:Ht,extractGroupId:Wt,metrics:i}),this._teamsCache.on("change",(()=>this.emit("teamChange"))),this._missingResolutionTargetsMap.on("change",(()=>this.emit("resolutionStatusChange"))),this._driver.on("connect",this._handleDriverConnect),this._driver.on("disconnect",this._handleDriverDisconnect),this._bindDriverEvents(),this._intl=new Yp(this._options.locale),this._libraryCache=new Dl(this,this._driver,{readOnly:this._options.readOnly,skipConnectingOnInit:this._options.skipConnectingOnInit,fileSystemCache:this._options.fileSystemCache,enableBrandLifecycleManagement:this._options.enableBrandLifecycleManagement,includeApprovedBrandsInLibraries:this._options.includeApprovedBrandsInLibraries}),this._bindLibraryCacheEvents(),le.on("messageLogged",(e=>this.emit("messageLogged",e)))}changeDriver(e){var t=this;return fd(dd().mark((function r(){var n,i;return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.changeDriver(e);case 2:return t._driver=e,t._driver instanceof Cc&&(t._fontManager=new Xp(t._driver)),t._driver.on("connect",t._handleDriverConnect),t._driver.on("disconnect",t._handleDriverDisconnect),t._bindDriverEvents(),i=new Promise((e=>n=e)),t._driver.once("connect",(()=>n())),r.abrupt("return",i);case 10:case"end":return r.stop()}}),r)})))()}_handleCloudDriverConnect(e){if(this._transientLibraryCache=new ft(this,ys,this._cloudDriver),this.driver instanceof Dc||this._options.disableLocalFallthrough)return this.emit("change"),void this.emit("driverConnect");e.getLocalDriver().init({retryCount:3,skipConnectingOnInit:this._options.skipConnectingOnInit},(e=>{this._libraryCache.pause(!0),this._libraryCache.DANGEROUS.removeAllListeners(),this._driver.DANGEROUS.removeAllListeners(),this._libraryCache=new Dl(this,e,{readOnly:this._options.readOnly,skipConnectingOnInit:this._options.skipConnectingOnInit}),this._bindLibraryCacheEvents(),this._driver=e,this._bindDriverEvents(),this.emit("change")}))}_handleLocalDriverConnect(e){var t;e.updateRenditionCacheConfiguration(this.options.renditionSizes,this.options.fullRenditionConfig);const r=null!==(t=this.cloudDriver)&&void 0!==t?t:e.getCloudDriver();null==r||r.init({readOnly:!0},(e=>{this._cloudDriver=e,this._transientLibraryCache=new ft(this,ys,this._cloudDriver)})),this.emit("driverConnect")}_handleLocalDriverDisconnect(e){this.emit("driverDisconnect")}_bindDriverEvents(){this._driver.on("configChange",(()=>this.emit("configChange"))),this._driver.on("connecting",(()=>this.emit("connecting"))),this._driver.on("failedConnection",(()=>this.emit("failedConnection")))}_bindLibraryCacheEvents(){this._libraryCache.on("connect",(()=>this.emit("connect"))),this._libraryCache.on("loaded",(()=>this.emit("loaded"))),this._libraryCache.on("hydrate",(()=>this.emit("restore"))),this._libraryCache.on("sync",(()=>this.emit("sync"))),this._libraryCache.on("report",((...e)=>this.emit("report",...e))),this._libraryCache.on("change",this._libraryCacheChangeHandler.bind(this)),this._libraryCache.on("modelChange",this._libraryCacheChangeHandler.bind(this)),this._libraryCache.on("fontDataChange",(()=>{var e;return null===(e=this.fontManager)||void 0===e?void 0:e._clearCache()}))}_libraryCacheChangeHandler(){this.emit("change",{libraries:this._libraryCache.changes})}makeObservable(e,t){return Ie.register(e,t)}loadLibraryByAssetId(e){var t=this;return fd(dd().mark((function r(){var n,i,o,a,s,c,l,u,p;return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._transientLibraryCache){r.next=2;break}throw new Error("Transient cache is not ready!");case 2:if(!t.cloudDriver){r.next=30;break}r.prev=3,c=!0,l=gd(t.cloudDriver.getLibraryByAssetId(e,{elementParams:{types:["elements"],loadProgressively:!0}}));case 5:return r.next=7,l.next();case 7:if(u=r.sent,n=u.done){r.next=15;break}a=u.value,c=!1;try{p=a,s?s.update(p):s=(s=p.id?t._transientLibraryCache.get(p.id):void 0)||t._transientLibraryCache.add(Object.assign(Object.assign({},p),{isTransient:!0}))}finally{c=!0}case 13:r.next=5;break;case 15:r.next=20;break;case 17:r.prev=17,r.t0=r.catch(3),i={error:r.t0};case 20:if(r.prev=20,r.prev=21,c||n||!(o=l.return)){r.next=25;break}return r.next=25,o.call(l);case 25:if(r.prev=25,!i){r.next=28;break}throw i.error;case 28:return r.finish(25);case 29:return r.finish(20);case 30:return r.abrupt("return",s);case 31:case"end":return r.stop()}}),r,null,[[3,17,20,30],[21,,25,29]])})))()}get apiRoot(){return this}get apiVersion(){return 2}get options(){return this._options}updateOptions(e){this._options=e}get driver(){return this._driver}get cloudDriver(){return this._cloudDriver}get libraries(){return this._libraryCache.initialLibrariesLoad(),this._libraryCache.all().filter((e=>!e.isDeletedLocally&&ls(e.data,this._options.enableBrandLifecycleManagement)))}getLibraries(e){var t=this;return fd(dd().mark((function r(){return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._libraryCache.loadList(e));case 1:case"end":return r.stop()}}),r)})))()}getLibrariesPage(e,t){var r=this;return fd(dd().mark((function n(){return dd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._libraryCache.loadPage(e,t));case 1:case"end":return n.stop()}}),n)})))()}get connected(){return Boolean(this.driver.isConnected)}get areLibrariesLoaded(){var e;return Boolean(null===(e=this._libraryCache)||void 0===e?void 0:e.isLoaded)}get areLibrariesLoading(){var e;return null===(e=this._libraryCache)||void 0===e?void 0:e.isLoading}get userQuota(){var e;return null===(e=this.driver.config.user)||void 0===e?void 0:e.quota}get processInfo(){return Object.assign(Object.assign({},this.driver.config.processInfo),{environment:this.driver.config.environment})}get storageUsed(){return this.libraries.reduce(((e,t)=>"private"===t.ownership?e+t.storageUsed:e),0)}_refreshTeams(){var e=this;return fd(dd().mark((function t(){var r,n,i,o;return dd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=null===(r=e._options.featureFlags)||void 0===r?void 0:r.enableProjects,i=(n?e._driver.getProjects:e._driver.getTeams).bind(e._driver),t.next=5,i();case 5:o=t.sent,e._teamsCache.replace(o),t.next=13;break;case 9:if(t.prev=9,t.t0=t.catch(0),t.t0.name===S){t.next=13;break}throw t.t0;case 13:return t.abrupt("return",e._teamsCache.all());case 14:case"end":return t.stop()}}),t,null,[[0,9]])})))()}refreshTeams(){var e=this;return fd(dd().mark((function t(){return dd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"staging"===e.driver.config.environment&&le.warn("CCLibraries.refreshTeams is deprecated. Use CCLibraries.refreshProjects instead."),t.abrupt("return",e._refreshTeams());case 2:case"end":return t.stop()}}),t)})))()}refreshProjects(){var e=this;return fd(dd().mark((function t(){return dd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._refreshTeams());case 1:case"end":return t.stop()}}),t)})))()}get teams(){return"staging"===this.driver.config.environment&&le.warn("CCLibraries.teams is deprecated. Use CCLibraries.projects instead."),this._teamsCache.all()}get projects(){return this._teamsCache.all()}get userId(){var e,t,r;return null===(r=null===(t=null===(e=this._driver)||void 0===e?void 0:e.config)||void 0===t?void 0:t.user)||void 0===r?void 0:r.id}createLibrary(e,t={}){var r;const n=this._libraryCache.add(N({id:k(),name:e,documentExtractionData:t.documentExtractionData,roles:t.roles,team:null===(r=t.team)||void 0===r?void 0:r.data,bookmark:t.team?{id:k()}:void 0}));return n.dispatch({name:"createLibrary",type:"no-op",data:n.data,flags:{lockNewLibraries:!0,permissionInheritance:t.permissionInheritance}}),n}removeLibrary(e){e.dispatch({name:"removeLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}permanentlyDeleteLibrary(e){e.dispatch({name:"permanentlyDeleteLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}leaveLibrary(e){e.dispatch({name:"leaveLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}followLibrary(e,t){return this._driver.followLibrary(e,t)}unfollowLibrary(e){e.dispatch({name:"unfollowLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}importLibrary(e,t=(()=>{})){return this._driver.importLibrary(e,((e,r)=>{if(e)return t(e);this._libraryCache.upsert(r);const n=this._libraryCache.get(null==r?void 0:r.id);t(void 0,n)}))}exportLibrary(e,t,r=(()=>{})){return this._driver.exportLibrary(e,t,r)}getLibraryById(e){return this._libraryCache.get(e)}getLibraryByAssetId(e){return this._libraryCache.getByIndex("assetId",e)}copyLibrary(e,t={}){var r,n,i;const o=this._libraryCache.add(N({id:k(),name:null!==(r=t.newName)&&void 0!==r?r:e.name,roles:e.roles,team:null===(n=t.team)||void 0===n?void 0:n.data,bookmark:t.team?{id:k()}:void 0}));return o.dispatch({name:"copyLibrary",type:"no-op",data:{name:t.newName,team:null===(i=t.team)||void 0===i?void 0:i.data},flags:{lockNewLibraries:!0,permissionInheritance:t.permissionInheritance,source:e,includeAppMetadata:t.includeAppMetadata}}),o}moveLibrary(e,t){e.dispatch({name:"moveLibrary",type:"update",data:{team:{id:t.id,name:t.name},bookmark:{id:k()},ownership:"incoming",ownerType:"org",owner:t.owner.id}})}getSearchResults(e,t,r){this.abortSearch();const n=(t=t||{})&&t.library_id,i=function(i){return yd(this,arguments,dd().mark((function o(){var a,s,c,l,u,p,d,h,f,m,g,v,y,b,_;return dd().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:u=new Map,p=[],o.prev=2,d=!0,h=gd(this._driver.getSearchResults(e,t,r,i));case 4:return o.next=6,vd(h.next());case 6:if(f=o.sent,a=f.done){o.next=42;break}return l=f.value,d=!1,o.prev=11,m=l,o.next=15,vd(m.forEach((e=>{const t=e.libraryId||n;let r=this.getLibraryById(t);if(r&&r.areElementsLoaded)return e;r||(r=this._libraryCache.add(N({id:t,name:t,areElementsLoaded:!1,isLibraryLoaded:!1})),p.push(t)),p.includes(t)||(r.abortLoadElements(),r.clearElements(!1),p.push(t));const i=u.get(r)||[];return i.push(e),u.set(r,i),e})));case 15:g=ld(u),o.prev=16,g.s();case 18:if((v=g.n()).done){o.next=24;break}return y=cd(v.value,2),b=y[0],_=y[1],o.next=22,vd(b.loadGivenElements(_,!1,!1));case 22:o.next=18;break;case 24:o.next=29;break;case 26:o.prev=26,o.t0=o.catch(16),g.e(o.t0);case 29:return o.prev=29,g.f(),o.finish(29);case 32:return u.clear(),o.next=35,vd(m.map((e=>{const t=e.libraryId||n;if(!t)return;const r=this.getLibraryById(t);return null==r?void 0:r.getElementById(e.id)})));case 35:return o.next=37,o.sent;case 37:return o.prev=37,d=!0,o.finish(37);case 40:o.next=4;break;case 42:o.next=47;break;case 44:o.prev=44,o.t1=o.catch(2),s={error:o.t1};case 47:if(o.prev=47,o.prev=48,d||a||!(c=h.return)){o.next=52;break}return o.next=52,vd(c.call(h));case 52:if(o.prev=52,!s){o.next=55;break}throw s.error;case 55:return o.finish(52);case 56:return o.finish(47);case 57:case"end":return o.stop()}}),o,this,[[2,44,47,57],[11,,37,40],[16,26,29,32],[48,,52,56]])})))}.bind(this);return this._searchLoader=new il(i),this._searchLoader}abortSearch(){this._searchLoader&&this._searchLoader.abort()}copyFile(e,t,r){return this.driver.copyFile(e,t,r)}getInstalledVersion(e){return this.driver.getInstalledVersion(e)}getFileSize(e){return this.driver.getFileSize(e)}getRenditionGrid(e){return this.driver.getRenditionGrid(e)}getOption(e){var t,r,n;const i=function(e){if(!function(e){return/^[A-Z_]*$/.test(e)}(e))throw new Q("String must be upper snake case to convert");return e.toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()))}(e);return(null===(n=null===(r=null===(t=this._driver)||void 0===t?void 0:t.config)||void 0===r?void 0:r.processInfo)||void 0===n?void 0:n[i])||b[e]}setLocalSetting(e,t){var r=this;return fd(dd().mark((function n(){return dd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.prev=0,JSON.stringify(t),n.next=7;break;case 4:throw n.prev=4,n.t0=n.catch(0),new te("INVALID_PARAMETER","Value must be serializable to JSON");case 7:return n.next=9,r._driver.setLocalSetting(e,t);case 9:case"end":return n.stop()}}),n,null,[[0,4]])})))()}getLocalSetting(e){return this._driver.getLocalSetting(e)}getLocale(){return this._intl.locale}setLocale(e){return this._intl.setLocale(e)}isConnected(){return Boolean(this.driver.isConnected)}get connectionState(){return this.driver.connectionState}reconnect(){var e;this.isConnected()||null===(e=this._driver)||void 0===e||e.connect()}disconnect(){var e;null===(e=this._driver)||void 0===e||e.disconnect()}isSyncingEnabled(){var e;return null===(e=this._driver.config.processInfo)||void 0===e?void 0:e.syncingEnabled}enableSyncing(){return this._libraryCache.resume(),this._setSyncEnabledConfig(!0)}disableSyncing(e=!1){var t=this;return fd(dd().mark((function r(){return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setSyncEnabledConfig(!1);case 2:t._libraryCache.pause(e);case 3:case"end":return r.stop()}}),r)})))()}_setSyncEnabledConfig(e){var t=this;return fd(dd().mark((function r(){return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.setLocalSetting("processInfo",Object.assign(Object.assign({},t._driver.config.processInfo),{syncingEnabled:e})));case 1:case"end":return r.stop()}}),r)})))()}_resolveLibrary(e){var t=this;return fd(dd().mark((function r(){var n,i;return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`library#${e}`,t._resolutionProgressMap.has(n)||(i=t.driver.getLibraryById(e).then((e=>(t._libraryCache.upsert(e),t._libraryCache.get(e.id)))).catch((e=>{if("NOT_FOUND"!==e.code)throw le.log(String(e)),e})).finally((()=>{t._resolutionProgressMap.delete(n)})),t._resolutionProgressMap.set(n,i)),r.abrupt("return",t._resolutionProgressMap.get(n));case 3:case"end":return r.stop()}}),r)})))()}_resolveElementById(e,t,r=!1){var n=this;return fd(dd().mark((function i(){var o,a;return dd().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e){i.next=2;break}return i.abrupt("return");case 2:if(!(o=e.getElementById(t,!r))){i.next=5;break}return i.abrupt("return",o);case 5:return i.prev=5,i.next=8,n.driver.getElement(e,t);case 8:return a=i.sent,e.loadGivenElements([a],!1,!0),i.abrupt("return",e.getElementById(t,!r));case 13:if(i.prev=13,i.t0=i.catch(5),"NOT_FOUND"===i.t0.code){i.next=18;break}throw le.log(String(i.t0)),i.t0;case 18:return i.abrupt("return");case 19:case"end":return i.stop()}}),i,null,[[5,13]])})))()}resolveLibraryById(e){var t=this;return fd(dd().mark((function r(){var n;return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.waitForHydrate();case 2:if(!(n=t.getLibraryById(e))){r.next=5;break}return r.abrupt("return",n);case 5:return r.abrupt("return",t._resolveLibrary(e));case 6:case"end":return r.stop()}}),r)})))()}resolveLibraryByAssetId(e){var t=this;return fd(dd().mark((function r(){var n;return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.waitForHydrate();case 2:if(!(n=t.getLibraryByAssetId(e))){r.next=5;break}return r.abrupt("return",n);case 5:return r.abrupt("return",t._resolveLibrary(e));case 6:case"end":return r.stop()}}),r)})))()}resolveLibraryWithoutCache(e){var t=this;return fd(dd().mark((function r(){return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._resolveLibrary(e));case 1:case"end":return r.stop()}}),r)})))()}resolveCachedLibraryReference(e){if(!e)return;const t=G(e).libraryId;if(!t)return;const r=this.getLibraryById(t);return r||this._getLinkReferenceStatus(e)}resolveLibraryReference(e){var t=this;return fd(dd().mark((function r(){var n,i,o;return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:if(n=G(e),i=n.libraryAssetId,o=n.libraryId,i||o){r.next=5;break}return r.abrupt("return");case 5:if(!t.isLocallyManaged){r.next=7;break}return r.abrupt("return",t.resolveLibraryById(o));case 7:return r.abrupt("return",t.resolveLibraryByAssetId(i));case 8:case"end":return r.stop()}}),r)})))()}resolveElementReference(e,t=!1){var r=this;return fd(dd().mark((function n(){var i,o,a;return dd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:if(i=G(e),o=i.elementId){n.next=5;break}return n.abrupt("return");case 5:return n.next=7,r.resolveElementReferenceToLibrary(e);case 7:if(a=n.sent){n.next=10;break}return n.abrupt("return");case 10:return n.abrupt("return",r._resolveElementById(a,o,t));case 11:case"end":return n.stop()}}),n)})))()}resolveCachedElementReference(e,t=!1){if(!e)return;const r=G(e),n=r.libraryId,i=r.elementId;if(!n||!i)return;const o=this.getLibraryById(n),a=null==o?void 0:o.getElementById(i,!t);return a||this._getLinkReferenceStatus(e,!0,t)}resolveElementReferenceToLibrary(e){var t=this;return fd(dd().mark((function r(){var n,i,o;return dd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:if(n=G(e),i=n.libraryAssetId,o=n.libraryId,i||o){r.next=5;break}return r.abrupt("return");case 5:if(!t.isLocallyManaged){r.next=7;break}return r.abrupt("return",t.resolveLibraryById(o));case 7:return r.abrupt("return",t.resolveLibraryByAssetId(i));case 8:case"end":return r.stop()}}),r)})))()}resolveCachedElementReferenceToLibrary(e){return this.resolveCachedLibraryReference(e)}_getLinkReferenceStatus(e,t=!1,r=!1){const n=t?"element":"library",i=r&&"removed",o=`${Z(e)}#${n}#${i}`;if(this._missingResolutionTargetsMap.get(o))return null;this._resolveElementReferenceAndNotify(e,o,t,r)}_resolveElementReferenceAndNotify(e,t,r=!1,n=!1){if(!this._resolutionProgressMap.has(t)){const i=(r?this.resolveElementReference.bind(this):this.resolveElementReferenceToLibrary.bind(this))(e,n).then((e=>{this._missingResolutionTargetsMap.set(t,!e)})).finally((()=>{this._resolutionProgressMap.delete(t)}));this._resolutionProgressMap.set(t,i)}return this._resolutionProgressMap.get(t)}openInCCD(e){return this._driver.openInCCD(e)}get canAccessLocalProcess(){return this._driver instanceof Cc}getAccessToken(e,t,r,n){return this._driver.fetchAccessToken(e,t,r,n)}getLibraryByToolkitId(e){let t=cd(this.libraries.filter((t=>t.toolkitId===e)).sort(((e,t)=>e.created-t.created)),1)[0];if(!t){const r=this.translate(m[e]);t=this.createLibrary(r),t.toolkitId=e}return t}getDefaultLibrary(){const e=this.getLocalSetting("defaultLibrary");if(e){const t=e.id,r=e.assetId,n=this.resolveCachedElementReferenceToLibrary({"repo:assetId":r,"stRef:documentID":t,"stRef:fromPart":""});if(void 0===n||(null==n?void 0:n.isWritable))return n}return this._options.disableFallbackDefaultLibrary?null:this.libraries.reduce(((e,t)=>{const r=!e||(e.created||0)>(t.created||0);return"private"===t.ownership&&r?t:e}),null)}setDefaultLibrary(e){if(e&&!e.isWritable)throw new te("INVALID_PARAMETER","Read-only libraries cannot be set as default");this.setLocalSetting("defaultLibrary",{id:null==e?void 0:e.id,assetId:null==e?void 0:e.assetId}),this._setDefaultLibraryMonitor()}_setDefaultLibraryMonitor(){var e;null===(e=this._disposeDefaultLibraryMonitor)||void 0===e||e.call(this);const t=this.getDefaultLibrary();if(t){const e=t.id,r=t.assetId,n=()=>{t.id===e&&t.assetId===r||this.setDefaultLibrary(t)};this._disposeDefaultLibraryMonitor=()=>t.off("change",n),t.on("change",n)}}get syncState(){return this._libraryCache.syncStatus}get retryTime(){}getTempDir(e){return this.driver.getTempDir(e)}get fontManager(){return this._fontManager}get isLocallyManaged(){return this.driver instanceof Cc}publishBrand(e){return this._driver.publishBrand(e)}unpublishBrand(e){return this._driver.unpublishBrand(e)}}_d.errors=te,_d.utils={getExtensions:a,getMimeTypes:s},md([yt],_d.prototype,"loadLibraryByAssetId",null),md([ke],_d.prototype,"options",null),md([ke],_d.prototype,"libraries",null),md([ke],_d.prototype,"getLibraries",null),md([ke],_d.prototype,"getLibrariesPage",null),md([ke("driverConnect","driverDisconnect","loaded")],_d.prototype,"connected",null),md([ke("loaded")],_d.prototype,"areLibrariesLoaded",null),md([ke("loaded","sync")],_d.prototype,"areLibrariesLoading",null),md([ke("configChange")],_d.prototype,"userQuota",null),md([bt,ke("configChange")],_d.prototype,"processInfo",null),md([ke],_d.prototype,"storageUsed",null),md([ke("teamChange")],_d.prototype,"refreshTeams",null),md([ke("teamChange")],_d.prototype,"refreshProjects",null),md([ke("teamChange")],_d.prototype,"teams",null),md([ke("teamChange")],_d.prototype,"projects",null),md([ke("configChange")],_d.prototype,"userId",null),md([ke("configChange")],_d.prototype,"getOption",null),md([ke("configChange")],_d.prototype,"getLocalSetting",null),md([ke("driverConnect","driverDisconnect","loaded")],_d.prototype,"isConnected",null),md([ke("driverConnect","driverDisconnect","loaded","connecting","failedConnection")],_d.prototype,"connectionState",null),md([ke("configChange")],_d.prototype,"isSyncingEnabled",null),md([ke("change","resolutionStatusChange")],_d.prototype,"resolveCachedLibraryReference",null),md([ke("change","resolutionStatusChange")],_d.prototype,"resolveCachedElementReference",null),md([ke("change","resolutionStatusChange")],_d.prototype,"resolveCachedElementReferenceToLibrary",null),md([ke("sync")],_d.prototype,"syncState",null),md([bt],_d.prototype,"fontManager",null),md([yt],_d.prototype,"publishBrand",null),md([yt],_d.prototype,"unpublishBrand",null);const Ed={mimeTypeToExtensions:a,extensionToMimeTypes:s,canComputeRenditionFromMimeType:c,getSNISettings:()=>({TLS_DISCOVERY_PORT_RANGE:p}),isPlaceholderId:D,parseLinkReference:B,serializeLinkReference:Z,estimateUploadTime:function(e){const t=e.reduce(((e,t)=>(t.size>f?e.asimov.push(t):e.standard.push(t),e)),{standard:[],asimov:[]}),r=t.standard,n=t.asimov;return Math.max(K(r),K(function(e){return e.map((e=>{const t=e.size,r=Math.floor(t/f),n=t%f,i=r+(n?1:0);return Array.from({length:i},((e,t)=>({size:t===i-1?n:f})))})).flat()}(n)))}}},24560:(e,t,r)=>{"use strict";function n(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||i(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){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}function o(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}const a=r(29449),s=r(33947),c=r(72704),l=r(48195),u=Symbol("encodeFragmentIdentifier");function p(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function d(e,t){return t.encode?t.strict?a(e):encodeURIComponent(e):e}function h(e,t){return t.decode?s(e):e}function f(e){return Array.isArray(e)?e.sort():"object"==typeof e?f(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function m(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){const t=(e=m(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function v(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function y(e,t){p((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&h(r,e).includes(e.arrayFormatSeparator);r=o?h(r,e):r;const a=i||o?r.split(e.arrayFormatSeparator).map((t=>h(t,e))):null===r?r:h(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(n[t]=r?h(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>h(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],o):n[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var a,s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(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 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}}}}(e.split("&"));try{for(s.s();!(a=s.n()).done;){const e=a.value;if(""===e)continue;let i=n(c(t.decode?e.replace(/\+/g," "):e,"="),2),s=i[0],l=i[1];l=void 0===l?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?l:h(l,t),r(h(s,t),l,o)}}catch(e){s.e(e)}finally{s.f()}for(var l=0,u=Object.keys(o);l<u.length;l++){const e=u[l],r=o[e];if("object"==typeof r&&null!==r)for(var d=0,m=Object.keys(r);d<m.length;d++){const e=m[d];r[e]=v(r[e],t)}else o[e]=v(r,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(((e,t)=>{const r=o[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=f(r):e[t]=r,e}),Object.create(null))}t.extract=g,t.parse=y,t.stringify=(e,t)=>{if(!e)return"";p((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[d(t,e),"[",i,"]"].join("")]:[...r,[d(t,e),"[",d(i,e),"]=",d(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[d(t,e),"[]"].join("")]:[...r,[d(t,e),"[]=",d(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[d(t,e),":list="].join("")]:[...r,[d(t,e),":list=",d(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[d(r,e),t,d(i,e)].join("")]:[[n,d(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,d(t,e)]:[...r,[d(t,e),"=",d(n,e)].join("")]}}(t),i={};for(var o=0,a=Object.keys(e);o<a.length;o++){const t=a[o];r(t)||(i[t]=e[t])}const s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map((r=>{const i=e[r];return void 0===i?"":null===i?d(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?d(r,t)+"[]":i.reduce(n(r),[]).join("&"):d(r,t)+"="+d(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const r=n(c(e,"#"),2),i=r[0],o=r[1];return Object.assign({url:i.split("?")[0]||"",query:y(g(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:h(o,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[u]:!0},r);const n=m(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let s=t.stringify(a,r);s&&(s=`?${s}`);let c=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(c=`#${r[u]?d(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${s}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[u]:!1},n);const i=t.parseUrl(e,n),o=i.url,a=i.query,s=i.fragmentIdentifier;return t.stringifyUrl({url:o,query:l(a,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{const i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},26077:e=>{function t(e,t){var r=e.toString();if(r.length<t){var n=[];n.length=t-r.length+1,r=n.join("0")+r}return r}function r(e,t){return Object.getOwnPropertyNames(t).forEach((function(n){if("object"==typeof t[n])"object"!=typeof e[n]&&(e[n]={}),r(e[n],t[n]);else{var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i)}})),e}function n(e,t,r){e.forEach((function(e){setTimeout((function(){e(t,r)}))}))}var i={prod:"cc-api-data.adobe.io",stage:"cc-api-data-stage.adobe.io",dev:"cc-api-data-dev.adobe.io"},o="/ingest",a={ENVIRONMENT:"prod",ALLOW_NO_TOKEN:!1,ANALYTICS_INGEST_TYPE:"dunamis",ANALYTICS_MAX_QUEUED_EVENTS:50,ANALYTICS_DEBOUNCE:1e4,ANALYTICS_API_KEY:null,ANALYTICS_X_PRODUCT:null,ANALYTICS_X_PRODUCT_LOCATION:void 0,ANALYTICS_PROJECT:null,ANALYTICS_USER_REGION:"UNKNOWN",TIMESTAMP_PROPERTY_NAME:"event.dts_end"},s=["ANALYTICS_API_KEY","ANALYTICS_X_PRODUCT","ANALYTICS_PROJECT"];function c(e,t){e=e||{},t=t||{};var n=e=>{throw this._log(e),new Error("ERROR: "+e)};this._queuedEvents=[],this._queuedCallbacks=[],this._lastSendTime=0,this._isEnabled=!1,this._dependencies=r({},e),e.getAccessToken&&"function"==typeof e.getAccessToken||n("Missing dependency: getAccessToken"),this._options={},Object.keys(a).forEach((e=>{this._options[e]=t[e]||a[e]})),s.forEach((e=>{this._options[e]||n("Missing option: "+e)})),"undefined"==typeof fetch&&n("Ingest requires fetch - if in a node environment, set 'global.fetch = require('node-fetch');'")}c.prototype._log=function(e){var t=this._dependencies.log;t&&t("Ingest :: "+e)},c.prototype._getAgent=function(e,t){this._dependencies.getAgent?this._dependencies.getAgent(e,t):t(null,{})},c.prototype._getAccessToken=function(e){this._dependencies.getAccessToken(e)},c.prototype._clearAccessToken=function(){this._dependencies.clearAccessToken&&this._dependencies.clearAccessToken()},c.prototype._getEnvironment=function(){return i[this._options.ENVIRONMENT]?this._options.ENVIRONMENT:"prod"},c.prototype._getAnalyticsHost=function(){return i[this._getEnvironment()]},c.prototype._formatTimestamp=function(e){var r=e.getFullYear(),n=t(e.getMonth()+1,2),i=t(e.getDate(),2),o=t(e.getHours(),2),a=t(e.getMinutes(),2),s=t(e.getSeconds(),2),c=t(e.getMilliseconds(),3),l=e.getTimezoneOffset(),u=l<0?"+":"-",p=Math.floor(Math.abs(l)/60),d=Math.abs(l)%60;return r+"-"+n+"-"+i+"T"+o+":"+a+":"+s+"."+c+(u+t(p,2)+t(d,2))},c.prototype._updateDebounce=function(e){var t=e&&(e["retry-after"]||e["Retry-After"]),r=0;if(t){var n;try{n=parseInt(t,10)}catch(e){}if(n)r=Math.max(0,n);else{var i=Date.parse(t);if(i){var o=(new Date).valueOf();r=Math.max(0,i-o)/1e3+Math.floor(10*Math.random())}}}this._options.ANALYTICS_DEBOUNCE=Math.max(1e3*r,this._options.ANALYTICS_DEBOUNCE)},c.prototype._queueEvent=function(e){this._queuedEvents.length>=this._options.ANALYTICS_MAX_QUEUED_EVENTS&&this._queuedEvents.shift(),this._queuedEvents.push(e)},c.prototype._requeueEvents=function(e){this._queuedEvents=e.concat(this._queuedEvents),this._queuedEvents=function(e,t){var r=e;if(e&&e.length>t&&t>0){var n=e.length-t;r=e.slice(n,e.length)}return r}(this._queuedEvents,this._options.ANALYTICS_MAX_QUEUED_EVENTS)},c.prototype._sendAnalytics=function(e,t,i){if(i=i||0,t&&this._queuedCallbacks.push(t),!this._isEnabled||0===this._queuedEvents.length){var a=this._queuedCallbacks;return this._queuedCallbacks=[],void(this._isEnabled?n(a,null,0):n(a,new Error("Analytics Disabled")))}var s=this._options.ANALYTICS_DEBOUNCE;if(e&&(s=0,clearTimeout(this._pendingSendAnalyticsTimeout),this._pendingSendAnalyticsTimeout=void 0),this._sendingEvents||this._pendingSendAnalyticsTimeout)this._log("Queued "+this._queuedEvents.length+" events to be sent.");else{var c=(new Date).valueOf();if(c-this._lastSendTime<s)this._pendingSendAnalyticsTimeout=setTimeout((()=>{this._pendingSendAnalyticsTimeout=void 0,this._sendAnalytics()}),s);else{this._lastSendTime=c,this._sendingEvents=this._queuedEvents,this._sendingCallbacks=this._queuedCallbacks,this._queuedEvents=[],this._queuedCallbacks=[];var l,u=(l=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)})()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l(),p="["+u+"] ",d={events:this._sendingEvents},h=e=>{var t=this._queuedEvents?this._queuedEvents.length:0;if(this._sendingEvents){var r=this._sendingEvents.length;e?(this._requeueEvents(this._sendingEvents),this._log(p+"Error sending "+r+" events: "+e)):this._log(p+"Success sending "+r+" events: "+JSON.stringify(this._sendingEvents)),delete this._sendingEvents;var i=this._sendingCallbacks;delete this._sendingCallbacks,e?n(i,e):n(i,null,r)}t>0&&this._sendAnalytics()},f=(e,t)=>{if(this._updateDebounce(t),401===e&&0===i)return this._clearAccessToken(),this._requeueEvents(this._sendingEvents),delete this._sendingEvents,this._queuedCallbacks=this._sendingCallbacks.concat(this._queuedCallbacks),delete this._sendingCallbacks,this._log(p+"Access token is expired. Retry one more time."),void this._sendAnalytics(!0,void 0,i+1);200===e?h():h(new Error("Unexpected Response: "+e))};this._getAccessToken(((e,t)=>{if(e&&!this._options.ALLOW_NO_TOKEN)return void h(e);if(!(t&&0!==t.length||this._options.ALLOW_NO_TOKEN))return void h(new Error("No access token"));var n="https://"+this._getAnalyticsHost();this._log(p+"Sending analytics to "+n+o);const i={"x-api-key":this._options.ANALYTICS_API_KEY,"X-Product":this._options.ANALYTICS_X_PRODUCT,"User-Agent":this._options.ANALYTICS_USER_AGENT||this._options.ANALYTICS_API_KEY,"X-Request-Id":u,"Content-Type":"application/json"};t&&(i.Authorization="Bearer "+t),this._options.ANALYTICS_X_PRODUCT_LOCATION&&(i["X-Product-Location"]=this._options.ANALYTICS_X_PRODUCT_LOCATION),this._getAgent(n,((e,t)=>{const a={method:"POST",headers:i,body:JSON.stringify(d)};t&&t.agent?a.agent=t&&t.agent:r(a,t||{}),fetch(n+o,a).then((e=>{f(e.status,e.headers)}),h)}))}))}}},c.prototype.enable=function(e){this._isEnabled=e,e&&this._sendAnalytics(!0)},c.prototype.postEvent=function(e,t,r){var i=r||{},o="event.dts_start",a="event.coll_dts",s=i.TIMESTAMP_PROPERTY_NAME||this._options.TIMESTAMP_PROPERTY_NAME,c=i.ANALYTICS_PROJECT||this._options.ANALYTICS_PROJECT,l=i.ANALYTICS_INGEST_TYPE||this._options.ANALYTICS_INGEST_TYPE;e[a]&&e[a]instanceof Date&&(e[a]=this._formatTimestamp(e[a])),e[o]&&e[o]instanceof Date&&(e[o]=this._formatTimestamp(e[o])),e[s]||(e[s]=this._formatTimestamp(new Date)),e[s]instanceof Date&&(e[s]=this._formatTimestamp(e[s]));var u={time:e[s],project:c,environment:this._getEnvironment(),ingesttype:l,data:e};e.simulate?(this._log("event sim:"+JSON.stringify(u)),t&&n([t],null,0)):(this._queueEvent(u),this._sendAnalytics(!1,t))},c.prototype.flush=function(e,t){this._sendAnalytics(e,t)},e.exports=c},52844:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(89526),i=r(30222),o=r(83377),a=r(28086),s=r(94859),c=r(82530);const l=["autoFocus","className","children","disabled","holdAffordance","quiet","variant","dropdownTrigger","icon","label","uxpUseNative","treatment","selected"],u=["autoFocus","children","className","disabled","holdAffordance","quiet","selected","variant","dropdownTrigger","icon","label","uxpUseNative"];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){h(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,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(f=v);var y=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(y,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function g(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))}}const y=(0,s.Z)(r(96195)).default,b=function(){var e=v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6526),r.e(5502)]).then(r.bind(r,61154));case 2:return t=e.sent,n=t.Button,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6526),r.e(1692),r.e(4400)]).then(r.bind(r,47));case 2:return t=e.sent,n=t.ActionButton,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(7538)]).then(r.bind(r,77538));case 2:return t=e.sent,n=t.Button,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2147)]).then(r.bind(r,72147));case 2:return t=e.sent,n=t.ActionButton,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();let L,x;function S(e){var t,r,i;if(e)return n.cloneElement(e,{key:e.key||`key-${(null===(t=e.type)||void 0===t||null===(r=t.render)||void 0===r?void 0:r.displayName)||(null===(i=e.type)||void 0===i?void 0:i.displayName)}`,slot:"icon"})}c.env.EXCLUDE_SWC||(c.env.INCLUDE_SWC_UXP?(x=new a.t(["sp-button"],E),L=new a.t(["sp-action-button"],w)):(x=new a.t(["sp-button"],b),L=new a.t(["sp-action-button"],_)));const O=(0,o.Z)({displayName:"Button",fallback:y,swcLoader:x,swcProps:e=>{const t=S(e.icon),r=e.autoFocus,n=e.className,o=e.children,a=e.disabled,s=e.holdAffordance,c=e.quiet,u=e.variant,p=(e.dropdownTrigger,e.icon,e.label),h=(e.uxpUseNative,e.treatment),m=(e.selected,f(e,l)),g=(0,i.cd)({autofocus:r,disabled:a,"hold-affordance":s,quiet:c}),v=function(e,t){switch(e){case"cta":return{variant:"accent",treatment:t||"fill"};case"primary":case"secondary":return{variant:e,treatment:t||"outline"};case"warning":return{variant:"negative",treatment:t||"outline"};case"overBackground":return{variant:"white",treatment:t||"outline"};case"action":case"tool":case"and":case"or":return{};case void 0:return{variant:"primary",treatment:"outline"};default:return{variant:e}}}(u,h),y=p||("string"==typeof o?o:null);return d(d(d(d({},m),g),v),{},{children:[t,y,"string"!=typeof o&&o],class:n})},tagName:"sp-button"});const T=(0,o.Z)({displayName:"ActionButton",fallback:y,swcLoader:L,swcProps:e=>{const t=e.autoFocus,r=e.children,n=e.className,o=e.disabled,a=e.holdAffordance,s=e.quiet,c=e.selected,l=e.variant,p=(e.dropdownTrigger,e.icon),h=e.label,m=(e.uxpUseNative,f(e,u)),g=S(p),v=function(e){return"tool"===e?{quiet:!0}:{}}(l),y=(0,i.cd)({autofocus:t,disabled:o,"hold-affordance":a,quiet:s,selected:c}),b=h||("string"==typeof r?r:null);return d(d(d(d({},m),y),v),{},{children:[g,b,"string"!=typeof r&&r],class:n})},tagName:"sp-action-button"}),I=(0,n.forwardRef)((function(e,t){return"action"===e.variant||"tool"===e.variant||"and"===e.variant||"or"===e.variant||"secondary"===e.variant&&e.quiet||"primary"===e.variant&&e.quiet?n.createElement(T,d(d({},e),{},{ref:t})):n.createElement(O,d(d({},e),{},{ref:t}))}))},65843:(e,t,r)=>{"use strict";r.d(t,{v2:()=>Q,R:()=>te,kS:()=>ne,FD:()=>re,sN:()=>ee});var n=r(89526),i=r(30222),o=r(73961),a=r(28086),s=r(83377),c=r(94859),l=r(82530);const u=["className","variant"];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){h(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,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(f=v);var y=h.prototype=p.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,s(y,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),L(r),u}},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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function g(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))}}const y=(0,c.Z)(r(4294)).default;let b;l.env.EXCLUDE_SWC||(b=new a.t(["sp-divider"],v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(4458)]).then(r.bind(r,69021));case 2:return t=e.sent,n=t.Divider,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const _={small:"s",medium:"m",large:"l"},E=(0,s.Z)({displayName:"Rule",fallback:y,swcLoader:b,swcProps:e=>{const t=e.className,r=e.variant,n=void 0===r?"large":r,i=f(e,u),o=_[n];return d(d({},i),{},{class:t,size:o})},tagName:"sp-divider"});var w=r(82530);const L=["children","className","contentStyle","enablePortaling","open","placement","title","trapFocus","isDialog","role"];function x(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(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 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 O(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 T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function C(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function A(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function k(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){A(o,n,i,a,s,"next",e)}function s(e){A(o,n,i,a,s,"throw",e)}a(void 0)}))}}const D=(0,c.Z)(r(50865)).default;let N;w.env.EXCLUDE_SWC||(N=new a.t(["sp-popover"],k(C().mark((function e(){var t,n;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6222),r.e(5529)]).then(r.bind(r,74955));case 2:return t=e.sent,n=t.Popover,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const R=({text:e})=>n.createElement("span",{style:{fontSize:"var(--spectrum-global-dimension-static-font-size-300)",fontWeight:"var(--spectrum-global-font-weight-bold)",color:"var(--spectrum-alias-heading-text-color)",paddingBottom:"var( --spectrum-global-dimension-size-175)"}},e),M=(0,s.Z)({displayName:"Popover",fallback:D,swcLoader:N,SWCWrapper:function(e){const t=e.children,r=e.className,a=e.contentStyle,s=e.enablePortaling,c=void 0!==s&&s,l=e.open,u=e.placement,p=e.title,d=(e.trapFocus,e.isDialog,e.role,P(e,L)),h=T({color:"var(--spectrum-alias-text-color)",fontSize:"var(--spectrum-global-dimension-static-font-size-100)",fontWeight:"var(--spectrum-global-font-weight-regular)"},a),f={marginBottom:"var( --spectrum-global-dimension-size-175)"},m=[];p&&""!=p&&m.push(n.createElement(R,{key:"heading",text:p}),n.createElement(E,{key:"rule",style:f,variant:"medium"})),m.push(n.createElement("div",{key:"popover-children",style:h},t));const g=(0,n.useRef)(null),v=x((0,n.useState)(!1),2)[1];(0,n.useEffect)((()=>{c&&v(!0)}),[c]);const y=c?n.createElement("div",{ref:g}):m,b=(0,i.Co)("sp-popover");return n.createElement(n.Fragment,null,n.createElement(b,T(T(T({},d),(0,i.cd)({open:l,tip:!!u})),{},{class:r,dialog:!0,placement:u}),y),c&&g.current&&(0,o.createPortal)(m,g.current))},tagName:"sp-popover"});var j=r(82530);const Z=["className","open","slot","style","onSelect","onClose"],F=["children","description","disabled","icon","selected","valueContent","className"],B=["className"],G=["children"],U=["label","children"],z=["className","children","onSelect"];function V(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?V(Object(r),!0).forEach((function(t){Y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function $(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)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===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function d(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.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,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"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,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,L.prototype={constructor:L,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(w),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):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),u},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),w(r),u}},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 i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function K(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function q(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){K(o,n,i,a,s,"next",e)}function s(e){K(o,n,i,a,s,"throw",e)}a(void 0)}))}}const X=(0,c.Z)(r(12252));let J;j.env.EXCLUDE_SWC||(J=new a.t(["sp-menu","sp-menu-group","sp-menu-item","sp-menu-divider"],q($().mark((function e(){var t,n,i,o,a;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(1478),r.e(201)]).then(r.bind(r,31517));case 2:return t=e.sent,n=t.Menu,i=t.MenuGroup,o=t.MenuItem,a=t.MenuDivider,e.abrupt("return",[n,i,o,a]);case 8:case"end":return e.stop()}}),e)})))));const Q=(0,s.Z)({displayName:"Menu",fallback:X.Menu,swcLoader:J,SWCWrapper:(0,n.forwardRef)((function(e,t){const r=(0,n.useRef)(null),o=t||r,a=e.className,s=e.open,c=e.slot,l=e.style,u=e.onSelect,p=e.onClose,d=W(e,Z);(0,n.useEffect)((()=>{const e=o.current,t=e=>{const t=e.target;null==u||u(t.value)};return e&&u&&e.addEventListener("change",t),()=>{e&&u&&e.removeEventListener("change",t)}}),[u,o]),(0,n.useEffect)((()=>{const e=o.current;return e&&p&&e.addEventListener("close",p),()=>{e&&p&&e.removeEventListener("close",p)}}),[p,o]);const h=(0,i.Co)("sp-menu");return n.createElement(M,{open:s,title:"",style:H({minWidth:"min-content",padding:0},l),slot:c},n.createElement(h,H({ref:o,class:a},d)))})),tagName:"sp-menu"});const ee=(0,s.Z)({displayName:"MenuItem",fallback:X.MenuItem,swcLoader:J,swcProps:function(e){const t=e.children,r=e.description,o=e.disabled,a=e.icon,s=e.selected,c=e.valueContent,l=e.className,u=W(e,F),p=function(e){if(e)return n.cloneElement(e,{slot:"icon"})}(a),d=function(e){if(e)return n.cloneElement(e,{slot:"value"})}(c);return H(H(H({class:l},u),(0,i.cd)({disabled:o,selected:s})),{},{children:n.createElement(n.Fragment,null,p,t,r&&n.createElement("span",{slot:"description"},r),d)})},tagName:"sp-menu-item"}),te=(0,s.Z)({displayName:"MenuDivider",fallback:X.MenuDivider,swcLoader:J,swcProps:function(e){return H({class:e.className},W(e,B))},tagName:"sp-menu-divider"}),re=(0,s.Z)({displayName:"MenuHeading",fallback:X.MenuHeading,swcLoader:J,swcProps:function(e){const t=e.children;return H(H({},W(e,G)),{},{children:n.createElement("span",{slot:"header"},t)})},tagName:"sp-menu-group"}),ne=((0,s.Z)({displayName:"SubMenu",fallback:X.SubMenu,swcLoader:J,SWCWrapper:function(e){const t=e.label,r=e.children,o=W(e,U),a=(0,i.Co)("sp-menu"),s=(0,i.Co)("sp-menu-item");return n.createElement(s,H({},o),t,n.createElement(a,{slot:"submenu"},r))},tagName:"sp-menu-item"}),(0,s.Z)({displayName:"MenuGroup",fallback:void 0,swcLoader:J,SWCWrapper:(0,n.forwardRef)((function(e,t){const r=(0,n.useRef)(null),o=e.className,a=e.children,s=e.onSelect,c=W(e,z);(0,n.useEffect)((()=>{const e=r.current,t=e=>{const t=e.target;null==s||s(t.value)};return e&&s&&e.addEventListener("change",t),()=>{e&&s&&e.removeEventListener("change",t)}}),[s,r]);const l=(0,i.Co)("sp-menu-group");return n.createElement(l,H({ref:(u=[t,r],function(e){u.forEach((t=>{t&&("function"!=typeof t?t.current=e:t(e))}))}),class:o},c),a);var u})),tagName:"sp-menu-group"}))},70040:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});r(54071);const n=[];function i(e){n.push(e)}},28086:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(74052);function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",s=n.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,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(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 h(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,o)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=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 i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,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,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e,t){try{customElements.get(e)||customElements.define(e,t)}catch(r){class n extends t{}customElements.define(e,n)}}class s{constructor(e,t,r=[]){this.tags=void 0,this._dependencies=void 0,this._load=void 0,this._loadMemo=void 0,this.tags=e,this._dependencies=r,this._load=t}load(e){var t,r=this;return(t=i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r._loadMemo){t.next=2;break}return t.abrupt("return",r._loadMemo);case 2:return t.next=4,Promise.all(r._dependencies.map((t=>t.load(e))));case 4:return r._loadMemo=r._load(e).then((e=>e.forEach(((e,t)=>a((0,n.fallbackTagName)(r.tags[t]),e))))),t.abrupt("return",r._loadMemo);case 6:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,s,c,"throw",e)}s(void 0)}))})()}}},54071:(e,t,r)=>{"use strict";r.d(t,{N:()=>o,V:()=>i});var n=r(89526);const i=({scale:e,spectrumTheme:t,theme:r,typekitId:n}={})=>({scale:e||"medium",spectrumTheme:t||"spectrum",theme:r||"light",typekitId:n||"ruf7eed"}),o=n.createContext(i())},83377:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(89526),i=r(30222),o=r(70040);const a=["fallback","forceFallback"];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){l(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 l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function p(e){(0,o.I)(e.loadSwc||(t=>(0,i.A2)(e.tagName,t,e.swcLoader)));const t=(t,r)=>{const o=(0,i.Lo)(e.tagName,e.swcLoader),s=o.needsFallback,l=o.tagName,p=t.fallback,d=t.forceFallback,h=u(t,a);if(s||d){const t=e.fallback;if(p)return n.createElement(n.Fragment,null,p);if(t)return n.createElement(t,c(c({},h),{},{ref:r}))}if(e.SWCWrapper)return n.createElement(e.SWCWrapper,c(c({},t),{},{ref:r}));const f=c(c({},e.swcProps(t)),{},{ref:r}),m=l;return n.createElement(m,c({},f))};return t.displayName=e.displayName,(0,n.forwardRef)(t)}},30222:(e,t,r)=>{"use strict";r.d(t,{Yn:()=>T,Vc:()=>E,cd:()=>O,ww:()=>g,A2:()=>w,Co:()=>x,Lo:()=>S});var n=r(89526),i=r(93286),o=r.n(i),a=r(74052),s=r(54071),c=r(82530);const l=function(){return window.__disable_swc__||window.__SPECTRUM_WRAPPER_STORYBOOK_FORCE_RS2__&&void 0!==c&&c.env.STORYBOOK};var u=r(82530);function p(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||d(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 d(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}}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}const f=!u.env.EXCLUDE_SWC&&!window.__disable_swc__;let m=!1;try{m=!!window.require("uxp")}catch(e){}const g=m,v=g&&!u.env.INCLUDE_SWC_UXP,y=new Map;function b(e){var t;const r=y.get(e);if(void 0!==r)return r;let n=null===(t=window.customElements)||void 0===t?void 0:t.get(e);var i;!n&&v&&f&&(n=null===(i=document.createElement(e))||void 0===i?void 0:i.constructor);return y.set(e,n),n}function _(e){const t=b(e);return!!t&&t!==HTMLElement}function E(e){if(v||!f)return!1;if(!_(e))return!0;const t=b(e);return!t||!t.VERSION||!o()(t.VERSION,"^0.42.0")}const w=(e,t,r)=>E(e)&&(null==r?void 0:r.load(t))||Promise.resolve();function L(e){return(0,n.useMemo)((()=>E(e)),[e])}function x(e){return L(e)?(0,a.fallbackTagName)(e):e}function S(e,t){const r=L(e),i=p((0,n.useState)(!1),2)[1],o=(0,n.useRef)(!0),a=(0,n.useContext)(s.N);(0,n.useEffect)((()=>{if(o.current=!1,r)return null==t||t.load(a).then((()=>{o.current||i(!0)}),(t=>console.error(`Error loading fallback for ${e}`,t))),()=>{o.current=!0}}),[a,e,t,r]);const c=l(),u=x(e);return{needsFallback:!_(u)||!!c,tagName:u}}function O(e){const t={};return Object.keys(e).forEach((r=>{e[r]&&(t[r]=e[r])})),t}function T(e){return new Promise((t=>{if(window.Typekit)t(null);else{var r;const n={kitId:e,scriptTimeout:3e3},i=setTimeout((()=>{t(null)}),n.scriptTimeout),o=document.createElement("script");let a=!1;o.src=`https://use.typekit.net/${n.kitId}.js`,o.type="text/javascript",o.async=!0,o.onload=function(){if(a)t(null);else{a=!0,clearTimeout(i);try{window.Typekit.load(n)}catch(e){}t(null)}};const s=document.getElementsByTagName("script")[0];null==s||null===(r=s.parentNode)||void 0===r||r.insertBefore(o,s)}}))}},94859:(e,t,r)=>{"use strict";function n(e){return null!=e&&e.__esModule?e:{default:e}}r.d(t,{Z:()=>n})},21876:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=void 0},96195:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Button",(()=>r(51568)),(()=>r(71864)))},71864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=r(51884),s=v(r(64403)),c=r(44800),l=v(r(36065)),u=v(r(98681)),p=v(r(40743)),d=g(r(52743)),h=v(r(2652)),f=g(r(89526));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function v(e){return e&&e.__esModule?e:{default:e}}function y(){return y=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},y.apply(this,arguments)}function b(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(14417),r(33639),r(50388),r(86001),r(48849),r(76785);const _={quiet:{variant:"primary",quiet:!0},minimal:{variant:"secondary",quiet:!0},icon:{variant:"action",quiet:!0}};let E=(0,l.default)(n=(0,d.default)((o=i=class extends f.Component{constructor(...e){var t;return t=super(...e),this.onClick=(e,...t)=>{this.props.disabled?e.preventDefault():this.props.onClick&&this.props.onClick(e,...t)},this.onKeyDownSpace=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.buttonRef.click())},this.setButtonRef=e=>this.buttonRef=e,t}componentDidMount(){this.props.autoFocus&&requestAnimationFrame((()=>this.focus()))}focus(){this.buttonRef&&!this.props.disabled&&this.buttonRef.focus&&this.buttonRef.focus()}render(){let e=this.props,t=e.element,r=void 0===t?"button":t,n=e.label,i=e.children,o=e.variant,l=void 0===o?"secondary":o,h=e.logic,m=e.quiet,g=e.icon,v=e.selected,E=e.block,w=e.className,L=e.disabled,x=e.invalid,S=e.onMouseDown,O=e.onMouseUp,T=e.autoFocus,I=e.holdAffordance,P=b(e,["element","label","children","variant","logic","quiet","icon","selected","block","className","disabled","invalid","onMouseDown","onMouseUp","autoFocus","holdAffordance"]);if(_[l]){let e=_[l],t=(e.quiet?"quiet ":"")+`"${e.variant}"`;console.warn(`The "${l}" variant of Button is deprecated. Please use the ${t} variant instead.`),l=e.variant,m=e.quiet}let C=!1,A="spectrum-Button";"action"===l||"toggle"===l?(A="spectrum-ActionButton",C=I,"toggle"===l&&(m=!0),l=""):h?A="spectrum-LogicButton":"clear"===l?(A="spectrum-ClearButton",l=""):"field"===l?(A="spectrum-FieldButton",l=""):"tool"===l&&(A="spectrum-Tool",C=I,l=""),"button"!==r&&(P.role="button",P.tabIndex=L?null:P.tabIndex||0,P["aria-disabled"]=L||null,"a"===r&&L&&P.href&&(P.href=null),P.onKeyDown=L?null:this.onKeyDownSpace);let k=n||("string"==typeof i?i:null),D=null;void 0!==P["aria-expanded"]?D=P["aria-expanded"]:P["aria-haspopup"]&&(D=v||null);const N="string"==typeof r?(0,p.default)(P):P;return f.default.createElement(r,y({},N,{className:(0,s.default)(A,m?`${A}--quiet`:"",l?`${A}--${l}`:"",{"is-selected":v,"is-disabled":L,"is-invalid":x,"spectrum-Button--block":E,[d.FOCUS_RING_CLASSNAME]:T},w),disabled:L,"aria-invalid":x||null,"aria-expanded":D,onClick:this.onClick,onMouseDown:(0,a.chain)(this.onMouseDown,a.focusAfterMouseEvent.bind(this,S)),onMouseUp:(0,a.chain)(this.onMouseUp,a.focusAfterMouseEvent.bind(this,O)),ref:this.setButtonRef}),(0,c.cloneIcon)(g,{size:"S"}),k&&f.default.createElement("span",{className:A+"-label"},k),C&&f.default.createElement(u.default,{role:"presentation",size:null,className:"spectrum-Tool-hold"}),"string"!=typeof i&&i)}},i.propTypes={variant:h.default.oneOf(["cta","primary","secondary","warning","action","toggle","and","or","icon","quiet","minimal","dropdown","clear","field","tool","overBackground"]),quiet:h.default.bool,logic:h.default.bool,disabled:h.default.bool,selected:h.default.bool,invalid:h.default.bool,icon:h.default.element,label:h.default.string,block:h.default.bool,element:h.default.oneOfType([h.default.string,h.default.func]),autoFocus:h.default.bool,onClick:h.default.func,holdAffordance:h.default.bool},i.defaultProps={autoFocus:!1,block:!1,disabled:!1,element:"button",invalid:!1,label:"",logic:!1,quiet:!1,selected:!1,variant:"secondary",holdAffordance:!1},n=o))||n)||n;t.default=E},51568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(71864)),i=u(r(64403)),o=r(44800),a=u(r(98681)),s=u(r(40743)),c=r(52743),l=u(r(89526));function u(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(10419);const h={quiet:{variant:"primary",quiet:!0},minimal:{variant:"secondary",quiet:!0},icon:{variant:"action",quiet:!0}};class f extends n.default{constructor(...e){var t;return t=super(...e),this.onKeyDownSpace=e=>{if(this.props.overrideOnKeyDown&&this.onUxpKeyDown)return this.onUxpKeyDown(e);" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.buttonRef.click())},t}render(){let e=this.props,t=e.element,r=void 0===t?"button":t,n=e.label,u=e.children,f=e.variant,m=void 0===f?"secondary":f,g=e.logic,v=e.quiet,y=e.icon,b=e.selected,_=e.block,E=e.className,w=e.disabled,L=e.invalid,x=e.uxpUseNative,S=void 0===x||x,O=e.onMouseDown,T=e.onMouseUp,I=e.onPointerDown,P=e.onPointerUp,C=e.autoFocus,A=e.holdAffordance,k=d(e,["element","label","children","variant","logic","quiet","icon","selected","block","className","disabled","invalid","uxpUseNative","onMouseDown","onMouseUp","onPointerDown","onPointerUp","autoFocus","holdAffordance"]);if(this.onUxpKeyDown=this.props.onKeyDown,null!=y)return super.render();if(u&&"string"!=typeof u||!S)return super.render();"span"===r&&(r="button");const D="button"===r;if(h[m]){let e=h[m],t=(e.quiet?"quiet ":"")+`"${e.variant}"`;console.warn(`The "${m}" variant of Button is deprecated. Please use the ${t} variant instead.`),m=e.variant,v=e.quiet}let N=!1,R="spectrum-Button";"action"===m||"toggle"===m?(R="spectrum-ActionButton",N=A,"toggle"===m&&(v=!0),m=""):g?R="spectrum-LogicButton":"clear"===m?(R="spectrum-ClearButton",m=""):"field"===m?(R="spectrum-FieldButton",m=""):"tool"===m&&(R="spectrum-Tool",N=A,m=""),D||(k.role="button",k.tabIndex=w?null:k.tabIndex||0,k["aria-disabled"]=w||null,"a"===r&&w&&k.href&&(k.href=null),k.onKeyDown=w?null:this.onKeyDownSpace);let M=n||("string"==typeof u?u:null),j=null;void 0!==k["aria-expanded"]?j=k["aria-expanded"]:k["aria-haspopup"]&&(j=b||null);const Z="string"==typeof r?(0,s.default)(k):k,F=b||!1;return l.default.createElement(r,p({},Z,{"uxp-variant":m,"uxp-quiet":v.toString(),"uxp-selected":F.toString(),className:(0,i.default)(R,!D&&v?`${R}--quiet`:"",!D&&m?`${R}--${m}`:"",{"is-selected":!D&&b,"is-disabled":!D&&w,"is-invalid":L,"spectrum-Button--block":_,[c.FOCUS_RING_CLASSNAME]:C},E),disabled:w,"aria-invalid":L||null,"aria-expanded":j,onClick:this.onClick,onPointerDown:O||I,onPointerUp:T||P,ref:this.setButtonRef}),(0,o.cloneIcon)(y,{size:"S"}),M&&l.default.createElement("span",{className:R+"-label"},M),N&&l.default.createElement(a.default,{role:"presentation",size:null,className:"spectrum-Tool-hold"}),"string"!=typeof u&&u)}}t.default=f,f.defaultProps={autoFocus:!1,block:!1,disabled:!1,element:"span",invalid:!1,label:"",logic:!1,quiet:!1,selected:!1,variant:"secondary",holdAffordance:!1}},74911:(e,t,r)=>{"use strict";e.exports=r(94065)},94065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=h(r(64403)),s=h(r(36065)),c=h(r(40743)),l=h(r(75870)),u=h(r(2652)),p=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function m(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(84536);const g=".spectrum-ButtonGroup-item:not([disabled]):not([aria-disabled])",v={tool:!0,action:!0};let y=(0,s.default)((o=i=class extends p.Component{constructor(e){super(e),this.state={value:e.value}}UNSAFE_componentWillReceiveProps(e){e.value&&e.value!==this.state.value&&this.setState({value:e.value})}addSelection(e){return[...this.state.value||[],e.value]}removeSelection(e){let t=this.state.value||[];const r=t.indexOf(e.value);return[...t.slice(0,r),...t.slice(r+1,t.length)]}handleSelect(e,t){if(!this.props.readOnly&&!e.readOnly){let r;r=this.props.multiple?this.isSelected(e)?this.removeSelection(e):this.addSelection(e):e.value,"value"in this.props||this.setState({value:r}),this.props.onChange&&this.props.onChange(r,t)}e.onClick&&e.onClick(t),this.props.onClick&&this.props.onClick(e.value,t)}isSelected(e){return this.props.readOnly?null:this.props.multiple?this.state.value&&this.state.value.indexOf(e.value)>=0:this.state.value===e.value}getChildRole(){return this.props.readOnly?null:this.props.multiple?"checkbox":"radio"}getChildProps(e,t){const r=this.props.invalid||e.props.invalid,n=this.props.required||e.props.required,i=this.props.disabled||e.props.disabled,o=this.isSelected(e.props),s=this.getChildRole(),c=i?null:this.handleSelect.bind(this,e.props),l=v[e.props.variant];return{className:(0,a.default)("spectrum-ButtonGroup-item",e.props.className),selected:o,disabled:i,variant:l?e.props.variant:"action",quiet:!l||e.props.quiet,onClick:c,onKeyDown:e.props.onKeyDown,role:s,"aria-checked":o,"aria-invalid":r,"aria-required":n}}renderButtons(){const e=this.props.children;return p.default.Children.map(e,((e,t)=>e?p.default.cloneElement(e,this.getChildProps(e,t)):null))}render(){let e=this.props,t=e.children,r=void 0===t?[]:t,n=e.className,i=e.multiple,o=e.disabled,s=e.readOnly,u=e.invalid,d=e.required,h=e.orientation,v=e.manageTabIndex,y=e.role,b=m(e,["children","className","multiple","disabled","readOnly","invalid","required","orientation","manageTabIndex","role"]);return delete b.onChange,delete b.onClick,y||(s||i?(s||r.length>2)&&(y=s&&r.length>2?"toolbar":"group"):y="radiogroup"),p.default.createElement(l.default,{itemSelector:g,selectedItemSelector:".spectrum-ButtonGroup-item:not([disabled]):not([aria-disabled])[aria-checked=true].is-selected",orientation:"toolbar"===y?h:"both",manageTabIndex:v},p.default.createElement("div",f({"aria-invalid":u||null,"aria-required":d||null,"aria-disabled":o||null,"aria-orientation":"both"!==h&&"toolbar"===y?h:null,role:y},(0,c.default)(b),{className:(0,a.default)("spectrum-ButtonGroup",{"spectrum-ButtonGroup--vertical":"vertical"===h},n)}),this.renderButtons(r)))}},i.propTypes={disabled:u.default.bool,invalid:u.default.bool,manageTabIndex:u.default.bool,multiple:u.default.bool,readOnly:u.default.bool,required:u.default.bool,onChange:u.default.func,onClick:u.default.func,orientation:u.default.oneOf(["horizontal","vertical","both"]),value:u.default.oneOfType([u.default.string,u.default.arrayOf(u.default.string)])},i.defaultProps={disabled:!1,invalid:!1,manageTabIndex:!0,multiple:!1,readOnly:!1,required:!1,orientation:"both"},n=o))||n;t.default=y},20731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"CardBody",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"CardCoverPhoto",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"CardFooter",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CardPreview",{enumerable:!0,get:function(){return s.default}});var n=c(r(13462)),i=c(r(30957)),o=c(r(5348)),a=c(r(8050)),s=c(r(97995));function c(e){return e&&e.__esModule?e:{default:e}}},13462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=m(r(77890)),c=m(r(64403)),l=m(r(40743)),u=r(3585),p=m(r(2652)),d=m(r(89526));function h(){return h=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},h.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(e){return e&&e.__esModule?e:{default:e}}r(69533);const g={"cs-CZ":m(r(58400)).default,"da-DK":m(r(62064)).default,"de-DE":m(r(67580)).default,"en-US":m(r(265)).default,"es-ES":m(r(35737)).default,"fi-FI":m(r(45432)).default,"fr-FR":m(r(99846)).default,"hu-HU":m(r(55046)).default,"it-IT":m(r(14124)).default,"ja-JP":m(r(17169)).default,"ko-KR":m(r(2555)).default,"nb-NO":m(r(3934)).default,"nl-NL":m(r(51893)).default,"pl-PL":m(r(70598)).default,"pt-BR":m(r(90086)).default,"ru-RU":m(r(15335)).default,"sv-SE":m(r(12791)).default,"tr-TR":m(r(79977)).default,"uk-UA":m(r(62717)).default,"zh-CN":m(r(99451)).default,"zh-TW":m(r(76026)).default};r(59849),r(40612),r(83973),r(82550),r(84493),r(24130),r(34673),r(78743),r(16032),r(67869);const v=(0,u.messageFormatter)(g);let y=(0,a.default)((o=i=class extends d.default.Component{getChildContext(){let e=this.props.actionMenu;"S"===this.props.size&&(e=null);let t=d.default.Children.toArray(this.props.children).find((e=>"CardBody"===e.type.displayName)),r=Boolean(t&&t.props.title);return{cardVariant:this.props.variant,cardSize:this.props.size,actionMenu:e,onLoad:this.props.onLoad,hasTitle:r}}handleCheckboxClick(e){this.props.onSelectionChange&&e.stopPropagation()}render(){let e=this.props,t=e.variant,r=e.size,n=e.selected,i=e.allowsSelection,o=e.isDropTarget,a=e.quickActions,u=e.actionMenu,p=e.children,m=e.className,g=f(e,["variant","size","selected","allowsSelection","isDropTarget","quickActions","actionMenu","children","className"]);"standard"===t&&"S"===r&&(r="L");let y=null;if(i&&(y=d.default.createElement("div",{className:(0,c.default)("spectrum-QuickActions","spectrum-Card-quickActions")},d.default.createElement(s.default,{onChange:this.props.onSelectionChange,onClick:this.handleCheckboxClick,checked:n,title:v("select")}))),a&&u)throw new Error("Either quick actions or an action button can be passed to Card, not both.");"S"===r&&u&&(a=d.default.createElement("div",{className:"spectrum-QuickActions spectrum-Card-actions"},u));let b=(0,c.default)("spectrum-Card",`spectrum-Card--${t}`,{"spectrum-Card--large":"L"===r,"spectrum-Card--small":"S"===r,"is-selected":n,"is-drop-target":o},m);return d.default.createElement("div",h({},(0,l.default)(g),{className:b}),p,y,a)}},i.propTypes={variant:p.default.oneOf(["standard","quiet","gallery"]),size:p.default.oneOf(["S","L"]),allowsSelection:p.default.bool,selected:p.default.bool,onSelectionChange:p.default.func,isDropTarget:p.default.bool,quickActions:p.default.element,actionMenu:p.default.element},i.defaultProps={variant:"standard",size:"L",selected:!1,allowsSelection:!0},i.childContextTypes={cardVariant:p.default.string,cardSize:p.default.string,actionMenu:p.default.element,onLoad:p.default.func,hasTitle:p.default.bool},n=o))||n;t.default=y},30957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(2652)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}class a extends i.default.Component{render(){let e=this.props,t=e.title,r=e.subtitle,n=e.description,o=e.children,a=this.context,s=a.cardVariant,c=a.actionMenu,l=r?i.default.createElement("div",{className:"spectrum-Card-subtitle"},r):null,u=n?i.default.createElement("div",{className:"spectrum-Card-description"},n):null;return i.default.createElement("div",{className:"spectrum-Card-body"},t||c?i.default.createElement("div",{className:"spectrum-Card-header"},t?i.default.createElement("div",{className:"spectrum-Card-title"},t):null,"gallery"===s&&l,"gallery"===s&&u,c?i.default.createElement("div",{className:"spectrum-Card-actionButton"},i.default.cloneElement(c,{alignRight:!0})):null):null,"gallery"!==s&&(r||n)?i.default.createElement("div",{className:"spectrum-Card-content"},l,u):null,o)}}t.default=a,a.displayName="CardBody",a.propTypes={title:n.default.string,subtitle:n.default.string,description:n.default.string},a.contextTypes={cardVariant:n.default.string,actionMenu:n.default.element}},5348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(2652)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}class a extends i.default.Component{render(){let e=this.props,t=e.src,r=e.children;return i.default.createElement("div",{className:"spectrum-Card-coverPhoto",style:{backgroundImage:`url(${JSON.stringify(t)})`}},r)}}t.default=a,a.propTypes={src:n.default.string}},8050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(89526))&&n.__esModule?n:{default:n};class o extends i.default.Component{render(){return i.default.createElement("div",{className:"spectrum-Card-footer"},this.props.children)}}t.default=o},97995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(2652)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}class a extends i.default.Component{render(){let e=i.default.Children.only(this.props.children),t=this.context,r=t.cardVariant,n=t.onLoad,o=0;"quiet"===r&&(o=1);let a=t.hasTitle;return null==e.props.decorative&&null==e.props.alt||(a=e.props.decorative),i.default.createElement("div",{className:"spectrum-Card-preview"},i.default.cloneElement(e,{smartness:o,onLoad:n,decorative:a}))}}t.default=a,a.contextTypes={cardVariant:n.default.string,onLoad:n.default.func,hasTitle:n.default.bool}},82701:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Checkbox",(()=>r(8077)),(()=>r(77890)))},77890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(41628)),i=u(r(64403)),o=u(r(54857)),a=u(r(2652)),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),c=u(r(61382));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(13286),r(40735),r(16088),r(66557),r(49135);class h extends s.Component{componentDidMount(){this.setIndeterminate()}componentDidUpdate(){this.setIndeterminate()}setIndeterminate(){const e=this.props.indeterminate,t=this.inputRef&&this.inputRef.getInput();null!=e&&t&&(t.indeterminate=e)}render(){const e=this.props,t=e.indeterminate,r=e.quiet,a=e.className,l=d(e,["indeterminate","quiet","className"]);t&&(l["aria-checked"]="mixed");let u=t?s.default.createElement(o.default,{size:null,className:"spectrum-Checkbox-partialCheckmark"}):s.default.createElement(n.default,{size:null,className:"spectrum-Checkbox-checkmark"});return s.default.createElement(c.default,p({ref:e=>this.inputRef=e,inputType:"checkbox",className:(0,i.default)("spectrum-Checkbox",{"is-indeterminate":t,"spectrum-Checkbox--quiet":r},a),inputClassName:"spectrum-Checkbox-input",markClassName:"spectrum-Checkbox-box",markIcon:u,labelClassName:"spectrum-Checkbox-label"},l))}}t.default=h,h.propTypes={label:a.default.string,renderLabel:a.default.bool,defaultChecked:a.default.bool,disabled:a.default.bool,required:a.default.bool,invalid:a.default.bool,readOnly:a.default.bool,onChange:a.default.func,indeterminate:a.default.bool,quiet:a.default.bool},h.defaultProps={renderLabel:!0,defaultChecked:void 0,disabled:!1,required:!1,invalid:!1,readOnly:!1,onChange:function(){},indeterminate:!1,quiet:!1},h.displayName="Checkbox"},8077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=l(r(77890)),s=l(r(36065)),c=l(r(89526));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const d="3px",h={display:"flex",flexDirection:"row",alignItems:"center",marginTop:d,marginBottom:d,height:"18px"},f={marginLeft:"8px"},m={width:"18px"};let g=(0,s.default)((i=class extends a.default{constructor(e){super(e),o.call(this);const t=e.checked,r=e.defaultChecked;this.state={checked:void 0!==t?t:r||!1}}UNSAFE_componentWillReceiveProps(e){"checked"in e&&this.setState({checked:e.checked})}setChecked(e){"checked"in this.props||this.setState({checked:e})}setIndeterminate(){const e=this.props.indeterminate,t=this.inputRef;null!=e&&t&&(t.indeterminate=e)}render(){const e=this.props,t=e.label,r=e.className,n=e.children,i=e.style,o=p(e,["label","className","children","style"]);delete o.renderLabel;let a=t||("string"==typeof n?n:null);const s=this.state.checked;return c.default.createElement("label",{style:Object.assign({},h,i)},c.default.createElement("input",u({style:m,ref:e=>this.inputRef=e},o,{type:"checkbox",checked:s,onChange:this.handleChange,className:r})),a&&a.length>0&&c.default.createElement("span",{style:f},a))}},o=function(){this.handleChange=e=>{const t=this.props.onChange,r=e.target.checked;this.setChecked(r),t&&t(r,e)}},n=i))||n;t.default=g},89910:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Dialog",(()=>r(36930)),(()=>r(24783)))},24783:(e,t,r)=>{"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.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,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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=u(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)}}}(e,r,a),o}function u(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 h(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,o)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=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 i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,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,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a,s=g(r(68378)),c=g(r(64403)),l=g(r(99870)),u=g(r(59286)),p=g(r(71547)),d=g(r(2652)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),f=r(75870);function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=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},v.apply(this,arguments)}function y(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}r(12076),r(76172),r(30954),r(92708),r(43319);let _=(0,s.default)((a=o=class extends h.Component{constructor(e){super(e),this.dialogId=(0,l.default)()}_onAction(e,...t){var r,i=this;return(r=n().mark((function r(){var o;return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=!0,!e){r.next=5;break}return r.next=4,e(...t);case 4:o=r.sent;case 5:!1!==o&&i.props.onClose();case 6:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))})()}onConfirm(...e){this._onAction(this.props.onConfirm,...e)}onCancel(){this._onAction(this.props.onCancel)}onFocus(e){this.props.onFocus&&this.props.onFocus(e)}onKeyDown(e){const t=this.props,r=t.confirmDisabled,n=t.keyboardConfirm,i=t.onKeyDown,o=t.disableEscKey;if(!(i&&(i(e),e.isPropagationStopped&&e.isPropagationStopped())))switch(e.key){case"Enter":!r&&n&&this.onConfirm();break;case"Esc":case"Escape":o||this.onCancel();break;default:this.props.trapFocus&&(0,f.trapFocus)(this,e)}}render(){const e=this.props,t=e.children,r=e.className,n=void 0===r?"":r,i=e.cancelLabel,o=e.confirmLabel,a=e.secondaryLabel,s=e.open,l=e.title,d=e.variant,f=e.mode,m=e.role,g=e.tabIndex,b=e.trapFocus,_=e.isDismissible,E=e.id,w=void 0===E?this.dialogId:E,L=e["aria-label"],x=e["aria-labelledby"],S=e["aria-describedby"],O=e["aria-modal"],T=y(e,["children","className","cancelLabel","confirmLabel","secondaryLabel","open","title","variant","mode","role","tabIndex","trapFocus","isDismissible","id","aria-label","aria-labelledby","aria-describedby","aria-modal"]),I="fullscreen"===f||"fullscreenTakeover"===f,P=d||(i&&o?"confirmation":"information");return delete T.modalContent,delete T.disableEscKey,h.default.createElement("div",{className:(0,c.default)("spectrum-Dialog","react-spectrum-Dialog",{[`spectrum-Dialog--${f}`]:f,"spectrum-Dialog--error":"error"===d,"is-open":s,"spectrum-Dialog--dismissible":_},n),role:m,tabIndex:void 0===g||b?1:g,onFocus:this.onFocus,onKeyDown:this.onKeyDown,id:w,"aria-label":L,"aria-labelledby":x||(l&&!L?`${w}-heading`:null),"aria-describedby":S||(l&&t?`${w}-content`:null),"aria-modal":O||b},l&&h.default.createElement(p.default,v({variant:P,title:l,fullscreen:I,confirmLabel:o,secondaryLabel:a,cancelLabel:i,isDismissible:_,id:`${w}-heading`},T,{onConfirm:this.onConfirm,onCancel:this.onCancel})),l?h.default.createElement("div",{className:"spectrum-Dialog-content",id:`${w}-content`},t):t,!_&&!I&&o&&h.default.createElement(u.default,v({},this.props,{variant:P,className:"spectrum-Dialog-footer",onConfirm:this.onConfirm,onCancel:this.onCancel})))}},o.propTypes={backdropClickable:d.default.bool,cancelLabel:d.default.string,className:d.default.string,confirmDisabled:d.default.bool,confirmLabel:d.default.string,secondaryLabel:d.default.string,onClose:d.default.func,onCancel:d.default.func,onConfirm:d.default.func,open:d.default.bool,title:d.default.node,variant:d.default.oneOf(["confirmation","information","destructive","error"]),mode:d.default.oneOf(["alert","fullscreen","fullscreenTakeover"]),role:d.default.oneOf(["dialog","alertdialog"]),autoFocusButton:d.default.oneOf(["cancel","confirm","secondary",null]),keyboardConfirm:d.default.bool,trapFocus:d.default.bool,disableEscKey:d.default.bool,isDismissible:d.default.bool},o.defaultProps={backdropClickable:!1,confirmDisabled:!1,keyboardConfirm:!1,open:!0,role:"dialog",autoFocusButton:null,onClose:function(){},trapFocus:!0,disableEscKey:!1,isDismissible:!1},i=a))||i;t.default=_},59286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({autoFocusButton:e,confirmLabel:t,secondaryLabel:r,cancelLabel:a,confirmDisabled:c,onConfirm:l,onCancel:u,className:p,variant:d}){const h=s[d]||"primary";let f=e=>{" "!==e.key&&"Enter"!==e.key||e.stopPropagation()};return o.default.createElement("div",{className:(0,i.default)("react-spectrum-Dialog-buttons",p)},a&&o.default.createElement(n.default,{variant:"secondary",label:a,onClick:u,autoFocus:"cancel"===e,onKeyDown:f,uxpUseNative:!1}),r&&o.default.createElement(n.default,{variant:"secondary",label:r,onClick:l?l.bind(null,"secondary"):null,autoFocus:"secondary"===e,disabled:c||null,onKeyDown:f,uxpUseNative:!1}),t&&o.default.createElement(n.default,{variant:h,label:t,onClick:l?l.bind(null,"primary"):null,autoFocus:"confirm"===e,disabled:c||null,onKeyDown:f,uxpUseNative:!1}))};var n=a(r(96195)),i=a(r(64403)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}r(40506);const s={confirmation:"cta",information:"primary",error:"primary",destructive:"warning"}},71547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.title,r=e.variant,n=e.fullscreen,p=e.confirmDisabled,f=e.confirmLabel,m=e.secondaryLabel,g=e.cancelLabel,v=e.onConfirm,y=e.onCancel,b=e.onClose,_=e.className,E=e.autoFocusButton,w=e.id,L=e.isDismissible,x=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","variant","fullscreen","confirmDisabled","confirmLabel","secondaryLabel","cancelLabel","onConfirm","onCancel","onClose","className","autoFocusButton","id","isDismissible"]),S=h[r];return u.default.createElement("div",d({},(0,c.default)(x),{className:(0,o.default)("spectrum-Dialog-header",`spectrum-Dialog-header--${r}`,_)}),u.default.createElement(l.default,{size:3,className:"spectrum-Dialog-title",id:w},t),S&&u.default.createElement(S,{size:null,className:"spectrum-Dialog-typeIcon"}),L&&!n&&u.default.createElement(i.default,{className:"spectrum-Dialog-closeButton",variant:"action",onClick:b,quiet:!0,icon:u.default.createElement(a.default,{size:"L"})}),n&&f&&u.default.createElement(s.default,{autoFocusButton:E,variant:r,cancelLabel:g,secondaryLabel:m,confirmLabel:f,confirmDisabled:p,onConfirm:v,onCancel:y}))};var n=p(r(77487)),i=p(r(96195)),o=p(r(64403)),a=p(r(95318)),s=p(r(59286)),c=p(r(40743)),l=p(r(45079)),u=p(r(89526));function p(e){return e&&e.__esModule?e:{default:e}}function d(){return d=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},d.apply(this,arguments)}const h={error:n.default}},36930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(89526)),i=s(r(26172)),o=s(r(14515)),a=s(r(58648));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}var l=n.default.forwardRef(((e,t)=>a.default.productNeedsOverlayFix&&e&&!0===e.isNative?n.default.createElement(i.default,c({},e,{ref:t})):n.default.createElement(o.default,c({},e,{ref:t}))));t.default=l},77889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({autoFocusButton:e,confirmLabel:t,secondaryLabel:r,cancelLabel:a,confirmDisabled:c,onConfirm:l,onCancel:u,className:p,variant:d}){const h=s[d]||"primary";let f=e=>{" "!==e.key&&"Enter"!==e.key||e.stopPropagation()};return o.default.createElement("div",{className:(0,i.default)("react-spectrum-Dialog-buttons",p)},a&&o.default.createElement(n.default,{className:"dialog-buttons-Override",variant:"secondary",label:a,onClick:u,autoFocus:"cancel"===e,onKeyDown:f,uxpUseNative:!1}),r&&o.default.createElement(n.default,{className:"dialog-buttons-Override",variant:"secondary",label:r,onClick:l?l.bind(null,"secondary"):null,autoFocus:"secondary"===e,disabled:c||null,onKeyDown:f,uxpUseNative:!1}),t&&o.default.createElement(n.default,{className:"dialog-buttons-Override",variant:h,label:t,onClick:l?l.bind(null,"primary"):null,autoFocus:"confirm"===e,disabled:c||null,onKeyDown:f,uxpUseNative:!1}))};var n=a(r(96195)),i=a(r(64403)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}r(40506),r(13851);const s={confirmation:"cta",information:"primary",error:"primary",destructive:"warning"}},89893:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.children,r=void 0===t?[]:t,n=e.title,p=e.variant,f=e.fullscreen,m=e.confirmDisabled,g=e.confirmLabel,v=(e.secondaryLabel,e.cancelLabel),y=e.onConfirm,b=e.onCancel,_=e.onClose,E=e.className,w=e.autoFocusButton,L=e.id,x=e.isDismissible,S=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","title","variant","fullscreen","confirmDisabled","confirmLabel","secondaryLabel","cancelLabel","onConfirm","onCancel","onClose","className","autoFocusButton","id","isDismissible"]),O=h[p];return l.default.createElement("div",d({},(0,s.default)(S),{className:(0,o.default)("spectrum-Dialog-header",`spectrum-Dialog-header--${p}`,"spectrum-Dialog-header-Override",E)}),l.default.createElement(c.default,{size:3,className:"spectrum-Dialog-title",id:L},n),O&&l.default.createElement(O,{size:null,className:"spectrum-Dialog-typeIcon"}),x&&!f&&l.default.createElement(i.default,{className:"spectrum-Dialog-closeButton",variant:"action",onClick:_,quiet:!0,icon:l.default.createElement(a.default,{size:"L"})}),f&&g&&l.default.createElement(u.default,{autoFocusButton:w,variant:p,cancelLabel:v,confirmLabel:g,confirmDisabled:m,onConfirm:y,onCancel:b}),r)};var n=p(r(77487)),i=p(r(96195)),o=p(r(64403)),a=p(r(95318)),s=p(r(40743)),c=p(r(45079)),l=p(r(89526)),u=p(r(77889));function p(e){return e&&e.__esModule?e:{default:e}}function d(){return d=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},d.apply(this,arguments)}r(13851);const h={error:n.default}},26172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=h(r(68378)),s=h(r(64403)),c=h(r(24783)),l=h(r(2652)),u=h(r(89526)),p=h(r(77889)),d=h(r(89893));function h(e){return e&&e.__esModule?e:{default:e}}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 m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(){return g=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},g.apply(this,arguments)}function v(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(13851),r(12076),r(76172),r(30954),r(92708),r(43319);const y={width:"auto",height:"auto"},b={resize:"none",titleVisibility:"hide",size:y,maxSize:y,minSize:y};let _=(0,a.default)((o=i=class extends c.default{componentDidMount(){let e=null;const t=this.props.size;this.dialogElementRef&&(t&&t.width&&t.height&&(e={resize:"none",titleVisibility:"hide",size:t,maxSize:y,minSize:y}),this.dialogElementRef.showModal(e||b).then((()=>{}),(()=>{})),this.dialogElementRef.addEventListener("close",this.onDialogCloseEvent),this.dialogElementRef.addEventListener("cancel",this.onDialogCancelEvent),this.dialogElementRef.addEventListener("load",this.onDialogLoadEvent))}componentWillUnmount(){this.dialogElementRef&&(this.dialogElementRef.removeEventListener("close",this.onDialogCloseEvent),this.dialogElementRef.removeEventListener("cancel",this.onDialogCancelEvent),this.dialogElementRef.removeEventListener("load",this.onDialogLoadEvent))}onDialogCloseEvent(){this.dialogElementRef=null}onDialogCancelEvent(){this.dialogElementRef=null}onDialogLoadEvent(){this.props.onLoad&&this.props.onLoad()}onConfirm(...e){this._onAction(this.props.onConfirm,...e),this.closeDialog()}onCancel(){this._onAction(this.props.onCancel),this.closeDialog()}closeDialog(){this.dialogElementRef.close()}render(){const e=this.props,t=e.children,r=e.className,n=void 0===r?"":r,i=e.cancelLabel,o=e.confirmLabel,a=e.secondaryLabel,c=e.open,l=e.title,h=e.variant,f=e.mode,m=e.tabIndex,y=e.trapFocus,b=e.isDismissible,_=e.id,E=void 0===_?this.dialogId:_,w=e["aria-label"],L=e["aria-labelledby"],x=e["aria-describedby"],S=e["aria-modal"],O=v(e,["children","className","cancelLabel","confirmLabel","secondaryLabel","open","title","variant","mode","tabIndex","trapFocus","isDismissible","id","aria-label","aria-labelledby","aria-describedby","aria-modal"]),T="fullscreen"===f||"fullscreenTakeover"===f,I=h||(i&&o?"confirmation":"information");return delete O.modalContent,delete O.disableEscKey,delete O.onLoad,u.default.createElement("dialog",{id:E,ref:e=>this.dialogElementRef=e,defaultpreventedkeys:["Escape"],onConfirm:this.onConfirm,onCancel:this.onCancel},u.default.createElement("div",{onFocus:this.onFocus,onKeyDown:this.onKeyDown,className:(0,s.default)("uxp-Native-Dialog","spectrum-Dialog","react-spectrum-Dialog",{[`spectrum-Dialog--${f}`]:f,"spectrum-Dialog--error":"error"===h,"is-open":c,"spectrum-Dialog--dismissible":b},"spectrum-Dialog-Override",n),tabIndex:void 0===m||y?1:m,"aria-label":w,"aria-labelledby":L||(l&&!w?`${E}-heading`:null),"aria-describedby":x||(l&&t?`${E}-content`:null),"aria-modal":S||y},l&&u.default.createElement(d.default,g({variant:I,title:l,fullscreen:T,confirmLabel:o,secondaryLabel:a,cancelLabel:i,isDismissible:b,id:`${E}-heading`},O),u.default.createElement("div",{className:"dialogSeparator"})),l?u.default.createElement("div",{className:"spectrum-Dialog-content",id:`${E}-content`},t):t,!b&&!T&&o&&u.default.createElement(p.default,g({},this.props,{variant:I,className:"spectrum-Dialog-footer",onConfirm:this.onConfirm,onCancel:this.onCancel}))))}},i.propTypes=function(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){m(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}({},c.default.propTypes,{size:l.default.objectOf({width:l.default.number,height:l.default.number})}),n=o))||n;t.default=_},14515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=u(r(68378)),o=u(r(64403)),a=u(r(24783)),s=u(r(89526)),c=u(r(77889)),l=u(r(89893));function u(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(13851),r(12076),r(76172),r(30954),r(92708),r(43319);let h=(0,i.default)(n=class extends a.default{render(){const e=this.props,t=e.children,r=e.className,n=void 0===r?"":r,i=e.cancelLabel,a=e.confirmLabel,u=e.secondaryLabel,h=e.open,f=e.title,m=e.variant,g=e.mode,v=e.role,y=e.tabIndex,b=e.trapFocus,_=e.isDismissible,E=e.id,w=void 0===E?this.dialogId:E,L=e["aria-label"],x=e["aria-labelledby"],S=e["aria-describedby"],O=e["aria-modal"],T=d(e,["children","className","cancelLabel","confirmLabel","secondaryLabel","open","title","variant","mode","role","tabIndex","trapFocus","isDismissible","id","aria-label","aria-labelledby","aria-describedby","aria-modal"]),I="fullscreen"===g||"fullscreenTakeover"===g,P=m||(i&&a?"confirmation":"information");return delete T.modalContent,delete T.disableEscKey,s.default.createElement("div",{className:(0,o.default)("spectrum-Dialog",{[`spectrum-Dialog--${g}`]:g,"spectrum-Dialog--error":"error"===m,"is-open":h,"spectrum-Dialog--dismissible":_},"spectrum-Dialog-Override",n),role:v,defaultpreventedkeys:["Escape"],tabIndex:void 0===y||b?1:y,onFocus:this.onFocus,onKeyDown:this.onKeyDown,id:w,"aria-label":L,"aria-labelledby":x||(f&&!L?`${w}-heading`:null),"aria-describedby":S||(f&&t?`${w}-content`:null),"aria-modal":O||b},f&&s.default.createElement(l.default,p({variant:P,title:f,fullscreen:I,confirmLabel:a,secondaryLabel:u,cancelLabel:i,isDismissible:_,id:`${w}-heading`},T,{onConfirm:this.onConfirm,onCancel:this.onCancel}),s.default.createElement("div",{className:"dialogSeparator"})),f?s.default.createElement("div",{className:"spectrum-Dialog-content",id:`${w}-content`},t):t,!_&&!I&&a&&s.default.createElement(c.default,p({},this.props,{variant:P,className:"spectrum-Dialog-footer",onConfirm:this.onConfirm,onCancel:this.onCancel})))}})||n;t.default=h},58584:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Dropdown",(()=>r(27222)),(()=>r(12015)))},12015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=r(51884),c=m(r(99870)),l=m(r(40743)),u=r(12252),p=m(r(3074)),d=m(r(2652)),h=m(r(89526)),f=m(r(73961));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let v=(0,a.default)((o=i=class extends h.default.Component{constructor(e){super(e),this.dropdownId=(0,c.default)(),this.state={open:!1}}onOpen(e){this.setState({open:!0}),this.props.onOpen&&this.props.onOpen(e)}onClose(e){this.setState({open:!1}),!e||"keyup"!==e.type&&"keydown"!==e.type||this.restoreFocusOnClose(),this.props.onClose&&this.props.onClose(e)}onMenuClose(){this.overlayTrigger.hide(),this.restoreFocusOnClose()}onSelect(...e){this.props.closeOnSelect&&this.onMenuClose(),this.props.onSelect&&this.props.onSelect(...e)}onClick(e){this.props.onClick&&this.props.onClick(e)}onKeyDownTrigger(e){if(!("function"==typeof e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented)&&this.triggerRef)switch(e.key){case"Enter":case"ArrowDown":case" ":e.preventDefault(),e.stopPropagation(),this.triggerRef.onClick()}}restoreFocusOnClose(){const e=f.default.findDOMNode(this.triggerRef);e&&e.focus&&e.focus()}render(){const e=this.props,t=e.alignRight,r=e.closeOnSelect,n=e.flip,i=e.trigger,o=e.boundariesElement,a=e.onLongClick,c=g(e,["alignRight","closeOnSelect","flip","trigger","boundariesElement","onLongClick"]),d=h.default.Children.toArray(this.props.children),f=d.find((e=>e.props.dropdownTrigger))||d[0],m=f.props.id||this.dropdownId+"-trigger",v=d.find((e=>e.props.dropdownMenu||e.type===u.Menu))||d[1],y=v.props.id||this.dropdownId+"-menu";return delete c.onOpen,delete c.onClose,delete c.onClick,h.default.createElement("div",(0,l.default)(c),d.map(((e,c)=>e===f?h.default.createElement(p.default,{boundariesElement:o,target:this,trigger:i,placement:t?"bottom right":"bottom left",ref:e=>this.overlayTrigger=e,onLongClick:a,onClick:this.onClick,onShow:this.onOpen,closeOnSelect:r,key:c,onHide:this.onClose,flip:n,delayHide:0},h.default.cloneElement(f,{id:m,"aria-haspopup":f.props["aria-haspopup"]||"true","aria-expanded":this.state.open||null,"aria-controls":this.state.open?y:null,onKeyDown:(0,s.chain)(f.props.onKeyDown,this.onKeyDownTrigger),ref:e=>{this.triggerRef=e;const t=f.ref;"function"==typeof t&&t(e)}}),h.default.cloneElement(v,{id:y,"aria-labelledby":v.props["aria-labelledby"]||m,onClose:this.onMenuClose,onSelect:this.onSelect,autoFocus:!0,closeOnSelect:r})):e!==v?e:void 0)))}},i.propTypes={closeOnSelect:d.default.bool,trigger:d.default.oneOf(["click","longClick","hover","focus"]),onOpen:d.default.func,onClose:d.default.func,onSelect:d.default.func,alignRight:d.default.bool,flip:d.default.bool},i.defaultProps={closeOnSelect:!0,trigger:"click"},n=o))||n;t.default=v},27222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(12015)),i=a(r(89526)),o=r(85706);function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=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},s.apply(this,arguments)}t.default=e=>i.default.createElement(o.SpectrumContext.Consumer,null,(({boundariesElement:t})=>i.default.createElement(n.default,s({},e,{boundariesElement:t}))))},94801:(e,t,r)=>{"use strict";e.exports=r(80509)},80509:(e,t,r)=>{"use strict";t.default=d;var n=l(r(96195)),i=l(r(58584)),o=r(12252),a=l(r(19547)),s=l(r(2652)),c=l(r(89526));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function d(e){let t=e.alignRight,r=e.onClose,s=e.onOpen,l=e.onSelect,d=e.children,h=e.closeOnSelect,f=e.menuClassName,m=e.holdAffordance,g=e.onClick,v=p(e,["alignRight","onClose","onOpen","onSelect","children","closeOnSelect","menuClassName","holdAffordance","onClick"]),y=m?"longClick":void 0;return c.default.createElement(i.default,{style:{display:"inline-block"},onClose:r,onOpen:s,onClick:g,onSelect:l,alignRight:t,closeOnSelect:h,trigger:y},c.default.createElement(n.default,u({variant:"action",quiet:!0,holdAffordance:m,icon:c.default.createElement(a.default,{alt:"…"})},v)),c.default.createElement(o.Menu,{className:f,dropdownMenu:!0},d))}d.propTypes={closeOnSelect:s.default.bool,onOpen:s.default.func,onClose:s.default.func,onSelect:s.default.func,alignRight:s.default.bool,menuClassName:s.default.string,holdAffordance:s.default.bool}},45079:(e,t,r)=>{"use strict";e.exports=r(24865)},24865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=s(r(64403)),i=s(r(40743)),o=s(r(2652)),a=s(r(89526));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const u={1:"display",2:"pageTitle",3:"subtitle1",4:"subtitle2",5:"subtitle3",6:"subtitle3"},p={display:"h1",pageTitle:"h2",subtitle1:"h2",subtitle2:"h3",subtitle3:"h4"};function d(e){let t=e.variant,r=e.size,o=void 0===r?1:r,s=e.children,d=e.className,h=l(e,["variant","size","children","className"]);t=t||u[o]||"display";const f=p[t];return a.default.createElement(f,c({className:(0,n.default)("spectrum-Heading",`spectrum-Heading--${t}`,d)},(0,i.default)(h)),s)}d.displayName="Heading",d.propTypes={variant:o.default.oneOf(["display","pageTitle","subtitle1","subtitle2","subtitle3"]),className:o.default.string}},20960:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M29 16h-9V7a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v9H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9v9a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-9h9a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1z"}))},58709:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M37 20H26V9a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11H9a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h11v11a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V26h11a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z"}))},44316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(20960),24:r(58709)}}))};s.displayName="Add",t.default=s},36465:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M16 2a16 16 0 1 0 16 16A16 16 0 0 0 16 2zm10 17a1 1 0 0 1-1 1h-7v7a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-7H7a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h7V9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7h7a1 1 0 0 1 1 1z"}))},51534:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24 4.1A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1zM36 25a1 1 0 0 1-1 1h-9v9a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-9h-9a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h9v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9h9a1 1 0 0 1 1 1z"}))},97598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(36465),24:r(51534)}}))};s.displayName="AddCircle",t.default=s},32149:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M17.127 2.579L.4 32.512A1 1 0 0 0 1.272 34h33.456a1 1 0 0 0 .873-1.488L18.873 2.579a1 1 0 0 0-1.746 0zM20 29.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5zm0-6a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-12a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5z"}))},57783:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M44.37 39.036L25.752 5.186a2 2 0 0 0-3.5 0L3.63 39.036A2 2 0 0 0 5.383 42h37.234a2 2 0 0 0 1.753-2.964zM24 39a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm-2.4-10V15a1 1 0 0 1 1-1h2.8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-2.8a1 1 0 0 1-1-1z"}))},77125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(32149),24:r(57783)}}))};s.displayName="Alert",t.default=s},10836:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M35.087 20.17S29.206 7.832 28.442 5.813c-.729-1.926-1.669-3.729-3.729-3.729-2.31 0-3.511 1.674-3.729 3.729-.063.59-.2 2.474-.361 4.23h-5.249c-.2-2.131-.349-4.134-.358-4.23-.181-2.093-1.016-3.73-3.729-3.73-2.06 0-2.91 1.84-3.729 3.729C6.9 7.322.764 20.447.764 20.447h.014a8.2 8.2 0 1 0 15.73 3.263c0-.252-.015-1.466-.038-1.712h3.058c-.022.246-.038 1.461-.038 1.712a8.2 8.2 0 1 0 15.6-3.542zM8.3 29.082a5.37 5.37 0 1 1 5.37-5.37 5.37 5.37 0 0 1-5.37 5.37zm19.392 0a5.37 5.37 0 1 1 5.37-5.37 5.37 5.37 0 0 1-5.362 5.37z"}))},38099:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M46.91 28.25S39.024 11.707 38 9c-.978-2.583-2.238-5-5-5-3.1 0-4.707 2.244-5 5a490.06 490.06 0 0 0-.484 5h-7.037c-.269-2.857-.468-4.871-.479-5-.244-2.8-1.366-5-5-5-2.762 0-3.9 2.467-5 5C9.122 11.024.889 28.622.889 28.622h.02A11 11 0 1 0 22 33c0-.338-.021-.67-.05-1h4.1c-.03.33-.05.662-.05 1a11 11 0 1 0 20.91-4.75zM11 40.2a7.2 7.2 0 1 1 7.2-7.2 7.2 7.2 0 0 1-7.2 7.2zm26 0a7.2 7.2 0 1 1 7.2-7.2 7.2 7.2 0 0 1-7.2 7.2z"}))},39070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(10836),24:r(38099)}}))};s.displayName="Browse",t.default=s},26358:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M12.509 21.03a4.917 4.917 0 0 0-4.194 1.2 12.924 12.924 0 0 0-2.68 4.782c-.463 1.94-.9 3.772-3.359 4.772a.6.6 0 0 0-.341.712.9.9 0 0 0 .644.658 23.76 23.76 0 0 0 1.977.4c2.608.41 7.48.738 10.807-1.651 1.237-.848 2.836-2.982 2.822-4.547a6.813 6.813 0 0 0-5.676-6.326zM19.9 24.1c7.235-8.227 16.422-19.535 14.016-21.941S21.546 10.976 14.38 18.83a10.051 10.051 0 0 1 5.52 5.27z"}))},39512:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M16.647 26.889a7.858 7.858 0 0 0-6.01 2.188 14.07 14.07 0 0 0-2.967 5.879c-.875 2.783-1.7 5.41-5.261 7.107a1 1 0 0 0 .264 1.89c.8.136 1.72.252 2.72.326 3.6.268 10.38.154 15.315-3.6a7.605 7.605 0 0 0 3.139-5.563 7.739 7.739 0 0 0-7.2-8.227zM26.53 30.1C36.51 18.977 47.871 5.715 45.094 2.938S29.335 13.15 19.48 23.8a11.4 11.4 0 0 1 7.05 6.3z"}))},50891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(26358),24:r(39512)}}))};s.displayName="Brush",t.default=s},18178:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33 2H5a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h11V22h6v12h11a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zM12 26H6v-4h6zm0-8H6v-4h6zm0-8H6V6h6zm10 8h-6v-4h6zm0-8h-6V6h6zm10 16h-6v-4h6zm0-8h-6v-4h6zm0-8h-6V6h6z"}))},45607:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4 6v36a2 2 0 0 0 2 2h14V33a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v11h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2zm12 30H8v-4h8zm0-8H8v-4h8zm0-8H8v-4h8zm0-8H8V8h8zm12 16h-8v-4h8zm0-8h-8v-4h8zm0-8h-8V8h8zm12 24h-8v-4h8zm0-8h-8v-4h8zm0-8h-8v-4h8zm0-8h-8V8h8z"}))},16089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(18178),24:r(45607)}}))};s.displayName="Building",t.default=s},66674:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33 6h-3V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1h3v3a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM4 28V4h24v2H7a1 1 0 0 0-1 1v21zm28 4H8V8h14v14l4-3 4 3V8h2z"}))},63915:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M43 10H11a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1V11a1 1 0 0 0-1-1zm-3 30H14V14h26z"}),n.createElement("path",{d:"M10 34H8V8h26v2h4V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1h5z"}),n.createElement("path",{d:"M29 28l4-3.5 4 3.5V14h-8v14z"}))},64114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(66674),24:r(63915)}}))};s.displayName="CCLibrary",t.default=s},91076:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M31.312 7.725l-1.455-1.133a1 1 0 0 0-1.4.175L14.822 24.283l-6.647-6.612a1 1 0 0 0-1.414 0L5.436 19a1 1 0 0 0 0 1.415l8.926 8.9a1 1 0 0 0 1.5-.093L31.487 9.128a1 1 0 0 0-.175-1.403z"}))},47178:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M41.3 9.834L38.33 7.52a1 1 0 0 0-1.4.175l-17.697 22.73-8.613-8.614a1 1 0 0 0-1.414 0l-2.695 2.695a1 1 0 0 0 0 1.414l12.432 12.447a1 1 0 0 0 1.5-.093l21.034-27.037a1 1 0 0 0-.177-1.403z"}))},14928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(91076),24:r(47178)}}))};s.displayName="Checkmark",t.default=s},85948:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M8 14.02a2 2 0 0 1 3.411-1.411l6.578 6.572 6.578-6.572a2 2 0 0 1 2.874 2.773l-.049.049-7.992 7.984a2 2 0 0 1-2.825 0l-7.989-7.983A1.989 1.989 0 0 1 8 14.02z"}))},25321:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M22.585 31.7L11.94 21.05a2 2 0 0 1 0-2.828l.282-.282a2.006 2.006 0 0 1 2.828 0L24 26.888l8.949-8.948a2.006 2.006 0 0 1 2.828 0l.282.282a2 2 0 0 1 0 2.828L25.414 31.7a2 2 0 0 1-2.829 0z"}))},79207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(85948),24:r(25321)}}))};s.displayName="ChevronDown",t.default=s},35543:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M12 18a1.988 1.988 0 0 0 .585 1.409l7.983 7.98a2 2 0 1 0 2.871-2.772l-.049-.049L16.819 18l6.572-6.57a2 2 0 0 0-2.773-2.87l-.049.049-7.983 7.98A1.988 1.988 0 0 0 12 18z"}))},55066:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M16.3 22.585L26.949 11.94a2 2 0 0 1 2.828 0l.282.282a2.006 2.006 0 0 1 0 2.828L21.112 24l8.948 8.949a2.006 2.006 0 0 1 0 2.828l-.282.282a2 2 0 0 1-2.828 0L16.3 25.414a2 2 0 0 1 0-2.829z"}))},34803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(35543),24:r(55066)}}))};s.displayName="ChevronLeft",t.default=s},50342:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M24 18a1.988 1.988 0 0 1-.585 1.409l-7.983 7.98a2 2 0 1 1-2.871-2.772l.049-.049L19.181 18l-6.572-6.57a2 2 0 0 1 2.773-2.87l.049.049 7.983 7.98A1.988 1.988 0 0 1 24 18z"}))},55569:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M31.7 25.414L21.05 36.059a2 2 0 0 1-2.828 0l-.282-.282a2.006 2.006 0 0 1 0-2.828L26.888 24l-8.948-8.949a2.006 2.006 0 0 1 0-2.828l.282-.282a2 2 0 0 1 2.828 0L31.7 22.585a2 2 0 0 1 0 2.829z"}))},57362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(50342),24:r(55569)}}))};s.displayName="ChevronRight",t.default=s},60649:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("rect",{height:"14",rx:"1",ry:"1",width:"14",x:"2",y:"2"}),n.createElement("rect",{height:"14",rx:"1",ry:"1",width:"14",x:"20",y:"2"}),n.createElement("rect",{height:"14",rx:"1",ry:"1",width:"14",x:"2",y:"20"}),n.createElement("rect",{height:"14",rx:"1",ry:"1",width:"14",x:"20",y:"20"}))},62915:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"18",rx:"2",ry:"2",width:"18",x:"4",y:"4"}),n.createElement("rect",{height:"18",rx:"2",ry:"2",width:"18",x:"26",y:"4"}),n.createElement("rect",{height:"18",rx:"2",ry:"2",width:"18",x:"4",y:"26"}),n.createElement("rect",{height:"18",rx:"2",ry:"2",width:"18",x:"26",y:"26"}))},88716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(60649),24:r(62915)}}))};s.displayName="ClassicGridView",t.default=s},45892:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M26.485 6.686L18 15.172 9.515 6.686a1 1 0 0 0-1.414 0L6.686 8.1a1 1 0 0 0 0 1.414L15.172 18l-8.486 8.485a1 1 0 0 0 0 1.414L8.1 29.314a1 1 0 0 0 1.414 0L18 20.828l8.485 8.485a1 1 0 0 0 1.414 0l1.415-1.413a1 1 0 0 0 0-1.414L20.828 18l8.485-8.485a1 1 0 0 0 0-1.414L27.9 6.686a1 1 0 0 0-1.415 0z"}))},81648:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M35.314 8.444L24 19.757 12.686 8.444a1 1 0 0 0-1.414 0l-2.828 2.828a1 1 0 0 0 0 1.414L19.757 24 8.444 35.314a1 1 0 0 0 0 1.414l2.828 2.828a1 1 0 0 0 1.414 0L24 28.243l11.314 11.313a1 1 0 0 0 1.414 0l2.828-2.828a1 1 0 0 0 0-1.414L28.243 24l11.313-11.314a1 1 0 0 0 0-1.414l-2.828-2.828a1 1 0 0 0-1.414 0z"}))},89877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(45892),24:r(81648)}}))};s.displayName="Close",t.default=s},99447:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M28.286 28a5.714 5.714 0 1 0 0-11.429 5.777 5.777 0 0 0-.645.037 7.239 7.239 0 1 0-14.153-2.876 6.1 6.1 0 0 0-7.473 7.461A3.429 3.429 0 1 0 5.43 28z"}))},48074:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38.143 36a7.857 7.857 0 0 0 0-15.714 7.94 7.94 0 0 0-.887.05 9.954 9.954 0 1 0-19.46-3.954A8.386 8.386 0 0 0 7.522 26.64 4.715 4.715 0 1 0 6.714 36z"}))},65306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(99447),24:r(48074)}}))};s.displayName="Cloud",t.default=s},67146:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M27.688 14.026Q27.348 14 27 14a9.001 9.001 0 0 0-7.484 14H3.718A3.92 3.92 0 0 1 0 23.854c0-1.73 1.792-4.261 4.092-4.261a4.815 4.815 0 0 1-.134-1.577 6.254 6.254 0 0 1 6.399-6.075 7.743 7.743 0 0 1 2.098.291c.936-3.166 3.622-6.17 7.607-6.17a7.296 7.296 0 0 1 7.641 7.57c0 .133-.005.264-.015.394z"}),n.createElement("path",{d:"M26.969 15.813a7.25 7.25 0 1 0 7.25 7.25 7.255 7.255 0 0 0-7.25-7.25zm3.87 9.915a.92.92 0 0 1-.65 1.57.925.925 0 0 1-.65-.27L27.111 24.6l-2.426 2.427a.919.919 0 0 1-1.57-.65.914.914 0 0 1 .27-.65l2.426-2.427-2.393-2.418a.818.818 0 0 1-.307-.589 1.007 1.007 0 0 1 .957-.982.925.925 0 0 1 .65.27L27.111 22l2.393-2.419a.925.925 0 0 1 .65-.27 1.007 1.007 0 0 1 .957.982.818.818 0 0 1-.306.589L28.412 23.3z"}))},44057:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4.946 38H27.61a11.995 11.995 0 0 1 9.98-17.99s-.01-.947-.01-1.476A10.31 10.31 0 0 0 27.124 8c-5.392 0-9.008 4.182-10.274 8.499a10.404 10.404 0 0 0-2.839-.396 8.492 8.492 0 0 0-8.657 8.282 6.627 6.627 0 0 0 .18 2.15C2.426 26.535 0 29.987 0 32.347 0 35.748 1.774 38 4.946 38z"}),n.createElement("path",{d:"M38 22a10 10 0 1 0 10 10 10.01 10.01 0 0 0-10-10zm5.246 13.416a1.295 1.295 0 0 1-.915 2.211 1.302 1.302 0 0 1-.916-.381L38 33.83l-3.415 3.416a1.293 1.293 0 0 1-2.21-.915 1.286 1.286 0 0 1 .379-.915L36.17 32l-3.37-3.404a1.151 1.151 0 0 1-.43-.828 1.417 1.417 0 0 1 1.346-1.383 1.302 1.302 0 0 1 .916.38L38 30.17l3.368-3.404a1.302 1.302 0 0 1 .916-.381 1.417 1.417 0 0 1 1.346 1.383 1.151 1.151 0 0 1-.43.828L39.83 32z"}))},69325:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(67146),24:r(44057)}}))};s.displayName="CloudDisconnected",t.default=s},23774:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M27.688 14.026Q27.348 14 27 14a9.001 9.001 0 0 0-7.484 14H3.718A3.92 3.92 0 0 1 0 23.854c0-1.73 1.792-4.261 4.092-4.261a4.815 4.815 0 0 1-.134-1.577 6.254 6.254 0 0 1 6.399-6.075 7.743 7.743 0 0 1 2.098.291c.936-3.166 3.622-6.17 7.607-6.17a7.296 7.296 0 0 1 7.641 7.57c0 .133-.005.264-.015.394z"}),n.createElement("path",{d:"M26.969 15.813a7.25 7.25 0 1 0 7.25 7.25 7.255 7.255 0 0 0-7.25-7.25zm-1.076 2.462c0-.053.15-.137.26-.178a2.27 2.27 0 0 1 .824-.088 2.877 2.877 0 0 1 .87.087c.113.042.276.138.276.18v1.386a43.029 43.029 0 0 1-.366 4.778c0 .041-.028.247-.163.247H26.42c-.09 0-.146-.194-.167-.247-.045-.38-.36-3.27-.36-4.778zm1.17 10.1a1.238 1.238 0 1 1 1.238-1.239 1.239 1.239 0 0 1-1.238 1.239z"}))},83222:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4.946 38H27.61a11.995 11.995 0 0 1 9.98-17.99s-.01-.947-.01-1.476A10.31 10.31 0 0 0 27.124 8c-5.392 0-9.008 4.182-10.274 8.499a10.404 10.404 0 0 0-2.839-.396 8.492 8.492 0 0 0-8.657 8.282 6.627 6.627 0 0 0 .18 2.15C2.426 26.535 0 29.987 0 32.347 0 35.748 1.774 38 4.946 38z"}),n.createElement("path",{d:"M38 22a10 10 0 1 0 10 10 10.01 10.01 0 0 0-10-10zm-1.487 3.2c0-.071.2-.182.346-.238a3.026 3.026 0 0 1 1.1-.117 3.837 3.837 0 0 1 1.16.117c.15.056.368.184.368.238v1.849a57.38 57.38 0 0 1-.488 6.371c0 .055-.038.33-.218.33h-1.565c-.12 0-.195-.259-.223-.33-.06-.508-.48-4.36-.48-6.371zM38 38.882a1.65 1.65 0 1 1 1.652-1.652A1.652 1.652 0 0 1 38 38.882z"}))},84035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(23774),24:r(83222)}}))};s.displayName="CloudError",t.default=s},13548:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M23.614 6.145c-4.371-.7-9.005 0-9.648 2.092a2.293 2.293 0 0 0 1.294 2.909c1.152.647 2.6 2.673 1.139 4.54a2.827 2.827 0 0 1-3.124 1.126c-3.748-.946-7.893-2.881-11.285.345C-1.1 20.1.158 24.466 3.154 26.842a23.4 23.4 0 0 0 14.513 5.274C27.253 32.116 35.8 26.465 35.8 19c0-7.558-7.168-12.057-12.186-12.855zM8.694 27.453a3.8 3.8 0 1 1 3.8-3.8 3.8 3.8 0 0 1-3.8 3.8zM27.98 11.419a2.5 2.5 0 1 1-2.5 2.5 2.5 2.5 0 0 1 2.5-2.5zm-10.7 18.139A3.56 3.56 0 1 1 20.837 26a3.56 3.56 0 0 1-3.559 3.559zm7.79-1.5a3 3 0 1 1 3-3 3 3 0 0 1-3.002 3.005zM30 22.56a2.675 2.675 0 1 1 2.674-2.675A2.674 2.674 0 0 1 30 22.56z"}))},15733:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M30.938 7.112c-5.4-.859-11.13 0-11.925 2.585a2.834 2.834 0 0 0 1.6 3.595c1.424.8 3.216 3.3 1.407 5.612a3.494 3.494 0 0 1-3.861 1.396c-4.633-1.17-9.755-3.561-13.948.427-3.822 3.63-2.263 9.028 1.439 11.966a28.925 28.925 0 0 0 17.938 6.518C35.436 39.211 46 32.226 46 23c0-9.341-8.86-14.9-15.062-15.888zM12.5 33.448a4.7 4.7 0 1 1 4.694-4.7 4.695 4.695 0 0 1-4.694 4.7zM38.233 13.7a2.834 2.834 0 1 1-2.833 2.833 2.833 2.833 0 0 1 2.833-2.833zM23.107 36.05a4.4 4.4 0 1 1 4.4-4.4 4.4 4.4 0 0 1-4.4 4.4zm9.629-1.85a3.714 3.714 0 1 1 3.713-3.714 3.714 3.714 0 0 1-3.713 3.714zm6.693-6.1a3.306 3.306 0 1 1 3.304-3.3 3.305 3.305 0 0 1-3.305 3.306z"}))},63198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(13548),24:r(15733)}}))};s.displayName="ColorPalette",t.default=s},73702:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M35 6h-5V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3H12V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3H3a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm-1 26H4V8h4v1a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8h14v1a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8h4z"}),n.createElement("rect",{height:"8",rx:"1",ry:"1",width:"8",x:"22",y:"20"}))},93229:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M45 8h-7V5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3H14V5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3H3a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1h42a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1zm-3 30H6V12h4v1a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1h20v1a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1h4z"}),n.createElement("path",{d:"M28 25v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1z"}))},15588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(73702),24:r(93229)}}))};s.displayName="Date",t.default=s},74866:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M31.5 4H24V2a2 2 0 0 0-2-2H12a2 2 0 0 0-2 2v2H2.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h2l2.413 25.1a1 1 0 0 0 1 .9h18.179a1 1 0 0 0 1-.9L29.5 8h2a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM12 2h10v2H12zm-.458 26.944l-1 .06a.5.5 0 0 1-.529-.469L8.87 11.49a.5.5 0 0 1 .469-.529l1-.06a.5.5 0 0 1 .529.469l1.145 17.045a.5.5 0 0 1-.471.529zM18 28.48a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V11.4a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5zm5.985.056a.5.5 0 0 1-.529.469l-1-.06a.5.5 0 0 1-.469-.529l1.147-17.046a.5.5 0 0 1 .529-.469l1 .06a.5.5 0 0 1 .469.529z"}))},54575:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M41 8h-9V6a4 4 0 0 0-4-4H18a4 4 0 0 0-4 4v2H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1.2l2 28a2 2 0 0 0 2 2h25.6a2 2 0 0 0 2-2l2-28H41a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1zM15.982 39.353a1.013 1.013 0 0 1-.7.331l-.4.021h-.023a1.011 1.011 0 0 1-1.027-.951l-1.23-21.362a1 1 0 0 1 .951-1.052l.447-.023a1 1 0 0 1 1 .953l1.227 21.361a.992.992 0 0 1-.245.722zM24.2 38.7a1 1 0 0 1-1 1h-.4a1 1 0 0 1-1-1V17.3a1 1 0 0 1 1-1h.4a1 1 0 0 1 1 1zM28 8H18V6h10zm4.2 30.76a.992.992 0 0 1-.33.7 1.025 1.025 0 0 1-.682.258h-.033l-.4-.02a1 1 0 0 1-.693-.327.987.987 0 0 1-.258-.717l1.152-21.377a1 1 0 0 1 1-.95l.447.021a1 1 0 0 1 .693.327.977.977 0 0 1 .26.717z"}))},38242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(74866),24:r(54575)}}))};s.displayName="Delete",t.default=s},37375:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33.567 8.2L27.8 2.432a1.214 1.214 0 0 0-.866-.353H26.9a1.371 1.371 0 0 0-.927.406L5.084 23.372a1 1 0 0 0-.251.421L2.055 33.1c-.114.376.459.851.783.851a.274.274 0 0 0 .061-.006c.276-.064 7.867-2.344 9.312-2.779a.981.981 0 0 0 .414-.249l20.888-20.889a1.374 1.374 0 0 0 .4-.883 1.222 1.222 0 0 0-.346-.945zM11.4 29.316c-2.161.649-4.862 1.465-6.729 2.022l2.009-6.73z"}))},77591:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M17.054 37.145c-3.1 1.116-6.975 2.516-9.652 3.475l3.456-9.653zm16.64-32.727L8.82 29.292a2.231 2.231 0 0 0-.521.814L4.115 41.659a1.654 1.654 0 0 0 2.171 2.186L17.9 39.713a2.23 2.23 0 0 0 .826-.526L43.59 14.274a1.887 1.887 0 0 0 .172-2.653l-7.42-7.382a1.888 1.888 0 0 0-2.648.179z"}))},27944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(37375),24:r(77591)}}))};s.displayName="Edit",t.default=s},16652:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M30.946 2H3.054a1 1 0 0 0-.787 1.617L14 18.589V33.9a.992.992 0 0 0 1.68.825l3.98-4.153a1.221 1.221 0 0 0 .34-.845V18.589L31.733 3.617A1 1 0 0 0 30.946 2z"}))},13213:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M42.885 4H5.119a1.464 1.464 0 0 0-1.136 2.388l16.1 19.671v18.417a1.464 1.464 0 0 0 2.46 1.073l4.93-5.445a1.464 1.464 0 0 0 .49-1.093V26.027L44.021 6.388A1.464 1.464 0 0 0 42.885 4z"}))},81950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(16652),24:r(13213)}}))};s.displayName="Filter",t.default=s},21919:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M14.8 27a13.146 13.146 0 0 1 3.2-8.411c2.083-2.694 11.733-14.972 11.733-14.972A1 1 0 0 0 28.946 2H1.054a1 1 0 0 0-.787 1.617L12 18.589V33.9a.992.992 0 0 0 1.68.825l2.338-2.439A12.131 12.131 0 0 1 14.8 27z"}),n.createElement("path",{d:"M27 18.1a8.9 8.9 0 1 0 8.9 8.9 8.9 8.9 0 0 0-8.9-8.9zm-2.338 14.312l-4.128-4.127a.5.5 0 0 1 0-.707l1.036-1.036a.5.5 0 0 1 .707 0l2.731 2.731 6.106-6.106a.5.5 0 0 1 .707 0l1.043 1.043a.5.5 0 0 1 0 .707l-7.5 7.5a.5.5 0 0 1-.702-.005z"}))},83836:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M20.3 36c0-4.157 1.449-7.322 4.265-10.735S39.621 6.388 39.621 6.388A1.464 1.464 0 0 0 38.486 4H1.529A1.464 1.464 0 0 0 .393 6.388l15.686 19.671v18.417a1.464 1.464 0 0 0 2.46 1.073l3.256-2.886A14.465 14.465 0 0 1 20.3 36z"}),n.createElement("path",{d:"M36 24.1A11.9 11.9 0 1 0 47.9 36 11.9 11.9 0 0 0 36 24.1zm-2.229 19.8l-6.133-6.133a.5.5 0 0 1 0-.707L29.4 35.3a.5.5 0 0 1 .707 0L34 39.188l8.939-8.94a.5.5 0 0 1 .707 0l1.887 1.887a.5.5 0 0 1 0 .707L34.479 43.9a.5.5 0 0 1-.708 0z"}))},18657:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(21919),24:r(83836)}}))};s.displayName="FilterCheck",t.default=s},1896:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M28.583 5.854a19.006 19.006 0 0 0-4.113.454 1.093 1.093 0 0 1-1.3-1.085V3.609a1.086 1.086 0 0 0-.814-1.061A19.5 19.5 0 0 0 17.75 2 19.154 19.154 0 0 0 8 4.648v15.165a19.1 19.1 0 0 1 9.76-2.646 1.1 1.1 0 0 1 1.073 1.1v3.739a.99.99 0 0 0 1.406.907 19.291 19.291 0 0 1 12.515-1.435A1.006 1.006 0 0 0 34 20.511V7.4a1 1 0 0 0-.751-.98 19.489 19.489 0 0 0-4.666-.566z"}),n.createElement("rect",{height:"34",rx:".5",ry:".5",width:"4",x:"2",y:"2"}))},84480:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M36.917 9.289a24.851 24.851 0 0 0-5.379.593 1.429 1.429 0 0 1-1.7-1.418V6.809a1.978 1.978 0 0 0-1.509-1.945 25.515 25.515 0 0 0-5.579-.614A25.048 25.048 0 0 0 10 7.712v19.832a24.98 24.98 0 0 1 12.765-3.461 1.44 1.44 0 0 1 1.4 1.439v3.807a2.01 2.01 0 0 0 2.843 1.812 25.245 25.245 0 0 1 14.637-1.569A1.982 1.982 0 0 0 44 27.619V11.848A1.978 1.978 0 0 0 42.491 9.9a25.515 25.515 0 0 0-5.574-.611z"}),n.createElement("rect",{height:"42",rx:"1",ry:"1",width:"4",x:"2",y:"4"}))},96288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(1896),24:r(84480)}}))};s.displayName="Flag",t.default=s},54444:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33 32H3a1 1 0 0 1-1-1V10h31a1 1 0 0 1 1 1v20a1 1 0 0 1-1 1zM13.01 4.61A2 2 0 0 0 11.57 4H4a2 2 0 0 0-2 2v2h14.266z"}))},4619:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4 14v26a2 2 0 0 0 2 2h36a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2zm14.01-9.39A2 2 0 0 0 16.57 4H8a4 4 0 0 0-4 4v2h19.266z"}))},4457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(54444),24:r(4619)}}))};s.displayName="Folder",t.default=s},31278:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M14.7 27A12.293 12.293 0 0 1 34 16.893V11a1 1 0 0 0-1-1H2v21a1 1 0 0 0 1 1h12.769a12.24 12.24 0 0 1-1.069-5z"}),n.createElement("path",{d:"M27 18.1a8.9 8.9 0 1 0 8.9 8.9 8.9 8.9 0 0 0-8.9-8.9zm5 9.4a.5.5 0 0 1-.5.5H28v3.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V28h-3.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H26v-3.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V26h3.5a.5.5 0 0 1 .5.5zM16 8H2V5.5A1.5 1.5 0 0 1 3.5 4h7.672a2 2 0 0 1 1.414.586z"}))},61551:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M18.1 4.8a2 2 0 0 0-1.6-.8H6a2 2 0 0 0-2 2v4h18zm2 31.2A15.879 15.879 0 0 1 44 22.275V16a2 2 0 0 0-2-2H4v26a2 2 0 0 0 2 2h15.28a15.843 15.843 0 0 1-1.18-6z"}),n.createElement("path",{d:"M36 24.1A11.9 11.9 0 1 0 47.9 36 11.9 11.9 0 0 0 36 24.1zm8 13.4a.5.5 0 0 1-.5.5H38v5.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V38h-5.5a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5H34v-5.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V34h5.5a.5.5 0 0 1 .5.5z"}))},56590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(31278),24:r(61551)}}))};s.displayName="FolderAdd",t.default=s},11276:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M12 6l4 4h14v4H6V7a1 1 0 0 1 1-1zm.5-2H7a3 3 0 0 0-3 3v7H.577a.5.5 0 0 0-.495.571l3.727 14.675a1 1 0 0 0 .969.754h26.444a1 1 0 0 0 .969-.754l3.727-14.675a.5.5 0 0 0-.495-.571H32V9a1 1 0 0 0-1-1H16.8l-3.5-3.6a1 1 0 0 0-.8-.4z"}))},30555:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M16 8l6.437 6H40v6H8V9a1 1 0 0 1 1-1zm0-4H9a5 5 0 0 0-5 5v11H1.181a1 1 0 0 0-.987 1.164L3.7 40.359A2 2 0 0 0 5.668 42h36.664a2 2 0 0 0 1.968-1.641l3.506-19.195A1 1 0 0 0 46.819 20H44v-8a2 2 0 0 0-2-2H24l-4.7-4.526A4.647 4.647 0 0 0 16 4z"}))},91912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(11276),24:r(30555)}}))};s.displayName="FolderOpen",t.default=s},11733:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M7.146 13.769C6.1 9.982 8.8 8.352 8.534 5.116A16.073 16.073 0 0 0 2 18c0 9.112 7.943 14.542 13.554 15.732a6.9 6.9 0 0 0 1.046.168c2-5.1-1.773-10.789-4.263-14.494-2.075-3.088-3.959-1.18-5.191-5.637z"}),n.createElement("path",{d:"M32.781 19.031c-1.61-.613-2.991 1.475-3.114-4.164a5.764 5.764 0 0 1 1.667-4 3.08 3.08 0 0 1 .729-.349c-.191-.349-.4-.684-.62-1.018-.037.019-.071.044-.109.062-1.25.583-1.423.755-2 0a1.576 1.576 0 0 1 .346-2.326 15.985 15.985 0 0 0-11.654-5.221c2.028.028 4.447 1.53 3.213 3.929.185-.381-4.027-1.29-4.6-1.29-.772 0 1.576-2.889 1.36-2.639a16.08 16.08 0 0 0-6.615 1.423c1.093.706 2.311.459 3.543.764a3.006 3.006 0 0 1 1.1.452 3.7 3.7 0 0 0-1.1-.452c-1.818-.211.88 4.777.778 4.114.5-2.292 3.612-3.176 4.566-.147a3.741 3.741 0 0 1-.838 2.265c-1.41 1.854-1.7 5.154-2.4 4.31-6.59-2.7-5.865.871-3.7 3.258 3.463 3.82 1.706.392 6.242 2.392 3.648 1.608 8.038 1.989 6.967 3.2-3.241 3.67-2.56 6.1-8.293 10.4.478-.013 2-.165 2.311-.216a16.274 16.274 0 0 0 13.375-14.4 2.4 2.4 0 0 1-1.154-.347z"}))},84433:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M9.527 18.358c-1.4-5.049 2.207-7.223 1.852-11.537A21.43 21.43 0 0 0 2.667 24c0 12.149 10.591 19.39 18.072 20.976a9.2 9.2 0 0 0 1.393.221c2.668-6.8-2.364-14.385-5.684-19.326-2.765-4.113-5.278-1.571-6.921-7.513z"}),n.createElement("path",{d:"M19.9 5.6s-.485.029-.619.163c-1.014 1.01 1.776 6.1 1.656 5.322.664-3.056 4.816-4.235 6.088-.2a4.989 4.989 0 0 1-1.117 3.02c-1.88 2.472-2.262 6.872-3.2 5.746-8.787-3.6-7.82 1.161-4.936 4.343 4.618 5.094 2.275.522 8.323 3.189 4.864 2.145 10.718 2.652 9.289 4.27-4.322 4.894-3.413 8.137-11.057 13.872.637-.017 2.665-.22 3.082-.288a21.7 21.7 0 0 0 17.833-19.2 3.2 3.2 0 0 1-1.539-.469c-2.147-.817-3.989 1.967-4.152-5.552a7.686 7.686 0 0 1 2.222-5.333 4.107 4.107 0 0 1 .972-.465 22.301 22.301 0 0 0-.826-1.357c-.05.026-.094.059-.145.083-1.667.778-1.9 1.007-2.667 0a2.1 2.1 0 0 1 .461-3.1 21.313 21.313 0 0 0-15.533-6.957c2.7.037 5.929 2.039 4.284 5.239.247-.508-5.369-1.72-6.133-1.72-1.029 0 1.853-3.519 1.814-3.519a21.439 21.439 0 0 0-8.82 1.9C16.637 5.526 19.9 5.6 19.9 5.6z"}))},64335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(11733),24:r(84433)}}))};s.displayName="Globe",t.default=s},45990:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M7.146 13.769C6.1 9.982 8.8 8.352 8.534 5.116A16.073 16.073 0 0 0 2 18c0 9.112 7.943 14.542 13.554 15.732a6.9 6.9 0 0 0 1.046.168c2-5.1-1.773-10.789-4.263-14.494-2.075-3.088-3.959-1.18-5.191-5.637zm22.042 4.189a6.027 6.027 0 0 0-5.1 4.923 5.952 5.952 0 0 0 1.935 5.484L22.27 34.22a.5.5 0 0 0 .151.691l.842.54a.5.5 0 0 0 .691-.151l3.746-5.855a6 6 0 1 0 1.483-11.487zM30 27.9a4 4 0 1 1 4-4 4 4 0 0 1-4 4z"}),n.createElement("path",{d:"M32.063 10.518c-.192-.349-.4-.684-.62-1.018-.037.019-.07.044-.109.062-1.25.583-1.423.755-2 0a1.576 1.576 0 0 1 .347-2.326 15.984 15.984 0 0 0-11.655-5.221c2.027.028 4.446 1.53 3.213 3.929.186-.381-4.027-1.29-4.6-1.29-.772 0 1.575-2.889 1.36-2.639a16.085 16.085 0 0 0-6.615 1.423c1.094.706 2.311.46 3.544.764a3.014 3.014 0 0 1 1.1.452 3.711 3.711 0 0 0-1.1-.452c-1.818-.211.88 4.777.777 4.114.5-2.292 3.612-3.176 4.565-.147a3.742 3.742 0 0 1-.837 2.265c-1.411 1.854-1.7 5.154-2.4 4.31-6.591-2.7-5.865.871-3.7 3.258 3.464 3.82 1.706.392 6.242 2.392a26.464 26.464 0 0 0 2.916 1.05 8.023 8.023 0 0 1 6.533-5.469c.232-.03.46-.034.689-.045a25.037 25.037 0 0 1-.045-1.063 5.766 5.766 0 0 1 1.666-4 3.1 3.1 0 0 1 .729-.349z"}))},63326:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M15.181 4.584c1.457.942 3.081.613 4.724 1.019a4.01 4.01 0 0 1 1.465.6A4.926 4.926 0 0 0 19.9 5.6c-2.424-.281 1.173 6.37 1.037 5.485.664-3.056 4.816-4.235 6.088-.2a4.991 4.991 0 0 1-1.117 3.02c-1.88 2.472-2.262 6.872-3.2 5.746-8.787-3.6-7.819 1.162-4.936 4.344 4.618 5.094 2.274.522 8.323 3.189a35.524 35.524 0 0 0 3.937 1.415 12 12 0 0 1 9.836-5.3 19.362 19.362 0 0 1-.316-3.486 7.687 7.687 0 0 1 2.222-5.333 4.109 4.109 0 0 1 .973-.465 21.822 21.822 0 0 0-.827-1.357c-.05.026-.094.059-.145.083-1.666.778-1.9 1.007-2.666 0a2.1 2.1 0 0 1 .461-3.1 21.312 21.312 0 0 0-15.535-6.954c2.7.037 5.929 2.04 4.284 5.239.247-.508-5.37-1.72-6.133-1.72-1.03 0 2.1-3.852 1.813-3.519a21.438 21.438 0 0 0-8.818 1.897zm-3.802 2.237A21.429 21.429 0 0 0 2.667 24c0 12.149 10.591 19.39 18.071 20.976a9.239 9.239 0 0 0 1.394.221c2.668-6.8-2.364-14.385-5.684-19.326-2.765-4.115-5.278-1.571-6.921-7.514-1.395-5.048 2.207-7.221 1.852-11.536zm24.609 35.37a7.92 7.92 0 0 0 4 1.112 8.08 8.08 0 1 0-6.323-3.151l-5.376 5.376a1 1 0 0 0 0 1.414l.766.765a1 1 0 0 0 1.414 0zm4-12.082A5.194 5.194 0 1 1 34.8 35.3a5.194 5.194 0 0 1 5.192-5.192z"}))},53904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(45990),24:r(63326)}}))};s.displayName="GlobeSearch",t.default=s},70400:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M22.5 14.025a4.417 4.417 0 0 1-1.535 3.41c-.936.916-1.823 1.731-1.823 2.472a2.664 2.664 0 0 0 .384 1.361.105.105 0 0 1-.1.173h-2.083a.4.4 0 0 1-.312-.1 2.76 2.76 0 0 1-.576-1.707c0-1.162.7-1.9 1.848-3.09.791-.815 1.247-1.335 1.247-2.1 0-.89-.576-1.508-2.039-1.508a5.957 5.957 0 0 0-3.022.815.121.121 0 0 1-.191-.1v-2.4c0-.1 0-.2.1-.248a7.445 7.445 0 0 1 3.646-.866c2.873.005 4.456 1.712 4.456 3.888zm-5.925 11.124a1.679 1.679 0 1 1 3.358 0 1.575 1.575 0 0 1-1.679 1.731 1.6 1.6 0 0 1-1.679-1.731z"}),n.createElement("path",{d:"M18 2.1A15.9 15.9 0 1 0 33.9 18 15.9 15.9 0 0 0 18 2.1zm0 29.812A13.912 13.912 0 1 1 31.913 18 13.912 13.912 0 0 1 18 31.913z"}))},11001:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24 7.9A16.1 16.1 0 1 1 7.9 24 16.118 16.118 0 0 1 24 7.9zm0-3.8A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1z"}),n.createElement("path",{d:"M29.724 18.665c0 3.52-4.544 5.536-4.544 7.361a3.363 3.363 0 0 0 .576 1.7.166.166 0 0 1-.16.256h-2.817a.415.415 0 0 1-.384-.16 3.451 3.451 0 0 1-.832-2.176c0-2.561 4.192-4.128 4.192-6.689 0-1.248-1.024-2.336-2.976-2.336a9.241 9.241 0 0 0-3.872.8c-.128.064-.224 0-.224-.128v-2.532c0-.128 0-.256.128-.32a10.943 10.943 0 0 1 4.769-.992c3.744 0 6.144 2.144 6.144 5.216zm-7.969 14.082a2.24 2.24 0 0 1 4.48 0A2.084 2.084 0 0 1 24 34.987a2.116 2.116 0 0 1-2.245-2.24z"}))},86071:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(70400),24:r(11001)}}))};s.displayName="HelpOutline",t.default=s},30854:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("circle",{cx:"23.8",cy:"12.6",r:"2.5"}),n.createElement("path",{d:"M34.875 4H1.125A1.068 1.068 0 0 0 0 5v26a1.068 1.068 0 0 0 1.125 1h33.75A1.068 1.068 0 0 0 36 31V5a1.068 1.068 0 0 0-1.125-1zM34 22a15.166 15.166 0 0 0-6.182-2c-2.939 0-5.477 4-8.416 4s-6.679-8-9.618-8C7.113 16 2 24 2 24V6h32z"}))},83894:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("circle",{cx:"32.16",cy:"17.52",r:"3"}),n.createElement("path",{d:"M44 6H4a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2h40a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm-2 22.8c-2.149-1.269-3.146-2.4-5.018-2.4-3.526 0-6.572 4.8-10.1 4.8s-8.015-9.6-11.542-9.6C12.136 21.6 6 31.2 6 31.2V10h36z"}))},20494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(30854),24:r(83894)}}))};s.displayName="Image",t.default=s},22138:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M18 2a16 16 0 1 0 16 16A16 16 0 0 0 18 2zm-.3 4.3a2.718 2.718 0 0 1 2.864 2.824 2.665 2.665 0 0 1-2.864 2.863 2.706 2.706 0 0 1-2.864-2.864A2.717 2.717 0 0 1 17.7 6.3zM22 27a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-6h-1a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v9h1a1 1 0 0 1 1 1z"}))},2252:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24 4.1A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1zm-.3 6.2a2.718 2.718 0 0 1 2.864 2.824 2.665 2.665 0 0 1-2.864 2.863 2.706 2.706 0 0 1-2.864-2.864A2.717 2.717 0 0 1 23.7 10.3zM28 35a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8h-1a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v11h1a1 1 0 0 1 1 1z"}))},69674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(22138),24:r(2252)}}))};s.displayName="Info",t.default=s},24146:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("circle",{cx:"18",cy:"12",r:"2.15"}),n.createElement("path",{d:"M20.333 24H20v-7.6a.4.4 0 0 0-.4-.4h-3.933s-1.167.032-1.167 1 1.167 1 1.167 1H16v6h-.333s-1.167.032-1.167 1 1.167 1 1.167 1h4.667s1.167-.033 1.167-1-1.168-1-1.168-1z"}),n.createElement("path",{d:"M18 2.1A15.9 15.9 0 1 0 33.9 18 15.9 15.9 0 0 0 18 2.1zm0 29.812A13.912 13.912 0 1 1 31.913 18 13.912 13.912 0 0 1 18 31.913z"}))},48225:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24 7.9A16.1 16.1 0 1 1 7.9 24 16.118 16.118 0 0 1 24 7.9zm0-3.8A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1z"}),n.createElement("path",{d:"M21.56 14.747a2.24 2.24 0 0 1 4.48 0 2.084 2.084 0 0 1-2.24 2.24 2.116 2.116 0 0 1-2.24-2.24zM27.5 32H26V21a1 1 0 0 0-1-1h-4.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5H22v10h-1.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"}))},78023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(24146),24:r(48225)}}))};s.displayName="InfoOutline",t.default=s},10006:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M31.7 4.3a7.176 7.176 0 0 0-10.148 0c-.385.385-4.264 4.222-5.351 5.309a8.308 8.308 0 0 1 3.742.607c.52-.52 3.568-3.526 3.783-3.741a4.1 4.1 0 1 1 5.8 5.8l-7.118 7.115a4.623 4.623 0 0 1-3.372 1.3 3.953 3.953 0 0 1-2.7-1.109 4.161 4.161 0 0 1-1.241-1.625 2.026 2.026 0 0 0-.427.318l-1.636 1.712a7.134 7.134 0 0 0 1.227 1.673c2.8 2.8 7.874 2.364 10.676-.438l6.765-6.769a7.176 7.176 0 0 0 0-10.152z"}),n.createElement("path",{d:"M15.926 25.824c-.52.52-3.5 3.547-3.713 3.761a4.1 4.1 0 0 1-5.8-5.8L13.6 16.6a4.584 4.584 0 0 1 3.367-1.293 4.2 4.2 0 0 1 3.783 2.783 2.026 2.026 0 0 0 .427-.318l1.735-1.721a7.134 7.134 0 0 0-1.227-1.673 7.311 7.311 0 0 0-10.26.047l-7.186 7.187a7.176 7.176 0 0 0 10.148 10.149c.385-.385 4.194-4.242 5.281-5.329a8.308 8.308 0 0 1-3.742-.608z"}))},82457:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M42.357 5.643a11.071 11.071 0 0 0-15.657 0c-.594.594-3.806 3.741-5.483 5.418a12.818 12.818 0 0 1 5.774.939c.8-.8 2.732-2.668 3.064-3A6.327 6.327 0 0 1 39 17.945l-8.2 8.2c-2.47 2.47-6.9 2.76-9.375.289a6.419 6.419 0 0 1-1.915-2.508 3.125 3.125 0 0 0-.659.49l-2.524 2.641a11.006 11.006 0 0 0 1.892 2.581c4.324 4.324 12.149 3.648 16.472-.676l7.666-7.662a11.071 11.071 0 0 0 0-15.657z"}),n.createElement("path",{d:"M20.8 36.072c-.8.8-2.524 2.6-2.855 2.93A6.327 6.327 0 0 1 9 30.055l8.214-8.214c2.471-2.471 6.854-2.75 9.325-.279a6.079 6.079 0 0 1 1.706 2.577 3.125 3.125 0 0 0 .659-.491l2.676-2.655a11.006 11.006 0 0 0-1.892-2.581 11.28 11.28 0 0 0-15.829.073L5.643 26.7A11.071 11.071 0 0 0 21.3 42.357c.594-.594 3.6-3.672 5.274-5.349a12.818 12.818 0 0 1-5.774-.936z"}))},74274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(10006),24:r(82457)}}))};s.displayName="Link",t.default=s},71735:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M30 17.5V30H6V6h12.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H3a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V17.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"}),n.createElement("path",{d:"M23.54 2.853l3.389 3.389-9.546 9.546a.5.5 0 0 0 0 .707l2.117 2.122a.5.5 0 0 0 .707 0l9.546-9.546 3.389 3.389a.5.5 0 0 0 .858-.353V2H23.893a.5.5 0 0 0-.353.853z"}))},14551:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M40 24.5V40H8V8h15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H5a1 1 0 0 0-1 1v38a1 1 0 0 0 1 1h38a1 1 0 0 0 1-1V24.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"}),n.createElement("path",{d:"M30.241 4a1.008 1.008 0 0 0-.655 1.716l4.228 4.228-9.842 9.842a.5.5 0 0 0 0 .707l3.536 3.535a.5.5 0 0 0 .707 0l9.842-9.842 4.217 4.214a1 1 0 0 0 1.706-.655V4z"}))},47019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(71735),24:r(14551)}}))};s.displayName="LinkOut",t.default=s},16004:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M29 16h-1v-2a10 10 0 0 0-20 0v2H7a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V17a1 1 0 0 0-1-1zm-17-2a6 6 0 0 1 12 0v2H12zm8 12.222V29a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2.778a3 3 0 1 1 4 0z"}))},4378:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38 20h-2v-2a12 12 0 1 0-24 0v2h-2a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2V22a2 2 0 0 0-2-2zM26 33.445V37a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3.555a4 4 0 1 1 4 0zM32 20H16v-2a8 8 0 1 1 16 0z"}))},70316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(16004),24:r(4378)}}))};s.displayName="LockClosed",t.default=s},15171:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M35.338 32.3L23.865 20.824a12.013 12.013 0 1 0-3.04 3.04L32.3 35.338a2.155 2.155 0 0 0 3.04-3.04zM4 14a10 10 0 1 1 10 10A10 10 0 0 1 4 14z"}))},68738:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4 20a16 16 0 0 0 24.991 13.233l9.888 9.888a3 3 0 0 0 4.242-4.242l-9.888-9.888A16 16 0 1 0 4 20zm3.9 0A12.1 12.1 0 1 1 20 32.1 12.114 12.114 0 0 1 7.9 20z"}))},45302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(15171),24:r(68738)}}))};s.displayName="Magnify",t.default=s},6359:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("circle",{cx:"18",cy:"18",r:"4.1"}),n.createElement("circle",{cx:"30",cy:"18",r:"4.1"}),n.createElement("circle",{cx:"6",cy:"18",r:"4.1"}))},68826:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("circle",{cx:"24",cy:"24",r:"6"}),n.createElement("circle",{cx:"42",cy:"24",r:"6"}),n.createElement("circle",{cx:"6",cy:"24",r:"6"}))},19547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(6359),24:r(68826)}}))};s.displayName="More",t.default=s},5669:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("circle",{cx:"18",cy:"18",r:"4.1"}),n.createElement("circle",{cx:"18",cy:"6",r:"4.1"}),n.createElement("circle",{cx:"18",cy:"30",r:"4.1"}))},32415:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("circle",{cx:"24",cy:"24",r:"6"}),n.createElement("circle",{cx:"24",cy:"6",r:"6"}),n.createElement("circle",{cx:"24",cy:"42",r:"6"}))},83300:(e,t,r)=>{"use strict";var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(5669),24:r(32415)}}))};s.displayName="MoreVertical",t.Z=s},73744:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M6 16.5V6h24v24H19.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5H33a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v13.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5z"}),n.createElement("path",{d:"M5.54 20.853l3.389 3.389-7.546 7.547a.5.5 0 0 0 0 .707L3.5 34.617a.5.5 0 0 0 .707 0l7.546-7.546 3.389 3.389a.5.5 0 0 0 .858-.353V20H5.893a.5.5 0 0 0-.353.853z"}))},81373:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M8 21.5V8h32v32H26.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5H43a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v16.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5z"}),n.createElement("path",{d:"M10.241 24a1.008 1.008 0 0 0-.655 1.716l4.228 4.228-9.842 9.842a.5.5 0 0 0 0 .707l3.536 3.535a.5.5 0 0 0 .707 0l9.842-9.842 4.217 4.214a1 1 0 0 0 1.706-.655V24z"}))},14924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(73744),24:r(81373)}}))};s.displayName="OpenIn",t.default=s},67363:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33 2H15a1 1 0 0 0-1 1v11h10v20h9a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm-11 8h-6V6h6zm10 16h-6v-4h6zm0-8h-6v-4h6zm0-8h-6V6h6z"}),n.createElement("path",{d:"M2 17v16a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V17a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1zm12 1h6v4h-6zM4 18h6v4H4zm0 8h6v4H4z"}))},10107:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M42 4H18a2 2 0 0 0-2 2v10h12v28h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm-14 8h-8V8h8zm12 24h-8v-4h8zm0-8h-8v-4h8zm0-8h-8v-4h8zm0-8h-8V8h8z"}),n.createElement("path",{d:"M4 22v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V22a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2zm8 20H6v-4h6zm0-8H6v-4h6zm0-8H6v-4h6zm10 8h-6v-4h6zm0-8h-6v-4h6z"}))},48864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(67363),24:r(10107)}}))};s.displayName="Organisations",t.default=s},50357:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("rect",{height:"28",rx:"1",ry:"1",width:"8",x:"6",y:"4"}),n.createElement("rect",{height:"28",rx:"1",ry:"1",width:"8",x:"20",y:"4"}))},88566:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"40",rx:"2",ry:"2",width:"12",x:"8",y:"4"}),n.createElement("rect",{height:"40",rx:"2",ry:"2",width:"12",x:"28",y:"4"}))},47115:(e,t,r)=>{"use strict";var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(50357),24:r(88566)}}))};s.displayName="Pause",t.Z=s},32800:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M9.46 4H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1h2.46a2 2 0 0 0 1.007-.272l22.064-12.866a1 1 0 0 0 0-1.725L10.467 4.272A2 2 0 0 0 9.46 4z"}))},69352:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M10.853 4H8a2 2 0 0 0-2 2v36a2 2 0 0 0 2 2h2.853a4 4 0 0 0 2.12-.608l30.09-17.667a2 2 0 0 0 0-3.449L12.973 4.608A4 4 0 0 0 10.853 4z"}))},78905:(e,t,r)=>{"use strict";var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(32800),24:r(69352)}}))};s.displayName="Play",t.Z=s},22984:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33.191 1.113L1.8 10.478a.5.5 0 0 0-.08.926l7.92 3.954zM15.645 22.372L10.08 19.25v7.639a.713.713 0 0 0 1.174.544l3.795-3.2a12.242 12.242 0 0 1 .596-1.861zM27 14.8a12.288 12.288 0 0 1 2.786.329l5.851-12.765-22.548 14.667 4.435 2.229A12.273 12.273 0 0 1 27 14.8zm0 3.3a8.9 8.9 0 1 0 8.9 8.9 8.9 8.9 0 0 0-8.9-8.9zm5.826 12.267a.5.5 0 0 1 0 .707l-1.752 1.752a.5.5 0 0 1-.707 0L27 29.459l-3.367 3.367a.5.5 0 0 1-.707 0l-1.752-1.752a.5.5 0 0 1 0-.707L24.541 27l-3.367-3.367a.5.5 0 0 1 0-.707l1.752-1.752a.5.5 0 0 1 .707 0L27 24.541l3.367-3.367a.5.5 0 0 1 .707 0l1.752 1.752a.5.5 0 0 1 0 .707L29.459 27z"}))},16044:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M44.194 4.424L2 17a1.065 1.065 0 0 0-.191 1.978l9.669 4.834zM20.312 33.627L12.066 29v10.185a.95.95 0 0 0 1.564.725l6.57-5.531c.025-.254.072-.502.112-.752zM36 20.2a15.863 15.863 0 0 1 4.125.56l7.33-14.669-31.377 19.951 5.74 2.895A15.887 15.887 0 0 1 36 20.2z"}),n.createElement("path",{d:"M36 24.1A11.9 11.9 0 1 0 47.9 36 11.9 11.9 0 0 0 36 24.1zm8.132 17.2a.5.5 0 0 1 0 .707l-2.122 2.125a.5.5 0 0 1-.707 0l-5.3-5.3-5.3 5.3a.5.5 0 0 1-.707 0l-2.128-2.122a.5.5 0 0 1 0-.707l5.3-5.3-5.3-5.3a.5.5 0 0 1 0-.707l2.122-2.121a.5.5 0 0 1 .707 0l5.3 5.3 5.3-5.3a.5.5 0 0 1 .707 0l2.122 2.121a.5.5 0 0 1 0 .707l-5.3 5.3z"}))},56519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(22984),24:r(16044)}}))};s.displayName="PublishRemove",t.default=s},12499:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M22 14h-9.006a.994.994 0 0 0-.994.994v6.012a.994.994 0 0 0 .994.994H22v8.912a.5.5 0 0 0 .848.351L36 18 22.848 4.736a.5.5 0 0 0-.848.352z"}),n.createElement("rect",{height:"28",rx:".707",ry:".707",width:"4",x:"4",y:"4"}))},65348:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M27.067 18H16a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11.067v10.519a1 1 0 0 0 1.707.707L46 24 28.774 6.774a1 1 0 0 0-1.707.707z"}),n.createElement("rect",{height:"40",rx:"1",ry:"1",width:"6",x:"4",y:"4"}))},47623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(12499),24:r(65348)}}))};s.displayName="RailRightClose",t.default=s},71904:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M2.71 13.286A15.983 15.983 0 0 1 29.879 7.3l3.268-3.445a.5.5 0 0 1 .853.352V16H22.788a.5.5 0 0 1-.354-.854l4.613-4.863a11.887 11.887 0 0 0-20.393 4.128.488.488 0 0 1-.594.334l-2.993-.816a.518.518 0 0 1-.357-.643zM13.222 20a.5.5 0 0 1 .354.854l-4.617 4.862a11.88 11.88 0 0 0 20.386-4.126.488.488 0 0 1 .594-.334l2.993.816a.518.518 0 0 1 .358.643A15.984 15.984 0 0 1 6.123 28.7l-3.269 3.446A.5.5 0 0 1 2 31.793V20z"}))},51112:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M28.052 19.146l5.548-5.311a13.98 13.98 0 0 0-22.966 5.989l-5.728-1.79a19.969 19.969 0 0 1 33.025-8.345L43.146 4.7a.5.5 0 0 1 .854.35V20H28.405a.5.5 0 0 1-.353-.854zM19.651 28a.5.5 0 0 1 .354.853l-5.626 5.294a13.982 13.982 0 0 0 22.987-5.971l5.728 1.79a19.974 19.974 0 0 1-33.084 8.292L4.854 43.11A.5.5 0 0 1 4 42.757V28z"}))},10666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(71904),24:r(51112)}}))};s.displayName="Refresh",t.default=s},7238:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M31 0h2v36h-2zm-5.412 31.7L15.633 4.21c-.041-.169-.083-.21-.252-.21h-4.152a.2.2 0 0 0-.21.21 4.559 4.559 0 0 1-.3 1.738L1.485 31.662c-.041.21.045.338.255.338h2.88a.3.3 0 0 0 .338-.255L8.09 23H18.7l3.161 8.79a.378.378 0 0 0 .339.21h3.218c.214 0 .256-.128.17-.3zM13.347 6.88h.041c.759 2.707 3.355 9.972 4.44 13.12h-8.87c1.59-4.584 3.704-10.546 4.389-13.12z"}))},11768:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"44",rx:".5",ry:".5",width:"2",x:"38",y:"2"}),n.createElement("path",{d:"M12.823 31.3L9.117 41.69a.36.36 0 0 1-.41.31h-3.5c-.255 0-.36-.155-.31-.41l11.218-31.224a5.534 5.534 0 0 0 .36-2.111.242.242 0 0 1 .256-.255h5.043c.205 0 .255.05.306.255L34.167 41.64c.1.205.054.36-.205.36h-3.908a.459.459 0 0 1-.41-.255L25.886 31.3zm11.882-3.958C23.57 24 20.333 14.994 19.353 11.5H19.3c-.875 3.292-3.342 10.186-5.3 15.844z"}),n.createElement("path",{d:"M12.823 31.3L9.117 41.69a.36.36 0 0 1-.41.31h-3.5c-.255 0-.36-.155-.31-.41l11.218-31.224a5.534 5.534 0 0 0 .36-2.111.242.242 0 0 1 .256-.255h5.043c.205 0 .255.05.306.255L34.167 41.64c.1.205.054.36-.205.36h-3.908a.459.459 0 0 1-.41-.255L25.886 31.3zm11.882-3.958C23.57 24 20.333 14.994 19.353 11.5H19.3c-.875 3.292-3.342 10.186-5.3 15.844z"}))},1574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(7238),24:r(11768)}}))};s.displayName="Rename",t.default=s},94181:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M32.9 15.793h-3.111a11.934 11.934 0 0 0-1.842-4.507l2.205-2.206a1.1 1.1 0 0 0 0-1.56l-1.673-1.672a1.1 1.1 0 0 0-1.561 0l-2.205 2.2a11.935 11.935 0 0 0-4.507-1.841V3.1A1.1 1.1 0 0 0 19.1 2h-2.2a1.1 1.1 0 0 0-1.1 1.1v3.112a11.935 11.935 0 0 0-4.507 1.841l-2.205-2.2a1.1 1.1 0 0 0-1.561 0L5.848 7.52a1.1 1.1 0 0 0 0 1.56l2.205 2.205a11.934 11.934 0 0 0-1.842 4.507H3.1A1.1 1.1 0 0 0 2 16.9v2.2a1.1 1.1 0 0 0 1.1 1.1h3.111a11.932 11.932 0 0 0 1.841 4.507l-2.2 2.2a1.1 1.1 0 0 0 0 1.56l1.672 1.672a1.1 1.1 0 0 0 1.561 0l2.2-2.2a11.934 11.934 0 0 0 4.507 1.842V32.9A1.1 1.1 0 0 0 16.9 34h2.2a1.1 1.1 0 0 0 1.1-1.1v-3.112a11.934 11.934 0 0 0 4.507-1.842l2.2 2.2a1.1 1.1 0 0 0 1.561 0l1.672-1.672a1.1 1.1 0 0 0 0-1.56l-2.2-2.2a11.932 11.932 0 0 0 1.841-4.507H32.9A1.1 1.1 0 0 0 34 19.1v-2.2a1.1 1.1 0 0 0-1.1-1.107zM22.414 18A4.414 4.414 0 1 1 18 13.586 4.414 4.414 0 0 1 22.414 18z"}))},49050:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M42 20.7h-2.993a.487.487 0 0 1-.472-.374 14.882 14.882 0 0 0-1.664-4 .485.485 0 0 1 .07-.6l2.12-2.12a2 2 0 0 0 0-2.828l-1.838-1.84a2 2 0 0 0-2.828 0l-2.12 2.12a.485.485 0 0 1-.6.07 14.87 14.87 0 0 0-4-1.663.487.487 0 0 1-.374-.472V6a2 2 0 0 0-2-2H22.7a2 2 0 0 0-2 2v2.994a.487.487 0 0 1-.374.472 14.87 14.87 0 0 0-4 1.663.485.485 0 0 1-.6-.07l-2.12-2.12a2 2 0 0 0-2.828 0l-1.839 1.838a2 2 0 0 0 0 2.828l2.12 2.12a.485.485 0 0 1 .07.6 14.882 14.882 0 0 0-1.664 4 .487.487 0 0 1-.472.374H6a2 2 0 0 0-2 2v2.6a2 2 0 0 0 2 2h2.993a.487.487 0 0 1 .472.374 14.882 14.882 0 0 0 1.664 4 .485.485 0 0 1-.07.6l-2.12 2.12a2 2 0 0 0 0 2.828l1.839 1.839a2 2 0 0 0 2.829 0l2.12-2.12a.485.485 0 0 1 .6-.07 14.882 14.882 0 0 0 4 1.663.487.487 0 0 1 .374.472V42a2 2 0 0 0 2 2h2.6a2 2 0 0 0 2-2v-2.994a.487.487 0 0 1 .374-.472 14.882 14.882 0 0 0 4-1.663.485.485 0 0 1 .6.07l2.12 2.12a2 2 0 0 0 2.829 0l1.839-1.839a2 2 0 0 0 0-2.828l-2.12-2.12a.485.485 0 0 1-.07-.6 14.882 14.882 0 0 0 1.664-4 .487.487 0 0 1 .472-.374H42a2 2 0 0 0 2-2v-2.6a2 2 0 0 0-2-2zM24 31.5a7.5 7.5 0 1 1 7.5-7.5 7.5 7.5 0 0 1-7.5 7.5z"}))},95716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(94181),24:r(49050)}}))};s.displayName="Settings",t.default=s},36058:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M24.476 7.165L18 0l-6.46 7.165a.5.5 0 0 0 .371.835H16v11.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V8h4.1a.5.5 0 0 0 .376-.835z"}),n.createElement("path",{d:"M33 8h-6.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5H30v16H6V12h3.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H3a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1z"}))},94807:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M45 12h-6.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5H42v22H6V16h3.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H3a1 1 0 0 0-1 1v28a1 1 0 0 0 1 1h42a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1z"}),n.createElement("path",{d:"M33.722 10.331L24 0l-9.708 10.331A1 1 0 0 0 15.035 12H20v13.5a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5V12h4.979a1 1 0 0 0 .743-1.669z"}))},4007:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(36058),24:r(94807)}}))};s.displayName="Share",t.default=s},46581:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("ellipse",{cx:"10.445",cy:"31.143",rx:"2.667",ry:"2.917"}),n.createElement("ellipse",{cx:"25.778",cy:"31.143",rx:"2.667",ry:"2.917"}),n.createElement("path",{d:"M29.326 23.857H10.469l.762-2.458H28a1.333 1.333 0 0 0 1.307-1.072L33.974 7.66a1.333 1.333 0 0 0-1.307-1.595h-.127v-.03H6.5l-1.289-3.5A1.333 1.333 0 0 0 3.889 1.4H1.333a1.333 1.333 0 1 0 0 2.667h1.406L8.667 20l-1.294 5.075A1.569 1.569 0 0 0 8.667 27h20.666a1.589 1.589 0 0 0 1.333-1.6 1.534 1.534 0 0 0-1.34-1.543zM7.529 8.836H30.6l-3.693 9.9H11.174z"}))},7628:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M17.56 42a4 4 0 1 1-4-4 4 4 0 0 1 4 4zm20 0a4 4 0 1 1-4-4 4 4 0 0 1 4 4zm2-10H14.483l.922-4H39.56a2 2 0 0 0 1.961-1.608l4.44-18A2 2 0 0 0 44 6H11.78l-.41-2.294A2 2 0 0 0 9.392 2H4a2 2 0 0 0 0 4h3.667l3.893 19.9-1.94 7.611A2 2 0 0 0 11.56 36h28a2 2 0 1 0 0-4zm2-22l-3.641 14h-22.6l-2.692-14z"}))},6827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(46581),24:r(7628)}}))};s.displayName="ShoppingCart",t.default=s},80108:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"16"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"6"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"26"}))},74060:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"32",x:"8",y:"20"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"32",x:"8",y:"8"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"32",x:"8",y:"32"}))},94257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(80108),24:r(74060)}}))};s.displayName="ShowMenu",t.default=s},10709:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M32 9.044v15h2.565a.431.431 0 0 1 .262.724l-3.971 3.955a.5.5 0 0 1-.706 0l-3.963-3.954a.431.431 0 0 1 .262-.724h2.565l.006-15a1 1 0 0 1 1-1h.993a.988.988 0 0 1 .987.999z"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"12",x:"2",y:"24"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"16",x:"2",y:"16"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"20",x:"2",y:"8"}))},55898:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38 13v19l-3.405.011a.5.5 0 0 0-.349.862L40 38.615l5.766-5.742a.5.5 0 0 0-.349-.862L42 32V13a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1z"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"12"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"24",x:"4",y:"22"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"20",x:"4",y:"32"}))},3637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(10709),24:r(55898)}}))};s.displayName="SortOrderDown",t.default=s},72957:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M32 26.956v-15h2.565a.431.431 0 0 0 .262-.724l-3.971-3.956a.5.5 0 0 0-.706 0l-3.963 3.954a.431.431 0 0 0 .262.724h2.565l.006 15a1 1 0 0 0 1 1h.993a.988.988 0 0 0 .987-.998z"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"12",x:"2",y:"8"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"16",x:"2",y:"16"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"20",x:"2",y:"24"}))},75526:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38 35V16l-3.405-.011a.5.5 0 0 1-.349-.862L40 9.385l5.766 5.742a.5.5 0 0 1-.349.862L42 16v19a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"32"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"24",x:"4",y:"22"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"20",x:"4",y:"12"}))},15431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(72957),24:r(75526)}}))};s.displayName="SortOrderUp",t.default=s},18652:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M5 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8h8v20h-3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3V8h8v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"}))},85690:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38 6H8a2 2 0 0 0-2 2v7a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-5h10v28h-3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3V10h10v5a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8a2 2 0 0 0-2-2z"}))},37457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(18652),24:r(85690)}}))};s.displayName="Text",t.default=s},59560:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M13.4 4c-4.5 0-8.919 3.623-9.353 8.105A9.008 9.008 0 0 0 13 22c1.05 0 3-.075 3-.075V33.5a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5V7h6v26.5a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5V5a1 1 0 0 0-1-1z"}))},80575:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M18.412 4A12.276 12.276 0 0 0 6.1 14.427 12.012 12.012 0 0 0 18 28c1.4 0 4-.1 4-.1V43a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8h8v35a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6a2 2 0 0 0-2-2z"}))},20229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(59560),24:r(80575)}}))};s.displayName="TextParagraph",t.default=s},59631:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M22.325 21.547v-2.224a1.539 1.539 0 0 1 .392-.993A11.746 11.746 0 0 0 25.388 11c0-5.547-2.942-8.647-7.387-8.647s-7.47 3.222-7.47 8.647a11.873 11.873 0 0 0 2.8 7.329 1.54 1.54 0 0 1 .392.993v2.214a1.528 1.528 0 0 1-1.333 1.542c-8.931.777-10.326 6.886-10.326 9.3 0 .268.032 1.321.051 1.585h31.857S34 32.642 34 32.374c0-2.309-1.577-8.4-10.346-9.286a1.535 1.535 0 0 1-1.329-1.541z"}))},65589:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M29.026 27.832v-2.806a2.038 2.038 0 0 1 .455-1.253 17.506 17.506 0 0 0 3.1-9.86c0-7-3.419-10.3-8.585-10.3s-8.683 3.456-8.683 10.3a17.634 17.634 0 0 0 3.253 9.86 2.038 2.038 0 0 1 .455 1.253v2.794a1.888 1.888 0 0 1-1.549 1.946C6.182 30.881 4 38.96 4 42c0 .338.037 1.667.059 2h39.882c.023-.333.059-1.662.059-2 0-2.914-2.091-11.028-13.431-12.223a1.891 1.891 0 0 1-1.543-1.945z"}))},3335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(59631),24:r(65589)}}))};s.displayName="User",t.default=s},89331:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M19.011 20.333v-2.084a1.442 1.442 0 0 1 .367-.93 11 11 0 0 0 2.5-6.866c0-5.2-2.756-8.1-6.919-8.1s-7 3.018-7 8.1a11.121 11.121 0 0 0 2.622 6.865 1.442 1.442 0 0 1 .367.93v2.074A1.431 1.431 0 0 1 9.7 21.768C1.338 22.5.031 28.218.031 30.474c0 .251.03 3.237.048 3.484h29.842s.026-3.234.026-3.484c0-2.163-1.478-7.864-9.691-8.7a1.437 1.437 0 0 1-1.245-1.441z"}),n.createElement("path",{d:"M27.374 19.534a1.342 1.342 0 0 1-1.16-1.346v-1.013a1.531 1.531 0 0 1 .342-.867 12.144 12.144 0 0 0 1.869-6.4c0-4.354-2.57-7.552-6.452-7.552-.232 0-.445.042-.668.062a10.931 10.931 0 0 1 2.974 8.037 13.46 13.46 0 0 1-2.869 8.171v.874c8.622 1.281 10.936 7.667 10.936 10.972 0 .108 0 .768-.01 1.484h3.586s.024-3.15.024-3.384a9.564 9.564 0 0 0-8.572-9.038z"}))},84127:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24.025 28.479v-2.694a1.958 1.958 0 0 1 .438-1.2 16.805 16.805 0 0 0 2.98-9.465c0-6.72-3.283-9.89-8.242-9.89s-8.336 3.317-8.336 9.89a16.925 16.925 0 0 0 3.126 9.469 1.948 1.948 0 0 1 .434 1.2v2.683a1.947 1.947 0 0 1-1.67 1.887C2.071 31.494 0 38.7 0 41.6V44h38v-2.4c0-2.782-1.59-10.024-12.319-11.235a1.949 1.949 0 0 1-1.656-1.886z"}),n.createElement("path",{d:"M36.559 27.851a1.755 1.755 0 0 1-1.5-1.7v-2.422a1.762 1.762 0 0 1 .394-1.083 15.125 15.125 0 0 0 2.682-8.519c0-6.048-2.954-8.9-7.418-8.9a8.337 8.337 0 0 0-2.289.338c1.729 2.17 2.851 5.273 2.851 9.552a20.732 20.732 0 0 1-3.417 11.32v.369C37.706 28.6 41.816 35.42 42 40h6v-2.4c0-2.5-1.787-8.664-11.441-9.749z"}))},66619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(89331),24:r(84127)}}))};s.displayName="UserGroup",t.default=s},36995:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M14 25.013a2.737 2.737 0 0 1 1.833-2.86c0-3.219 2.049-4.882 3.108-5.964a10.942 10.942 0 0 0 2.939-7.736c0-5.2-2.756-8.1-6.919-8.1s-7 3.018-7 8.1a11.121 11.121 0 0 0 2.622 6.866 1.443 1.443 0 0 1 .367.93v2.074a1.431 1.431 0 0 1-1.25 1.444C1.338 20.5.031 26.217.031 28.474.031 28.725 0 30 0 30h14z"}),n.createElement("path",{d:"M32.987 24.013l-1 .038v-.718a7.205 7.205 0 0 0-6.567-7.323 6.94 6.94 0 0 0-7.313 6.93v1.111l-1.094-.039a1 1 0 0 0-1.012 1V35a1 1 0 0 0 1 1H33a1 1 0 0 0 1-1v-9.987a1 1 0 0 0-1.013-1zM20.882 22.94a4.164 4.164 0 1 1 8.328 0v1.111h-8.328zm5.552 8.482v1.928a.694.694 0 0 1-.694.694h-1.388a.694.694 0 0 1-.694-.694v-1.928a2.082 2.082 0 1 1 2.776 0z"}))},11169:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M18 33a5 5 0 0 1 2.037-4.025 13.991 13.991 0 0 1 5.5-10.111 17.789 17.789 0 0 0 1.909-7.747c0-6.72-3.282-9.89-8.242-9.89s-8.336 3.317-8.336 9.89a16.927 16.927 0 0 0 3.126 9.469 1.949 1.949 0 0 1 .434 1.2v2.683a1.947 1.947 0 0 1-1.67 1.887C2.071 27.494 0 34.7 0 37.6V40h18zm27-1h-1v-2a10 10 0 0 0-20 0v2h-1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V33a1 1 0 0 0-1-1zm-17-2a6 6 0 0 1 12 0v2H28zm8 10.222V43a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2.779a3 3 0 1 1 4 0z"}))},42166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(36995),24:r(11169)}}))};s.displayName="UserLock",t.default=s},82227:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("rect",{height:"8",rx:"1",ry:"1",width:"8",x:"2",y:"2"}),n.createElement("rect",{height:"4",rx:".5",ry:".5",width:"22",x:"12",y:"4"}),n.createElement("rect",{height:"4",rx:".5",ry:".5",width:"22",x:"12",y:"16"}),n.createElement("rect",{height:"4",rx:".5",ry:".5",width:"22",x:"12",y:"28"}),n.createElement("rect",{height:"8",rx:"1",ry:"1",width:"8",x:"2",y:"14"}),n.createElement("rect",{height:"8",rx:"1",ry:"1",width:"8",x:"2",y:"26"}))},35146:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"10",rx:"2",ry:"2",width:"10",x:"4",y:"6"}),n.createElement("rect",{height:"10",rx:"2",ry:"2",width:"10",x:"4",y:"20"}),n.createElement("rect",{height:"10",rx:"2",ry:"2",width:"10",x:"4",y:"34"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"24",x:"18",y:"8"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"24",x:"18",y:"22"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"24",x:"18",y:"36"}))},44756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(82227),24:r(35146)}}))};s.displayName="ViewList",t.default=s},3449:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M24.613 8.58A14.973 14.973 0 0 0 18 6.937c-8.664 0-15.75 8.625-15.75 11.424 0 3 7.458 10.7 15.686 10.7 8.295 0 15.814-7.706 15.814-10.7 0-2.361-4.214-7.342-9.137-9.781zM18 27.225A9.225 9.225 0 1 1 27.225 18 9.225 9.225 0 0 1 18 27.225z"}),n.createElement("path",{d:"M20.667 18.083A2.667 2.667 0 0 1 18 15.417a2.631 2.631 0 0 1 1.35-2.269 4.912 4.912 0 0 0-1.35-.21A5.063 5.063 0 1 0 23.063 18a4.7 4.7 0 0 0-.175-1.2 2.623 2.623 0 0 1-2.221 1.283z"}))},56750:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M32.817 11.44A19.965 19.965 0 0 0 24 9.249c-11.552 0-21 11.5-21 15.231 0 4 9.944 14.271 20.915 14.271C34.975 38.751 45 28.477 45 24.48c0-3.152-5.619-9.788-12.183-13.04zM24 36.3A12.3 12.3 0 1 1 36.3 24 12.3 12.3 0 0 1 24 36.3z"}),n.createElement("path",{d:"M27.556 24.111A3.556 3.556 0 0 1 24 20.555a3.508 3.508 0 0 1 1.8-3.026 6.551 6.551 0 0 0-1.8-.28A6.75 6.75 0 1 0 30.75 24a6.268 6.268 0 0 0-.233-1.594 3.5 3.5 0 0 1-2.961 1.705z"}))},22622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(3449),24:r(56750)}}))};s.displayName="Visibility",t.default=s},77487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-AlertMedium"},i.default.createElement("path",{d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .5-.5.494.494 0 0 0-.064-.244L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M10.563 2.206l-9.249 16.55a.5.5 0 0 0 .436.744h18.5a.5.5 0 0 0 .5-.5.494.494 0 0 0-.064-.244l-9.251-16.55a.5.5 0 0 0-.872 0zM12 17.25a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z",className:"spectrum-UIIcon--large"})))};a.displayName="AlertMedium",t.default=a},50752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CheckmarkMedium"},i.default.createElement("path",{d:"M4.5 10a1.023 1.023 0 0 1-.8-.384l-2.488-3a1 1 0 0 1 1.577-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.511 7A.977.977 0 0 1 4.5 10z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M6 14a1 1 0 0 1-.788-.385l-4-5a1 1 0 1 1 1.576-1.23L6 11.376l7.213-8.991a1 1 0 1 1 1.576 1.231l-8 10A1 1 0 0 1 6 14z",className:"spectrum-UIIcon--large"})))};a.displayName="CheckmarkMedium",t.default=a},41628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CheckmarkSmall"},i.default.createElement("path",{d:"M3.788 9A1 1 0 0 1 3 8.615l-2.288-3a1 1 0 1 1 1.576-1.23l1.5 1.991 3.924-4.991a1 1 0 1 1 1.576 1.23l-4.712 6A1 1 0 0 1 3.788 9z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M4.5 11a1 1 0 0 1-.788-.385l-3-4A.991.991 0 0 1 .5 6a1 1 0 0 1 1.788-.616L4.5 8.376l5.212-6.991a1 1 0 1 1 1.576 1.231l-6 8A1 1 0 0 1 4.5 11z",className:"spectrum-UIIcon--large"})))};a.displayName="CheckmarkSmall",t.default=a},63076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-ChevronRightMedium"},i.default.createElement("path",{d:"M5.99 5a1 1 0 0 0-.29-.707L1.717.3A1 1 0 1 0 .3 1.717L3.586 5 .3 8.283A1 1 0 1 0 1.717 9.7L5.7 5.707A1 1 0 0 0 5.99 5z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M7.5 6a1 1 0 0 0-.293-.707L2.217.3A1 1 0 1 0 .8 1.717L5.086 6 .8 10.283A1 1 0 1 0 2.217 11.7l4.99-4.99A1 1 0 0 0 7.5 6z",className:"spectrum-UIIcon--large"})))};a.displayName="ChevronRightMedium",t.default=a},98681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CornerTriangle"},i.default.createElement("path",{d:"M4.74.01a.25.25 0 0 0-.177.073l-4.48 4.48a.25.25 0 0 0 .177.427h4.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M5.74.01a.25.25 0 0 0-.177.073l-5.48 5.48a.25.25 0 0 0 .177.427h5.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z",className:"spectrum-UIIcon--large"})))};a.displayName="CornerTriangle",t.default=a},95318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CrossLarge"},i.default.createElement("path",{d:"M11.7 10.283L7.414 6 11.7 1.717A1 1 0 1 0 10.283.3L6 4.586 1.717.3A1 1 0 1 0 .3 1.717L4.586 6 .3 10.283A1 1 0 1 0 1.717 11.7L6 7.414l4.283 4.286a1 1 0 1 0 1.417-1.417z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M15.7 14.283L9.414 8 15.7 1.717A1 1 0 1 0 14.283.3L8 6.586 1.717.3A1 1 0 1 0 .3 1.717L6.586 8 .3 14.283A1 1 0 1 0 1.717 15.7L8 9.414l6.283 6.286a1 1 0 1 0 1.417-1.417z",className:"spectrum-UIIcon--large"})))};a.displayName="CrossLarge",t.default=a},45537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CrossMedium"},i.default.createElement("path",{d:"M7.77 6.709L5.061 4 7.77 1.291A.75.75 0 1 0 6.709.23L4 2.939 1.291.23A.75.75 0 1 0 .23 1.291L2.939 4 .23 6.709A.75.75 0 1 0 1.291 7.77L4 5.061 6.709 7.77A.75.75 0 1 0 7.77 6.709z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M9.77 8.709L6.061 5 9.77 1.291A.75.75 0 1 0 8.709.23L5 3.939 1.291.23A.75.75 0 1 0 .23 1.291L3.939 5 .23 8.709A.75.75 0 1 0 1.291 9.77L5 6.061 8.709 9.77A.75.75 0 1 0 9.77 8.709z",className:"spectrum-UIIcon--large"})))};a.displayName="CrossMedium",t.default=a},87535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CrossSmall"},i.default.createElement("path",{d:"M7.317 6.433L4.884 4l2.433-2.433a.625.625 0 0 0-.884-.884L4 3.116 1.567.683a.625.625 0 0 0-.884.884L3.116 4 .683 6.433a.625.625 0 0 0 .884.884L4 4.884l2.433 2.433a.625.625 0 0 0 .884-.884z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M9.317 8.433L5.884 5l3.433-3.433a.625.625 0 0 0-.884-.884L5 4.116 1.567.683a.625.625 0 0 0-.884.884C.83 1.713 2.769 3.657 4.116 5L.683 8.433a.625.625 0 0 0 .884.884L5 5.884l3.433 3.433a.625.625 0 0 0 .884-.884z",className:"spectrum-UIIcon--large"})))};a.displayName="CrossSmall",t.default=a},54857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-DashSmall"},i.default.createElement("path",{d:"M8 4H2a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M10.99 5H1.01a1 1 0 0 0 0 2h9.98a1 1 0 1 0 0-2z",className:"spectrum-UIIcon--large"})))};a.displayName="DashSmall",t.default=a},16619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-InfoMedium"},i.default.createElement("path",{d:"M9 1a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm-.15 2.15a1.359 1.359 0 0 1 1.431 1.283v.129a1.332 1.332 0 0 1-1.223 1.432 1.444 1.444 0 0 1-.208 0 1.353 1.353 0 0 1-1.432-1.269 1.5 1.5 0 0 1 0-.164 1.359 1.359 0 0 1 1.3-1.412c.047-.002.089-.001.132.001zM11 13.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H8V9h-.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V12h.5a.5.5 0 0 1 .5.5z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M11 2a9 9 0 1 0 9 9 9 9 0 0 0-9-9zm-.15 2.65a1.359 1.359 0 0 1 1.431 1.283v.129a1.332 1.332 0 0 1-1.224 1.432 1.444 1.444 0 0 1-.208 0 1.353 1.353 0 0 1-1.431-1.269 1.5 1.5 0 0 1 0-.164 1.359 1.359 0 0 1 1.3-1.412c.047-.002.089-.001.132.001zM13.5 16a.5.5 0 0 1-.5.5H9a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1v-4H9a.5.5 0 0 1-.5-.5V9a.5.5 0 0 1 .5-.5h2.5a.5.5 0 0 1 .5.5v5.5h1a.5.5 0 0 1 .5.5z",className:"spectrum-UIIcon--large"})))};a.displayName="InfoMedium",t.default=a},98337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-Magnifier"},i.default.createElement("path",{d:"M15.77 14.709l-4.534-4.534a6.013 6.013 0 1 0-1.061 1.061l4.534 4.534a.75.75 0 1 0 1.061-1.061zM6.5 11A4.5 4.5 0 1 1 11 6.5 4.505 4.505 0 0 1 6.5 11z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M19.77 18.709l-5.464-5.463a7.5 7.5 0 1 0-1.06 1.06l5.463 5.464a.75.75 0 1 0 1.061-1.061zM2.5 8.5a6 6 0 1 1 6 6 6.007 6.007 0 0 1-6-6z",className:"spectrum-UIIcon--large"})))};a.displayName="Magnifier",t.default=a},69880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-SuccessMedium"},i.default.createElement("path",{d:"M9 1a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm5.333 4.54l-6.324 8.13a.6.6 0 0 1-.437.23h-.037a.6.6 0 0 1-.425-.176l-3.893-3.9a.6.6 0 0 1 0-.849l.663-.663a.6.6 0 0 1 .848 0L7.4 10.991l5.256-6.754a.6.6 0 0 1 .843-.1l.728.566a.6.6 0 0 1 .106.837z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M11 2a9 9 0 1 0 9 9 9 9 0 0 0-9-9zm5.638 5.609L10.1 15.652a.5.5 0 0 1-.7.073.44.44 0 0 1-.039-.035L5.086 11.5a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0L9.6 13.1l5.486-6.751a.5.5 0 0 1 .7-.073l.776.631a.5.5 0 0 1 .076.702z",className:"spectrum-UIIcon--large"})))};a.displayName="SuccessMedium",t.default=a},69820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var n=a(r(64403)),i=a(r(2652)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default: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,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(21666);const u={XXS:18,XS:24,S:18,M:24,L:18,XL:24,XXL:24};function p(e){let t=e.icon,r=e.size,i=void 0===r?"M":r,a=e.className,p=e.children,d=e["aria-label"],h=e["aria-hidden"],f=e.role,m=void 0===f?"img":f,g=e.alt,v=l(e,["icon","size","className","children","aria-label","aria-hidden","role","alt"]);let y=t&&t[u[i]]||t||p;if("string"==typeof y)throw new Error("String icon names are deprecated. Please import icons from react-spectrum/Icon/IconName and render as <IconName />.");return h&&"false"!==h||(h=void 0),o.default.cloneElement(y,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}({focusable:"false","aria-label":d||g,"aria-hidden":!d&&!g||h,role:m,className:(0,n.default)(y.props.className,"spectrum-Icon",{[`spectrum-Icon--size${i}`]:i},a)},v))}p.displayName="Icon",p.propTypes={size:i.default.string}},95485:(e,t,r)=>{"use strict";e.exports=r(3567)},3567:(e,t,r)=>{"use strict";t.default=void 0;var n=c(r(64403)),i=c(r(40743)),o=c(r(45079)),a=c(r(2652)),s=c(r(89526));function c(e){return e&&e.__esModule?e:{default:e}}function l(){return l=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},l.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(45947),r(66759),r(99555),r(10385),r(22489);class p extends s.default.Component{isIllustrationDecorative(){const e=this.props,t=e.illustration,r=e.heading,n=e.description;if(t){const e=t.props,r=e["aria-label"],n=e["aria-labelledby"],i=e["aria-hidden"];if(null!=i)return i;if(r||n)return!1}return!(!r&&!n)}render(){let e=this.props,t=e.illustration,r=void 0===t?null:t,a=e.className,c=e.heading,p=e.description,d=e.ariaLevel,h=u(e,["illustration","className","heading","description","ariaLevel"]);return!r||r.props.className&&r.props.className.includes("spectrum-IllustratedMessage-illustration")||(r=s.default.cloneElement(r,{className:(0,n.default)(r.props.className,"spectrum-IllustratedMessage-illustration"),"aria-hidden":this.isIllustrationDecorative()||null})),s.default.createElement("div",l({},(0,i.default)(h),{className:(0,n.default)("spectrum-IllustratedMessage",a)}),r,c&&s.default.createElement(o.default,{variant:"pageTitle",className:"spectrum-IllustratedMessage-heading","aria-level":d},c),p&&s.default.createElement("p",{className:"spectrum-Body--secondary spectrum-IllustratedMessage-description"},p))}}t.default=p,p.propTypes={heading:a.default.string,description:a.default.oneOfType([a.default.string,a.default.element]),illustration:a.default.element,ariaLevel:a.default.number},p.defaultProps={heading:null,description:null}},92497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return i.default}}),t.ListItem=void 0;var n=o(r(58648)),i=o(r(77432));function o(e){return e&&e.__esModule?e:{default:e}}const a=n.default.select("ListItem",(()=>r(38720)),(()=>r(69894)));t.ListItem=a},77432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(64403)),s=m(r(36065)),c=m(r(99870)),l=m(r(40743)),u=m(r(75870)),p=m(r(52743)),d=m(r(2652)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(){return g=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},g.apply(this,arguments)}function v(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(32678),r(39575),r(70284),r(47949),r(46701);let y=(0,s.default)(n=(0,p.default)((o=i=class extends h.Component{constructor(e){super(e),this.listId=(0,c.default)()}render(){const e=this.props,t=e.className,r=e.children,n=e.role,i=void 0===n?"listbox":n,o=e.autoFocus,s=e.selectable,c=void 0!==s&&s,p=e.id,d=void 0===p?this.listId:p,f=e.typeToSelect,m=void 0===f||f,y=v(e,["className","children","role","autoFocus","selectable","id","typeToSelect"]);return h.default.createElement(u.default,{itemSelector:".spectrum-Menu-item:not(.is-disabled)",selectedItemSelector:".spectrum-Menu-item:not(.is-disabled).is-selected",typeToSelect:m,autoFocus:o},h.default.createElement("ul",g({id:d,className:(0,a.default)("spectrum-Menu",{"is-selectable":c},t),role:i},(0,l.default)(y)),r))}},i.propTypes={autoFocus:d.default.bool,className:d.default.string,role:d.default.oneOf(["listbox","menu"]),selectable:d.default.bool,typeToSelect:d.default.bool},i.defaultProps={role:"listbox"},n=o))||n)||n;t.default=y},69894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=g(r(68378)),s=g(r(50752)),c=g(r(63076)),l=g(r(64403)),u=r(44800),p=g(r(40743)),d=r(51884),h=g(r(2652)),f=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=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},v.apply(this,arguments)}function y(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let b=(0,a.default)((o=i=class extends f.Component{handleMouseEnter(e){this.props.onMouseEnter?this.props.onMouseEnter(e):e.currentTarget.focus()}handleFocus(e){this.props.onFocus&&this.props.onFocus(e)}handleBlur(e){this.props.onBlur&&this.props.onBlur(e)}onSelectFocused(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.props.onSelect&&!e.isPropagationStopped()&&this.props.onSelect(this.props.value,e)}onKeyDown(e){const t=this.props,r=t.onKeyDown,n=t.disabled;r&&r(e),n||d.interpretKeyboardEvent.call(this,e)}onTab(e){this.props.onTab&&this.props.onTab(e)}render(){const e=this.props,t=e.icon,r=e.label,n=e.className,i=e.children,o=e.selected,a=e.disabled,d=e.focused,h=e.hasNestedMenu,m=e.tabIndex,g=void 0===m?0:m,b=e.role,_=void 0===b?"option":b,E=y(e,["icon","label","className","children","selected","disabled","focused","hasNestedMenu","tabIndex","role"]);return delete E.value,f.default.createElement("li",v({},(0,p.default)(E),{className:(0,l.default)("spectrum-Menu-item",{"is-selected":o,"is-disabled":a,"is-focused":d},n),onKeyDown:this.onKeyDown,onMouseEnter:a?null:this.handleMouseEnter,onFocus:a?null:this.handleFocus,onClick:a?null:this.onSelectFocused,onBlur:this.handleBlur,tabIndex:a?null:g,role:_,"aria-checked":"menuitemcheckbox"===_||"menuitemradio"===_?!!o:null,"aria-selected":"option"===_?!!o||!!d:null,"aria-disabled":a||null}),(0,u.cloneIcon)(t,{size:"S"}),f.default.createElement("span",{className:"spectrum-Menu-itemLabel"},r||i),o&&f.default.createElement(s.default,{size:null,className:"spectrum-Menu-checkmark"}),h&&f.default.createElement(c.default,{className:"spectrum-Menu-chevron"}))}},i.propTypes={selected:h.default.bool,disabled:h.default.bool,onClick:h.default.func,onSelect:h.default.func,role:h.default.oneOf(["option","menuitem","menuitemcheckbox","menuitemradio"])},i.defaultProps={selected:!1,disabled:!1,onSelect:function(){},role:"option"},n=o))||n;t.default=b},38720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=d(r(68378)),o=d(r(50752)),a=d(r(63076)),s=d(r(64403)),c=r(44800),l=d(r(40743)),u=d(r(69894)),p=d(r(89526));function d(e){return e&&e.__esModule?e:{default:e}}function h(){return h=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},h.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let m=(0,i.default)(n=class extends u.default{onUxpSelectFocused(e){e.preventDefault(),this.props.onUxpSelect&&!e.isPropagationStopped()&&this.props.onUxpSelect(this.props.value,e)}render(){const e=this.props,t=e.icon,r=e.label,n=e.className,i=e.children,u=e.selected,d=e.disabled,m=e.focused,g=e.hasNestedMenu,v=e.tabIndex,y=void 0===v?0:v,b=e.role,_=void 0===b?"option":b,E=f(e,["icon","label","className","children","selected","disabled","focused","hasNestedMenu","tabIndex","role"]);return delete E.value,delete E.onMouseDown,p.default.createElement("li",h({},(0,l.default)(E),{className:(0,s.default)("spectrum-Menu-item",{"is-selected":u,"is-disabled":d,"is-focused":m},n),onKeyDown:this.onKeyDown,onMouseEnter:d?null:this.handleMouseEnter,onFocus:d?null:this.handleFocus,onMouseDown:d?null:this.onUxpSelectFocused,onClick:d?null:this.onSelectFocused,onBlur:this.handleBlur,tabIndex:d?null:y,role:_,"aria-checked":"menuitemcheckbox"===_||"menuitemradio"===_?!!u:null,"aria-selected":"option"===_?!!u||!!m:null,"aria-disabled":d||null}),(0,c.cloneIcon)(t,{size:"S"}),p.default.createElement("span",{className:"spectrum-Menu-itemLabel"},r||i),u&&p.default.createElement(o.default,{size:null,className:"spectrum-Menu-checkmark"}),g&&p.default.createElement(a.default,{className:"spectrum-Menu-chevron"}))}})||n;t.default=m},12252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MenuItem",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"MenuDivider",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MenuHeading",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"SubMenu",{enumerable:!0,get:function(){return s.default}}),t.Menu=void 0;var n=c(r(58648)),i=c(r(28900)),o=c(r(44613)),a=c(r(33950)),s=c(r(57662));function c(e){return e&&e.__esModule?e:{default:e}}const l=n.default.select("Menu",(()=>r(4659)),(()=>r(62880)));t.Menu=l},62880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=p(r(68378)),s=r(92497),c=p(r(50865)),l=p(r(2652)),u=p(r(89526));function p(e){return e&&e.__esModule?e:{default:e}}function d(){return d=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},d.apply(this,arguments)}function h(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?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let v=(0,a.default)((o=i=class extends u.default.Component{getListRef(){return this.listRef}onClick(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)}render(){const e=this.props,t=e.children,r=e.className,n=e.closeOnSelect,i=e.open,o=e.onClose,a=e.onSelect,l=e.placement,p=e.role,h=void 0===p?"menu":p,m=e.style,v=e.trapFocus,y=g(e,["children","className","closeOnSelect","open","onClose","onSelect","placement","role","style","trapFocus"]);return delete y.target,delete y.onClick,u.default.createElement(c.default,{isDialog:!1,placement:l,open:i,onClose:o,style:f({},m,{overflowY:"auto"}),trapFocus:v},u.default.createElement(s.List,d({ref:e=>this.listRef=e,role:h,className:r,onClick:this.onClick},y),u.default.Children.map(t,(e=>u.default.cloneElement(e,{onSelect:a,closeOnSelect:n})))))}},i.displayName="Menu",i.propTypes={placement:l.default.oneOf(["bottom","bottom left","bottom right","top","top left","top right","left","left top","left bottom","right","right top","right bottom"]),open:l.default.bool,onClose:l.default.func,onSelect:l.default.func,className:l.default.string,trapFocus:l.default.bool,role:l.default.oneOf(["menu","listbox"])},i.defaultProps={trapFocus:!0},n=o))||n;t.default=v},44613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(89526));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}class o extends n.Component{render(){return n.default.createElement("li",{className:"spectrum-Menu-divider",role:"separator"})}}t.default=o,o.displayName="MenuDivider"},33950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(40743))&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return s=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},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}class l extends o.Component{render(){const e=this.props,t=e.label,r=e.children,n=e.role,a=void 0===n?"presentation":n,l=e["aria-level"],u=c(e,["label","children","role","aria-level"]);return o.default.createElement("li",s({role:a,className:"spectrum-Menu-sectionHeading"},(0,i.default)(u)),o.default.createElement("span",{role:"heading","aria-level":l||3},t||r))}}t.default=l,l.displayName="MenuHeading"},28900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=r(92497),o=(n=r(2652))&&n.__esModule?n:{default:n},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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 l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=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},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}class d extends a.Component{render(){const e=this.props,t=e.role,r=void 0===t?"menuitem":t,n=p(e,["role"]);return a.default.createElement(i.ListItem,u({role:r},n))}}t.default=d,d.displayName="MenuItem",d.propTypes=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){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}({},i.ListItem.propTypes,{role:o.default.oneOf(["menuitem","menuitemcheckbox","menuitemradio","option"])}),d.defaultProps={role:"menuitem"}},57662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=m(r(64403)),c=m(r(99870)),l=m(r(62880)),u=m(r(28900)),p=m(r(3074)),d=m(r(2652)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));m(r(73961));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(){return g=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},g.apply(this,arguments)}function v(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function y(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 b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let E=(0,a.default)((o=i=class e extends h.Component{constructor(...e){var t;return t=super(...e),this.state={opened:!1,trapFocus:!0},this.menuId=(0,c.default)(),this.subMenuId=(0,c.default)(),t}handleKeyDown(e){const t=this.props.onKeyDown;switch(e.key){case"ArrowLeft":case"Left":e.preventDefault(),e.stopPropagation(),this.setState({opened:!1});break;case"Enter":case" ":case"ArrowRight":case"Right":e.preventDefault(),e.stopPropagation(),this.setState({opened:!0})}t&&t(e)}handleSubMenuKeyDown(e){switch(e.key){case"ArrowLeft":case"Left":e.preventDefault(),this.setState({opened:!1})}}hide(){this.hideAnimationFrame=requestAnimationFrame((()=>this.setState({opened:!1})))}show(){this.hideAnimationFrame&&cancelAnimationFrame(this.hideAnimationFrame),requestAnimationFrame((()=>this.setState({opened:!0}))),this.props._onNestedSubmenuOpen&&this.props._onNestedSubmenuOpen()}cloneItem(t){const r=b({},t.props,{onKeyDown:this.handleSubMenuKeyDown});return t.type===e&&(r._onNestedSubmenuOpen=this.show),(0,h.cloneElement)(t,r)}onHide(){this.hide()}onMenuClose(){this.overlayTrigger.hide()}onSelect(...e){this.props.closeOnSelect&&this.onMenuClose(),this.props.onSelect&&this.props.onSelect(...e)}render(){const e=this.props,t=e.children,r=e.className,n=e.closeOnSelect,i=e.label,o=e.trapFocus,a=v(e,["children","className","closeOnSelect","label","trapFocus"]);delete a.onSelect;const c=this.state.opened;return h.default.createElement(p.default,{placement:"right top",offset:-10,crossOffset:-4,selected:!1,show:this.state.opened,onHide:this.onHide,closeOnSelect:n,ref:e=>this.overlayTrigger=e},h.default.createElement(u.default,g({id:this.menuId,className:(0,s.default)({"is-open":c},r),ref:e=>this.menuItem=e,"aria-haspopup":"menu","aria-expanded":c,"aria-owns":c?this.subMenuId:null},a,{onKeyDown:a.disabled?void 0:this.handleKeyDown,onClick:this.show,onMouseEnter:this.show,onMouseLeave:this.hide,hasNestedMenu:!0}),i),h.default.createElement(l.default,{id:this.subMenuId,onSelect:this.onSelect,autoFocus:!0,"aria-labelledby":this.menuId,onMouseEnter:this.show,onMouseLeave:this.hide,trapFocus:o},h.default.Children.toArray(t).map(this.cloneItem)))}},i.displayName="SubMenu",i.propTypes=b({},u.default.propTypes,{className:d.default.string,label:d.default.string,onSelect:d.default.func,trapFocus:d.default.bool}),n=o))||n;t.default=E},4659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(92497),i=s(r(62880)),o=s(r(50865)),a=s(r(89526));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}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 u(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 in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}class h extends i.default{render(){const e=this.props,t=e.children,r=e.className,i=e.closeOnSelect,s=e.open,l=e.onClose,p=e.onSelect,h=e.onUxpSelect,f=e.placement,m=e.role,g=void 0===m?"menu":m,v=e.style,y=e.trapFocus,b=d(e,["children","className","closeOnSelect","open","onClose","onSelect","onUxpSelect","placement","role","style","trapFocus"]);return delete b.target,delete b.onClick,delete b.autoComplete,delete b.boundariesElement,a.default.createElement(o.default,{isDialog:!1,placement:f,open:s,onClose:l,style:u({},v,{overflowY:"auto"}),trapFocus:y},a.default.createElement(n.List,c({defaultpreventedkeys:["Escape"],ref:e=>this.listRef=e,role:g,className:r,onClick:this.onClick},b),a.default.Children.map(t,(e=>a.default.cloneElement(e,{onTab:e=>e.stopPropagation(),defaultpreventedkeys:["Tab"],onSelect:p,onUxpSelect:h,closeOnSelect:i})))))}}t.default=h},58137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modalManager=t.Modal=t.default=void 0;var n,i=g(r(68378)),o=g(r(22919)),a=r(51884),s=g(r(64403)),c=g(r(99607)),l=g(r(40743)),u=g(r(45206)),p=g(r(26088)),d=g(r(4782)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),f=g(r(73961));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=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},v.apply(this,arguments)}function y(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 b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(44460),r(41203),r(707),r(97395),r(37969);const E=["onBackdropClick","onEnter","onEntering","onEntered","onEscapeKeyDown","onExit","onExiting","onExited","onHide","onShow"],w=new u.default({handleContainerOverflow:!1});t.modalManager=w;let L=1;t.default=class{static show(e,t,r){let n=L++;!r&&t?r=()=>(0,c.default)(f.default.findDOMNode(t),".react-spectrum-provider"):r||(r=()=>document.querySelector(".react-spectrum-provider")||document.body);let i=e.props,o=i.disableEscKey,s=i.role,l=i.onClose,u=i.onHide,p=i.onExited,m=_(i,["disableEscKey","role","onClose","onHide","onExited"]);s=s&&-1!==s.indexOf("dialog")?"presentation":"dialog",m=E.reduce(((e,t)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{[t]:m[t]})),{});let g=h.default.createElement(x,v({},m,{container:r,key:n,keyboard:!o,role:s,onClose:l,onHide:(0,a.chain)(this.hide.bind(this,n),u,p),"aria-modal":"dialog"===s||null}),e);return d.default.add(g,t),n}static hide(e){d.default.remove({key:e})}};let x=(0,i.default)(n=class extends h.default.Component{constructor(...e){var t;return t=super(...e),this.state={show:!0},t}onClose(){this.setState({show:!1}),this.props.onClose&&this.props.onClose()}onEntering(e){this.props.onEntering&&this.props.onEntering(e),this.baseModal.lastFocus===document.activeElement&&this.baseModal.autoFocus()}backdropMode(){const e=this.props.children.props;let t="static";return e.backdropClickable&&(t=!0),"fullscreenTakeover"===e.mode&&(t=!1),t}render(){const e=this.backdropMode(),t=this.props,r=t.children,n=t.onHide,i=_(t,["children","onHide"]);return h.default.createElement(o.default,v({},i,{style:{zIndex:1e5,position:"relative"},show:this.state.show,ref:e=>this.baseModal=e,onEntering:this.onEntering,onExited:n,onHide:this.onClose,backdrop:e,manager:w,renderBackdrop:e=>h.default.createElement(S,e),transition:p.default,backdropTransition:p.default}),(0,h.cloneElement)(r,{onClose:this.onClose}))}})||n;t.Modal=x;class S extends h.default.Component{render(){let e=this.props,t=e.open,r=_(e,["open"]);return h.default.createElement("div",v({},(0,l.default)(r),{className:(0,s.default)("spectrum-Underlay",{"is-open":t})}))}}},45206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(90395))&&n.__esModule?n:{default:n};class o extends i.default{constructor(...e){var t;return t=super(...e),this.overflowMap=new Map,this.superAdd=this.add,this.superRemove=this.remove,this.add=(e,t,r,n)=>{this.superAdd(e,t,r),this.hideBodyOverflow(e,n)},this.hideBodyOverflow=(e,t)=>{let r=getComputedStyle(document.body).overflow;t||"hidden"===r||(this.overflowMap.set(e,r),document.body.style.overflow="hidden")},this.remove=(e,t,r)=>{this.superRemove(e,t,r),this.resetBodyOverflow(e)},this.resetBodyOverflow=e=>{this.overflowMap.has(e)&&(document.body.style.overflow=this.overflowMap.get(e),this.overflowMap.delete(e))},t}addToModal(e,t=!1){const r=this.hideSiblingNodes;this.hideSiblingNodes=!1,this.add(e,document.body,null,t),this.hideSiblingNodes=r}removeFromModal(e){const t=this.hideSiblingNodes;this.hideSiblingNodes=!1,this.remove(e),this.hideSiblingNodes=t}}t.default=o},3074:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("OverlayTrigger",(()=>r(45253)),(()=>r(31629)))},59972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=g(r(68378)),s=g(r(99607)),c=g(r(36065)),l=g(r(26088)),u=g(r(81081)),p=g(r(83698)),d=g(r(61437)),h=g(r(89526)),f=g(r(73961)),m=g(r(28630));function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=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},v.apply(this,arguments)}function y(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}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){E(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 E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const w=new Map;let L=(0,c.default)(n=(0,a.default)((o=i=class extends h.default.Component{constructor(e){super(e),this.state={exited:!this.props.show}}get overlayBucketKey(){const e=this.props.children;return e&&e.props&&"tooltip"===e.props.role?"tooltip":"all"}componentDidMount(){this.setState({targetNode:f.default.findDOMNode(this.props.target)}),this.mounted=!0,this.addOverlay()}componentWillUnmount(){this.mounted=!1,this.removeOverlay()}addOverlay(e=this.props){const t=this.overlayBucketKey;let r=w.get(t);r||(w.set(t,[]),r=w.get(t)),e.show&&this.mounted&&!r.includes(this)&&r.push(this)}removeOverlay(){const e=w.get(this.overlayBucketKey);let t=e.indexOf(this);t>=0&&e.splice(t,1)}UNSAFE_componentWillReceiveProps(e){e.target&&e.target!==this.props.target&&this.setState(_({},this.state,{targetNode:f.default.findDOMNode(e.target)}))}onEntered(...e){this.setState(_({},this.state,{exited:!1})),this.addOverlay(),this.props.onEntered&&this.props.onEntered(...e)}onExited(...e){this.setState(_({},this.state,{exited:!0})),this.removeOverlay(),this.props.onExited&&this.props.onExited(...e)}getOverlayContainer(e){let t=(0,s.default)(this.state.targetNode,".react-spectrum-provider");return this.props.container||t}hide(e){const t=w.get(this.overlayBucketKey);t[t.length-1]===this&&this.props.onHide&&this.props.onHide(e)}render(){let e=this.props,t=e.containerPadding,r=e.target,n=e.container,i=void 0===n?this.getOverlayContainer(r):n,o=e.placement,a=e.offset,s=e.crossOffset,c=e.flip,f=e.boundariesElement,g=void 0===f?()=>(0,u.default)(this).body:f,b=e.shouldUpdatePosition,_=e.rootClose,E=e.children,w=e.show,L=e.onExit,x=e.onExiting,S=e.onEnter,O=e.onEntering,T=y(e,["containerPadding","target","container","placement","offset","crossOffset","flip","boundariesElement","shouldUpdatePosition","rootClose","children","show","onExit","onExiting","onEnter","onEntering"]);if(!(w||!this.state.exited))return null;let I=E;return I=h.default.createElement(d.default,v({container:i,containerPadding:t,target:r,placement:o,shouldUpdatePosition:b,offset:a,crossOffset:s,flip:c,boundariesElement:g},{autoComplete:!0}),I),delete T.autoComplete,I=h.default.createElement(l.default,{in:w,appear:!0,onExit:L,onExiting:x,onExited:this.onExited,onEnter:S,onEntering:O,onEntered:this.onEntered},I),_&&(I=h.default.createElement(m.default,{onRootClose:this.hide},I)),h.default.createElement(p.default,{container:i},I)}},i.defaultProps={placement:"left"},n=o))||n)||n;t.default=L},31629:(e,t,r)=>{"use strict";function n(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||o(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){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 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}}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}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,c,l,u=E(r(68378)),p=r(51884),d=E(r(36065)),h=E(r(99870)),f=r(58137),m=E(r(59972)),g=E(r(81081)),v=E(r(2652)),y=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),b=E(r(73961));function _(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function E(e){return e&&e.__esModule?e:{default:e}}function w(){return w=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},w.apply(this,arguments)}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 x(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){S(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 S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const T=v.default.oneOf(["click","longClick","hover","focus"]),I=0;function P(e,t){return Array.isArray(t)?t.indexOf(e)>=0:e===t}let C=(0,d.default)(s=(0,u.default)((l=c=class e extends y.Component{constructor(e,t){super(e,t),this.onMouseDown=e=>{if(!this.props.disabled&&e.button===I){const t=e.currentTarget;this.longPressTimeout=setTimeout((()=>{this.longPressTimeout=null,this._lastFocus=t,this.show(e)}),250)}},this.onMouseUp=e=>{this.longPressTimeout||e.preventDefault(),!this.props.disabled&&this.longPressTimeout&&e.button===I&&(this.props.onClick&&this.props.onClick(e),this.hide(e),clearTimeout(this.longPressTimeout),this.longPressTimeout=null)},this.windowMouseUp=e=>{e.button===I&&!b.default.findDOMNode(this).contains(e.target)&&this.longPressTimeout&&(clearTimeout(this.longPressTimeout),this.longPressTimeout=null)},this.overlayId=(0,h.default)(),this._mountNode=null,this.longPressTimeout=null,this._lastFocus=e.lastFocus,this.boundariesElement=e.boundariesElement?e.boundariesElement:()=>(0,g.default)(this).body,this._scrollParents=null,this.state={show:void 0===e.show?e.defaultShow:e.show}}UNSAFE_componentWillReceiveProps(e){"lastFocus"in e&&e.lastFocus!==this.props.lastFocus&&(this._lastFocus=e.lastFocus),e.show!==this.props.show&&(e.show?this.handleDelayedShow():this.handleDelayedHide())}componentDidMount(){this._mountNode=document.createElement("div"),this.renderOverlay(),document.body.addEventListener("mouseUp",this.windowMouseUp)}componentDidUpdate(e){const t=e.disabled,r=this.props.disabled;!t&&r&&this.hide(),this.renderOverlay()}componentWillUnmount(){f.modalManager.removeFromModal(this._overlay),b.default.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay),this.removeListenersFromScrollParents(),document.body.removeEventListener("mouseUp",this.windowMouseUp)}handleToggle(e){this.state.show?this.hide(e):this.show(e)}handleDelayedShow(e){if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(this.state.show||null!=this._hoverShowDelay)return;const t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout((()=>{this._hoverShowDelay=null,this.show(e)}),t):this.show(e)}handleDelayedHide(t){if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(!this.state.show||null!=this._hoverHideDelay)return;let r=this.props.delayHide&&this.props.delayHide!==e.defaultProps.delayHide||null==this.props.delay?this.props.delayHide:this.props.delay;r?this._hoverHideDelay=setTimeout((()=>{this._hoverHideDelay=null,this.hide(t)}),r):this.hide(t)}handleMouseOverOut(e,t){const r=t.currentTarget,n=t.relatedTarget||t.nativeEvent.toElement;n&&(n===r||r.contains(n))||e(t)}show(e){this.state.show||this.props.disabled||(this._lastFocus=this.rememberedFocus(),this.listenToScrollParents(),this.setState({show:!0}),this.props.onShow&&this.props.onShow(e))}listenToScrollParents(){this._scrollParents&&this.removeListenersFromScrollParents(),this._scrollParents=function(e){let t=[];for(;e.parentNode;){var r=window.getComputedStyle(e);(/auto|scroll/.test(r.overflow+r.overflowY)||e.hasAttribute("data-scrollable"))&&t.push(e),e=e.parentNode}return t}(b.default.findDOMNode(this));var e,t=i(this._scrollParents);try{for(t.s();!(e=t.n()).done;){e.value.addEventListener("scroll",this.hide,!1)}}catch(e){t.e(e)}finally{t.f()}}removeListenersFromScrollParents(){if(this._scrollParents){var e,t=i(this._scrollParents);try{for(t.s();!(e=t.n()).done;){e.value.removeEventListener("scroll",this.hide,!1)}}catch(e){t.e(e)}finally{t.f()}this._scrollParents=null}}hide(e){this.removeListenersFromScrollParents(),this.state.show&&(this.setState({show:!1}),this.props.onHide&&this.props.onHide(e))}onKeyDown(e){"ArrowDown"!==e.key&&"Down"!==e.key||(e.altKey||e.target===b.default.findDOMNode(this.dropdownRef.triggerRef))&&(e.preventDefault(),this.show(e))}onHide(e){P("longClick",this.props.trigger)&&b.default.findDOMNode(this).contains(e.target)||(void 0===this.props.show?this.hide(e):this.props.onHide&&this.props.onHide(e))}onExited(e){this.restoreFocus(e),this.props.onExited&&this.props.onExited(e)}rememberedFocus(){return!this._lastFocus&&document&&document.activeElement!==document.body&&(this._lastFocus=document.activeElement),this._lastFocus}restoreFocus(e){if(this._lastFocus&&"function"==typeof this._lastFocus.focus){if(document){let t;e&&(t=b.default.findDOMNode(e)),(t&&(t===document.activeElement||t.contains(document.activeElement))||document.activeElement===document.body)&&this._lastFocus.focus()}this.props.lastFocus||(this._lastFocus=null)}}makeOverlay(e,t){let r=this.props.target,n=void 0===r?this:r,i=t.rootClose,o=void 0===i||i,a=O(t,["rootClose"]);delete a.crossOffset,delete a.defaultShow,delete a.flip,delete a.boundariesElement;let s=x({id:e.props.id||a.id},t);return e.props.id||(a.id=this.overlayId),y.default.createElement(m.default,w({},s,{show:this.state.show,onHide:this.onHide,onExited:this.onExited,target:n,rootClose:o}),(0,y.cloneElement)(e,a))}renderOverlay(){this._overlay.props.show&&f.modalManager.addToModal(this._overlay,!0),b.default.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)}render(){const e=this.props,t=e.trigger,r=e.show,i=e.selected,o=void 0===i?this.state.show:i,a=O(e,["trigger","show","selected"]);delete a.delay,delete a.delayShow,delete a.delayHide,delete a.defaultShow,delete a.onShow,delete a.onHide;const s=n(y.default.Children.toArray(this.props.children),2),c=s[0],l=s[1],u={};return delete a.children,this.state.show&&l.type&&"tooltip"===l.props.role&&(a.id||(a.id=l.props.id||this.overlayId),u["aria-describedby"]=a.id),void 0===r&&(P("click",t)&&!P("longClick",t)&&(u.onClick=(0,p.chain)(this.props.onClick,this.handleToggle)),P("longClick",t)&&(delete a.onClick,u.onMouseDown=this.onMouseDown,u.onMouseUp=this.onMouseUp,u.onKeyDown=this.onKeyDown),P("hover",t)&&(u.onMouseOver=this.handleMouseOverOut.bind(this,this.handleDelayedShow),u.onMouseOut=this.handleMouseOverOut.bind(this,this.handleDelayedHide),a.onMouseOver=this.handleMouseOverOut.bind(this,this.handleDelayedShow),a.onMouseOut=this.handleMouseOverOut.bind(this,this.handleDelayedHide),a.trapFocus=!1),P("focus",t)&&(u.onFocus=(0,p.chain)(c.props.onFocus,this.handleDelayedShow),u.onBlur=(0,p.chain)(c.props.onBlur,this.handleDelayedHide),a.onFocus=this.handleDelayedShow,a.onBlur=this.handleDelayedHide,a.trapFocus=!1)),u.selected=o,this._overlay&&f.modalManager.removeFromModal(this._overlay),this._overlay=this.makeOverlay(l,a),(0,y.cloneElement)(c,u)}},c.propTypes=x({},m.default.propTypes,{trigger:v.default.oneOfType([T,v.default.arrayOf(T)]),delay:v.default.number,delayShow:v.default.number,delayHide:v.default.number,defaultShow:v.default.bool,placement:v.default.string,onBlur:v.default.func,onClick:v.default.func,onFocus:v.default.func,onMouseOut:v.default.func,onMouseOver:v.default.func,onShow:v.default.func,onHide:v.default.func,show:v.default.bool,offset:v.default.number,crossOffset:v.default.number,flip:v.default.bool,disabled:v.default.bool,boundariesElement:v.default.oneOfType([v.default.func,v.default.string]),lastFocus:v.default.oneOfType([v.default.element,v.default.object])}),c.defaultProps={defaultShow:!1,trigger:["hover","focus"],placement:"left",offset:0,crossOffset:0,flip:!0,disabled:!1,delayHide:100},s=l))||s)||s;t.default=C},61437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=g(r(68378)),s=g(r(97683)),c=g(r(64403)),l=g(r(36065)),u=g(r(40743)),p=g(r(59509)),d=g(r(81081)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),f=g(r(73961));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let E=(0,l.default)(n=(0,a.default)((o=i=class extends h.default.Component{constructor(e,t){super(e,t),this.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null,placement:this.props.placement},this._needsFlush=!1,this._lastTarget=null}componentDidMount(){this.props.autoComplete?this.updatePosition(this.getTarget(),"visible"):this.updatePosition(this.getTarget(),"hidden"),window.addEventListener("resize",this.maybeUpdatePosition,!1)}UNSAFE_componentWillReceiveProps(){this._needsFlush=!0}componentDidUpdate(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement,"visible"))}componentWillUnmount(){window.removeEventListener("resize",this.maybeUpdatePosition,!1)}render(){const e=this.props,t=e.children,r=e.className,n=_(e,["children","className"]),i=this.state,o=i.positionLeft,a=i.positionTop,s=i.maxHeight,l=i.arrowOffsetLeft,p=i.arrowOffsetTop,d=i.placement,f=i.targetValid;delete n.target;const m=h.default.Children.only(t);return(0,h.cloneElement)(m,y({},(0,u.default)(n),{placement:d,className:(0,c.default)(r,m.props.className),arrowStyle:{left:l,top:p},style:y({},m.props.style,{position:"absolute",zIndex:1e5,left:o,top:a,maxHeight:s,visibility:f?"visible":"hidden"})}))}getTarget(){const e=this.props.target,t="function"==typeof e?e():e;return t&&f.default.findDOMNode(t)||null}maybeUpdatePosition(e,t){const r=this.getTarget();(this.props.shouldUpdatePosition||r!==this._lastTarget||e)&&this.updatePosition(r,t)}updatePosition(e,t){const r=this.props,n=r.placement,i=r.containerPadding,o=r.offset,a=r.crossOffset,c=r.flip,l=r.boundariesElement;this._lastTarget=e;let u=!1;if(!e)return void this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null,targetValid:u});let h=e.getBoundingClientRect();if(u=h.x>=4&&h.y>=4&&h.width>0&&h.height>0&&"visible"===t,!u)return;const m=f.default.findDOMNode(this);m.visibility=t;const g=(0,p.default)(this.props.container,(0,d.default)(this).body);this.setState(y({},(0,s.default)(n,m,e,g,i,c,l,o,a),{targetValid:u}))}},i.defaultProps={containerPadding:10,offset:0,crossOffset:0},n=o))||n)||n;t.default=E},18143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(26088)),i=s(r(59972)),o=s(r(89526)),a=s(r(28630));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}class l extends i.default{render(){let e=this.props,t=e.rootClose,r=e.children,i=c(e,["rootClose","children"]);if(!(i.show||!this.state.exited))return null;let s=r,l=i.onExit,u=i.onExiting,p=i.onEnter,d=i.onEntering;return s=o.default.createElement(n.default,{in:i.show,appear:!0,onExit:l,onExiting:u,onExited:this.onExited,onEnter:p,onEntering:d,onEntered:this.onEntered},s),t&&(s=o.default.createElement(a.default,{onRootClose:this.hide},s)),s}}t.default=l},50834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(26088)),i=u(r(59972)),o=u(r(81081)),a=u(r(83698)),s=u(r(83596)),c=u(r(89526)),l=u(r(28630));function u(e){return e&&e.__esModule?e:{default:e}}class p extends i.default{constructor(...e){var t;return t=super(...e),this.keydown=e=>{27===e.keyCode&&this.hide(e)},t}render(){let e=this.props,t=e.containerPadding,r=e.target,i=e.container,u=void 0===i?this.getOverlayContainer(r):i,p=e.placement,d=e.offset,h=e.crossOffset,f=e.flip,m=e.boundariesElement,g=void 0===m?()=>(0,o.default)(this).body:m,v=e.shouldUpdatePosition,y=e.rootClose,b=e.children,_=e.show,E=e.onExit,w=e.onExiting,L=e.onEnter,x=e.onEntering;if(!(_||!this.state.exited))return null;let S=b;return S=c.default.createElement(s.default,{container:u,containerPadding:t,target:r,placement:p,shouldUpdatePosition:v,offset:d,crossOffset:h,flip:f,boundariesElement:g},S),S=c.default.createElement(n.default,{in:_,appear:!0,onExit:E,onExiting:w,onExited:this.onExited,onEnter:L,onEntering:x,onEntered:this.onEntered},S),y&&(S=c.default.createElement(l.default,{onRootClose:this.hide},S)),S=c.default.createElement("div",{onKeyDown:this.keydown},S),c.default.createElement(a.default,{container:u},S)}}t.default=p},45253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=f(r(68378)),o=f(r(99607)),a=f(r(99870)),s=f(r(18143)),c=r(58137),l=f(r(50834)),u=f(r(31629)),p=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),d=f(r(73961));function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}function m(){return m=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},m.apply(this,arguments)}function g(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 v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(77609);let b=(0,i.default)(n=class extends u.default{constructor(e,t){super(e,t),this.overlayId=(0,a.default)(),this._mountNode=null,this.popup=null,this.state={show:void 0===e.show?e.defaultShow:e.show},this.overlayChild=p.default.Children.toArray(this.props.children)[1],this.isFlyout=!!this.overlayChild&&this.overlayChild.props.flyoutMenu}getFlyoutOverlayContainer(){return(0,o.default)(d.default.findDOMNode(this),".react-spectrum-provider")||document.querySelector(".react-spectrum-provider")||document.body}componentDidMount(){this._mountNode=document.createElement("div"),this._immediateFlyoutContainer=this.getFlyoutOverlayContainer(),this.isFlyout&&(this.popup=document.createElement("popup"),this.popup.className="uxp-flyout"),this.renderOverlay(),document.body.addEventListener("mouseUp",this.windowMouseUp)}show(e){this.state.show||this.props.disabled||(this._lastFocus=this.rememberedFocus(),this.listenToScrollParents(),this.setState({show:!0}),this.isFlyout&&(this._immediateFlyoutContainer.appendChild(this.popup),this.popup.addEventListener("close",this.hide),this.popup.showFlyout(d.default.findDOMNode(this),{placement:"bottom left"})),this.props.onShow&&this.props.onShow(e))}hide(e){this.removeListenersFromScrollParents(),this.state.show&&(this.setState({show:!1}),this.isFlyout&&(this.popup.close(),this.popup.removeEventListener("close",this.hide),this._immediateFlyoutContainer.removeChild(this.popup)),this.props.onHide&&this.props.onHide(e))}componentWillUnmount(){c.modalManager.removeFromModal(this._overlay),d.default.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay),this.removeListenersFromScrollParents(),document.body.removeEventListener("mouseUp",this.windowMouseUp)}renderOverlay(){this._overlay.props.show&&c.modalManager.addToModal(this._overlay,!0),this.isFlyout?d.default.render(this._overlay,this.popup):d.default.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)}makeOverlay(e,t){let r=this.props.target,n=void 0===r?this:r,i=t.rootClose,o=void 0===i||i,a=y(t,["rootClose"]);delete a.crossOffset,delete a.defaultShow,delete a.flip;let c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.props.id||a.id},t);return e.props.id||(a.id=this.overlayId),this.isFlyout?p.default.createElement(s.default,m({},c,{show:this.state.show,onHide:this.hide,rootClose:o}),(0,p.cloneElement)(e,a)):p.default.createElement(l.default,m({},c,{show:this.state.show,onExited:this.onExited,onHide:this.onHide,target:n,rootClose:o}),(0,p.cloneElement)(e,a))}})||n;t.default=b},83596:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=m(r(68378)),o=m(r(97683)),a=m(r(64403)),s=m(r(40743)),c=m(r(59509)),l=m(r(81081)),u=m(r(61437)),p=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),d=m(r(73961)),h=m(r(37001));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let _=(0,i.default)(n=class extends u.default{componentDidMount(){this.updatePosition(this.getTarget(),"hidden"),window.addEventListener("resize",this.maybeUpdatePosition,!1)}componentDidUpdate(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement,"visible"))}render(){const e=this.props,t=e.children,r=e.className,n=b(e,["children","className"]),i=this.state,o=i.positionLeft,c=i.positionTop,l=i.arrowOffsetLeft,u=i.arrowOffsetTop,d=i.placement;delete n.target;const h=p.default.Children.only(t);return(0,p.cloneElement)(h,v({},(0,s.default)(n),{placement:d,className:(0,a.default)(r,h.props.className),arrowStyle:{left:l,top:u},ref:e=>this.overlay=e,style:v({},h.props.style,{position:"absolute",zIndex:1e5,left:o,top:c})}))}updateOverlayBoundingRect(){if(this.overlay&&this.overlay.tooltipRef){let e=this.overlay.tooltipRef.getBoundingClientRect();e.x=this.state.positionLeft,e.y=this.state.positionTop,(0,h.default)(this.overlay.tooltipRef,!0,this.overlay.hide,e)}}maybeUpdatePosition(e,t){const r=this.getTarget();(this.props.shouldUpdatePosition||r!==this._lastTarget||e)&&this.updatePosition(r,t)}updatePosition(e,t){const r=this.props,n=r.placement,i=r.containerPadding,a=r.offset,s=r.crossOffset,u=r.flip,p=r.boundariesElement;if(this._lastTarget=e,!e)return void this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});const h=d.default.findDOMNode(this);h.style.visibility=t;const f=(0,c.default)(this.props.container,(0,l.default)(this).body);this.setState((0,o.default)(n,h,e,f,i,u,p,a,s)),this.overlay&&this.updateOverlayBoundingRect()}})||n;t.default=_},97683:(e,t,r)=>{"use strict";function n(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(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}Object.defineProperty(t,"__esModule",{value:!0}),t.calculatePositionInternal=L,t.default=function(e,t,r,n,i,c,l,u,p){const d="BODY"===n.tagName,h=d?(0,a.default)(r):(0,s.default)(r,n);d||(h.top+=parseInt((0,o.default)(r,"marginTop"),10)||0,h.left+=parseInt((0,o.default)(r,"marginLeft"),10)||0);const f=(0,a.default)(t),m=function(e){const t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(t);f.width+=m.left+m.right,f.height+=m.top+m.bottom;const g=y(n),v="container"===l?n:l(),b=y(v),_="BODY"===v.tagName?(0,a.default)(n):(0,s.default)(n,v);return L(e,g,h,f,m,i,c,b,_,u,p)};var o=d(r(95463)),a=d(r(7115)),s=d(r(1954)),c=d(r(82653)),l=d(r(51587)),u=d(r(62310)),p=d(r(73961));function d(e){return e&&e.__esModule?e:{default:e}}const h={top:"top",bottom:"top",left:"left",right:"left",center:"left"},f={top:"bottom",bottom:"top",left:"right",right:"left"},m={top:"left",left:"top"},g={top:"height",left:"width"},v={};function y(e){let t,r,n=0,i=0,o={};const s=p.default.findDOMNode(e);if("BODY"===s.tagName)t=window.innerWidth||e.clientWidth,r=window.innerHeight||e.clientHeight,o.top=(0,l.default)((0,u.default)(s).documentElement)||(0,l.default)(s),o.left=(0,c.default)((0,u.default)(s).documentElement)||(0,c.default)(s);else{var d=(0,a.default)(s);t=d.width,r=d.height,n=d.top,i=d.left,o.top=(0,l.default)(s),o.left=(0,c.default)(s)}return{width:t,height:r,scroll:o,top:n,left:i}}function b(e,t,r,n,i){const o=n.scroll[e],a=n[g[e]],s=t-i-o,c=t+i-o+r;return s<0?-s:c>a?Math.max(a-c,-s):0}function _(e,t,r,n,i,o,a){const s=o.scroll[e],c=o[g[e]],l=a[e]+t-n-s,u=a[e]+t+n-s+r;return l<0&&("top"===i||"left"===i)||u>c&&("bottom"===i||"right"===i)}function E(e){if(v[e])return v[e];let t=n(e.split(" "),2),r=t[0],i=t[1],o=h[r]||"right",a=m[o];h[i]||(i="center");let s=g[o],c=g[a];return v[e]={placement:r,crossPlacement:i,axis:o,crossAxis:a,size:s,crossSize:c},v[e]}function w(e,t,r,n,i,o){const a=n.placement,s=n.crossPlacement,c=n.axis,l=n.crossAxis,u=n.size,p=n.crossSize;let d={};if(d[l]=e[l]+o,"center"===s?d[l]+=(e[p]-r[p])/2:s!==l&&(d[l]+=e[p]-r[p]),e[p]<r[p]){const t=Math.min(d[l],e[l]);d[l]=Math.max(t,e[l]-r[p]+e[p])}return d[c]=a===c?e[c]-r[u]+i:e[c]+e[u]+i,d}function L(e,t,r,n,i,o,a,s,c,l,u){let p=E(e);const d=p,h=d.axis,m=d.size,g=d.crossAxis,v=d.crossSize,y=d.placement,L=d.crossPlacement;let x=w(r,0,n,p,l,u),S=l;if(a&&_(h,x[h],n[m],o,y,s,c)){const e=E(`${f[y]} ${L}`),t=e.axis,i=e.size,a=w(r,0,n,e,-1*l,u);_(t,a[t],n[i],o,f[y],s,c)||(p=e,x=a,S=-1*l)}let O=b(g,x[g],n[v],s,o);x[g]+=O;let T=Math.max(0,s.height+s.top+s.scroll.top-c.top-x.top-i.top-i.bottom-o);n.height=Math.min(n.height,T),x=w(r,0,n,p,S,u),O=O=b(g,x[g],n[v],s,o),x[g]+=O;const I={};return I[g]=r[v]>n[v]?null:r[g]-x[g]+r[v]/2,{positionLeft:x.left,positionTop:x.top,maxHeight:T,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:p.placement}}},50865:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Popover",(()=>r(89217)),(()=>r(47431)))},47431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=m(r(64403)),c=m(r(99870)),l=m(r(71547)),u=m(r(40743)),p=m(r(2652)),d=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),h=r(75870);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(){return g=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},g.apply(this,arguments)}function v(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(80610),r(73657),r(99756),r(54525),r(52855),r(60448),r(12076),r(76172),r(30954),r(92708),r(43319);let y=(0,a.default)((o=i=class extends d.Component{constructor(e,t){super(e,t),this.defaultId=(0,c.default)()}componentDidMount(){this.props.trapFocus&&(this._trapFocusTimeout=requestAnimationFrame((()=>{this.popoverRef&&!this.popoverRef.contains(document.activeElement)&&this.popoverRef.focus()})))}componentWillUnmount(){this._trapFocusTimeout&&cancelAnimationFrame(this._trapFocusTimeout)}onFocus(e){this.props.onFocus&&this.props.onFocus(e),this.props.trapFocus&&e.target===this.popoverRef&&!this.popoverRef.contains(e.relatedTarget)&&(0,h.trapFocus)(this,e)}onKeyDown(e){this.props.onKeyDown&&(this.props.onKeyDown(e),e.isPropagationStopped&&e.isPropagationStopped())||this.props.trapFocus&&(0,h.trapFocus)(this,e)}render(){const e=this.props,t=e.variant,r=e.placement,n=e.open,i=e.title,o=e.children,a=e.className,c=e.isDialog,p=void 0===c||c,h=e.trapFocus,f=e.tabIndex,m=void 0===f?null:f,y=e.id,b=void 0===y?this.defaultId:y,_=e["aria-label"],E=e["aria-labelledby"],w=e["aria-describedby"],L=v(e,["variant","placement","open","title","children","className","isDialog","trapFocus","tabIndex","id","aria-label","aria-labelledby","aria-describedby"]);delete L.target;let x=p?d.default.createElement("div",{className:"spectrum-Dialog-content",role:"presentation",id:`${b}-content`},o):o;return d.default.createElement("div",g({ref:e=>this.popoverRef=e,className:(0,s.default)("spectrum-Popover",`spectrum-Popover--${r.split(" ")[0]}`,{"spectrum-Popover--withTip":p,"spectrum-Popover--dialog":p,[`spectrum-Dialog--${t}`]:p,"is-open":n},a),role:p?"dialog":"presentation",id:b,"aria-label":_,"aria-labelledby":E||(p&&i&&!_?`${b}-heading`:null),"aria-describedby":w||(p&&i&&o?`${b}-content`:null),"data-testid":"popover"},(0,u.default)(L),{onFocus:this.onFocus,onKeyDown:this.onKeyDown,tabIndex:h&&null===m?1:m}),p&&i&&d.default.createElement(l.default,{id:`${b}-heading`,title:i,variant:t}),x,p&&this.renderTip())}renderTip(){return d.default.createElement("div",{className:"spectrum-Popover-tip",style:this.props.arrowStyle,"aria-hidden":"true","data-testid":"tip"})}},i.propTypes={variant:p.default.oneOf(["default","error"]),placement:p.default.oneOf(["bottom","bottom left","bottom right","top","top left","top right","left","left top","left bottom","right","right top","right bottom"]),open:p.default.bool,title:p.default.node,className:p.default.string,trapFocus:p.default.bool},i.defaultProps={variant:"default",placement:"bottom",open:!0,trapFocus:!0},n=o))||n;t.default=y,y.displayName="Popover"},89217:(e,t,r)=>{"use strict";function n(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(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}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=d(r(68378)),s=d(r(27984)),c=d(r(47431)),l=d(r(89526)),u=d(r(37001)),p=r(85706);function d(e){return e&&e.__esModule?e:{default:e}}function h(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?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let g=(0,a.default)(o=class extends c.default{constructor(...e){var t;return t=super(...e),this.setOverlayVisible=()=>{this.props.flyoutMenu||(0,u.default)(this.popoverRef,!0,this.hide)},this.setOverlayHidden=()=>{this.props.flyoutMenu||(0,u.default)(this.popoverRef,!1)},this.hide=()=>{this.popoverRef&&(this.popoverRef.style.display="none")},t}componentDidMount(){this.popoverRef&&this.popoverRef.addEventListener("resize",this.setOverlayVisible)}componentWillUnmount(){this.popoverRef&&this.popoverRef.removeEventListener("resize",this.setOverlayVisible),this.setOverlayHidden()}renderTip(){const e=this.props.placement;let t=Array.of(function(e){const t=20;return"right"===e?[t,t,"M 20 0 l -10 10 l 10 10",{left:-20}]:"left"===e?[t,t,"M 0 0 l 10 10 l -10 10",{right:-20}]:"top"===e?[t,t,"M 0 0 l 10 10 l 10 -10",{bottom:-19.5}]:"bottom"===e?[t,t,"M 0 20 l 10 -10 l 10 10",{top:-20}]:void 0}(e)),r=n(t,1),i=n(r[0],4),o=i[0],a=i[1],c=i[2],u=i[3];return l.default.createElement(p.SpectrumContext.Consumer,null,(({scale:e,theme:t}={})=>l.default.createElement("svg",{className:"spectrum-Popover-tip",style:f({width:o,height:a,border:"none",background:"none",fill:s.default.elements[t][e].popover.default.states.default["background-color"],stroke:s.default.elements[t][e].popover.default.states.default["border-color"]},u)},l.default.createElement("path",{d:c}))))}})||o;t.default=g},4782:(e,t,r)=>{"use strict";e.exports=r(20869)},20869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i(r(89526));var n=i(r(73961));function i(e){return e&&e.__esModule?e:{default:e}}let o={};t.default=class{static add(e,t){let r=o[e.key]||document.createElement("div");t?n.default.unstable_renderSubtreeIntoContainer(t,e,r):n.default.render(e,r),o[e.key]=r}static remove(e){n.default.unmountComponentAtNode(o[e.key]),delete o[e.key]}static removeAll(){for(let e in o)o.hasOwnProperty(e)&&(n.default.unmountComponentAtNode(o[e]),delete o[e])}}},30665:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Provider",(()=>r(85706)),(()=>r(53241)))},53241:(e,t,r)=>{"use strict";var n=r(82530);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a,s=g(r(64403)),c=g(r(84420)),l=g(r(36065)),u=r(3585),p=g(r(40743)),d=g(r(2652)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),f=r(61553);function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=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},v.apply(this,arguments)}function y(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(36982),r(8036),r(81552),r(63595),r(28432),r(85485),r(30250),r(68287),r(42069),r(36358),r(88759),r(31799);let b=(0,l.default)((a=o=class extends h.Component{constructor(e){super(e),(0,u.setLocale)(e.locale),this.configureTypekit()}configureTypekit(){n.browser&&(0,c.default)(this.props.typekitId),this.props.toastPlacement&&(0,f.setToastPlacement)(this.props.toastPlacement)}UNSAFE_componentWillReceiveProps(e){"locale"in e&&(0,u.setLocale)(e.locale),e.toastPlacement&&(0,f.setToastPlacement)(e.toastPlacement)}getChildContext(){return{theme:this.props.theme,scale:this.props.scale,locale:this.props.locale}}render(){let e=this.props,t=e.theme,r=e.className,n=e.children,i=e.scale,o=y(e,["theme","className","children","scale"]);return h.default.createElement("div",v({className:(0,s.default)(r,"react-spectrum-provider","spectrum",`spectrum--${t}`,`spectrum--${i}`)},(0,p.default)(o)),n)}},o.propTypes={theme:d.default.oneOf(["light","lightest","dark","darkest"]),scale:d.default.oneOf(["medium","large"]),toastPlacement:d.default.oneOf(["top","top left","top center","top right","bottom","bottom left","bottom center","bottom right"]),typekitId:d.default.string,locale:d.default.string,className:d.default.string},o.defaultProps={theme:"light",scale:"medium",typekitId:"ruf7eed",locale:u.defaultLocale},o.childContextTypes={theme:d.default.oneOf(["light","lightest","dark","darkest"]),scale:d.default.oneOf(["medium","large"]),locale:d.default.string},i=a))||i;t.default=b},85706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SpectrumContext=void 0;var n=l(r(64403)),i=l(r(40743)),o=l(r(25545)),a=l(r(81081)),s=l(r(53241)),c=l(r(89526));l(r(73961));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(68287),r(42069),r(36358),r(88759),r(31799);const d=c.default.createContext({theme:"light",scale:"medium",productId:"default",boundariesElement:()=>(0,a.default)(void 0).body,disableNativeControls:!1,overlay:null});t.SpectrumContext=d;class h extends s.default{constructor(e){super(e),this.state={overlay:{overlayRef:null,data:{visible:!1,callback:void 0,boundingRect:null}}}}setOverlay(e,t){this.setState({overlay:{overlayRef:e,data:t}})}configureTypekit(){}componentDidMount(){this.props.useHostThemes&&(0,o.default)(),this.providerRef.setAttribute("setOverlay",this.setOverlay.bind(this))}render(){let e=this.props,t=e.theme,r=void 0===t?"light":t,o=e.scale,a=void 0===o?"medium":o,s=e.productId,l=void 0===s?"":s,h=e.disableNativeControls,f=e.boundariesElement,m=e.className,g=e.style,v=void 0===g?{}:g,y=e.children,b=p(e,["theme","scale","productId","disableNativeControls","boundariesElement","className","style","children"]);const _=this.state.overlay;return c.default.createElement(d.Provider,{value:{theme:r,scale:a,productId:l,boundariesElement:f,disableNativeControls:h,overlay:_}},c.default.createElement("div",u({ref:e=>this.providerRef=e},(0,i.default)(b),{style:Object.assign({},{fontFamily:"Adobe Clean"},v),className:(0,n.default)("react-spectrum-provider",`spectrum--${r}`,m,`spectrum--${a}`,"spectrum","spectrum--override")}),"string"!=typeof y&&y))}}t.default=h},4294:(e,t,r)=>{"use strict";e.exports=r(93732)},93732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=s(r(64403)),i=s(r(40743)),o=s(r(2652)),a=s(r(89526));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e){let t=e.className,r=e.variant,o=void 0===r?"large":r,s=l(e,["className","variant"]);return a.default.createElement("hr",c({},(0,i.default)(s),{className:(0,n.default)("spectrum-Rule",`spectrum-Rule--${o}`,t)}))}r(25915),r(31341),r(77682),r(22386),r(108),u.propTypes={variant:o.default.oneOf(["large","medium","small"])}},32817:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Search",(()=>r(21927)),(()=>r(34941)))},34941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=E(r(68378)),s=E(r(96195)),c=E(r(64403)),l=r(44800),u=E(r(36065)),p=E(r(99870)),d=E(r(87535)),h=E(r(98337)),f=r(3585),m=E(r(2652)),g=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),v=E(r(77057));function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function b(){return b=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},b.apply(this,arguments)}function _(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function E(e){return e&&e.__esModule?e:{default:e}}const w={"cs-CZ":E(r(22187)).default,"da-DK":E(r(95066)).default,"de-DE":E(r(28306)).default,"en-US":E(r(19641)).default,"es-ES":E(r(59358)).default,"fi-FI":E(r(14879)).default,"fr-FR":E(r(11034)).default,"hu-HU":E(r(51600)).default,"it-IT":E(r(19202)).default,"ja-JP":E(r(36079)).default,"ko-KR":E(r(88024)).default,"nb-NO":E(r(81459)).default,"nl-NL":E(r(19878)).default,"pl-PL":E(r(84738)).default,"pt-BR":E(r(98384)).default,"ru-RU":E(r(73755)).default,"sv-SE":E(r(45116)).default,"tr-TR":E(r(60199)).default,"uk-UA":E(r(92403)).default,"zh-CN":E(r(57349)).default,"zh-TW":E(r(72113)).default};r(85149),r(19517),r(66795),r(39302),r(80076);const L=(0,f.messageFormatter)(w),x=e=>e||"";let S=(0,u.default)(n=(0,a.default)((o=i=class extends g.Component{constructor(e){super(e),this.searchId=(0,p.default)();const t=e.value,r=e.defaultValue;this.state={value:x(t||r)}}UNSAFE_componentWillReceiveProps(e){x(e.value)!==this.state.value&&this.setState({value:e.value})}handleTextKeyDown(e){const t=this.props,r=t.onSubmit,n=t.onKeyDown,i=t.disabled,o=this.state.value,a=e.which;13!==a&&27!==a||e.preventDefault(),i||(13===a&&r(o),27===a&&this.handleTextChange("",e,"escapeKey"),n&&n(e))}handleTextChange(e,t,r="input"){const n=this.props,i=n.onChange;n.disabled||e===this.state.value||("value"in this.props||this.setState({value:e}),i(e,t,{from:r}))}handleClearButtonClick(e){this.handleTextChange("",e,"clearButton"),this.searchbox&&this.searchbox.focus()}render(){const e=this.props,t=e.disabled,r=e.className,n=e.icon,i=e.id,o=void 0===i?this.searchId:i,a=_(e,["disabled","className","icon","id"]),u=this.state.value;return g.default.createElement("div",{className:(0,c.default)("spectrum-Search",{"is-disabled":t},r)},g.default.createElement(v.default,b({type:"search",ref:e=>this.searchbox=e,className:"spectrum-Search-input",value:u,disabled:t,id:o},a,{onKeyDown:this.handleTextKeyDown,onChange:this.handleTextChange})),(0,l.cloneIcon)(n,{className:"spectrum-Search-icon",size:"S"}),""!==u&&g.default.createElement(s.default,{"aria-label":L("Clear search"),"aria-labelledby":`${o} ${o}-clear-button`,variant:"clear",icon:g.default.createElement(d.default,null),id:`${o}-clear-button`,disabled:t,onClick:this.handleClearButtonClick}))}},i.propTypes={value:m.default.string,defaultValue:m.default.string,icon:m.default.node},i.defaultProps={icon:g.default.createElement(h.default,{"data-testid":"searchicon"}),onChange:function(){},onSubmit:function(){}},n=o))||n)||n;t.default=S,S.displayName="Search"},21927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=m(r(96195)),o=m(r(64403)),a=r(44800),s=m(r(36065)),c=m(r(87535)),l=r(3585),u=m(r(89526)),p=m(r(34941)),d=m(r(77057));function h(){return h=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},h.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(e){return e&&e.__esModule?e:{default:e}}const g={"cs-CZ":m(r(22187)).default,"da-DK":m(r(95066)).default,"de-DE":m(r(28306)).default,"en-US":m(r(19641)).default,"es-ES":m(r(59358)).default,"fi-FI":m(r(14879)).default,"fr-FR":m(r(11034)).default,"hu-HU":m(r(51600)).default,"it-IT":m(r(19202)).default,"ja-JP":m(r(36079)).default,"ko-KR":m(r(88024)).default,"nb-NO":m(r(81459)).default,"nl-NL":m(r(19878)).default,"pl-PL":m(r(84738)).default,"pt-BR":m(r(98384)).default,"ru-RU":m(r(73755)).default,"sv-SE":m(r(45116)).default,"tr-TR":m(r(60199)).default,"uk-UA":m(r(92403)).default,"zh-CN":m(r(57349)).default,"zh-TW":m(r(72113)).default};r(85149),r(19517),r(66795),r(39302),r(80076);const v=(0,l.messageFormatter)(g);let y=(0,s.default)(n=class extends p.default{UNSAFE_componentWillReceiveProps(e){(e.value||"")!==this.state.value&&void 0!==e.value&&null!==e.value&&this.setState({value:e.value})}render(){const e=this.props,t=e.disabled,r=e.className,n=e.icon,s=e.role,l=void 0===s?"search":s,p=f(e,["disabled","className","icon","role"]),m=this.state.value;return u.default.createElement("div",{role:l,className:(0,o.default)("spectrum-Search",{"is-disabled":t},r),ref:e=>this.searchContainer=e},u.default.createElement(d.default,h({role:"searchbox",ref:e=>this.searchbox=e,className:"spectrum-Search-input",value:m,disabled:t},p,{onKeyDown:this.handleTextKeyDown,onChange:this.handleTextChange})),(0,a.cloneIcon)(n,{className:"spectrum-Search-icon",size:"S"}),""!==m&&u.default.createElement(i.default,{"aria-label":v("Clear search"),variant:"clear",icon:u.default.createElement(c.default,null),disabled:t,onClick:this.handleClearButtonClick}))}})||n;t.default=y,y.displayName="UxpSearch"},55678:(e,t,r)=>{"use strict";Object.defineProperty(t,"kw",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"yc",{enumerable:!0,get:function(){return i.default}});var n=a(r(64823)),i=a(r(15743)),o=a(r(49689));function a(e){return e&&e.__esModule?e:{default:e}}},64823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=v(r(68378)),s=r(51884),c=v(r(64403)),l=v(r(36065)),u=v(r(99870)),p=v(r(40743)),d=v(r(75870)),h=v(r(52743)),f=v(r(2652)),m=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function v(e){return e&&e.__esModule?e:{default:e}}function y(){return y=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},y.apply(this,arguments)}function b(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(77304),r(26286),r(92604),r(87571),r(20760),r(77413);const _=".spectrum-SideNav-itemLink:not(.is-hidden):not(.is-disabled)",E=(e,t)=>e.children&&0!==e.children.filter((e=>{const r=e.props.children;return r&&"string"!=typeof r?E(e.props,t):e.props.value===t})).length;let w=(0,l.default)(n=(0,a.default)(n=(0,h.default)((o=i=class extends m.Component{constructor(e){super(e),this.state={value:this.props.defaultValue||this.props.value},this.id=(0,u.default)()}UNSAFE_componentWillReceiveProps(e){const t=e.value;t!==this.props.value&&this.setState({value:t})}isSelected(e){return e.props.value===this.state.value}isDefaultSelected(e){return e.props.value===this.props.defaultValue}onSelect(e,t){void 0===this.props.value&&this.setState({value:e}),this.props.onSelect(e,t)}isDefaultExpanded(e){return void 0!==e.props.defaultExpanded?e.props.defaultExpanded:Array.isArray(e.props.children)&&E(e.props,this.state.value)}render(){const e=this.props,t=e.className,r=e.children,n=e.hidden,i=e.variant,o=e.id,a=void 0===o?this.id:o,l=e.manageTabIndex,u=e.typeToSelect,h=e.ariaLevel,f=void 0===h?1:h,g=e.autoFocus,v=e.isNested,E=e["aria-label"],w=e["aria-labelledby"],L=b(e,["className","children","hidden","variant","id","manageTabIndex","typeToSelect","ariaLevel","autoFocus","isNested","aria-label","aria-labelledby"]),x="multiLevel"===i,S=v?"div":"nav";delete L.value;let O=m.default.createElement("ul",y({className:(0,c.default)("spectrum-SideNav",{"spectrum-SideNav--multiLevel":x}),id:a+"-list","aria-label":v?E:void 0,"aria-labelledby":v?w:void 0},(0,p.default)(L)),m.Children.map(r,(e=>(0,m.cloneElement)(e,{hidden:n,manageTabIndex:l,isMultiLevel:x,ariaLevel:x?f:void 0,_nestedNavValue:this.state.value,_isSelected:this.isSelected(e),onSelect:(0,s.chain)(e.props.onSelect,this.onSelect),defaultExpanded:this.isDefaultExpanded(e)}))));return v||(O=m.default.createElement("div",{role:"toolbar","aria-orientation":"vertical"},O)),m.default.createElement(S,{id:a,hidden:n,"aria-hidden":n,role:v?"presentation":void 0,"aria-label":v?void 0:E,"aria-labelledby":v?void 0:w,className:(0,c.default)(t,"react-spectrum-SideNav")},v?O:m.default.createElement(d.default,{itemSelector:_,selectedItemSelector:".spectrum-SideNav-itemLink:not(.is-hidden):not(.is-disabled).is-selected",manageTabIndex:x||l,typeToSelect:x||u,autoFocus:g},O))}},i.propTypes={variant:f.default.oneOf(["default","multiLevel"]),manageTabIndex:f.default.bool,typeToSelect:f.default.bool,className:f.default.string,value:f.default.string,defaultValue:f.default.string,autoFocus:f.default.bool,isNested:f.default.bool,onSelect:f.default.func},i.defaultProps={variant:"default",manageTabIndex:!1,typeToSelect:!1,autoFocus:!1,isNested:!1,onSelect:()=>{}},n=o))||n)||n)||n;t.default=w},49689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.label,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["label"]);return n.default.createElement(i.default,a({header:t},r,{defaultExpanded:!0}))};var n=o(r(89526)),i=o(r(15743));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return a=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},a.apply(this,arguments)}},15743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=y(r(68378)),s=r(51884),c=y(r(64403)),l=r(44800),u=y(r(36065)),p=y(r(99870)),d=y(r(40743)),h=y(r(52743)),f=y(r(2652)),m=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),g=(y(r(73961)),y(r(64823)));function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}function b(){return b=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},b.apply(this,arguments)}function _(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}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 w(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){L(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 L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const x=()=>{},S=".spectrum-SideNav-itemLink[tabIndex]";let O=(0,u.default)(n=(0,a.default)(n=(0,h.default)((o=i=class extends m.Component{constructor(e){super(e),this.state={expanded:this.props.defaultExpanded||this.props.expanded,focused:!1},this.setSideNavItemRef=e=>this.sideNavItemRef=e,this.id=(0,p.default)()}get hasNestedNav(){const e=this.props.children;return e&&"string"!=typeof e}UNSAFE_componentWillReceiveProps(e){const t=e.expanded;t!==this.props.expanded&&this.setState((e=>w({},e,{expanded:t})))}handleClick(e){this.props.onClick(e),this.onSelectFocused(e)}onSelectFocused(e){const t=this.props,r=t.onSelect,n=t.value,i=t.expanded,o=t.href,a=void 0===o?e.target?e.target.href:void 0:o;let s="keydown"===e.type;a&&!s||(e.preventDefault(),e.stopPropagation(),!s||"Enter"!==e.key&&" "!==e.key)?(void 0===i&&this.setState((e=>w({},e,{expanded:!e.expanded}))),r(n,e)):e.target.click()}onKeyDown(e){const t=this.props.isMultiLevel,r=this.state.expanded,n=t&&this.hasNestedNav;switch(e.key){case"ArrowLeft":case"Left":n&&r&&(this.sideNavItemRef&&this.sideNavItemRef.querySelector(S)===document.activeElement?this.onSelectFocused(e):(e.preventDefault(),e.stopPropagation()),this.focus());break;case"ArrowRight":case"Right":if(n)if(r){if(this.sideNavItemRef){const t=Array.from(this.sideNavItemRef.querySelectorAll(S));0===t.indexOf(e.target)&&t[1].focus()}}else this.onSelectFocused(e)}}onFocus(){this.setState({focused:!0})}onBlur(){this.setState({focused:!1})}focus(){if(this.sideNavItemRef){this.sideNavItemRef.querySelector(S).focus()}}getDescendantId(e){const t=this.props.id,r=void 0===t?this.id:t;return e?`${r}-${e}`:r}sideNavStyle(){return{}}renderLink(e,t){let r=this.props,n=r.hidden,i=r.id,o=void 0===i?this.id:i,a=r.icon,s=r.disabled,u=r.href,p=r.renderLink,d=r.isMultiLevel,h=r.target,f=r._isSelected,g=r["aria-current"];const v=this.state,y=v.expanded,b=v.focused,_=this.hasNestedNav&&d;let E=s||!u?"link":void 0;const w={href:s?void 0:u,onClick:s?void 0:this.handleClick,onFocus:s?void 0:this.onFocus,onBlur:s?void 0:this.onBlur,tabIndex:s?void 0:t,className:(0,c.default)("spectrum-SideNav-itemLink",{"is-selected":f,"is-disabled":s,"is-focused":b,"is-hidden":n}),id:o,role:E,"aria-disabled":s||void 0,"aria-expanded":_?y:void 0,"aria-controls":_&&y?this.getDescendantId("child-list"):void 0,"aria-current":f&&!_?g:void 0,target:s||!u?void 0:h};return p?p(w):m.default.createElement("a",w,(0,l.cloneIcon)(a,{className:"spectrum-SideNav-itemIcon",size:"S"}),e)}render(){let e=this.props,t=e.header,r=e.className,n=e.children,i=e.disabled,o=e.isMultiLevel,a=e.renderLink,l=e.id,u=void 0===l?this.id:l,p=e.value,h=e._isSelected,f=e._nestedNavValue,v=e.manageTabIndex,y=e.onSelect,E=e.ariaLevel,w=e.hidden,L=_(e,["header","className","children","disabled","isMultiLevel","renderLink","id","value","_isSelected","_nestedNavValue","manageTabIndex","onSelect","ariaLevel","hidden"]);const x=this.state,S=x.expanded,O=x.focused;let T=this.props,I=T.label,P=T.tabIndex,C=void 0===P?0:P;return I||t||(I=n),(o||v)&&(C=!!f&&p===f?C:-1),delete L.label,delete L.target,delete L["aria-current"],m.default.createElement("li",b({className:(0,c.default)("spectrum-SideNav-item",{"is-selected":h,"is-disabled":i,"is-focused":O},r),onKeyDown:i?void 0:(0,s.chain)(this.onKeyDown,s.interpretKeyboardEvent.bind(this)),ref:this.setSideNavItemRef},(0,d.default)(L)),(I||a)&&this.renderLink(I,C,o),t&&m.default.createElement("h2",{className:"spectrum-SideNav-heading",id:this.getDescendantId("header")},t),this.hasNestedNav&&m.default.createElement(g.default,{isNested:!0,variant:o?"multiLevel":void 0,id:this.getDescendantId("child"),"aria-labelledby":t?this.getDescendantId("header"):u,ariaLevel:E+1,hidden:w||(o?!S:void 0),value:f,onSelect:y},n))}},i.propTypes={className:f.default.string,disabled:f.default.bool,label:f.default.string,value:f.default.string,href:f.default.string,target:f.default.string,icon:f.default.node,"aria-current":f.default.oneOf(["page","location"]),expanded:f.default.bool,defaultExpanded:f.default.bool,renderLink:f.default.func,onClick:f.default.func,onSelect:f.default.func},i.defaultProps={"aria-current":"page",disabled:!1,target:"_self",onSelect:x,onClick:x},n=o))||n)||n)||n;t.default=O},21504:(e,t,r)=>{"use strict";e.exports=r(29986)},49459:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("SwitchBase",(()=>r(28580)),(()=>r(61382)))},29986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=s(r(64403)),i=s(r(2652)),o=s(r(89526)),a=s(r(49459));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e){let t=e.variant,r=e.quiet,i=e.className,s=l(e,["variant","quiet","className"]);return o.default.createElement(a.default,c({inputType:"checkbox",className:(0,n.default)("spectrum-ToggleSwitch",{[`spectrum-ToggleSwitch--${t}`]:t,"spectrum-ToggleSwitch--quiet":r},i),inputClassName:"spectrum-ToggleSwitch-input",markClassName:"spectrum-ToggleSwitch-switch",labelClassName:"spectrum-ToggleSwitch-label",role:"switch"},s))}r(16253),r(61491),r(77861),r(73258),r(63693),u.displayName="Switch",u.propTypes={className:i.default.string,checked:i.default.bool,defaultChecked:i.default.bool,label:i.default.oneOfType([i.default.string,i.default.object]),onChange:i.default.func,quiet:i.default.bool,variant:i.default.oneOf(["ab"])}},61382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=m(r(64403)),c=m(r(36065)),l=m(r(40743)),u=r(51884),p=m(r(52743)),d=r(54699),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(){return g=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},g.apply(this,arguments)}function v(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let y=(0,c.default)(n=(0,p.default)(n=(0,a.default)((o=i=class extends h.Component{constructor(e){super(e);const t=e.checked,r=e.defaultChecked;this.state={checked:void 0!==t?t:r||!1}}UNSAFE_componentWillReceiveProps(e){"checked"in e&&this.setState({checked:e.checked})}focus(){this.inputRef&&!this.disabled&&this.inputRef.focus()}setChecked(e){"checked"in this.props||this.setState({checked:e})}getInput(){return this.inputRef}handleChange(e){const t=this.props.onChange,r=e.target.checked;this.setChecked(r),t(r,e)}render(){const e=this.props,t=e.label,r=e.value,n=e.name,i=e.disabled,o=e.required,a=e.invalid,c=e.readOnly,p=e.className,f=e.style,m=e.children,y=e.inputType,b=e.renderLabel,_=e.inputClassName,E=e.markClassName,w=e.markIcon,L=e.labelClassName,x=e.onMouseDown,S=e.onMouseUp,O=v(e,["label","value","name","disabled","required","invalid","readOnly","className","style","children","inputType","renderLabel","inputClassName","markClassName","markIcon","labelClassName","onMouseDown","onMouseUp"]),T=this.state.checked,I=b&&(t||m),P=I?"label":"div";delete O.onChange;let C=null;if(O["aria-label"])C=O["aria-label"],delete O["aria-label"];else if(!b&&(t||m)){let e=[];if(t&&e.push(t),m){let r=(0,d.getTextFromReact)(m);r!==t&&e.push(r)}C=e.join(" ")}return y&&!O["aria-checked"]&&(O["aria-checked"]=T),h.default.createElement(P,{className:(0,s.default)(p,{"is-invalid":a,"is-disabled":i}),style:f},h.default.createElement("input",g({ref:e=>this.inputRef=e,type:y,className:_,checked:T,disabled:i,name:n,value:r,required:!!o||null,readOnly:c,onChange:this.handleChange,onMouseDown:u.focusAfterMouseEvent.bind(this,x),onMouseUp:u.focusAfterMouseEvent.bind(this,S),"aria-invalid":a||null,"aria-label":C},(0,l.default)(O))),h.default.createElement("span",{className:E},w),I&&h.default.createElement("span",{className:L},t,t&&m&&" ",m))}},i.defaultProps={renderLabel:!0,defaultChecked:void 0,disabled:!1,required:!1,invalid:!1,readOnly:!1,onChange:function(){}},n=o))||n)||n)||n;t.default=y,y.displayName="SwitchBase"},28580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(64403)),i=l(r(40743)),o=r(51884),a=r(54699),s=l(r(89526)),c=l(r(61382));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(15682);class d extends c.default{constructor(...e){var t;return t=super(...e),this.onClickSpan=e=>{e.stopPropagation()},t}render(){const e=this.props,t=e.label,r=e.value,c=e.name,l=e.disabled,d=e.required,h=e.invalid,f=e.readOnly,m=e.className,g=e.style,v=e.children,y=e.inputType,b=e.renderLabel,_=e.inputClassName,E=e.markClassName,w=e.markIcon,L=e.labelClassName,x=e.onMouseDown,S=e.onMouseUp,O=p(e,["label","value","name","disabled","required","invalid","readOnly","className","style","children","inputType","renderLabel","inputClassName","markClassName","markIcon","labelClassName","onMouseDown","onMouseUp"]),T=this.state.checked,I=b&&(t||v);y&&!O["aria-checked"]&&(O["aria-checked"]=T),delete O.onChange;let P=null;if(O["aria-label"])P=O["aria-label"],delete O["aria-label"];else if(!b&&(t||v)){let e=[];if(t&&e.push(t),v){let r=(0,a.getTextFromReact)(v);r!==t&&e.push(r)}P=e.join(" ")}return s.default.createElement("label",{className:(0,n.default)(m,{"is-invalid":h,"is-disabled":l}),style:g},s.default.createElement("input",u({ref:e=>this.inputRef=e,type:y,className:(0,n.default)(_,"uxp-switchBase"),checked:T,disabled:l,name:c,value:r,required:!!d||null,readOnly:f,onChange:this.handleChange,onMouseDown:o.focusAfterMouseEvent.bind(this,x),onMouseUp:o.focusAfterMouseEvent.bind(this,S),"aria-invalid":h||null,"aria-label":P},(0,i.default)(O))),s.default.createElement("span",{onClick:this.onClickSpan,className:E},w),I&&s.default.createElement("span",{onClick:this.onClickSpan,className:L},t,t&&v&&" ",v))}}t.default=d,d.displayName="UxpSwitchBase"},77057:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Textfield",(()=>r(70664)),(()=>r(46301)))},46301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=h(r(68378)),s=h(r(64403)),c=h(r(40743)),l=h(r(2652)),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),p=h(r(73961));function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function m(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(79163),r(25226),r(12476),r(1447),r(41254);let g=(0,a.default)((o=i=class extends u.Component{componentDidMount(){this.props.autoFocus&&requestAnimationFrame((()=>this.focus()))}focus(){this.props.disabled||p.default.findDOMNode(this).focus()}onChange(e){this.props.onChange&&this.props.onChange(e.target.value,e)}render(){const e=this.props,t=e.className,r=e.quiet,n=e.disabled,i=e.required,o=e.invalid,a=e.readOnly,l=e.multiLine,p=e.validationState,d=m(e,["className","quiet","disabled","required","invalid","readOnly","multiLine","validationState"]);var h=l?"textarea":"input";const g=o||"invalid"===p;return delete d.autoFocus,delete d.autocompleteInput,o&&console.warn('The "invalid" prop of Textfield is deprecated. Please use validationState="invalid" instead.'),u.default.createElement(h,f({type:"text",className:(0,s.default)("spectrum-Textfield",{"spectrum-Textfield--multiline":l,"is-invalid":g,"is-valid":"valid"===p,"spectrum-Textfield--quiet":r},t),disabled:n,required:i,readOnly:a,"aria-invalid":g||null,defaultValue:d.defaultValue},(0,c.default)(d),{onChange:this.onChange,rows:l&&!r?d.rows:1}))}},i.propTypes={autoFocus:l.default.bool,className:l.default.string,disabled:l.default.bool,invalid:l.default.bool,multiLine:l.default.bool,onBlur:l.default.func,onChange:l.default.func,onFocus:l.default.func,placeholder:l.default.string,quiet:l.default.bool,readOnly:l.default.bool,required:l.default.bool,validationState:l.default.oneOf(["valid","invalid"])},i.defaultProps={autoFocus:!1,disabled:!1,quiet:!1,required:!1,invalid:!1,readOnly:!1},n=o))||n;t.default=g,g.displayName="Textfield"},70664:(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=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(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 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 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}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,s,c=b(r(68378)),l=b(r(83737)),u=b(r(64403)),p=b(r(27984)),d=b(r(40743)),h=r(37339),f=b(r(2652)),m=b(r(89526)),g=r(85706),v=b(r(46301)),y=b(r(58648));function b(e){return e&&e.__esModule?e:{default:e}}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 E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){w(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 w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(){return L=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},L.apply(this,arguments)}function x(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(79620),r(42876);const S=window.require&&window.require("uxp");r(79163),r(25226),r(12476),r(1447),r(41254);let O=(0,c.default)((s=a=class extends v.default{constructor(e){super(e),this.getFontStyle=()=>{this.inputContainer&&(this.fontFamily=window.getComputedStyle(this.inputContainer).getPropertyValue("font-family"),this.fontSize=window.getComputedStyle(this.inputContainer).getPropertyValue("font-size"),this.fontVariant=window.getComputedStyle(this.inputContainer).getPropertyValue("font-variant"),this.inputContainer.removeEventListener("resize",this.getFontStyle))},this.focusInput=()=>{this.inputContainer.focus(),this.inputContainer.removeEventListener("resize",this.focusInput)},this.resize=()=>{this.inputContainer&&(this.inputContainer.focus(),this.inputContainer.select(),this.inFocus=!0,this.inputContainer.removeEventListener("resize",this.resize))},this.state={inputText:"",showFocus:!1,overlayPresent:!1},this.overlaysMap=new Map,this.inputActive=!0}componentDidMount(){this.inputContainer&&(this.inputContainer.addEventListener("resize",this.getFontStyle),this.props.autoFocus&&!this.props.disabled&&this.inputContainer.addEventListener("resize",this.resize))}hasPlaceholderText(){return!(!this.props.placeholder||this.props.value||this.state.inputText)}updateSpanStyle(){this.inputContainer.style.fontFamily=this.fontFamily,this.inputContainer.style.fontSize=this.fontSize,this.inputContainer.style.fontVariant=this.fontVariant,S.host&&"Photoshop"===S.host.name?this.hasPlaceholderText()&&(this.inputContainer.style.fontStyle="italic",this.inputContainer.style.paddingBottom="1px"):S.host&&(S.host.isDrover||"Illustrator"===S.host.name)&&(this.hasPlaceholderText()&&(this.inputContainer.style.fontStyle="italic",this.inputContainer.style.fontSize="11px"),this.inputContainer.style.paddingLeft="4px",this.props.quiet||"Illustrator"===S.host.name||(this.inputContainer.style.paddingBottom="1px"))}componentDidUpdate(){if(this.inputContainer&&"SPAN"===this.inputContainer.nodeName&&this.updateSpanStyle(),!0===this.inFocus){const e=this.isAnyOverlayVisible();e&&(this.inputActive=!1,this.inputContainer.addEventListener("resize",this.focusInput)),this.inputActive||e||(this.inputContainer.addEventListener("resize",this.focusInput),this.inputActive=!0)}}focus(){!this.props.disabled&&this.inputContainer&&this.inputContainer.focus()}isAnyOverlayVisible(){var e,t=n(this.overlaysMap.values());try{for(t.s();!(e=t.n()).done;){if(e.value.visible)return!0}}catch(e){t.e(e)}finally{t.f()}return!1}componentWillUnmount(){this.props.autoFocus&&!this.props.disabled&&this.inputContainer&&this.inputContainer.removeEventListener("resize",this.resize)}onChange(e){this.setState({inputText:e.target.value}),this.props.onChange&&this.props.onChange(e.target.value,e)}handleClick(e){this.inputContainer.focus(),this.inFocus=!0,this.props.onClick&&this.props.onClick(e)}handleFocus(e){this.setState({showFocus:!0}),this.props.onFocus&&this.props.onFocus(e),this.inFocus=!0}handleBlur(e){this.setState({showFocus:!1}),this.props.onBlur&&this.props.onBlur(e),this.inFocus=!1}executeOverlayCallbacks(){var e,t=n(this.overlaysMap.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;r.callback&&r.callback()}}catch(e){t.e(e)}finally{t.f()}}handleSpanKeyUp(e){if(this.props.onKeyUp&&this.props.onKeyUp(e),this.executeOverlayCallbacks(),e.target.value=e.target.innerHTML,1===e.key.length&&(e.target.value+=e.key),8===e.keyCode)if(e.target.value&&e.target.value.length>0){let t=e.target.value;e.target.value=t.substring(0,t.length-1)}this.onChange(e)}removeOverlay(e){e&&this.overlaysMap&&this.overlaysMap.delete(e.overlayRef)}showInput(e){return this.updateOverlayMap(e),0===this.overlaysMap.size}updateOverlayMap(e){if(!this.searchContainer)return;const t=this.searchContainer.getBoundingClientRect();if(0!==t.height&&0!==t.width&&e){e.data.visible&&(0,l.default)(t,e.data.boundingRect)?this.overlaysMap.set(e.overlayRef,e.data):this.removeOverlay(e);const r=this.overlaysMap.has(e.overlayRef);r!==this.state.overlayPresent&&this.setState({overlayPresent:r})}}render(){const e=this.props,t=e.className,r=e.style,n=e.quiet,i=e.disabled,o=e.required,a=e.invalid,s=e.readOnly,c=e.multiLine,l=e.validationState,f=e.disableOnOverlay,v=e.alwaysNative,b=x(e,["className","style","quiet","disabled","required","invalid","readOnly","multiLine","validationState","disableOnOverlay","alwaysNative"]);var _=this.state.showFocus,E=c?"textarea":"input";const w=a||"invalid"===l||o&&!this.state.inputText,S="valid"===l;delete b.autoFocus,delete b.autocompleteInput,delete b.onFocus,delete b.onBlur,a&&console.warn('The "invalid" prop of Textfield is deprecated. Please use validationState="invalid" instead.');let O=o&&!this.state.inputText||w||S,T=h.invalidSvg;S&&(T=h.validSvg);let I=i?"disabled":"default",P={};return m.default.createElement(g.SpectrumContext.Consumer,null,(({scale:e,theme:a,productId:l,disableNativeControls:h,overlay:g}={})=>{_&&!w&&(P.borderColor=p.default.elements[a][e].textfield.default.states["mouse-focus"]["border-color"]);let x=p.default.elements[a][e].textfield.default.states[I]["background-color"];return P.backgroundColor=x,m.default.createElement("div",{className:(0,u.default)("spectrum-Textfield",`spectrum--${a}`,{"spectrum-Textfield--multiline":c,"is-invalid":w,"is-disabled":i,"is-valid":S,"spectrum-Textfield--quiet":n},t),style:Object.assign({},P,r),ref:e=>this.searchContainer=e,disabled:i,onClick:i?void 0:this.handleClick},!v&&y.default.productNeedsOverlayFix&&(!this.showInput(g)||f&&h)?m.default.createElement("span",{className:"inputSpan",target:this.props.value||this.state.inputText?"value":"placeholder",tabIndex:0,ref:e=>this.inputContainer=e,onKeyUp:this.handleSpanKeyUp,onFocus:i?void 0:this.handleFocus,onBlur:i?void 0:this.handleBlur},this.props.value||this.state.inputText||this.props.placeholder):m.default.createElement(E,L({type:"text",className:"inputText",ref:e=>this.inputContainer=e,style:{appearance:"none",backgroundColor:"inherit"},onFocus:i?void 0:this.handleFocus,onBlur:i?void 0:this.handleBlur,value:this.state.inputText,disabled:i,required:o,readOnly:s,"aria-invalid":w||null,defaultValue:b.defaultValue},(0,d.default)(b),{onChange:this.onChange,rows:c&&!n?b.rows:1})),O&&m.default.cloneElement(T))}))}},a.propTypes=E({},v.default.propTypes,{alwaysNative:f.default.bool}),a.defaultProps=E({},v.default.defaultProps,{alwaysNative:!1}),o=s))||o;t.default=O,O.displayName="UxpTextfield"},37339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invalidSvg=t.validSvg=void 0;var n,i=(n=r(89526))&&n.__esModule?n:{default:n};const o=i.default.createElement("svg",{id:"valid_svg",height:"12",viewBox:"0 0 12 12",width:"36"},i.default.createElement("path",{style:{fill:"rgb(18, 128, 92)"},d:"M4.5 10a1.023 1.023 0 0 1-.8-.384l-2.488-3a1 1 0 0 1 1.577-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.511 7A.977.977 0 0 1 4.5 10z"}));t.validSvg=o;const a=i.default.createElement("svg",{id:"invalid_svg",height:"18",viewBox:"0 0 18 18",width:"42"},i.default.createElement("path",{style:{fill:"rgb(227, 72, 80)"},d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .5-.5.494.494 0 0 0-.064-.244L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}));t.invalidSvg=a},48767:(e,t,r)=>{"use strict";Object.defineProperty(t,"ZP",{enumerable:!0,get:function(){return i.default}});var n,i=(n=r(20435))&&n.__esModule?n:{default:n}},20435:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Toast",(()=>r(84690)),(()=>r(91153)))},91153:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_,t.DEFAULT_ROLE=t.ICONS=t.formatMessage=void 0;var n=m(r(77487)),i=m(r(96195)),o=m(r(64403)),a=m(r(45537)),s=m(r(40743)),c=m(r(16619)),l=r(3585),u=m(r(2652)),p=m(r(89526)),d=m(r(69880));function h(){return h=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},h.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(e){return e&&e.__esModule?e:{default:e}}const g={"cs-CZ":m(r(78712)).default,"da-DK":m(r(22344)).default,"de-DE":m(r(86919)).default,"en-US":m(r(60342)).default,"es-ES":m(r(89340)).default,"fi-FI":m(r(74633)).default,"fr-FR":m(r(78313)).default,"hu-HU":m(r(87992)).default,"it-IT":m(r(20160)).default,"ja-JP":m(r(19660)).default,"ko-KR":m(r(2437)).default,"nb-NO":m(r(66830)).default,"nl-NL":m(r(30653)).default,"pl-PL":m(r(44612)).default,"pt-BR":m(r(71689)).default,"ru-RU":m(r(37281)).default,"sv-SE":m(r(85308)).default,"tr-TR":m(r(24542)).default,"uk-UA":m(r(57933)).default,"zh-CN":m(r(51525)).default,"zh-TW":m(r(33621)).default};r(91540),r(9174),r(28250),r(19766),r(23324);const v=(0,l.messageFormatter)(g);t.formatMessage=v;const y={error:n.default,warning:n.default,info:c.default,success:d.default};t.ICONS=y;const b="alert";function _(e){let t=e.variant,r=e.children,n=e.closable,c=e.onClose,l=e.onAction,u=e.className,d=(e.timeout,e.actionLabel),m=e.closeOnAction,g=f(e,["variant","children","closable","onClose","onAction","className","timeout","actionLabel","closeOnAction"]),_=y[t],E=g.role||b;return p.default.createElement("div",h({role:E,className:(0,o.default)("spectrum-Toast",{["spectrum-Toast--"+t]:t},u)},(0,s.default)(g)),_&&p.default.createElement(_,{size:null,className:"spectrum-Toast-typeIcon",alt:v(t)}),p.default.createElement("div",{className:"spectrum-Toast-body"},p.default.createElement("div",{className:"spectrum-Toast-content"},r),d&&p.default.createElement(i.default,{label:d,quiet:!0,variant:"overBackground",onClick:(...e)=>{l&&l(...e),m&&c&&c(...e)}})),n&&p.default.createElement("div",{className:"spectrum-Toast-buttons"},p.default.createElement("button",{"aria-label":v("close"),className:"spectrum-ClearButton spectrum-ClearButton--medium spectrum-ClearButton--overBackground",onClick:c},p.default.createElement(a.default,{size:null}))))}t.DEFAULT_ROLE=b,_.propTypes={children:u.default.node,variant:u.default.oneOf(["error","warning","info","success"]),closable:u.default.bool,actionLabel:u.default.string,closeOnAction:u.default.bool,onClose:u.default.func,onAction:u.default.func,timeout:u.default.number}},84690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=p(r(64403)),i=p(r(45537)),o=p(r(40743)),a=u(r(89526)),s=p(r(37001)),c=u(r(91153));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function p(e){return e&&e.__esModule?e:{default:e}}function d(){return d=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},d.apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(88576);class f extends a.Component{constructor(e){super(e),this.toastHandler=()=>{(0,s.default)(this.toastRef,!0)}}componentDidMount(){this.toastRef&&window.addEventListener("resize",this.toastHandler)}componentWillUnmount(){(0,s.default)(this.toastRef,!1),window.removeEventListener("resize",this.toastHandler)}render(){const e=this.props,t=e.variant,r=e.children,s=e.closable,l=e.onClose,u=e.onAction,p=e.className,f=e.actionLabel,m=e.closeOnAction,g=e.icon,v=h(e,["variant","children","closable","onClose","onAction","className","actionLabel","closeOnAction","icon"]);let y=g||c.ICONS[t],b=v.role||c.DEFAULT_ROLE;return a.default.createElement("div",d({ref:e=>this.toastRef=e,role:b,className:(0,n.default)("spectrum-Toast",{["spectrum-Toast--"+t]:t},p)},(0,o.default)(v)),y&&a.default.createElement(y,{size:null,className:"spectrum-Toast-typeIcon",alt:(0,c.formatMessage)(t)}),a.default.createElement("div",{className:"spectrum-Toast-body"},a.default.createElement("div",{className:"spectrum-Toast-content"},r),f&&a.default.createElement("div",{className:(0,n.default)("spectrum-Button spectrum-Button--quiet spectrum-Button--overBackground","uxp-labelStyle",p),onClick:(...e)=>{u&&u(...e),m&&l&&l(...e)}},f)),s&&a.default.createElement("div",{className:"spectrum-Toast-buttons"},a.default.createElement("div",{className:(0,n.default)("spectrum-ClearButton spectrum-ClearButton--medium spectrum-ClearButton--overBackground","spectrum-ClearButton-Override",p),onClick:l},a.default.createElement(i.default,{size:null}))))}}t.default=f,f.propTypes=c.default.propTypes},61553:(e,t)=>{"use strict";function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},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 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 n(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}Object.defineProperty(t,"__esModule",{value:!0}),t.setToastPlacement=function(e){t.TOAST_PLACEMENT=o=e;var n,a=r(i.values());try{for(a.s();!(n=a.n()).done;){n.value.setState({placement:e})}}catch(e){a.e(e)}finally{a.f()}},t.TOAST_PLACEMENT=t.TOAST_CONTAINERS=void 0;const i=new Map;t.TOAST_CONTAINERS=i;let o="top center";t.TOAST_PLACEMENT=o},10387:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Tooltip",(()=>r(13452)),(()=>r(88550)))},88550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(64403)),i=l(r(99870)),o=l(r(40743)),a=l(r(2652)),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(6649),r(84654),r(1926),r(12656),r(22361);class d extends s.Component{constructor(e){super(e),this.tooltipId=(0,i.default)()}render(){const e=this.props,t=e.variant,r=e.children,i=e.className,a=e.placement,c=e.open,l=e.id,d=void 0===l?this.tooltipId:l,h=p(e,["variant","children","className","placement","open","id"]);return s.default.createElement("span",u({className:(0,n.default)("spectrum-Tooltip",`spectrum-Tooltip--${t}`,`spectrum-Tooltip--${a.split(" ")[0]}`,{"is-open":c},i),id:d},(0,o.default)(h)),s.default.createElement("span",{className:"spectrum-Tooltip-label"},r),this.renderTip())}renderTip(){return s.default.createElement("span",{className:"spectrum-Tooltip-tip",style:this.props.arrowStyle})}}t.default=d,d.propTypes={placement:a.default.oneOf(["bottom","top","left","right"]),variant:a.default.oneOf(["inspect","info","success","error"]),className:a.default.string,id:a.default.string,role:a.default.oneOf(["tooltip"]),open:a.default.bool},d.defaultProps={variant:"inspect",placement:"right",open:!0,role:"tooltip"}},13452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(64403)),i=u(r(27984)),o=u(r(40743)),a=u(r(89526)),s=u(r(37001)),c=r(85706),l=u(r(88550));function u(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function h(e,t){return"right"===t?`M ${2*e} 0 l ${-e} ${e} l ${e} ${e} z`:"left"===t?`M 0 0 l ${e} ${e} l ${-e} ${e} z`:"top"===t?`M 0 0 l ${e} ${e} l ${e} ${-e} z`:"bottom"===t?`M 0 ${2*e} l ${e} ${-e} l ${e} ${e} z`:void 0}const f={inspect:"default",info:"info",error:"negative",success:"positive"};class m extends l.default{constructor(...e){var t;return t=super(...e),this.setOverlayVisible=()=>{(0,s.default)(this.tooltipRef,!0,this.hide)},this.setOverlayHidden=()=>{(0,s.default)(this.tooltipRef,!1)},this.hide=()=>{this.tooltipRef&&(this.tooltipRef.style.display="none")},t}componentDidMount(){this.tooltipRef&&this.tooltipRef.addEventListener("resize",this.setOverlayVisible)}componentWillUnmount(){this.tooltipRef&&this.tooltipRef.removeEventListener("resize",this.setOverlayVisible),this.setOverlayHidden()}renderTip(){const e=this.props,t=e.variant,r=e.placement;return a.default.createElement(c.SpectrumContext.Consumer,null,(({scale:e,theme:n}={})=>a.default.createElement("svg",{className:"spectrum-Tooltip-tip",style:{width:8,height:8,border:"none",fill:i.default.elements[n][e].tooltip[f[t]].states.default["tip-color"]}},a.default.createElement("path",{d:h(4,r)}))))}render(){const e=this.props,t=e.variant,r=e.children,i=e.className,s=e.placement,c=e.open,l=e.id,u=void 0===l?this.tooltipId:l,h=d(e,["variant","children","className","placement","open","id"]);return a.default.createElement("span",p({ref:e=>this.tooltipRef=e,className:(0,n.default)("spectrum-Tooltip",`spectrum-Tooltip--${t}`,`spectrum-Tooltip--${s.split(" ")[0]}`,{"is-open":c},i),id:u},(0,o.default)(h)),a.default.createElement("span",{className:"spectrum-Tooltip-label"},r),this.renderTip())}}t.default=m},88166:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Wait",(()=>r(98629)),(()=>r(36067)))},98629:(e,t,r)=>{"use strict";function n(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(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}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(36067),a=d(r(27984)),s=d(r(40743)),c=d(r(2652)),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(89526)),u=r(85706);function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function h(){return h=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},h.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(e){function t(t){return 1/(1+Math.exp(-e*t))-.5}var r=.5/t(1);return function(e){var n,i,o;return n=e,i=0,o=1,e=Math.max(Math.min(n,o),i),r*t(2*e-1)+.5}}function g(e,t){return"0 0 "+e.replace(/px/gi,"")+" "+t.replace(/px/gi,"")}function v(e,t,r){r<t&&(r+=360);let n=r-t;if(n>=360)return`M ${2*e} ${e} A ${e} ${e} 0 0 1 0 ${e} A ${e} ${e} 0 0 1 ${2*e} ${e}`;let i=2*Math.PI*(t/360),o=2*Math.PI*(r/360),a=-Math.PI/2.2;return`M ${e+e*Math.cos(i+a)} ${e+e*Math.sin(i+a)} A ${e} ${e} 0 ${n>=180?1:0} 1 ${e+e*Math.cos(o+a)} ${e+e*Math.sin(o+a)}`}r(78211);const y={L:{determinate:"large",indeterminate:"large",overBackground:"large-over-background"},M:{determinate:"medium",indeterminate:"medium",overBackground:"medium-over-background"},S:{determinate:"small",indeterminate:"small",overBackground:"small-over-background"}};class b extends l.Component{constructor(...e){var t;return t=super(...e),this.tick=()=>{this.animId=requestAnimationFrame((()=>{let e=(this.getValue()+1.8)%100;this.setState({value:e}),this.tick()}))},t}getValue(){return this.props&&this.props.value?this.props.value:this.state&&this.state.value?this.state.value:0}get indeterminate(){return this.props.variant!==o.DETERMINATE}componentDidMount(){this.tick()}componentWillUnmount(){cancelAnimationFrame(this.animId)}render(){let e,t,r=this.props,i=r.size,c=void 0===i?"M":i,p=r.className,d=(r.indeterminate,r.centered),b=void 0!==d&&d,_=r.variant,E=void 0===_?o.INDETERMINATE:_,w=f(r,["size","className","indeterminate","centered","variant"]),L=this.getValue(),x="overBackground"===E?"0.2":"1.0";if(this.indeterminate){var S=n(function(e){let t=360*m(4)(e),r=360*m(5.5)((e+.4)%1);return t<0&&(t+=1),r<t&&(r+=1),[t,r]}(L/100),2);e=S[0],t=S[1]}else e=0,t=this.props.value/100*360;return l.default.createElement(u.SpectrumContext.Consumer,null,(({scale:r,theme:n}={})=>{const i=a.default.elements[n][r].circleloader[y[c][E]],o=i.states.default["track-color"],u=i.states.default["track-fill-color"];let d=parseInt(i.dimensions["border-size"].slice(0,-2),10),f=parseInt(i.dimensions.width.slice(0,-2),10)/2-d,m=Math.floor(d/2+1),_=`circleLoader--${y[c].indeterminate}`;return l.default.createElement("div",{className:`spectrum-CircleLoader ${_} ${p} ${b?"react-spectrum-Wait--centered":""}`},l.default.createElement("svg",h({viewBox:g(i.dimensions.height,i.dimensions.width),className:_},(0,s.default)(w)),l.default.createElement("path",{d:v(f,0,360),stroke:o,strokeOpacity:x,fill:"transparent",strokeWidth:d,transform:`translate(${m}, ${m})`}),l.default.createElement("path",{d:v(f,e,t),stroke:u,fill:"transparent",strokeWidth:d+1,transform:`translate(${m}, ${m})`})))}))}}t.default=b,b.propTypes={centered:c.default.bool,className:c.default.string,indeterminate:c.default.bool,size:c.default.string,value:c.default.number,variant:c.default.string}},36067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.INDETERMINATE=t.DETERMINATE=void 0;var n=s(r(64403)),i=s(r(40743)),o=s(r(2652)),a=s(r(89526));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(18236),r(54698),r(849),r(9781),r(10454),r(96014);const u="determinate";t.DETERMINATE=u;const p="indeterminate";t.INDETERMINATE=p;class d extends a.default.Component{render(){let e,t,r=this.props,o=r.value,s=void 0===o?0:o,d=r.size,h=void 0===d?"M":d,f=r.indeterminate,m=void 0===f||f,g=r.centered,v=void 0!==g&&g,y=r.className,b=r.variant,_=l(r,["value","size","indeterminate","centered","className","variant"]),E={},w={};return b!==u&&b!==p||console.warn(`The "${b}" variant of Wait is deprecated. Please use the "indeterminate" prop instead.`),b!==u&&m||(s=Math.min(Math.max(+s,0),100),t=s,s>0&&s<=50?(e=s/50*180-180,E.transform="rotate("+e+"deg)",w.transform="rotate(-180deg)"):s>50&&(e=(s-50)/50*180-180,E.transform="rotate(0deg)",w.transform="rotate("+e+"deg)")),a.default.createElement("div",c({className:(0,n.default)("spectrum-CircleLoader",{"spectrum-CircleLoader--indeterminate":b===p||m&&b!==u,"spectrum-CircleLoader--small":"S"===h,"spectrum-CircleLoader--large":"L"===h,"spectrum-CircleLoader--overBackground":"overBackground"===b,"react-spectrum-Wait--centered":v},y),role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100},(0,i.default)(_)),a.default.createElement("div",{className:"spectrum-CircleLoader-track"}),a.default.createElement("div",{className:"spectrum-CircleLoader-fills"},a.default.createElement("div",{className:"spectrum-CircleLoader-fillMask1"},a.default.createElement("div",{className:"spectrum-CircleLoader-fillSubMask1",style:E},a.default.createElement("div",{className:"spectrum-CircleLoader-fill"}))),a.default.createElement("div",{className:"spectrum-CircleLoader-fillMask2"},a.default.createElement("div",{className:"spectrum-CircleLoader-fillSubMask2",style:w},a.default.createElement("div",{className:"spectrum-CircleLoader-fill"})))))}}t.default=d,d.propTypes={centered:o.default.bool,className:o.default.string,indeterminate:o.default.bool,size:o.default.string,value:o.default.number,variant:o.default.oneOf(["overBackground"])}},36982:()=>{!function(e){if(e){var t=["Tab","ArrowUp","ArrowRight","ArrowDown","ArrowLeft","Home","End","PageUp","PageDown","Enter"," ","Escape","Up","Right","Down","Left","Esc"],r=["text","date","datetime-local","email","month","number","password","search","tel","time","url","week"],n=!1,i=e.getElementsByClassName("focus-ring");e.addEventListener("keydown",(function(i){i.ctrlKey||i.altKey||i.metaKey||-1===t.indexOf(i.key)||(n=!0,!e.activeElement||e.activeElement===e.body||"TEXTAREA"===e.activeElement.tagName||"INPUT"===e.activeElement.tagName&&-1!==r.indexOf(e.activeElement.type)||e.activeElement.classList.add("focus-ring"))}),!0),e.addEventListener("mousedown",(function(){n=!1;for(var e=0;e<i.length;e++)i[e].classList.remove("focus-ring")}),!0),e.addEventListener("focus",(function(e){var t=e.target.classList;t&&n&&t.add("focus-ring")}),!0),e.addEventListener("blur",(function(e){var t=e.target.classList;t&&t.remove("focus-ring")}),!0)}}("undefined"==typeof window?void 0:document)},93300:(e,t,r)=>{"use strict";var n=r(379).Z;r(11009),(t=e.exports=n).default=t},3007:(e,t)=>{"use strict";function r(e,t,r){this.locales=e,this.formats=t,this.pluralFn=r}function n(e){this.id=e}function i(e,t,r,n,i){this.id=e,this.useOrdinal=t,this.offset=r,this.options=n,this.pluralFn=i}function o(e,t,r,n){this.id=e,this.offset=t,this.numberFormat=r,this.string=n}function a(e,t){this.id=e,this.options=t}t.default=r,r.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},r.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,r,n,i=e.elements,o=[];for(t=0,r=i.length;t<r;t+=1)switch((n=i[t]).type){case"messageTextElement":o.push(this.compileMessageText(n));break;case"argumentElement":o.push(this.compileArgument(n));break;default:throw new Error("Message element does not have a valid type")}return o},r.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new o(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},r.prototype.compileArgument=function(e){var t=e.format;if(!t)return new n(e.id);var r,o=this.formats,s=this.locales,c=this.pluralFn;switch(t.type){case"numberFormat":return r=o.number[t.style],{id:e.id,format:new Intl.NumberFormat(s,r).format};case"dateFormat":return r=o.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,r).format};case"timeFormat":return r=o.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,r).format};case"pluralFormat":return r=this.compileOptions(e),new i(e.id,t.ordinal,t.offset,r,c);case"selectFormat":return r=this.compileOptions(e),new a(e.id,r);default:throw new Error("Message element does not have a valid format type")}},r.prototype.compileOptions=function(e){var t,r,n,i=e.format,o=i.options,a={};for(this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===i.type?e:null,t=0,r=o.length;t<r;t+=1)a[(n=o[t]).selector]=this.compileMessage(n.value);return this.currentPlural=this.pluralStack.pop(),a},n.prototype.format=function(e){return e||"number"==typeof e?"string"==typeof e?e:String(e):""},i.prototype.getOption=function(e){var t=this.options;return t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)]||t.other},o.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},a.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},97454:(e,t,r)=>{"use strict";var n=r(60003),i=r(85049),o=r(3007),a=r(60922);function s(e,t,r){var n="string"==typeof e?s.__parse(e):e;if(!n||"messageFormatPattern"!==n.type)throw new TypeError("A message must be provided as a String or AST.");r=this._mergeFormats(s.formats,r),i.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var o=this._findPluralRuleFunction(this._locale),a=this._compilePattern(n,t,r,o),c=this;this.format=function(t){try{return c._format(a,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t.default=s,i.defineProperty(s,"formats",{enumerable:!0,value:{number:{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"}}}}),i.defineProperty(s,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),i.defineProperty(s,"__parse",{value:a.default.parse}),i.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,r,n){return new o.default(t,r,n).compile(e)},s.prototype._findPluralRuleFunction=function(e){for(var t=s.__localeData__,r=t[e.toLowerCase()];r;){if(r.pluralRuleFunction)return r.pluralRuleFunction;r=r.parentLocale&&t[r.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},s.prototype._format=function(e,t){var r,i,o,a,s,c,l="";for(r=0,i=e.length;r<i;r+=1)if("string"!=typeof(o=e[r])){if(a=o.id,!t||!n.hop.call(t,a))throw(c=new Error("A value must be provided for: "+a)).variableId=a,c;s=t[a],o.options?l+=this._format(o.getOption(s),t):l+=o.format(s)}else l+=o;return l},s.prototype._mergeFormats=function(e,t){var r,o,a={};for(r in e)n.hop.call(e,r)&&(a[r]=o=i.objCreate(e[r]),t&&n.hop.call(t,r)&&n.extend(o,t[r]));return a},s.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(s.defaultLocale);var t,r,n,i,o=s.__localeData__;for(t=0,r=e.length;t<r;t+=1)for(n=e[t].toLowerCase().split("-");n.length;){if(i=o[n.join("-")])return i.locale;n.pop()}var a=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+a)}},69511:(e,t)=>{"use strict";t.default={locale:"en",pluralRuleFunction:function(e,t){var r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),a=i&&r[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&n?"one":"other"}}},85049:(e,t,r)=>{"use strict";var n=r(60003),i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),o=(!i&&Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):n.hop.call(e,t)&&!("value"in r)||(e[t]=r.value)}),a=Object.create||function(e,t){var r,i;function a(){}for(i in a.prototype=e,r=new a,t)n.hop.call(t,i)&&o(r,i,t[i]);return r};t.defineProperty=o,t.objCreate=a},379:(e,t,r)=>{"use strict";var n=r(97454),i=r(69511);n.default.__addLocaleData(i.default),n.default.defaultLocale="en",t.Z=n.default},60003:(e,t)=>{"use strict";t.extend=function(e){var t,n,i,o,a=Array.prototype.slice.call(arguments,1);for(t=0,n=a.length;t<n;t+=1)if(i=a[t])for(o in i)r.call(i,o)&&(e[o]=i[o]);return e};var r=Object.prototype.hasOwnProperty;t.hop=r},75870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trapFocus=function(e,t){const r=t.type,n=t.key,i=t.shiftKey,o=t.target;let a,s,c,l,p;"keydown"!==r&&"focus"!==r||(a=u.default.findDOMNode(e),a&&(s=Array.from(a.querySelectorAll(y)).filter((e=>e!==a)),l=s[0]||a,p=s[s.length-1]||a));"keydown"===r&&"Tab"===n?a&&(i?o!==l&&o!==a||(c=p):o!==p&&o!==a||(c=l)):"focus"===r&&o===a&&(c=l);c&&(t.preventDefault(),t.stopPropagation(),c!==document.activeElement&&c.focus())},t.TABBABLE_ELEMENT_SELECTOR=t.FOCUSABLE_ELEMENT_SELECTOR=t.default=void 0;var n,i,o,a=h(r(68378)),s=r(51884),c=h(r(2652)),l=h(r(89526)),u=h(r(73961)),p=r(54699),d=h(r(10086));function h(e){return e&&e.__esModule?e:{default:e}}const f=/[\n\r]+|[\s]{1,}/g;let m=(0,a.default)((o=i=class extends l.default.Component{constructor(...e){var t;return t=super(...e),this.keysSoFar="",this.keyClearTimeout=null,t}getItems(e=!1){const t=this.props,r=t.itemSelector,n=t.selectedItemSelector,i=t.includeSelf,o=e&&n?n:r,a=u.default.findDOMNode(this),s=[];i&&a.matches(o)&&s.push(a);let c=s.concat(Array.from(a.querySelectorAll(o)));return c.length>0&&void 0!==c[0].getAttribute("data-order")&&c.sort((function(e,t){let r=e.getAttribute("data-order"),n=t.getAttribute("data-order");return parseInt(r,10)-parseInt(n,10)})),c}onFocusFirst(e){const t=this.getItems();!t.length||e&&-1===t.indexOf(e.target)||(e&&e.preventDefault(),t[0].focus())}onFocusLast(e){const t=this.getItems();!t.length||e&&-1===t.indexOf(e.target)||(e&&e.preventDefault(),t[t.length-1].focus())}onFocusPrevious(e,t=1){const r=this.getItems();if(r.length&&e&&-1!==r.indexOf(e.target)){e.preventDefault();let n=r.indexOf(e.target)-t;if(n<0){if(this.props.disableCyclicFocus)return;n=r.length-1}r[n].focus()}}onFocusNext(e,t=1){const r=this.getItems();if(r.length&&e&&-1!==r.indexOf(e.target)){e.preventDefault();let n=r.indexOf(e.target)+t;if(n>=r.length){if(this.props.disableCyclicFocus)return;n=0}r[n].focus()}}onPageUp(e){if(this.props.ignorePageUpPageDown)return;const t=this.getItems();if(t.length&&e&&-1!==t.indexOf(e.target)){e.preventDefault();const r=u.default.findDOMNode(this),n=Math.max(e.target.offsetTop+e.target.offsetHeight-r.clientHeight,0),i=t.indexOf(e.target),o=t.slice(0,i).reverse().find((e=>e.offsetTop<n));o?(o.focus(),(0,d.default)(o,r,!0)):this.onFocusFirst(e)}}onPageDown(e){if(this.props.ignorePageUpPageDown)return;const t=this.getItems();if(t.length&&e&&-1!==t.indexOf(e.target)){e.preventDefault();const r=u.default.findDOMNode(this),n=Math.min(e.target.offsetTop+r.clientHeight,r.scrollHeight+r.clientHeight),i=t.indexOf(e.target)+1,o=t.slice(i).find((e=>e.offsetTop+e.offsetHeight>n));o?(o.focus(),(0,d.default)(o,r,!0)):this.onFocusLast(e)}}findItemToFocus(e){const t=e.target,r=e.shiftKey,n=e.charCode,i=(0,p.removeDiacritics)(String.fromCharCode(n)).toUpperCase();let o=this.getItems();(""===this.keysSoFar||i===this.keysSoFar||r)&&(r&&(o=o.reverse()),this.searchIndex=o.indexOf(t)),i!==this.keysSoFar&&(this.keysSoFar+=i),this.clearKeysSoFarAfterDelay();let a=this.findMatchInRange(o,this.searchIndex+1,o.length);a||(a=this.findMatchInRange(o,0,this.searchIndex)),a&&a.focus()}clearKeysSoFarAfterDelay(){this.keyClearTimeout&&clearTimeout(this.keyClearTimeout),this.keyClearTimeout=setTimeout((()=>this.keysSoFar=""),500)}findMatchInRange(e,t,r){for(let n=t;n<r;n++){const t=e[n].innerText||e[n].textContent;if(t&&0===(0,p.removeDiacritics)(t).replace(f,"").toUpperCase().indexOf(this.keysSoFar))return e[n]}return null}onKeyDown(e){e.isPropagationStopped()||s.interpretKeyboardEvent.call(this,e,this.props.orientation)}onKeyPress(e){e.isPropagationStopped()||this.findItemToFocus(e)}onFocus(e){e.isPropagationStopped()||this.getItems().forEach((t=>t.tabIndex=t===e.target?0:-1))}onBlur(e){if(e.isPropagationStopped())return;const t=this.getItems(!0);if(t.length){const r=-1!==t.indexOf(e.target);this.getItems().forEach((n=>{const i=-1!==t.indexOf(n);n.tabIndex=n===e.target&&r||!r&&i?0:-1}))}}componentDidMount(){const e=this.props,t=e.autoFocus,r=e.selectedItemSelector;if(t){const e=r?u.default.findDOMNode(this).querySelector(r):null;this.focusTimer=setTimeout((()=>{e?e.focus():this.onFocusFirst()}),175)}}componentWillUnmount(){clearTimeout(this.focusTimer)}render(){const e=this.props,t=e.children,r=e.disabled,n=e.manageTabIndex,i=e.typeToSelect,o=l.default.Children.only(t),a=o.props,c=a.onKeyDown,u=a.onKeyPress,p=a.onFocus,d=a.onBlur;return l.default.cloneElement(o,{onKeyDown:r?c:(0,s.chain)(c,this.onKeyDown),onKeyPress:i&&!r?(0,s.chain)(u,this.onKeyPress):u,onFocus:n&&!r?(0,s.chain)(p,this.onFocus):p,onBlur:n&&!r?(0,s.chain)(d,this.onBlur):d})}},i.propTypes={itemSelector:c.default.string.isRequired,manageTabIndex:c.default.bool,orientation:c.default.oneOf(["horizontal","vertical","both"]),selectedItemSelector:c.default.string,disabled:c.default.bool,typeToSelect:c.default.bool,includeSelf:c.default.bool,ignorePageUpPageDown:c.default.bool,autoFocus:c.default.bool},i.defaultProps={manageTabIndex:!0,orientation:"vertical",typeToSelect:!1,includeSelf:!1,ignorePageUpPageDown:!1},n=o))||n;t.default=m;const g=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],v=g.join(",")+",[tabindex]";t.FOCUSABLE_ELEMENT_SELECTOR=v,g.push('[tabindex]:not([tabindex="-1"])');const y=g.join(':not([tabindex="-1"]),');t.TABBABLE_ELEMENT_SELECTOR=y},26088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n.default.createElement(i.default,a({timeout:{enter:0,exit:125}},e),(t=>n.default.cloneElement(e.children,{open:!!s[t]})))};var n=o(r(89526)),i=o(r(86520));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return a=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},a.apply(this,arguments)}const s={entering:!1,entered:!0}},58648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(21890));i(r(89526));function i(e){return e&&e.__esModule?e:{default:e}}const o="plugin:"===window.location.protocol,a=Object.freeze({enabled:o,default:o,productNeedsOverlayFix:o&&(0,n.default)()||!1,AccordionItem:void 0,Autocomplete:void 0,Breadcrumbs:void 0,Button:void 0,Checkbox:void 0,CoachMark:void 0,CoachMarkIndicator:void 0,CoachMarkPopover:void 0,Dialog:void 0,Dropdown:void 0,FieldLabel:void 0,Form:void 0,Label:void 0,ListItem:void 0,Menu:void 0,ModalTrigger:void 0,OverlayTrigger:void 0,Popover:void 0,Provider:void 0,Search:void 0,Select:void 0,SelectList:void 0,Slider:void 0,SwitchBase:void 0,Tab:void 0,TabList:void 0,Textfield:void 0,Toast:void 0,Tooltip:void 0,Video:void 0,Wait:void 0});var s=new Proxy(new class{constructor(){this.reset()}reset(){Object.assign(this,a)}select(e,t,r){var n;return(n=this[e]?t():r()).default||n}},{get(e,t){let r=e[t];return a.hasOwnProperty(t)?!!e.enabled&&(null!=r?r:e.default):r}});t.default=s},83737:(e,t)=>{"use strict";function r(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(r(e)||r(t))return!1;return!(t.left>=e.right||t.right<=e.left||t.top>=e.bottom||t.bottom<=e.top)}},84420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={kitId:e,scriptTimeout:3e3};if(!window.Typekit){const e=document.getElementsByTagName("html")[0];e.className+=" wf-loading";const r=setTimeout((()=>{e.className=e.className.replace(/(\s|^)wf-loading(\s|$)/g," "),e.className+=" wf-inactive"}),t.scriptTimeout),n=document.createElement("script");let i=!1;n.src=`https://use.typekit.net/${t.kitId}.js`,n.type="text/javascript",n.async="true",n.onload=n.onreadystatechange=function(){const e=this.readyState;if(!(i||e&&"complete"!==e&&"loaded"!==e)){i=!0,clearTimeout(r);try{window.Typekit.load(t)}catch(e){}}};const o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}}},36065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.prototype,r=t.UNSAFE_componentWillUpdate,o=t.UNSAFE_componentWillMount,a=t.UNSAFE_componentWillReceiveProps;-1===(0,n.default)(i.default.version,"16.3.0")&&(r&&(t.componentWillUpdate=function(e,t){r.apply(this,arguments)}),o&&(t.componentWillMount=function(){o.apply(this,arguments)}),a&&(t.componentWillReceiveProps=function(e){a.apply(this,arguments)}))};var n=o(r(72106)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}},99870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let r=0;t.default=()=>"react-spectrum-"+ ++r},27984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={elements:{lightest:{medium:{circleloader:{large:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},medium:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},small:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"16px"},states:{default:{"indicator-ring-default-color":"rgb(55, 142, 240)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"8px"},states:{default:{"indicator-ring-default-color":"rgb(55, 142, 240)"}}}},popover:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(211, 211, 211)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(55, 142, 240)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(55, 142, 240)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(234, 234, 234)"},disabled:{"background-color":"rgb(244, 244, 244)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(255, 255, 255)","border-color":"rgb(38, 128, 235)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(234, 234, 234)"},disabled:{"background-color":"transparent","border-color":"rgb(234, 234, 234)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(38, 128, 235)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}},large:{circleloader:{large:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},medium:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},small:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"20px"},states:{default:{"indicator-ring-default-color":"rgb(55, 142, 240)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"10px"},states:{default:{"indicator-ring-default-color":"rgb(55, 142, 240)"}}}},popover:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(211, 211, 211)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(55, 142, 240)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(55, 142, 240)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(234, 234, 234)"},disabled:{"background-color":"rgb(244, 244, 244)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(255, 255, 255)","border-color":"rgb(38, 128, 235)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(234, 234, 234)"},disabled:{"background-color":"transparent","border-color":"rgb(234, 234, 234)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(38, 128, 235)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}}},light:{medium:{circleloader:{large:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},medium:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},small:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"16px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"8px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}}},popover:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(202, 202, 202)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(225, 225, 225)"},disabled:{"background-color":"rgb(234, 234, 234)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(255, 255, 255)","border-color":"rgb(20, 115, 230)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(225, 225, 225)"},disabled:{"background-color":"transparent","border-color":"rgb(225, 225, 225)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(20, 115, 230)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}},large:{circleloader:{large:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},medium:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},small:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"20px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"10px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}}},popover:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(202, 202, 202)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(225, 225, 225)"},disabled:{"background-color":"rgb(234, 234, 234)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(255, 255, 255)","border-color":"rgb(20, 115, 230)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(225, 225, 225)"},disabled:{"background-color":"transparent","border-color":"rgb(225, 225, 225)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(20, 115, 230)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}}},dark:{medium:{circleloader:{large:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},medium:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},small:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"16px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"8px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}}},popover:{default:{states:{default:{"background-color":"rgb(37, 37, 37)","border-color":"rgb(90, 90, 90)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(37, 37, 37)","border-color":"rgb(74, 74, 74)"},disabled:{"background-color":"rgb(62, 62, 62)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(37, 37, 37)","border-color":"rgb(55, 142, 240)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(74, 74, 74)"},disabled:{"background-color":"transparent","border-color":"rgb(74, 74, 74)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(55, 142, 240)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}},large:{circleloader:{large:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},medium:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},small:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"20px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"10px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}}},popover:{default:{states:{default:{"background-color":"rgb(37, 37, 37)","border-color":"rgb(90, 90, 90)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(37, 37, 37)","border-color":"rgb(74, 74, 74)"},disabled:{"background-color":"rgb(62, 62, 62)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(37, 37, 37)","border-color":"rgb(55, 142, 240)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(74, 74, 74)"},disabled:{"background-color":"transparent","border-color":"rgb(74, 74, 74)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(55, 142, 240)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}}},darkest:{medium:{circleloader:{large:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},medium:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},small:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"16px"},states:{default:{"indicator-ring-default-color":"rgb(20, 115, 230)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"8px"},states:{default:{"indicator-ring-default-color":"rgb(20, 115, 230)"}}}},popover:{default:{states:{default:{"background-color":"rgb(8, 8, 8)","border-color":"rgb(73, 73, 73)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(20, 115, 230)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(20, 115, 230)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(8, 8, 8)","border-color":"rgb(57, 57, 57)"},disabled:{"background-color":"rgb(44, 44, 44)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(8, 8, 8)","border-color":"rgb(38, 128, 235)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(57, 57, 57)"},disabled:{"background-color":"transparent","border-color":"rgb(57, 57, 57)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(38, 128, 235)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}},large:{circleloader:{large:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},medium:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},small:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"20px"},states:{default:{"indicator-ring-default-color":"rgb(20, 115, 230)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"10px"},states:{default:{"indicator-ring-default-color":"rgb(20, 115, 230)"}}}},popover:{default:{states:{default:{"background-color":"rgb(8, 8, 8)","border-color":"rgb(73, 73, 73)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(20, 115, 230)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(20, 115, 230)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(8, 8, 8)","border-color":"rgb(57, 57, 57)"},disabled:{"background-color":"rgb(44, 44, 44)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(8, 8, 8)","border-color":"rgb(38, 128, 235)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(57, 57, 57)"},disabled:{"background-color":"transparent","border-color":"rgb(57, 57, 57)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(38, 128, 235)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}}}}}},51884:(e,t)=>{"use strict";function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},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 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 n(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}Object.defineProperty(t,"__esModule",{value:!0}),t.interpretKeyboardEvent=function(e,t="vertical"){switch(e.key){case"Enter":case" ":this.onSelectFocused&&this.onSelectFocused(e);break;case"Tab":this.onTab&&this.onTab(e);break;case"PageUp":this.onPageUp?this.onPageUp(e):this.onFocusFirst&&this.onFocusFirst(e);break;case"PageDown":this.onPageDown?this.onPageDown(e):this.onFocusLast&&this.onFocusLast(e);break;case"Home":this.onFocusFirst&&this.onFocusFirst(e);break;case"End":this.onFocusLast&&this.onFocusLast(e);break;case"ArrowUp":case"Up":if(e.altKey&&this.onAltArrowUp)this.onAltArrowUp(e);else if(this.onFocusPrevious)switch(t){case"vertical":this.onFocusPrevious(e);break;case"horizontal":break;default:this.props.nextFocusOffset?this.onFocusPrevious(e,this.props.nextFocusOffset()):this.onFocusPrevious(e)}break;case"ArrowDown":case"Down":if(e.altKey&&this.onAltArrowDown)this.onAltArrowDown(e);else if(this.onFocusNext)switch(t){case"vertical":this.onFocusNext(e);break;case"horizontal":break;default:this.props.nextFocusOffset?this.onFocusNext(e,this.props.nextFocusOffset()):this.onFocusNext(e)}break;case"ArrowLeft":case"Left":"vertical"!==t&&this.onFocusPrevious&&this.onFocusPrevious(e);break;case"ArrowRight":case"Right":"vertical"!==t&&this.onFocusNext&&this.onFocusNext(e);break;case"Escape":case"Esc":this.onEscape&&this.onEscape(e)}},t.chain=function(...e){return(...t)=>{var n,i=r(e);try{for(i.s();!(n=i.n()).done;){let e=n.value;"function"==typeof e&&e(...t)}}catch(e){i.e(e)}finally{i.f()}}},t.focusAfterMouseEvent=function(e,t){if(!document)return void(e&&e.call(this,t));if(e&&(e.call(this,t),t.isDefaultPrevented()))return void(i="mousedown"===t.type);i||"function"!=typeof this.focus||this.focus();"mouseup"===t.type&&(i=!1)};let i=!1},40743:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={};for(const i in e)e.hasOwnProperty(i)&&(r[i]||n.test(i))&&(t[i]=e[i]);return t};const r={abbr:1,accept:1,acceptCharset:1,accessKey:1,action:1,allowFullScreen:1,allowTransparency:1,alt:1,async:1,autoComplete:1,autoFocus:1,autoPlay:1,boundariesElement:1,cellPadding:1,cellSpacing:1,challenge:1,charset:1,checked:1,cite:1,class:1,className:1,cols:1,colSpan:1,command:1,content:1,contentEditable:1,contextMenu:1,controls:1,coords:1,crossOrigin:1,data:1,dateTime:1,default:1,defaultPreventedKeys:1,defaultpreventedkeys:1,defaultPreventedEvents:1,defaultpreventedevents:1,defer:1,dir:1,disabled:1,download:1,draggable:1,dropzone:1,encType:1,for:1,form:1,formAction:1,formEncType:1,formMethod:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:1,height:1,hidden:1,high:1,href:1,hrefLang:1,htmlFor:1,httpEquiv:1,icon:1,id:1,inputMode:1,isMap:1,itemId:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,kind:1,label:1,lang:1,list:1,loop:1,manifest:1,max:1,maxLength:1,media:1,mediaGroup:1,method:1,min:1,minLength:1,multiple:1,muted:1,name:1,noValidate:1,open:1,optimum:1,pattern:1,ping:1,placeholder:1,poster:1,preload:1,radioGroup:1,readOnly:1,rel:1,required:1,role:1,rows:1,rowSpan:1,sandbox:1,scope:1,scoped:1,scrolling:1,seamless:1,selected:1,shape:1,size:1,sizes:1,sortable:1,span:1,spellCheck:1,src:1,srcDoc:1,srcSet:1,start:1,step:1,style:1,tabIndex:1,target:1,title:1,translate:1,type:1,typeMustMatch:1,useMap:1,value:1,width:1,wmode:1,wrap:1,onCopy:1,onCut:1,onPaste:1,onLoad:1,onError:1,onWheel:1,onScroll:1,onCompositionEnd:1,onCompositionStart:1,onCompositionUpdate:1,onKeyDown:1,onKeyPress:1,onKeyUp:1,onFocus:1,onBlur:1,onChange:1,onInput:1,onSubmit:1,onClick:1,onContextMenu:1,onDoubleClick:1,onDrag:1,onDragEnd:1,onDragEnter:1,onDragExit:1,onDragLeave:1,onDragOver:1,onDragStart:1,onDrop:1,onMouseDown:1,onMouseEnter:1,onMouseLeave:1,onMouseMove:1,onMouseOut:1,onMouseOver:1,onMouseUp:1,onSelect:1,onTouchCancel:1,onTouchEnd:1,onTouchMove:1,onTouchStart:1,onAnimationStart:1,onAnimationEnd:1,onAnimationIteration:1,onTransitionEnd:1},n=/^((data|aria)-.*)$/},52743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.prototype,r=t.UNSAFE_componentWillUpdate,i=t.componentDidUpdate;let a=null;t.UNSAFE_componentWillUpdate=function(e,t){if(r&&r.apply(this,arguments),null==a||a!==document.activeElement)try{const e=n.default.findDOMNode(this);a=e.parentNode.querySelector(".focus-ring")}catch(e){}},t.componentDidUpdate=function(e,t){i&&i.apply(this,arguments);try{const e=n.default.findDOMNode(this);!a||document.activeElement!==a&&!e.contains(document.activeElement)||a.classList.contains(o)||(document.activeElement.classList.add(o),a=null)}catch(e){}}},t.FOCUS_RING_CLASSNAME=void 0;i(r(89526));var n=i(r(73961));function i(e){return e&&e.__esModule?e:{default:e}}const o="focus-ring";t.FOCUS_RING_CLASSNAME=o},25545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=window.require&&window.require("uxp");switch(e&&e.host?e.host.name:"Browser"){case"Illustrator":!function(){let e=":root {\n --host-background-color-darkest: #323232;\n --host-background-color-dark: #535353;\n --host-background-color-light: #B8B8B8;\n --host-background-color-lightest: #F0F0F0;\n }\n \n .react-spectrum-provider {\n font-family: Lucida Grande, Tahoma, sans-serif !important;\n }\n \n .react-spectrum-provider:lang(ja) {\n font-family: HiraKakuProN-W3, Meiryo, sans-serif !important;\n }\n \n .react-spectrum-provider:lang(zh-Hant) {\n font-family: LiHeiPro, Tahoma, sans-serif !important;\n }\n \n .react-spectrum-provider:lang(zh-Hans) {\n font-family: STXihei, SimSun, sans-serif !important;\n }\n \n .react-spectrum-provider:lang(ko) {\n font-family: AppleGothic, Malgun Gothic, sans-serif !important;\n }\n \n .react-spectrum-provider.spectrum--darkest {\n background-color: #323232;\n }\n \n .react-spectrum-provider.spectrum--dark {\n background-color: #535353;\n }\n \n .react-spectrum-provider.spectrum--light {\n background-color: #B8B8B8;\n }\n \n .react-spectrum-provider.spectrum--lightest {\n background-color: #F0F0F0;\n }\n \n .react-spectrum-provider .spectrum-Menu-item {\n font-size: 10px;\n }\n \n .react-spectrum-provider .spectrum-Textfield {\n font-size: 10px;\n } \n \n .react-spectrum-provider:lang(ja) .spectrum-Menu-item {\n font-size: 12px;\n }\n \n .react-spectrum-provider:lang(ja) .spectrum-Textfield {\n font-size: 12px;\n } \n \n .react-spectrum-provider:lang(zh-Hant) .spectrum-Menu-item {\n font-size: 12px;\n }\n \n .react-spectrum-provider:lang(zh-Hant) .spectrum-Textfield {\n font-size: 12px;\n } \n \n .react-spectrum-provider:lang(zh-Hans) .spectrum-Menu-item {\n font-size: 12px;\n }\n \n .react-spectrum-provider:lang(zh-Hans) .spectrum-Textfield {\n font-size: 12px;\n }\n \n .react-spectrum-provider.spectrum--lightest .spectrum-Menu, .react-spectrum-provider.spectrum--lightest .spectrum-Menu-item, .react-spectrum-provider.spectrum--lightest .spectrum-Popover {\n background-color: rgb(240, 240, 240);\n }\n \n .react-spectrum-provider.spectrum--light .spectrum-Menu, .react-spectrum-provider.spectrum--light .spectrum-Menu-item, .react-spectrum-provider.spectrum--light .spectrum-Popover {\n background-color: rgb(184, 184, 184);\n }\n \n .react-spectrum-provider.spectrum--dark .spectrum-Menu, .react-spectrum-provider.spectrum--dark .spectrum-Menu-item, .react-spectrum-provider.spectrum--dark .spectrum-Popover {\n background-color: rgb(83, 83, 83);\n }\n \n .react-spectrum-provider.spectrum--darkest .spectrum-Menu, .react-spectrum-provider.spectrum--darkest .spectrum-Menu-item, .react-spectrum-provider.spectrum--darkest .spectrum-Popover {\n background-color: rgb(50, 50, 50);\n }\n \n .react-spectrum-provider.spectrum--lightest .spectrum-Menu-item:hover {\n background-color: rgb(220, 220, 220);\n color: rgb(72, 72, 72);\n }\n \n .react-spectrum-provider.spectrum--light .spectrum-Menu-item:hover {\n background-color: rgb(167, 167, 167);\n color: rgb(34, 34, 34);\n }\n \n .react-spectrum-provider.spectrum--dark .spectrum-Menu-item:hover {\n background-color: rgb(95, 95, 95);\n color: rgb(255, 255, 255);\n }\n \n .react-spectrum-provider.spectrum--darkest .spectrum-Menu-item:hover {\n background-color: rgb(62, 62, 62);\n color: rgb(205, 205, 205);\n }\n \n .react-spectrum-provider.spectrum--lightest .spectrum-Textfield, .react-spectrum-provider.spectrum--lightest .spectrum-Textfield .inputText {\n background-color: rgb(255, 255, 255) !important;\n color: rgb(72, 72, 72);\n }\n \n .react-spectrum-provider.spectrum--light .spectrum-Textfield, .react-spectrum-provider.spectrum--light .spectrum-Textfield .inputText {\n background-color: rgb(226, 226, 226) !important;\n color: rgb(34, 34, 34);\n }\n \n .react-spectrum-provider.spectrum--dark .spectrum-Textfield, .react-spectrum-provider.spectrum--dark .spectrum-Textfield .inputText {\n background-color: rgb(255, 255, 255) !important;\n color: rgb(75, 75, 75);\n }\n \n .react-spectrum-provider.spectrum--darkest .spectrum-Textfield, .react-spectrum-provider.spectrum--darkest .spectrum-Textfield .inputText {\n background-color: rgb(252, 252, 252) !important;\n color: rgb(42, 42, 42);\n }\n ",t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");t.appendChild(r),r.type="text/css",r.appendChild(document.createTextNode(e))}(),"darwin"===window.navigator.platform&&function(){let e=".react-spectrum-provider:lang(zh-Hant) .spectrum-Menu-item {\n font-size: 13px;\n }\n \n .react-spectrum-provider:lang(zh-Hant) .spectrum-Textfield {\n font-size: 13px;\n } \n \n .react-spectrum-provider:lang(zh-Hans) .spectrum-Menu-item {\n font-size: 13px;\n }\n \n .react-spectrum-provider:lang(zh-Hans) .spectrum-Textfield {\n font-size: 13px;\n }\n ",t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");t.appendChild(r),r.type="text/css",r.appendChild(document.createTextNode(e))}();break;case"Photoshop":!function(){let e="\n \n .react-spectrum-provider {\n background-color: var(--uxp-host-background-color);\n }\n \n .react-spectrum-provider .spectrum-Menu-item, .react-spectrum-provider .spectrum-Textfield {\n font-size: 10px;\n color: var(--uxp-host-text-color);\n }\n \n .react-spectrum-provider .spectrum-Menu, .react-spectrum-provider .spectrum-Menu-item, .react-spectrum-provider .spectrum-Popover {\n background-color: var(--uxp-host-background-color);\n }\n \n .react-spectrum-provider .spectrum-Menu-item:hover {\n background-color: var(--uxp-host-link-text-color);\n color: #FFFFFF;\n }\n\n .react-spectrum-provider .spectrum-Textfield, .react-spectrum-provider .spectrum-Textfield .inputText {\n background-color: var(--uxp-host-background-color) !important;\n }\n \n ",t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");t.appendChild(r),r.type="text/css",r.appendChild(document.createTextNode(e))}();break;default:return null}}},44800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneIcon=function(e,t={}){if(!e)return null;if("string"==typeof e)throw new Error("String icon names are deprecated. Pass icons by importing them from react-spectrum/Icon/IconName and render as <IconName />.");const r=t.className,o=t.size,a=t["aria-label"],s=t["aria-hidden"],c=t.alt,l=void 0===c?a||e.props["aria-label"]||e.props.alt:c;return i.default.cloneElement(e,{className:(0,n.default)(r,e.props.className),size:e.props.size||o,"aria-label":a||l,alt:l,"aria-hidden":s||!l||e.props["aria-hidden"]})};var n=o(r(64403)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}},3585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLocale=function(e){a=e},t.getLocale=function(){return a},t.messageFormatter=function(e){let t={};return function(r,n,o){let s=t[r+"."+a];if(!s){let n=(e[a]||e["en-US"])[r];if(!n)throw new Error(`Could not find intl message ${r} in ${a} locale`);s=new i.default(n,a,o),t[r]=s}return s.format(n)}},t.defaultLocale=void 0;var n,i=(n=r(93300))&&n.__esModule?n:{default:n};const o="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";t.defaultLocale=o;let a=o},21890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=window.require&&window.require("uxp");return!(!e||!e.host)&&(e.host.isDrover||"Photoshop"===e.host.name||"Illustrator"===e.host.name)}},10086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=(e,t,r)=>{if(t&&t.contains(e)){const n=t.clientHeight,i=t.clientWidth,o=t.scrollTop,a=t.scrollLeft,s=e.offsetHeight,c=e.offsetWidth,l=e.offsetTop,u=e.offsetLeft,p=window.getComputedStyle(t).position;let d=t.offsetTop,h=t.offsetLeft;if("static"!==p&&(d=h=0),l<o)t.scrollTop=l;else{const e=l+s;e>o+n&&(t.scrollTop=r?l-d:e-n-d)}if(u<a)t.scrollLeft=u;else{const e=u+c;e>a+i&&(t.scrollLeft=r?u-h:e-i-h)}}}},37001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!1,r,o=null){if(!e)return;const a=(0,n.default)(i.default.findDOMNode(e),".react-spectrum-provider")||document.querySelector(".react-spectrum-provider");if(a){let n=a.getAttribute("setOverlay");null==o&&t&&(o=e.getBoundingClientRect());let i={visible:t,callback:r,boundingRect:o};n&&n(e,i)}};var n=o(r(99607)),i=o(r(73961));function o(e){return e&&e.__esModule?e:{default:e}}},54699:(e,t)=>{"use strict";function r(e="",t="NFC"){return"normalize"in String.prototype&&(e=e.normalize(t)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isUrl=function(e){return e&&!!e.match(/\/|:|\./g)},t.normalize=r,t.removeDiacritics=function(e="",t="NFD"){return r(e,t.replace("C","D")).replace(/[\u0300-\u036f]/g,"")},t.getTextFromReact=function(e){let t="";const r=e=>{if("string"==typeof e||"number"==typeof e)t=`${t} ${e}`;else if(Array.isArray(e))e.forEach((e=>r(e)));else if(e&&e.props){const t=e.props.children;Array.isArray(t)?t.forEach((e=>r(e))):r(t)}};r(e);return t.trim().replace(/(\s)(?:\s+)/g,"$1")}},34045:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover1.svg"},55756:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover10.svg"},50999:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover11.svg"},95512:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover12.svg"},93605:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover13.svg"},86304:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover14.svg"},89201:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover15.svg"},63587:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover16.svg"},82659:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover17.svg"},89133:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover18.svg"},41226:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover19.svg"},7627:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover2.svg"},48527:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover20.svg"},91564:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover3.svg"},39937:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover4.svg"},68591:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover5.svg"},85836:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover6.svg"},17456:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover7.svg"},87298:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover8.svg"},83993:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover9.svg"},19824:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aac_filetype_256.svg"},63045:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aac_filetype_64.svg"},59466:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aif_filetype_256.svg"},11612:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aif_filetype_64.svg"},23546:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aiff_filetype_256.svg"},13206:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aiff_filetype_64.svg"},157:(e,t,r)=>{"use strict";e.exports=r.p+"resources/m4a_filetype_256.svg"},32224:(e,t,r)=>{"use strict";e.exports=r.p+"resources/m4a_filetype_64.svg"},27129:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mp2_filetype_256.svg"},8823:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mp2_filetype_64.svg"},60501:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mp3_filetype_256.svg"},88050:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mp3_filetype_64.svg"},44255:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mpga_filetype_64.svg"},48775:(e,t,r)=>{"use strict";e.exports=r.p+"resources/wav_filetype_256.svg"},91546:(e,t,r)=>{"use strict";e.exports=r.p+"resources/wav_filetype_64.svg"},10565:(e,t,r)=>{"use strict";e.exports=r.p+"resources/dn_filetype_1024.svg"},92576:(e,t,r)=>{"use strict";e.exports=r.p+"resources/exr_filetype_1024.svg"},76064:(e,t,r)=>{"use strict";e.exports=r.p+"resources/fbx_filetype_1024.svg"},51760:(e,t,r)=>{"use strict";e.exports=r.p+"resources/glb_filetype_1024.svg"},61161:(e,t,r)=>{"use strict";e.exports=r.p+"resources/gltf_filetype_1024.svg"},88762:(e,t,r)=>{"use strict";e.exports=r.p+"resources/hdr_filetype_1024.svg"},51235:(e,t,r)=>{"use strict";e.exports=r.p+"resources/ibl_filetype_1024.svg"},49363:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mdl_filetype_1024.svg"},26361:(e,t,r)=>{"use strict";e.exports=r.p+"resources/obj_filetype_1024.svg"},82911:(e,t,r)=>{"use strict";e.exports=r.p+"resources/sbsar_filetype_1024.svg"},95496:(e,t,r)=>{"use strict";e.exports=r.p+"resources/usdz_filetype_1024.svg"},11009:()=>{},33786:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},95656:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},67738:()=>{"use strict";Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,(function(r,n){return Array.isArray(n)?r.push.apply(r,e.call(n,t-1)):r.push(n),r}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})},85878:(e,t,r)=>{"use strict";r.d(t,{Fp:()=>uu,G$:()=>gc,Hf:()=>yt,R8:()=>yc,SZ:()=>_s,Xb:()=>Bo,ak:()=>ct,in:()=>ou,jz:()=>su,kc:()=>_u,mC:()=>Yt});var n,i,o=r(82530);function a(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)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||c(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 s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(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 o,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,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function c(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}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(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)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.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 w(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(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:O}}function O(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"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,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,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(L),!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 i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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),L(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 i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))}}!function(e){e[e.UNKNOWN=1]="UNKNOWN",e[e.FULL_LOCAL_DISK_SPACE=2]="FULL_LOCAL_DISK_SPACE",e[e.FULL_CLOUD_STORAGE=3]="FULL_CLOUD_STORAGE",e[e.DEVICE_OFFLINE=4]="DEVICE_OFFLINE",e[e.NETWORK_ERROR=5]="NETWORK_ERROR",e[e.REQUEST_TIMED_OUT=6]="REQUEST_TIMED_OUT",e[e.USER_CANCELLED=7]="USER_CANCELLED",e[e.CORESYNC_FAILURE=8]="CORESYNC_FAILURE",e[e.SYNC_PAUSED=9]="SYNC_PAUSED",e[e.USER_ALREADY_REGISTERED=10]="USER_ALREADY_REGISTERED",e[e.PENDING_UNCOMMITTED_CHANGES_FROM_THIS_APP=11]="PENDING_UNCOMMITTED_CHANGES_FROM_THIS_APP",e[e.PENDING_UNCOMMITTED_CHANGES_FROM_ANOTHER_APP=12]="PENDING_UNCOMMITTED_CHANGES_FROM_ANOTHER_APP",e[e.INTERNAL_ERROR=13]="INTERNAL_ERROR",e[e.OPERATION_IGNORED=14]="OPERATION_IGNORED",e[e.CONFLICT=15]="CONFLICT",e[e.ACCESS_DENIED=16]="ACCESS_DENIED",e[e.UNSUPPORTED=17]="UNSUPPORTED",e[e.ASSET_NOT_IN_SYNC=18]="ASSET_NOT_IN_SYNC",e[e.BAD_REQUEST=19]="BAD_REQUEST",e[e.SYNC_ERROR=20]="SYNC_ERROR",e[e.NOT_FOUND=21]="NOT_FOUND",e[e.AUTHORIZATION_ERROR=22]="AUTHORIZATION_ERROR",e[e.INVALID_OPERATION=23]="INVALID_OPERATION",e[e.INVALID_CONTEXT=24]="INVALID_CONTEXT",e[e.COMMIT_ERROR=25]="COMMIT_ERROR",e[e.PARENT_NOT_FOUND=26]="PARENT_NOT_FOUND",e[e.PARENT_DISCARDED=27]="PARENT_DISCARDED",e[e.PROJECT_LIMIT_EXCEEDED=28]="PROJECT_LIMIT_EXCEEDED",e[e.SERVICE_NOT_PROVISIONED=29]="SERVICE_NOT_PROVISIONED"}(n||(n={})),function(e){e[e.NONE=0]="NONE",e[e.CORESYNC_NOT_REACHABLE=1]="CORESYNC_NOT_REACHABLE",e[e.CORESYNC_NOT_COMPATIBLE=2]="CORESYNC_NOT_COMPATIBLE",e[e.CORESYNC_BINARY_NOT_FOUND=3]="CORESYNC_BINARY_NOT_FOUND",e[e.CORESYNC_NOT_INSTALLED=4]="CORESYNC_NOT_INSTALLED",e[e.SYNC_FAILED=5]="SYNC_FAILED",e[e.SYNC_FAILED_EDIT_EDIT_RESOLVED=6]="SYNC_FAILED_EDIT_EDIT_RESOLVED",e[e.SYNC_FAILED_EDIT_DELETE_RESOLVED=7]="SYNC_FAILED_EDIT_DELETE_RESOLVED",e[e.COMMIT_ON_ORPHAN_ERROR=8]="COMMIT_ON_ORPHAN_ERROR",e[e.PROJECTS_ADMIN_ONLY=9]="PROJECTS_ADMIN_ONLY",e[e.PROJECTS_INVALID_REPOSITORY=10]="PROJECTS_INVALID_REPOSITORY",e[e.PROJECTS_NO_HOME_REPOSITORY=11]="PROJECTS_NO_HOME_REPOSITORY"}(i||(i={}));const h=new Map([[401,{code:n.AUTHORIZATION_ERROR,message:e=>`Authorization error: ${e}`}],[403,{code:n.ACCESS_DENIED,message:e=>`Access to resource denied: ${e}`}],[404,{code:n.NOT_FOUND,message:e=>`Resource not found: ${e}`}],[409,{code:n.CONFLICT,message:()=>"Resource has a naming conflict."}],[412,{code:n.CONFLICT,message:()=>"Resource has a conflict. Etag mismatch."}]]);function f(e){for("string"==typeof e&&(e=parseInt(e)),e=Math.floor(e);e>999;)e=Math.floor(e/10);return e}var m;!function(e){e.LIMIT_CHANGELOGRETENTION="http://ns.adobe.com/adobecloud/problem/limit/changelogretention",e.OPERATION_FAILED="adobecloud/problem/operation_failed",e.SUBSCRIPTION_COUNT="http://ns.adobe.com/adobecloud/problem/limit/subscriptioncount",e.QUOTA_EXCEEDED="http://ns.adobe.com/adobecloud/problem/quotaexceeded",e.CHILDREN_LIMIT_EXCEEDED="http://ns.adobe.com/adobecloud/problem/limit/childrencount",e.NO_HOME_REPOSITORY="http://ns.adobe.com/projects/problem/no-home-repository",e.INVALID_HOME_REPOSITORY="http://ns.adobe.com/projects/problem/invalid-repository",e.ADMIN_ONLY="http://ns.adobe.com/projects/problem/admin-only",e.ACCESS_DENIED="http://ns.adobe.com/adobecloud/problem/accessdenied"}(m||(m={}));const g="SAMError";class v extends Error{constructor(e,t,r={},o){super(`[${n[e]}${void 0===o?"":"-"+i[o]}] ${t}${function(e){let t="";if(null!=e)try{t=` -> ${String(e)}`}catch(e){}return t}(r.underlyingError)}`),this.code=e,this.subCode=o,this.description=t,this._additionalInfo=r}get name(){return g}static wrapErrorIfNeeded(e,t,r,n){return r instanceof v?r:new v(e,t,{underlyingError:r},n)}static create(e,t,r,n){return new v(e,t,r,n)}static createWithResponse(e,t){var r,i;const o=e.status,a=h.get(f(o)),s=null!=t?t:e.url,c=e.headers.get("X-Request-Id")||"";return new v(null!==(r=null==a?void 0:a.code)&&void 0!==r?r:n.UNKNOWN,(null!==(i=null==a?void 0:a.message(null!=t?t:s))&&void 0!==i?i:`Unexpected response status: ${o} for ${s}`)+` reqId: ${c}`,{response:e,reqId:c},null==a?void 0:a.subCode)}static createWithResponseAndDescription(e,t){var r;const i=h.get(f(e.status));return new v(null!==(r=null==i?void 0:i.code)&&void 0!==r?r:n.UNKNOWN,t,{response:e},null==i?void 0:i.subCode)}static createWithRepositoryCode(e,t,r){var i;if(t===m.QUOTA_EXCEEDED)return new v(n.FULL_CLOUD_STORAGE,r,{problemType:t});const o=f(e),a=e?h.get(o):void 0;return new v(null!==(i=null==a?void 0:a.code)&&void 0!==i?i:n.UNKNOWN,r,{problemType:t},null==a?void 0:a.subCode)}}function y(e,t){if(!e)throw v.create(n.UNKNOWN,t)}function b(e){return e&&e.name===g}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */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 i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function E(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function w(e,t){return function(r,n){t(r,n,e)}}var L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function S(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var O={resolve:function(){for(var e,t="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var i;n>=0?i=arguments[n]:(void 0===e&&(e=o.cwd()),i=e),x(i),0!==i.length&&(t=i+"/"+t,r=47===i.charCodeAt(0))}return t=S(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(x(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=S(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return x(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];x(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":O.normalize(e)},relative:function(e,t){if(x(e),x(t),e===t)return"";if((e=O.resolve(e))===(t=O.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,i=n-r,o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var a=t.length-o,s=i<a?i:a,c=-1,l=0;l<=s;++l){if(l===s){if(a>s){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else i>s&&(47===e.charCodeAt(r+l)?c=l:0===l&&(c=0));break}var u=e.charCodeAt(r+l);if(u!==t.charCodeAt(o+l))break;47===u&&(c=l)}var p="";for(l=r+c+1;l<=n;++l)l!==n&&47!==e.charCodeAt(l)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(o+c):(o+=c,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(x(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');x(e);var r,n=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,s=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){n=r+1;break}}else-1===s&&(o=!1,s=r+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=s))}return n===i?i=s:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){n=r+1;break}}else-1===i&&(o=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname:function(e){x(e);for(var t=-1,r=0,n=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=a+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){x(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),i=47===n;i?(t.root="/",r=1):r=0;for(var o=-1,a=0,s=-1,c=!0,l=e.length-1,u=0;l>=r;--l)if(47!==(n=e.charCodeAt(l)))-1===s&&(c=!1,s=l+1),46===n?-1===o?o=l:1!==u&&(u=1):-1!==o&&(u=-1);else if(!c){a=l+1;break}return-1===o||-1===s||0===u||1===u&&o===s-1&&o===a+1?-1!==s&&(t.base=t.name=0===a&&i?e.slice(1,s):e.slice(a,s)):(0===a&&i?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(a,o),t.base=e.slice(a,s)),t.ext=e.slice(o,s)),a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};O.posix=O;var T=O;const I=Symbol("@key parameterMap");var P=(e,t,r)=>{const i=e[I]=e[I]||new Map;if(i.has(t))throw v.create(n.BAD_REQUEST,"@key cannot be applied to more than one parameter");i.set(t,r)};function C(e){return(t,r,i)=>{const o=i.value;if(!o)throw v.create(n.BAD_REQUEST,"@cache decorator can only be applied to a method");const a=function(){var t=d(u().mark((function t(...i){var a,s,c;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==(s=null===(a=this[I])||void 0===a?void 0:a.get(r))){t.next=3;break}throw v.create(n.BAD_REQUEST,"@cache decorator requires one of the parameters to be labelled with @key");case 3:return c=i[s],t.abrupt("return",this._core._environment.cache.getItem(c,(()=>o.apply(this,i)),e));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}();i.value=a}}function A(e,t,r){return t?C()(e,t,r):C(e)}var k=(e,t,r)=>{const n=Symbol(`@memoize ${t}`),i=r.get?"get":"value",o=r[i];r[i]=function(...e){return Object.prototype.hasOwnProperty.call(this,n)||(this[n]=o.call(this,...e)),this[n]}};class D{constructor(e){this._type=e}get type(){return this._type}toString(){return`SAMEvent(${this._type})`}}const N="change";const R=new class extends D{constructor(){super(N)}},M=Symbol("$OBSERVABLE_MAP");function j(e,t){return(r,n,i)=>{if((i.get||i.value)&&(null==t||t.forEach((t=>function(e,t,r){let n;Object.getOwnPropertyDescriptor(e,M)?n=e[M]:e[M]?(n=new Map(e[M]),e[M]=n):(n=new Map,e[M]=n),n.set(t,r)}(r,t,e)))),i.get){const t=i.get;i.get=function(){return this._core._environment.mobx.reportObserved(this,e.type),t.call(this)}}else{if(!i.value)throw new Error("@observable decorator can only be used with `getters` or `methods`.");{const t=i.value,r=function(...r){return this._core._environment.mobx.reportObserved(this,e.type),t.apply(this,r)};i.value=r}}}}function Z(e,t,r){if(e&&t&&r)return j(R)(e,t,r);if("string"==typeof e.type&&("string"==typeof t||void 0===t||Array.isArray(t)))return j(e,t=t?[].concat(t):void 0);throw new Error("Invalid arguments for @observable")}var F={exports:{}};!function(e){!function(t,r){e.exports?e.exports=r():t.UriTemplate=r()}(L,(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 i(i){var o="";e[i.charAt(0)]&&(o=i.charAt(0),i=i.substring(1));var a="",s="",c=!0,l=!1,u=!1;"+"==o?c=!1:"."==o?(s=".",a="."):"/"==o?(s="/",a="/"):"#"==o?(s="#",c=!1):";"==o?(s=";",a=";",l=!0,u=!0):"?"==o?(s="?",a="&",l=!0):"&"==o&&(s="&",a="&",l=!0);for(var p=[],d=i.split(","),h=[],f={},m=0;m<d.length;m++){var g=d[m],v=null;if(-1!=g.indexOf(":")){var y=g.split(":");g=y[0],v=parseInt(y[1])}for(var b={};t[g.charAt(g.length-1)];)b[g.charAt(g.length-1)]=!0,g=g.substring(0,g.length-1);var _={truncate:v,name:g,suffices:b};h.push(_),f[g]=_,p.push(g)}return{varNames:p,prefix:s,substitution:function(e){for(var t="",n=0,i=0;i<h.length;i++){var o=h[i],p=e(o.name);if(null==p||Array.isArray(p)&&0==p.length||"object"==typeof p&&0==Object.keys(p).length)n++;else if(t+=i==n?s:a||",",Array.isArray(p)){l&&(t+=o.name+"=");for(var d=0;d<p.length;d++)d>0&&(t+=o.suffices["*"]&&a||",",o.suffices["*"]&&l&&(t+=o.name+"=")),t+=c?encodeURIComponent(p[d]).replace(/!/g,"%21"):r(p[d])}else if("object"==typeof p){l&&!o.suffices["*"]&&(t+=o.name+"=");var f=!0;for(var m in p)f||(t+=o.suffices["*"]&&a||","),f=!1,t+=c?encodeURIComponent(m).replace(/!/g,"%21"):r(m),t+=o.suffices["*"]?"=":",",t+=c?encodeURIComponent(p[m]).replace(/!/g,"%21"):r(p[m])}else l&&(t+=o.name,u&&""==p||(t+="=")),null!=o.truncate&&(p=p.substring(0,o.truncate)),t+=c?encodeURIComponent(p).replace(/!/g,"%21"):r(p)}return t},unSubstitution:function(e,t,r){if(s&&(e=e.substring(s.length)),1==h.length&&h[0].suffices["*"]){for(var i=(L=h[0]).name,o=L.suffices["*"]?e.split(a||","):[e],u=c&&-1!=e.indexOf("="),p=1;p<o.length;p++){e=o[p];u&&-1==e.indexOf("=")&&(o[p-1]+=(a||",")+e,o.splice(p,1),p--)}for(p=0;p<o.length;p++){e=o[p];c&&-1!=e.indexOf("=")&&(u=!0),1==(y=e.split(",")).length?o[p]=y[0]:o[p]=y}if(l||u){for(var d=t[i]||{},m=0;m<o.length;m++){var g=e;if(!l||g){if("string"==typeof o[m]){var v=(e=o[m]).split("=",1)[0];e=e.substring(v.length+1);if(c){if(r&&!n(e))return;e=decodeURIComponent(e)}g=e}else{v=(e=o[m][0]).split("=",1)[0],e=e.substring(v.length+1);if(c){if(r&&!n(e))return;e=decodeURIComponent(e)}o[m][0]=e,g=o[m]}if(c){if(r&&!n(v))return;v=decodeURIComponent(v)}void 0!==d[v]?Array.isArray(d[v])?d[v].push(g):d[v]=[d[v],g]:d[v]=g}}1==Object.keys(d).length&&void 0!==d[i]?t[i]=d[i]:t[i]=d}else{if(c)for(m=0;m<o.length;m++){var y=o[m];if(Array.isArray(y))for(var b=0;b<y.length;b++){if(r&&!n(y[b]))return;y[b]=decodeURIComponent(y[b])}else{if(r&&!n(y))return;o[m]=decodeURIComponent(y)}}void 0!==t[i]?Array.isArray(t[i])?t[i]=t[i].concat(o):t[i]=[t[i]].concat(o):1!=o.length||L.suffices["*"]?t[i]=o:t[i]=o[0]}}else{o=1==h.length?[e]:e.split(a||",");var _={};for(p=0;p<o.length;p++){for(var E=0;E<h.length-1&&E<p&&!h[E].suffices["*"];E++);if(E!=p){for(var w=h.length-1;w>0&&h.length-w<o.length-p&&!h[w].suffices["*"];w--);h.length-w!=o.length-p?_[p]=E:_[p]=w}else _[p]=p}for(p=0;p<o.length;p++){if((e=o[p])||!l){y=e.split(","),u=!1;if(l){i=(e=y[0]).split("=",1)[0],e=e.substring(i.length+1);y[0]=e;var L=f[i]||h[0]}else i=(L=h[_[p]]).name;for(m=0;m<y.length;m++)if(c){if(r&&!n(y[m]))return;y[m]=decodeURIComponent(y[m])}(l||L.suffices["*"])&&void 0!==t[i]?Array.isArray(t[i])?t[i]=t[i].concat(y):t[i]=[t[i]].concat(y):1!=y.length||L.suffices["*"]?t[i]=y:t[i]=y[0]}}}return 1}}}function o(e){if(!(this instanceof o))return new o(e);for(var t=e.split("{"),r=[t.shift()],n=[],a=[],s=[],c=[];t.length>0;){var l=t.shift(),u=l.split("}")[0],p=l.substring(u.length+1),d=i(u);a.push(d.substitution),s.push(d.unSubstitution),n.push(d.prefix),r.push(p),c=c.concat(d.varNames)}this.fill=function(e){if(e&&"function"!=typeof e){var t=e;e=function(e){return t[e]}}for(var n=r[0],i=0;i<a.length;i++){n+=(0,a[i])(e),n+=r[i+1]}return n},this.fromUri=function(e,t){t=t||{};for(var i={},o=0;o<r.length;o++){var a=r[o];if(e.substring(0,a.length)!==a)return;if(e=e.substring(a.length),o>=r.length-1){if(""==e)break;return}var c=n[o];if(!c||e.substring(0,c.length)===c){for(var l=r[o+1],u=o;;){if(u==r.length-2){var p=e.substring(e.length-l.length);if(p!==l)return;var d=e.substring(0,e.length-l.length);e=p}else if(l){var h=e.indexOf(l);d=e.substring(0,h);e=e.substring(h)}else if(n[u+1]){-1===(h=e.indexOf(n[u+1]))&&(h=e.length);d=e.substring(0,h);e=e.substring(h)}else{if(r.length>u+2){u++,l=r[u+1];continue}d=e;e=""}break}if(!s[o](d,i,t.strict))return}}return i},this.varNames=c,this.template=e}return o.prototype={toString:function(){return this.template},fillFromObject:function(e){return this.fill(e)},test:function(e,t){return!!this.fromUri(e,t)}},o}))}(F);var B=F.exports;const G="application/json",U="application/json-patch+json";var z;function V(e,t){if(void 0===e)return!0;if(Object(e)!==e)return!1;const r=Object.keys(e).some((t=>{const r=e[t];return Array.isArray(r)?r.some((({href:e})=>"string"!=typeof e)):"string"!=typeof r.href}));if(r)return!1;if(t){const r=Object.keys(t).every((r=>function(e,t,r){try{const n=Y(e,t),i=B(n);return r.every((e=>-1!==i.varNames.indexOf(e)))}catch(e){return!1}}(e,r,t[r])));if(!r)return!1}return!0}function H(e,t){let r=e&&e[t];if(!r||Array.isArray(r)&&0===r.length)throw v.create(n.BAD_REQUEST,`Missing link for relationship type: ${t}.`);return Array.isArray(r)&&(r=r[0]),r}function Y(e,t){return H(e,t).href}function W(e,t,r={}){const n=Y(e,t),i=B(n);return i&&i.fill(r)}!function(e){e.PRIMARY="http://ns.adobe.com/adobecloud/rel/primary",e.ID="http://ns.adobe.com/adobecloud/rel/id",e.PATH="http://ns.adobe.com/adobecloud/rel/path",e.RENDITION="http://ns.adobe.com/adobecloud/rel/rendition",e.COMPONENT_RENDITION="http://ns.adobe.com/adobecloud/rel/componentRendition",e.MANIFEST="http://ns.adobe.com/adobecloud/rel/manifest",e.QUOTA="http://ns.adobe.com/adobecloud/rel/quota",e.COMPONENT="http://ns.adobe.com/adobecloud/rel/component",e.PAGE="http://ns.adobe.com/adobecloud/rel/page",e.DISCARD="http://ns.adobe.com/adobecloud/rel/discard",e.RESTORE="http://ns.adobe.com/adobecloud/rel/restore",e.DIRECTORY="http://ns.adobe.com/adobecloud/rel/directory",e.DIRECTORY_BASE="http://ns.adobe.com/adobecloud/rel/directory/base",e.AC_EFFECTIVE="http://ns.adobe.com/adobecloud/rel/ac/effective",e.AC_POLICY="http://ns.adobe.com/adobecloud/rel/ac/policy",e.AC_CHECK="http://ns.adobe.com/adobecloud/rel/ac/check",e.CREATE="http://ns.adobe.com/adobecloud/rel/create",e.REPOSITORY="http://ns.adobe.com/adobecloud/rel/repository",e.RESOLVE_ID="http://ns.adobe.com/adobecloud/rel/resolve/id",e.RESOLVE_PATH="http://ns.adobe.com/adobecloud/rel/resolve/path",e.OPS="http://ns.adobe.com/adobecloud/rel/ops",e.BLOCK_INITIALIZE="http://ns.adobe.com/adobecloud/rel/block/init",e.BLOCK_TRANSFER="http://ns.adobe.com/adobecloud/rel/block/transfer",e.BLOCK_FINALIZE="http://ns.adobe.com/adobecloud/rel/block/finalize",e.REPO_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/repository",e.APP_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/application",e.EMBEDDED_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/embedded",e.PERUSER_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/peruser",e.ANNOTATIONS="http://ns.adobe.com/adobecloud/rel/annotations",e.DOWNLOAD="http://ns.adobe.com/adobecloud/rel/download",e.DESCRIBED_BY="describedBy",e.VERSION="version-history",e.SUBSCRIPTION_CREATE="subscription/create",e.NOTIFICATIONS_LONGPOLL="notifications/longpoll",e.ONS_CHANGELOG="ons/changelog",e.REPOSITORIES_PAGE="http://ns.adobe.com/repositories/rel/page",e.TEAMS_CREATE="http://ns.adobe.com/teams/rel/create",e.TEAMS_DISCARD="http://ns.adobe.com/teams/rel/discard",e.TEAMS_RESTORE="http://ns.adobe.com/teams/rel/restore",e.TEAMS_RENAME="http://ns.adobe.com/teams/rel/rename",e.TEAMS_PROPERTIES="http://ns.adobe.com/teams/rel/properties",e.TEAMS_PAGE="http://ns.adobe.com/teams/rel/page",e.TEAMS_PRIMARY="http://ns.adobe.com/teams/rel/primary",e.TEAM_PROVISION="http://ns.adobe.com/teams/rel/provision",e.WORKSPACES_CONTEXT="http://ns.adobe.com/ccprojects/rel/context",e.WORKSPACES_BOOKMARKS_BATCH="http://ns.adobe.com/ccprojects/rel/bookmarks/batch",e.WORKSPACES_PRIMARY="http://ns.adobe.com/ccprojects/rel/primary",e.WORKSPACES_CREATE="http://ns.adobe.com/ccprojects/rel/create",e.WORKSPACES_PAGE="http://ns.adobe.com/ccprojects/rel/page",e.PROJECTS_LIBRARIES_PAGE="http://ns.adobe.com/ccprojects/rel/libraries/page",e.PROJECTS_LIBRARIES_CREATE="http://ns.adobe.com/ccprojects/rel/libraries/create",e.PROJECTS_LIBRARIES_BATCH="http://ns.adobe.com/ccprojects/rel/libraries/batch",e.GENERIC_PAGE="page",e.GENERIC_NEXT="next",e.ATS_MOVE="http://ns.adobe.com/ats/rel/move",e.REVIEW_SERVICE_PROVISION="http://ns.adobe.com/ccassetreview/rel/provision",e.REVIEW_SERVICE_DISCARD="http://ns.adobe.com/ccassetreview/rel/discard",e.REVIEW_SERVICE_OUTPUTS="http://ns.adobe.com/ccassetreview/rel/outputs",e.REVIEW_SERIVCE_HAS_OUTPUTS="http://ns.adobe.com/ccassetreview/rel/hasoutputs",e.PROJECTS_CONTEXT="http://ns.adobe.com/projects/rel/context",e.PROJECTS_PRIMARY="http://ns.adobe.com/projects/rel/primary",e.PROJECTS_COLLECTION="http://ns.adobe.com/projects/rel/collection",e.PROJECTS_CREATE="http://ns.adobe.com/projects/rel/create",e.PROJECTS_RENAME="http://ns.adobe.com/projects/rel/rename",e.PROJECTS_CREATOR="http://ns.adobe.com/projects/rel/creator",e.PROJECTS_GRADIENTS_COLLECTION="http://ns.adobe.com/gradients/rel/collection",e.PROJECTS_CAPABILITY="http://ns.adobe.com/projects/rel/capability",e.ASSIGNMENTS_ASSIGN="http://ns.adobe.com/assignments/rel/assign",e.ASSIGNMENTS_COLLECTION="http://ns.adobe.com/assignments/rel/collection",e.ASSIGNMENTS_CREATE="http://ns.adobe.com/assignments/rel/create",e.ASSIGNMENTS_PRIMARY="http://ns.adobe.com/assignments/rel/primary",e.ASSIGNMENTS_RETURN="http://ns.adobe.com/assignments/rel/return",e.ASSIGNMENTS_START="http://ns.adobe.com/assignments/rel/start",e.ASSIGNMENTS_SUBMIT="http://ns.adobe.com/assignments/rel/submit"}(z||(z={}));function $(e){const t=e&&e.get("Retry-After");if(t)try{const e=parseInt(t,10);if(e)return Math.max(0,e);const r=Date.parse(t);if(r){const e=Date.now(),t=Math.max(0,r-e)/1e3;return t+Math.floor(30*Math.random())}}catch(e){}return 0}function K(e,t){return B(`${e}{?queryParams*}`).fillFromObject({queryParams:t})}var q=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,X=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,J=/\s|\uFEFF|\xA0/,Q=/\r?\n[\x20\x09]+/g,ee=/[;,"]/,te=/[;,"]|\s/,re=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,ne=1,ie=2,oe=4;function ae(e){return e.replace(X,"")}function se(e){return J.test(e)}function ce(e,t){for(;se(e[t]);)t++;return t}function le(e){return te.test(e)||!re.test(e)}class ue{constructor(e){this.refs=[],e&&this.parse(e)}rel(e){for(var t=[],r=e.toLowerCase(),n=0;n<this.refs.length;n++)this.refs[n].rel.toLowerCase()===r&&t.push(this.refs[n]);return t}get(e,t){e=e.toLowerCase();for(var r=[],n=0;n<this.refs.length;n++)this.refs[n][e]===t&&r.push(this.refs[n]);return r}set(e){return this.refs.push(e),this}setUnique(e){return this.refs.some((t=>{return r=t,n=e,Object.keys(r).length===Object.keys(n).length&&Object.keys(r).every((e=>e in n&&r[e]===n[e]));var r,n}))||this.refs.push(e),this}has(e,t){e=e.toLowerCase();for(var r=0;r<this.refs.length;r++)if(this.refs[r][e]===t)return!0;return!1}parse(e,t){e=ae(e=(t=t||0)?e.slice(t):e).replace(Q,"");for(var r=ne,n=e.length,i=(t=0,null);t<n;)if(r===ne){if(se(e[t])){t++;continue}if("<"!==e[t])throw new Error('Unexpected character "'+e[t]+'" at offset '+t);if(null!=i&&(null!=i.rel?this.refs.push(...ue.expandRelations(i)):this.refs.push(i)),-1===(s=e.indexOf(">",t)))throw new Error("Expected end of URI delimiter at offset "+t);i={uri:e.slice(t+1,s)},t=s,r=ie,t++}else if(r===ie){if(se(e[t])){t++;continue}if(";"===e[t])r=oe,t++;else{if(","!==e[t])throw new Error('Unexpected character "'+e[t]+'" at offset '+t);r=ne,t++}}else{if(r!==oe)throw new Error('Unknown parser state "'+r+'"');if(";"===e[t]||se(e[t])){t++;continue}if(-1===(s=e.indexOf("=",t)))throw new Error("Expected attribute delimiter at offset "+t);var o=ae(e.slice(t,s)).toLowerCase(),a="";if('"'===e[t=ce(e,t=s+1)])for(t++;t<n;){if('"'===e[t]){t++;break}"\\"===e[t]&&t++,a+=e[t],t++}else{for(var s=t+1;!ee.test(e[s])&&s<n;)s++;a=e.slice(t,s),t=s}switch(i[o]&&ue.isSingleOccurenceAttr(o)||("*"===o[o.length-1]?i[o]=ue.parseExtendedValue(a):(a="type"===o?a.toLowerCase():a,null!=i[o]?Array.isArray(i[o])?i[o].push(a):i[o]=[i[o],a]:i[o]=a)),e[t]){case",":r=ne;break;case";":r=oe}t++}return null!=i&&(null!=i.rel?this.refs.push(...ue.expandRelations(i)):this.refs.push(i)),i=null,this}toString(){for(var e=[],t="",r=null,n=0;n<this.refs.length;n++)r=this.refs[n],t=Object.keys(this.refs[n]).reduce((function(e,t){return"uri"===t?e:e+"; "+ue.formatAttribute(t,r[t])}),"<"+r.uri+">"),e.push(t);return e.join(", ")}}ue.isCompatibleEncoding=function(e){return q.test(e)},ue.parse=function(e,t){return(new ue).parse(e,t)},ue.isSingleOccurenceAttr=function(e){return"rel"===e||"type"===e||"media"===e||"title"===e||"title*"===e},ue.isTokenAttr=function(e){return"rel"===e||"type"===e||"anchor"===e},ue.escapeQuotes=function(e){return e.replace(/"/g,'\\"')},ue.expandRelations=function(e){return e.rel.split(" ").map((function(t){var r=Object.assign({},e);return r.rel=t,r}))},ue.parseExtendedValue=function(e){var t=/([^']+)?(?:'([^']*)')?(.+)/.exec(e);return{language:t[2].toLowerCase(),encoding:ue.isCompatibleEncoding(t[1])?null:t[1].toLowerCase(),value:ue.isCompatibleEncoding(t[1])?decodeURIComponent(t[3]):t[3]}},ue.formatExtendedAttribute=function(e,t){var r=(t.encoding||"utf-8").toUpperCase();return e+"="+r+"'"+(t.language||"en")+"'"+(Buffer.isBuffer(t.value)&&ue.isCompatibleEncoding(r)?t.value.toString(r):Buffer.isBuffer(t.value)?t.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):encodeURIComponent(t.value))},ue.formatAttribute=function(e,t){return Array.isArray(t)?t.map((t=>ue.formatAttribute(e,t))).join("; "):"*"===e[e.length-1]||"string"!=typeof t?ue.formatExtendedAttribute(e,t):(ue.isTokenAttr(e)?t=le(t)?'"'+ue.escapeQuotes(t)+'"':ue.escapeQuotes(t):le(t)&&(t='"'+(t=(t=encodeURIComponent(t)).replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"))+'"'),e+"="+t)};var pe=ue;class de{constructor(e,t,r,n,i){this.url=e,this.headers=t,this.status=r,this.statusText=n,this._text=i}get ok(){const e=this.status;return e>=200&&e<=299}get redirected(){return!1}get type(){return"basic"}json(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",JSON.parse(e._text));case 4:throw t.prev=4,t.t0=t.catch(0),v.create(n.INTERNAL_ERROR,`Failed to parse JSON response from '${e.url}' async request.`,{underlyingError:t.t0});case 7:case"end":return t.stop()}}),t,null,[[0,4]])})))()}text(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._text);case 1:case"end":return t.stop()}}),t)})))()}get trailer(){throw v.create(n.UNSUPPORTED,"AsyncResponse.trailer not implemented.")}clone(){const e=new Headers;return this.headers.forEach(((t,r)=>e.set(r,t))),new de(this.url,e,this.status,this.statusText,this._text)}get bodyUsed(){throw v.create(n.UNSUPPORTED,"AsyncResponse.bodyUsed not implemented.")}get body(){throw v.create(n.UNSUPPORTED,"AsyncResponse.body not implemented.")}arrayBuffer(){return d(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw v.create(n.UNSUPPORTED,"AsyncResponse.arrayBuffer not implemented.");case 1:case"end":return e.stop()}}),e)})))()}blob(){return d(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw v.create(n.UNSUPPORTED,"AsyncResponse.blob not implemented.");case 1:case"end":return e.stop()}}),e)})))()}formData(){return d(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw v.create(n.UNSUPPORTED,"AsyncResponse.formData not implemented.");case 1:case"end":return e.stop()}}),e)})))()}}const he=function(){let e=33;const t=["^(["];for(let r=34;r<=127;++r)127!==r&&-1==='()<@,;:"/[]={}'.indexOf(String.fromCharCode(r))||(t.push("\\"+e.toString(8)),e<r-1&&t.push("-\\"+(r-1).toString(8)),e=r+1);return t.push("]+):(.*)$"),new RegExp(t.join(""))}(),fe=/^[^\s]+\s+(\d+)\s*(.*)$/;class me{constructor(e){this._text=e,this._index=0}readLine(){const e=this._index,t=this._text,r=t.indexOf("\n",e);if(-1===r)return;this._index=r+"\n".length;let n=t.slice(e,r);return n.endsWith("\r")&&(n=n.slice(0,-1)),n}get remainderText(){return this._text.slice(this._index)}}function ge(e,t){if(!t)throw v.create(n.INTERNAL_ERROR,"Invalid async response body.");const r=new me(t);let i,o;const a=r.readLine();if(a){const e=a.match(fe);if(!e)throw v.create(n.INTERNAL_ERROR,"Invalid status line for async response.");if(i=parseInt(e[1],10),!i)throw v.create(n.INTERNAL_ERROR,"Could not find status code for async response.");o=e[2]}else i=200,o="";const s=[];let c;for(;;){const e=r.readLine();if(!e)break;const t=e.match(he);t?(c=t[1],s.push([c,t[2]])):c&&s.push([c,e])}return new de(e,new Headers(s),i,o,r.remainderText)}const ve=[200],ye=[429,500,502,503,504];class be{constructor(e){this._core=e,this._useHighPriorityRequestsIfEnabled=!1,this._sharedResponses=new Map}_fetch(e,t={successResponseCodes:ve},r=0){var n=this;return d(u().mark((function i(){var o,a,s,c,l,p,d,h,f;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=t.additionalRetryErrorCodes,a=t.successResponseCodes,s=void 0===a?ve:a,c=_(t,["additionalRetryErrorCodes","successResponseCodes"]),l=[...ye,...o||[]],i.next=4,n._getFetchOptionOverrides(e,c);case 4:return p=i.sent,i.next=7,n._core._environment.fetch(p.href,p.options);case 7:if(d=i.sent,202!==(h=d.status)){i.next=13;break}return i.next=12,n._monitorResponse(d);case 12:d=i.sent;case 13:if(!(h>=400&&$(d.headers)||l.includes(h))){i.next=25;break}if(!(r<5)){i.next=24;break}return f=n._getRetryErrorDelay(d,r),n._core._environment.log(`Retryable error ${h} retrying in ${f}ms, ${r} retries so far`),i.next=19,new Promise((e=>setTimeout(e,f)));case 19:return i.next=21,n._fetch(e,t,r+1);case 21:return i.abrupt("return",i.sent);case 24:n._core._environment.log(`Retryable error ${h} attempt ${r} exceeded 5 retries`);case 25:return"any"!==s&&n._checkResponseStatus(d,e,s),i.abrupt("return",d);case 27:case"end":return i.stop()}}),i)})))()}_checkResponseStatus(e,t,r){if(!r.includes(e.status)){const r=v.createWithResponse(e,t);throw this._core._environment.error(`InterfaceBase error ${r}`),r}}_monitorResponse(e){var t=this;return d(u().mark((function r(){var i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=e.headers.get("location")){r.next=10;break}return r.next=4,e.json();case 4:if(o=r.sent){r.next=7;break}throw v.create(n.BAD_REQUEST,"Failed to parse content for 202 monitor response.");case 7:if(i=o.href){r.next=10;break}throw v.create(n.BAD_REQUEST,"Missing href property for 202 monitor response.");case 10:return a=t._getMonitorRetryAfter(e.headers),r.abrupt("return",t._fetchMonitorResponse(e.url,i,a));case 12:case"end":return r.stop()}}),r)})))()}_fetchMonitorResponse(e,t,r){var n=this;return d(u().mark((function i(){var o,a,s;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!r){i.next=3;break}return i.next=3,new Promise((e=>setTimeout(e,r)));case 3:return i.next=5,n._core._environment.fetch(t);case 5:return o=i.sent,i.next=8,o.text();case 8:if(a=i.sent,!n._shouldRetryMonitorResponse(o,a)){i.next=13;break}return s=n._getMonitorRetryAfter(o.headers),i.abrupt("return",n._fetchMonitorResponse(e,t,s));case 13:return i.abrupt("return",ge(e,a));case 14:case"end":return i.stop()}}),i)})))()}_shouldRetryMonitorResponse(e,t){return 202===e.status}_getMonitorRetryAfter(e){return 1e3*$(e)||this._core._environment.getValue("ASYNC_DEFAULT_DELAY")}_getRetryErrorDelay(e,t){const r=this._core._environment.getValue("MIN_RETRY_INTERVAL"),n=this._core._environment.getValue("MAX_RETRY_INTERVAL");return function(e,t,r){return void 0!==t&&e<t?t:void 0!==r&&e>r?r:e}(1e3*(e&&$(e.headers)||Math.pow(2,t)),r,n)}_doGet(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._fetch(e,Object.assign({method:"GET",successResponseCodes:ve},t)));case 1:case"end":return n.stop()}}),n)})))()}_doHead(e,t={}){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._fetch(e,{method:"HEAD",headers:t}));case 1:case"end":return n.stop()}}),n)})))()}_doPost(e,t={},r,n=[201],i=!1){var o=this;return d(u().mark((function a(){return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",o._fetch(e,{method:"POST",headers:t,noOtherHeaders:i,body:r,successResponseCodes:n}));case 1:case"end":return a.stop()}}),a)})))()}_doPatch(e,t={},r,n=[200]){var i=this;return d(u().mark((function o(){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",i._fetch(e,{method:"PATCH",headers:t,body:r,successResponseCodes:n}));case 1:case"end":return o.stop()}}),o)})))()}_doPut(e,t={},r,n=[201],i=!1){var o=this;return d(u().mark((function a(){return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",o._fetch(e,{method:"PUT",headers:t,body:r,noOtherHeaders:i,successResponseCodes:n}));case 1:case"end":return a.stop()}}),a)})))()}_doDelete(e,t={},r=[200],n=!1){var i=this;return d(u().mark((function o(){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",i._fetch(e,{method:"DELETE",headers:t,noOtherHeaders:n,successResponseCodes:r}));case 1:case"end":return o.stop()}}),o)})))()}_getResponse(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doGet(e,t);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}_getSharedResponse(e,t={}){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(i=r._sharedResponses.get(e))||(i=r._getResponse(e,{headers:t}),r._sharedResponses.set(e,i),i.finally((()=>r._sharedResponses.delete(e)))),n.abrupt("return",i);case 3:case"end":return n.stop()}}),n)})))()}_getPagedResponse(e,t={}){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getResponse(e,t);case 2:if(a=n.sent,!(null===(i=null==a?void 0:a._page)||void 0===i?void 0:i.next)||!(null===(o=null==a?void 0:a._links)||void 0===o?void 0:o[z.PAGE])){n.next=8;break}return s=B(a._links[z.PAGE].href),c=s.fill(Object.assign(Object.assign({},a._page),{start:a._page.next,resource:z.PRIMARY})),l=()=>r._getPagedResponse(c,t),n.abrupt("return",{result:a,next:l});case 8:return n.abrupt("return",{result:a});case 9:case"end":return n.stop()}}),n)})))()}_getAllPages(e,t={}){let r;const n=function(){var e=d(u().mark((function e(t){var i,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:if(i=e.sent,o=i&&i.result&&i.result.children){e.next=6;break}return e.abrupt("return",r);case 6:return r?r.children=r.children.concat(o):r=i.result,e.abrupt("return",i.next?n(i.next):r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return n((()=>this._getPagedResponse(e,t)))}_getLinksFromHeaders(e){const t=e&&e.get("Link");if(!t)throw v.create(n.UNKNOWN,"HEAD request did not return link header");const r=pe.parse(t);return r&&r.refs.reduce(((e,t)=>{var r=t.rel,n=t.uri,i=_(t,["rel","uri"]);return r&&(e[r]=e[r]||[],e[r].push(Object.assign({href:n},i))),e}),{})}_getETagFromHeaders(e){return e.get("ETag")}_getFetchOptionOverrides(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r._useHighPriorityRequestsIfEnabled&&r._core._environment.getValue("HIGH_PRIORITY_RAPI_REQUESTS")&&(e=e.includes("platform-cs-edge")?e:e.replace("platform-cs","platform-cs-edge"),t.headers=Object.assign(Object.assign({},t.headers||{}),{Priority:"u=1"})),(i=r._core._environment.getValue("ADMIN_MODE_ORG_ID"))&&(t.headers=Object.assign(Object.assign({},t.headers||{}),{"X-ACP-ADMIN-PRIVILEGES":i})),n.abrupt("return",{href:e,options:t});case 4:case"end":return n.stop()}}),n)})))()}}var _e=(e,t,r)=>{const n=Symbol(`@retry ${t}`),i=r.value;r.value=d(u().mark((function e(o=0){var a,s,c,l,p,d;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(c=this[n])&&(clearTimeout(c),this[n]=void 0),e.prev=2,e.next=5,i.call(this);case 5:e.next=14;break;case 7:e.prev=7,e.t0=e.catch(2),l=0,p=null===(a=e.t0._additionalInfo)||void 0===a?void 0:a.response,ye.includes(null==p?void 0:p.status)?l=this._core._environment.getValue("MAX_RETRY_INTERVAL")||2e4:(d=(null===(s=e.t0._additionalInfo)||void 0===s?void 0:s.response)?1e3*$(e.t0._additionalInfo.response.headers):0,l=Math.max(this._core._environment.getRetryInterval(o),d)),this._core._environment.log(`Retrying ${t} in ${l}ms`),this[n]=setTimeout((()=>r.value.call(this,o+1)),l);case 14:case"end":return e.stop()}}),e,this,[[2,7]])})))},Ee=(e,t,r)=>{const i=Symbol(`@synchronized ${t}`),o=r.value;if(!o)throw v.create(n.BAD_REQUEST,"@synchronized decorator can only be applied to a method");r.value=d(u().mark((function e(...r){var n,a,s,c,l,p;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=null===(n=this[I])||void 0===n?void 0:n.get(t),s=void 0===a?"default":r[a],c=this[i]||(this[i]=new Map);case 3:if(!(l=c.get(s))){e.next=12;break}return e.prev=5,e.next=8,l;case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(5);case 12:if(l){e.next=3;break}case 13:return c.set(s,new Promise((e=>p=e))),e.prev=14,e.next=17,o.apply(this,r);case 17:return e.abrupt("return",e.sent);case 18:return e.prev=18,c.delete(s),p&&p(),e.finish(18);case 22:case"end":return e.stop()}}),e,this,[[5,10],[14,,18,22]])})))};function we(){}function Le(){Le.init.call(this)}function xe(e){return void 0===e._maxListeners?Le.defaultMaxListeners:e._maxListeners}function Se(e,t,r){if(t)e.call(r);else for(var n=e.length,i=De(e,n),o=0;o<n;++o)i[o].call(r)}function Oe(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=De(e,i),a=0;a<i;++a)o[a].call(r,n)}function Te(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,a=De(e,o),s=0;s<o;++s)a[s].call(r,n,i)}function Ie(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var a=e.length,s=De(e,a),c=0;c<a;++c)s[c].call(r,n,i,o)}function Pe(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=De(e,i),a=0;a<i;++a)o[a].apply(r,n)}function Ce(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]):(o=e._events=new we,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=xe(e))&&i>0&&a.length>i){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=r,++e._eventsCount;return e}function Ae(e,t,r){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,r.apply(e,arguments))}return i.listener=r,i}function ke(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function De(e,t){for(var r=new Array(t);t--;)r[t]=e[t];return r}we.prototype=Object.create(null),Le.EventEmitter=Le,Le.usingDomains=!1,Le.prototype.domain=void 0,Le.prototype._events=void 0,Le.prototype._maxListeners=void 0,Le.defaultMaxListeners=10,Le.init=function(){this.domain=null,Le.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new we,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Le.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Le.prototype.getMaxListeners=function(){return xe(this)},Le.prototype.emit=function(e){var t,r,n,i,o,a,s,c="error"===e;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(r=a[e]))return!1;var u="function"==typeof r;switch(n=arguments.length){case 1:Se(r,u,this);break;case 2:Oe(r,u,this,arguments[1]);break;case 3:Te(r,u,this,arguments[1],arguments[2]);break;case 4:Ie(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];Pe(r,u,this,i)}return!0},Le.prototype.addListener=function(e,t){return Ce(this,e,t,!1)},Le.prototype.on=Le.prototype.addListener,Le.prototype.prependListener=function(e,t){return Ce(this,e,t,!0)},Le.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Ae(this,e,t)),this},Le.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Ae(this,e,t)),this},Le.prototype.removeListener=function(e,t){var r,n,i,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener&&r.listener===t)0==--this._eventsCount?this._events=new we:(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new we,this;delete n[e]}else!function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i);n.removeListener&&this.emit("removeListener",e,a||t)}return this},Le.prototype.off=function(e,t){return this.removeListener(e,t)},Le.prototype.removeAllListeners=function(e){var t,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new we,this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=new we:delete r[e]),this;if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new we,this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},Le.prototype.listeners=function(e){var t,r,n=this._events;return r=n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):[],r},Le.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):ke.call(e,t)},Le.prototype.listenerCount=ke,Le.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};const Ne="observed",Re="unobserved";class Me extends Le{dispatch(e,t){return super.emit(e.type,e,this,t)}once(e,t){const r=super.once(e,t);return this._onEventListenerAdded(),r}on(e,t){if(this.listeners(e).includes(t))return this;const r=super.on(e,t);return e!==Ne&&e!==Re&&(this._onEventListenerAdded(),1===this.listenerCount(e)&&this.emit(Ne,e)),r}off(e,t){const r=super.off(e,t);return e!==Ne&&e!==Re&&(this._onEventListenerRemoved(),0===this.listenerCount(e)&&this.emit(Re,e)),r}_onEventListenerAdded(){}_onEventListenerRemoved(){}}class je{constructor(e){this._ref=e}get[Symbol.toStringTag](){return"WeakRef"}deref(){return this._ref}}var Ze="undefined"!=typeof WeakRef?WeakRef:je;function Fe(e){e.updateLastKnownClientMutation()}function Be(e,t){t.updateLastKnownClientMutation()}class Ge{constructor(e,t,r,n,i="fetch"){this._core=e,this._delegate=t,this.updateContext=r,this.mostRecentValidMutation=n,this.type=i}get hasChanges(){return Boolean(this._addedItems||this._changedItems||this._discardedItems)}get addedItems(){return this._addedItems&&Array.from(this._addedItems.values())}get changedItems(){return this._changedItems&&Array.from(this._changedItems.keys())}get discardedItems(){return this._discardedItems&&Array.from(this._discardedItems)}get changedItemsWithEvents(){return this._changedItems&&Array.from(this._changedItems)}checkIfItemAllowsMutations(e){const t=e.lastKnownClientMutation,r=this.mostRecentValidMutation;return!t||!r||t<r}ensureItemIsAdded(e){var t;const r=e.id;if((null===(t=this._addedItems)||void 0===t?void 0:t.get(r))===e)return;const n=this._delegate;(n.getLocalItemById(r)!==e||n.isItemDiscarded(e))&&this.queueAddedItem(e)}reindexItem(e,t,r){e._setId(r),this.queueChangedItem(e,[R]),this._delegate.reindexItem(e,t,r)}queueAddedItem(e){var t;let r=this._addedItems;r||(r=new Map,this._addedItems=r),r.set(e.id,e),null===(t=this._changedItems)||void 0===t||t.delete(e)}queueChangedItem(e,t=[R]){var r;if(null===(r=this._addedItems)||void 0===r?void 0:r.has(e.id))return;let n=this._changedItems;n||(n=new Map,this._changedItems=n);let i=n.get(e);i||(i=new Set,n.set(e,i)),t.forEach((e=>null==i?void 0:i.add(e)))}queueDiscardedItem(e){let t=this._discardedItems;t||(t=new Set,this._discardedItems=t),t.add(e)}getItemById(e){var t;return(null===(t=this._addedItems)||void 0===t?void 0:t.get(e))||this._delegate.getLocalItemById(e)}commit(){var e,t;this._delegate.commitUpdateSession(this);const r=this._changedItems;if(r){var n,i=s(r.entries());try{for(i.s();!(n=i.n()).done;){const e=a(n.value,2),t=e[0];var o,c=s(e[1]);try{for(c.s();!(o=c.n()).done;){const e=o.value;t.dispatch(e)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){i.e(e)}finally{i.f()}}"mutation"===this.type&&(null===(e=this._addedItems)||void 0===e||e.forEach(Fe),null===(t=this._discardedItems)||void 0===t||t.forEach(Fe),null==r||r.forEach(Be))}}var Ue={exports:{}},ze="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(ze){var Ve=new Uint8Array(16);Ue.exports=function(){return ze(Ve),Ve}}else{var He=new Array(16);Ue.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),He[t]=e>>>((3&t)<<3)&255;return He}}for(var Ye=[],We=0;We<256;++We)Ye[We]=(We+256).toString(16).substr(1);var $e,Ke,qe=function(e,t){var r=t||0,n=Ye;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")},Xe=Ue.exports,Je=qe,Qe=0,et=0;var tt=function(e,t,r){var n=t&&r||0,i=t||[],o=(e=e||{}).node||$e,a=void 0!==e.clockseq?e.clockseq:Ke;if(null==o||null==a){var s=Xe();null==o&&(o=$e=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Ke=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:(new Date).getTime(),l=void 0!==e.nsecs?e.nsecs:et+1,u=c-Qe+(l-et)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>Qe)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Qe=c,et=l,Ke=a;var p=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;i[n++]=p>>>24&255,i[n++]=p>>>16&255,i[n++]=p>>>8&255,i[n++]=255&p;var d=c/4294967296*1e4&268435455;i[n++]=d>>>8&255,i[n++]=255&d,i[n++]=d>>>24&15|16,i[n++]=d>>>16&255,i[n++]=a>>>8|128,i[n++]=255&a;for(var h=0;h<6;++h)i[n+h]=o[h];return t||Je(i)},rt=Ue.exports,nt=qe;var it=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||rt)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[n+o]=i[o];return t||nt(i)},ot=tt,at=it,st=at;st.v1=ot,st.v4=at;var ct,lt=st;function ut(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():lt.v4()}function pt(e,t){return e===t?"subset":e&&t?e.hash===t.hash||"everything"===t.hash?"subset":"everything"===e.hash?"unknown":e.getRelationToFilter(t):e?"subset":"unknown"}!function(e){e[e.NotStarted=1]="NotStarted",e[e.HadLoaderErrors=2]="HadLoaderErrors",e[e.Loading=3]="Loading",e[e.ReadyHasMorePages=4]="ReadyHasMorePages",e[e.ReadyFullyLoaded=5]="ReadyFullyLoaded"}(ct||(ct={}));const dt="loaderStateChanged";class ht extends D{constructor(e=!1){super(dt),this.hasUpdatedItems=e}}const ft=new ht(!1),mt=new ht(!0);class gt{constructor(){this.startedGeneration=0,this.loadedGeneration=0}}class vt extends Me{constructor(e,t,r,n){super(),this._loader=e,this._order=t,this._filter=r,this._implicitFilter=n,this.status=ct.NotStarted,this._pages=[],this._generation=0,this._nextPageIndex=0,this._loadAllPages=!1}get mostRecentValidMutation(){return this._mostRecentValidMutation}load(e,t,r){var n=this;return d(u().mark((function i(){return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n._loadAllPages=t,n._generation=e,n._nextPageCallback=void 0,n._nextPageIndex=0,n._pendingLoad=void 0,i.next=7,n._loadPage(r);case 7:case"end":return i.stop()}}),i)})))()}loadNextPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:case"end":return r.stop()}}),r)})))()}loadAllPages(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._loadAllPages=!0,r.next=3,t._loadPage(e);case 3:case"end":return r.stop()}}),r)})))()}collectAllItems(e){var t,r=s(this._pages);try{for(r.s();!(t=r.n()).done;){const r=t.value;if(r&&r.items){var n,i=s(r.items);try{for(i.s();!(n=i.n()).done;){const t=n.value;e.add(t)}}catch(e){i.e(e)}finally{i.f()}}}}catch(e){r.e(e)}finally{r.f()}}_ensurePage(e){let t=this._pages[e];return t||(t=new gt,this._pages[e]=t),t}_loadPage(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(n=t._pendingLoad)||(n=t._loadPageImpl(e),t._pendingLoad=n),r.next=4,n;case 4:t._pendingLoad===n&&(t._pendingLoad=void 0);case 5:case"end":return r.stop()}}),r)})))()}_loadPageImpl(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c,l,p,d;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._nextPageCallback,!(i=t._nextPageIndex)||n){r.next=4;break}return r.abrupt("return");case 4:if(o=t._ensurePage(i),a=t._generation,!(o.startedGeneration>=a)){r.next=8;break}return r.abrupt("return");case 8:if(s=o.startedGeneration,o.startedGeneration=a,t.error=null,t._updateStatus(ct.Loading),r.prev=12,p=null!=e?e:o.limit,d={order:t._order,implicitFilter:t._implicitFilter,filter:t._filter,limit:p},!n){r.next=22;break}return r.next=18,n(d);case 18:c=r.sent,t._nextPageCallback=void 0,r.next=26;break;case 22:return r.next=24,t._loader.loadPage(d);case 24:c=r.sent,t._mostRecentValidMutation=c.mostRecentValidMutation;case 26:o.limit=p,r.next=32;break;case 29:r.prev=29,r.t0=r.catch(12),l=r.t0;case 32:if(!(o.loadedGeneration>=a)){r.next=34;break}return r.abrupt("return");case 34:if(!l){r.next=40;break}if(o.startedGeneration===a){r.next=37;break}return r.abrupt("return");case 37:o.startedGeneration=s,r.next=41;break;case 40:c&&(o.items=c.items.filter((e=>t._implicitFilter.matches(e)&&t._filter.matches(e))),t.total=c.total,o.loadedGeneration=a);case 41:if(!t._updateStatusAndLinkToNextPage(a,i,c,l)){r.next=45;break}return r.next=45,t._loadPageImpl(e);case 45:case"end":return r.stop()}}),r,null,[[12,29]])})))()}_updateStatusAndLinkToNextPage(e,t,r,n){if(this._generation!==e||this._nextPageIndex!==t)return r&&this.dispatch(mt),!1;if(!r)return this.error=n,this._updateStatus(ct.HadLoaderErrors),!1;this._nextPageIndex=t+1,this._nextPageCallback=r.loadNextPage,r.loadNextPage||this._pages.splice(this._nextPageIndex),this._updateStatus(r.loadNextPage?ct.ReadyHasMorePages:ct.ReadyFullyLoaded);const i=this._nextPageIndex<this._pages.length;return this._loadAllPages||i}_updateStatus(e){const t=e===ct.ReadyFullyLoaded||e===ct.ReadyHasMorePages;(t||e!==this.status)&&(this.status=e,this.dispatch(t?mt:ft))}}const yt="messageLogged",bt="configChanged";class _t extends Event{constructor(e){super("itemListStateChanged"),this.list=e}}class Et extends Event{constructor(e,t){super(yt),this.message=e,this.logLevel=t}}const wt="collaborator_changed";const Lt=new class extends D{constructor(){super(wt)}},xt={SHELL_VISIBILITY:"shell:visibility",CC_INHERITED:"cc:inherited",REVIEW_SOURCE_ASSET:"review:sourceAsset",CONVERTED_TO:"convertedTo",NON_AUTO_MIGRATABLE:"ccx:nonAutoMigratableCopiedFromId",COPIED_IN_LEGACY_SPARK_TO:"ccx:copiedLegacySparkId",CC_INHERITABLE:"cc:inheritable",PROJECT_RENDITION:"project:rendition"},St={CC:"cc",CLASSROOM_ASSIGNMENTS:"assignment",CCX:"ccx"},Ot={HZ_DOCUMENT_METADATA:"hz:documentMetadata",CC_CREATED_FROM_UPLOAD:"cc:createdFromUpload"},Tt=Object.values(St).map((e=>`"${e}:"*`)),It=Object.values(xt).concat(Object.values(Ot)).filter((e=>{const t=e.split(":")[0];return!Object.values(St).includes(t)})).map((e=>'"'+e+'"')).concat(Tt),Pt=Object.values(xt).map((e=>"app_metadata$$"+e)).concat(Object.values(Ot).map((e=>"api:metadata/application$$"+e)));const Ct=Array.from(Object.values({COLLABORATION_METADATA:"collaboration_metadata",COLLABMETADATA_MINE:"collab_metadata#mine",REPO_CREATED_BY_CLIENT_ID:"repo:createdByClientId"}));function At(){return[...Pt,...Ct]}var kt;function Dt(e){const t=e[z.PRIMARY]||e["*"]||[],r=e[z.AC_POLICY]||e["*"]||[],n=e[z.DIRECTORY]||e["*"]||[],i=e[z.APP_METADATA]||e["*"]||[];let o=kt.None;return t.forEach((e=>{switch(e){case"ack":o|=kt.Ack;break;case"read":o|=kt.Read,n.includes("write")&&(o|=kt.Duplicate);break;case"write":o|=kt.Write,n.includes("write")&&(o|=kt.Rename,o|=kt.Discard,o|=kt.Restore);break;case"delete":n.includes("write")&&(o|=kt.Delete,o|=kt.Move)}})),r.includes("write")&&(o|=kt.Share),i.includes("read")&&(o|=kt.ReadAppMetadata),o}!function(e){e[e.None=0]="None",e[e.Ack=1]="Ack",e[e.Read=2]="Read",e[e.Write=4]="Write",e[e.Delete=8]="Delete",e[e.Share=16]="Share",e[e.Rename=32]="Rename",e[e.Move=64]="Move",e[e.Discard=128]="Discard",e[e.Restore=256]="Restore",e[e.Duplicate=512]="Duplicate",e[e.ReadAppMetadata=1024]="ReadAppMetadata",e[e.All=2046]="All"}(kt||(kt={}));const Nt={[z.PROJECTS_PRIMARY]:["assetId","embed"],[z.PROJECTS_COLLECTION]:["embed","limit","orderBy","start","view"],[z.PROJECTS_CREATE]:["embed"],[z.RESOLVE_PATH]:["path"],[z.PROJECTS_GRADIENTS_COLLECTION]:[],[z.PROJECTS_CONTEXT]:[]};var Rt,Mt,jt,Zt,Ft,Bt,Gt;function Ut(e){switch(e){case Mt.SWY:return"sharedWithYou";case Mt.Yours:return"yours";case Mt.Admin:return"admin";default:return}}!function(e){e.GRADIENT_ID="/project:rendition/gradientId"}(Rt||(Rt={})),function(e){e[e.All=0]="All",e[e.Yours=1]="Yours",e[e.SWY=2]="SWY",e[e.Admin=3]="Admin"}(Mt||(Mt={})),function(e){e.CREATE="create"}(jt||(jt={})),function(e){e[e.PENDING=0]="PENDING",e[e.CAN_LEAVE=1]="CAN_LEAVE",e[e.CANNOT_LEAVE_NO_COLLABORATORS=2]="CANNOT_LEAVE_NO_COLLABORATORS",e[e.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER=3]="CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER",e[e.CANNOT_LEAVE_LAST_COLLABORATOR=4]="CANNOT_LEAVE_LAST_COLLABORATOR",e[e.CANNOT_LEAVE_LAST_DIRECT_COLLABORATOR=5]="CANNOT_LEAVE_LAST_DIRECT_COLLABORATOR",e[e.CANNOT_LEAVE_IS_ADMIN_OF_PROJECT=6]="CANNOT_LEAVE_IS_ADMIN_OF_PROJECT",e[e.CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION=7]="CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION",e[e.CANNOT_LEAVE_IS_OWNER=8]="CANNOT_LEAVE_IS_OWNER"}(Zt||(Zt={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ALLOWED=1]="ALLOWED",e[e.ADMIN_DISABLED=2]="ADMIN_DISABLED",e[e.INVALID_REPOSITORY=3]="INVALID_REPOSITORY",e[e.NO_HOME_REPOSITORY=4]="NO_HOME_REPOSITORY"}(Ft||(Ft={})),function(e){e.DRAFT="draft",e.READY="ready",e.PUBLISHED="published",e.UNPUBLISHED="unpublished",e.QUEUED="queued",e.TRAINING="training",e.FAILED="failed",e.CANCELLED="cancelled",e.ALL="all"}(Bt||(Bt={})),function(e){e.MODIFY_DATE="modifyDate",e.CREATE_DATE="createDate",e.NAME="name"}(Gt||(Gt={}));const zt=new Set;function Vt(e,t){zt.has(e)||(console.warn("One time warning (%s): %s",e,t),zt.add(e))}class Ht{constructor(){}get hash(){return"everything"}matches(e){return void 0!==e}getRelationToFilter(e){return"subset"}}const Yt="status_changed",Wt="listChanged",$t="listFullyLoaded",Kt="LoaderUpdateContext";const qt=new class extends D{constructor(){super(Wt)}},Xt=new class extends D{constructor(){super(Yt)}};let Jt=0;class Qt extends Me{constructor(e,t,r,n,i=new Ht,o,a){var c;super(),c=this,this._itemPool=e,this.order=r,this.implicitFilter=n,this.filter=i,this._loadOptions=a,this._status=ct.NotStarted,this._items=[],this._generation=0,this._completedGeneration=0,this._loaderStates=[],this._lastFetchTime=0,this._needsRefresh=!1,this._itemUpdatesByGeneration=new Map,this._listId=ut(),this._onUnhandledPromiseError=e=>{var t;this._updateListStatusFromItemLoaderStates(),(null===(t=this._errors)||void 0===t?void 0:t.length)||(this._errors=[]),this._errors.push(e),this._status=ct.HadLoaderErrors,this.emit(Yt)},this._handlePendingLoad=d(u().mark((function e(){var t,r,n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=c._pendingLoad)){e.next=7;break}return r=t.loadAllPages,n=t.limit,c._pendingLoad=void 0,c._debug("_handlePendingLoad() awaiting _runLoaders for loaderState.load"),e.next=7,c._runLoaders((e=>e.load(c._generation,r,n)));case 7:case"end":return e.stop()}}),e)}))),this._onItemLoaderStateChanged=e=>{const t=e.hasUpdatedItems;this._cleanPreviousGenerationItemsIfNeeded(),t&&this._updateListItemsFromItemLoaderStates()},this._globalStateChangedEvent=new _t(this),this._itemPoolDelegate={onItemsUpdated:e=>{if(e.updateContext===Kt)return;let t=this._pendingNotifications;t||(t=[],this._pendingNotifications=t),t.push({generation:this._generation,event:e}),this._updateListItemsFromItemLoaderStates()}};var l,p=s(t);try{for(p.s();!(l=p.n()).done;){const e=l.value;if(e.supportsFilter&&!e.supportsFilter(i))continue;const t=new vt(e,r,i,n);t.on(dt,this._onItemLoaderStateChanged),this._loaderStates.push(t)}}catch(e){p.e(e)}finally{p.f()}o&&this._copyInitialItemsFrom(o),e.addDelegate(this._itemPoolDelegate,"list")}_debug(e){this._core._environment.debug(`[ItemList ${this._itemPool.type} ${this._listId.slice(-4)}] ${e}`)}_updateLoadOptions(e={}){var t,r;this._loadOptions||(this._loadOptions={}),this._loadOptions.limit&&e.limit&&this._loadOptions.limit<e.limit&&(this._loadOptions.limit=e.limit),!this._loadOptions.loadAllPages&&e.loadAllPages&&(this._loadOptions.loadAllPages=e.loadAllPages),-1!==e.refreshTimeout&&(-1===this._loadOptions.refreshTimeout||(null!==(t=this._loadOptions.refreshTimeout)&&void 0!==t?t:0)>=(null!==(r=e.refreshTimeout)&&void 0!==r?r:0))&&(this._loadOptions.refreshTimeout=e.refreshTimeout),this._loadAsync(Object.assign(Object.assign({},this._loadOptions),{refreshTimeout:-1===e.refreshTimeout?-1:this._loadOptions.refreshTimeout})).catch(this._onUnhandledPromiseError)}get type(){return this._itemPool.type}get generation(){return this._generation}get completedGeneration(){return this._completedGeneration}get hasLoaders(){return this._loaderStates.length>0}get lastFetchTime(){return this._lastFetchTime}get _core(){return this._itemPool._core}_copyInitialItemsFrom(e){const t=new Map,r=this.filter;var n,i=s(e.items);try{for(i.s();!(n=i.n()).done;){const e=n.value;this.implicitFilter.matches(e)&&r.matches(e)&&t.set(e,!0)}}catch(e){i.e(e)}finally{i.f()}this._generation=e.generation,this._completedGeneration=e.completedGeneration,this._itemUpdatesByGeneration.set(this._generation,t),e.status===ct.ReadyFullyLoaded&&"subset"===pt(r,e.filter)&&(this._status=ct.ReadyFullyLoaded,this._lastFetchTime=e.lastFetchTime),this._updateListItemsFromItemLoaderStates()}_applyListItemsFrom(e){if(e.status!==ct.ReadyFullyLoaded)throw v.create(n.INTERNAL_ERROR,"_applyListItems other list must be fully loaded");if("subset"!==pt(this.filter,e.filter))throw v.create(n.INTERNAL_ERROR,"_applyListItems other list must be subset");this._items=e.items.filter((e=>this.implicitFilter.matches(e)&&this.filter.matches(e))),this.order.sortItems(this._items),this._dispatchItemsChangedEvent(),this._status!==ct.ReadyFullyLoaded&&(this._status=ct.ReadyFullyLoaded,this._dispatchStateChangedEvents())}get status(){return this._loaderStates.length?this._status:ct.ReadyFullyLoaded}get errors(){return this._errors}get items(){return this._items}get total(){return this._total}_cleanPreviousGenerationItemsIfNeeded(){let e;var t,r=s(this._loaderStates);try{for(r.s();!(t=r.n()).done;){const r=t.value,n=r.status,i=r.mostRecentValidMutation;if(n!==ct.NotStarted&&r.status!==ct.HadLoaderErrors){if(n===ct.Loading||n===ct.ReadyHasMorePages)return;i&&(e=e?Math.min(e,i):i)}}}catch(e){r.e(e)}finally{r.f()}this._cleanPreviousGenerationItems(e)}_cleanPreviousGenerationItems(e){this._applyItemsChangedEvents();const t=this._generation;this._completedGeneration=t;const r=new Map;let n=!1,i=0;var o,c=s(this._itemUpdatesByGeneration);try{for(c.s();!(o=c.n()).done;){const c=a(o.value,2),p=c[0],d=c[1];if(!(p>=t)&&(n=!0,this._itemUpdatesByGeneration.delete(p),i=Math.max(i,p),e)){var l,u=s(d);try{for(u.s();!(l=u.n()).done;){const t=a(l.value,2),n=t[0],i=t[1],o=n.lastKnownClientMutation;(r.has(n)||o&&o>e)&&r.set(n,i)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){c.e(e)}finally{c.f()}r.size&&this._itemUpdatesByGeneration.set(i,r),n&&this._dispatchItemsChangedEvent()}refresh(){this._loadAsync(this._loadOptions).catch(this._onUnhandledPromiseError)}load(e){Vt("ItemList.load","ItemList.load() is deprecated and will be removed on or after 2024-10-01. Use ItemList.refresh() instead. List load parameters are passed as the 3rd parameter to ItemSource.getList(), which now automatically starts loading."),e=Object.assign({refreshTimeout:0},e),this._updateLoadOptions(e)}_loadAsync(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._loaderStates.length){r.next=2;break}return r.abrupt("return");case 2:if(o=null!==(n=null==e?void 0:e.refreshTimeout)&&void 0!==n?n:0,a=null!==(i=null==e?void 0:e.loadAllPages)&&void 0!==i&&i,s=t._lastFetchTime,!t._needsRefresh&&s&&o&&!(-1!==o&&s+o<Date.now())){r.next=12;break}return t._debug(`_loadAsync() calling _load(): _needsRefresh: ${t._needsRefresh}, lastFetchTime: ${s} refreshTimeout: ${o}`),r.next=9,t._load(a,null==e?void 0:e.limit);case 9:return r.abrupt("return");case 12:t._debug(`_loadAsync() not time to refresh: _needsRefresh: ${t._needsRefresh}, lastFetchTime: ${s} refreshTimeout: ${o}`);case 13:if(!(c=t._previousLoadPromise)){r.next=18;break}return t._debug("_loadAsync() awaiting previousLoadPromise"),r.next=18,c;case 18:if(!a){r.next=21;break}return r.next=21,t._ensureAllPagesAreLoaded(null==e?void 0:e.limit);case 21:case"end":return r.stop()}}),r)})))()}_load(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r._needsRefresh=!1,(i=r._pendingLoad)?e&&(i.loadAllPages=!0):(r._status=ct.Loading,r._lastFetchTime=Date.now(),r._generation=++Jt,r._debug("_load() creating _pendingLoad"),r._pendingLoad=i={loadAllPages:e,limit:t,promise:Promise.resolve().then(r._handlePendingLoad)},r._dispatchStateChangedEvents()),r._debug("_load() awaiting _pendingLoad"),n.next=6,i.promise;case 6:case"end":return n.stop()}}),n)})))()}loadNextPage(e){this._loadNextPageAsync(e||this._loadOptions).catch(this._onUnhandledPromiseError)}_loadNextPageAsync(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._loaderStates.length){r.next=2;break}return r.abrupt("return");case 2:if(!t._pendingLoad){r.next=8;break}return t._debug("_loadNextPageAsync() awaiting _pendingLoad"),r.next=6,t._pendingLoad.promise;case 6:r.next=13;break;case 8:return t._status=ct.Loading,t._dispatchStateChangedEvents(),t._debug("_loadNextPageAsync() awaiting _runLoaders for loaderState.loadNextPage"),r.next=13,t._runLoaders((t=>t.loadNextPage(null==e?void 0:e.limit)));case 13:case"end":return r.stop()}}),r)})))()}_runLoaders(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._lastFetchTime=Date.now(),n=Promise.all(t._loaderStates.map(e)),t._previousLoadPromise=n,r.prev=3,t._debug("_runLoaders() awaiting loaders"),r.next=7,n;case 7:return r.prev=7,t._debug("_runLoaders() loaders complete"),t._previousLoadPromise=void 0,t._updateListStatusFromItemLoaderStates(),t._dispatchStateChangedEvents(),t._status===ct.ReadyFullyLoaded&&t.emit($t),r.finish(7);case 14:case"end":return r.stop()}}),r,null,[[3,,7,14]])})))()}setNeedsRefresh(){if(this.status!==ct.NotStarted&&this._loaderStates.length)return this.listenerCount(Wt)?(this._needsRefresh=!0,void this.refresh()):void(this._needsRefresh=!0)}_onEventListenerAdded(){this._needsRefresh&&this.listenerCount(Wt)&&this.refresh()}_ensureAllPagesAreLoaded(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.status===ct.ReadyHasMorePages){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._runLoaders((t=>t.loadAllPages(e)));case 4:case"end":return r.stop()}}),r)})))()}_dispatchStateChangedEvents(){this._debug(`_dispatchStateChangedEvents status: ${ct[this.status]}`),this.dispatch(Xt),this._core.dispatch(this._globalStateChangedEvent)}_updateListStatusFromItemLoaderStates(){var e;let t=this._pendingLoad?ct.Loading:ct.NotStarted;this._errors=void 0;var r,n=s(this._loaderStates);try{for(n.s();!(r=n.n()).done;){const n=r.value;switch(n.status){case ct.HadLoaderErrors:if(this._pendingLoad)break;return this._status=ct.HadLoaderErrors,void(this._errors=[n.error]);case ct.ReadyHasMorePages:t===ct.Loading||(null===(e=this._loadOptions)||void 0===e?void 0:e.loadAllPages)||(t=ct.ReadyHasMorePages);break;case ct.Loading:t=ct.Loading;break;case ct.ReadyFullyLoaded:t!==ct.ReadyHasMorePages&&t!==ct.Loading&&(t=ct.ReadyFullyLoaded)}}}catch(e){n.e(e)}finally{n.f()}this._status=t}_dispatchItemsChangedEvent(){this.dispatch(qt)}_updateListItemsFromItemLoaderStates(){this._applyItemsChangedEvents();const e=new Set;let t;var r,n=s(this._loaderStates);try{for(n.s();!(r=n.n()).done;){const n=r.value;n.collectAllItems(e),void 0!==n.total&&(t=Math.max(t||0,n.total))}}catch(e){n.e(e)}finally{n.f()}var i,o=s(this._itemUpdatesByGeneration.values());try{for(o.s();!(i=o.n()).done;){var c,l=s(i.value.entries());try{for(l.s();!(c=l.n()).done;){const t=a(c.value,2),r=t[0];t[1]?e.add(r):e.delete(r)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}const u=Array.from(e);this.order.sortItems(u),this._items=u,this._total=t,this._dispatchItemsChangedEvent()}_applyItemsChangedEvents(){const e=this._pendingNotifications;if(e){this._pendingNotifications=void 0;var t,r=s(e);try{for(r.s();!(t=r.n()).done;){const e=t.value,r=e.event,u=e.generation;if(u<this._completedGeneration)continue;let p=this._itemUpdatesByGeneration.get(u);if(p||(p=new Map,this._itemUpdatesByGeneration.set(u,p)),r.addedItems){var n,i=s(r.addedItems);try{for(i.s();!(n=i.n()).done;){const e=n.value;this.implicitFilter.matches(e)&&this.filter.matches(e)&&p.set(e,!0)}}catch(e){i.e(e)}finally{i.f()}}if(r.changedItems){var o,a=s(r.changedItems);try{for(a.s();!(o=a.n()).done;){const e=o.value,t=this.implicitFilter.matches(e)&&this.filter.matches(e);p.set(e,t)}}catch(e){a.e(e)}finally{a.f()}}if(r.discardedItems){var c,l=s(r.discardedItems);try{for(l.s();!(c=l.n()).done;){const e=c.value;p.set(e,!1)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){r.e(e)}finally{r.f()}}}}E([Z(Xt)],Qt.prototype,"status",null),E([Z(Xt)],Qt.prototype,"errors",null),E([Z(qt)],Qt.prototype,"items",null),E([Z(qt)],Qt.prototype,"total",null);const er="itemsChanged";class tr extends D{constructor(e,t,r,n){super(er),this.addedItems=e,this.changedItems=t,this.discardedItems=r,this.updateContext=n}}function rr(e,t){return e.priority===t.priority?0:"list"===e.priority?-1:1}class nr extends Me{constructor(e,t){super(),this._core=e,this.type=t,this._objectsById=new Map,this._discardedObjects=new WeakSet,this._delegates=[],this._hasUnsortedDelegates=!1,this.getLocalItemById=e=>{const t=this._getObjectsById().get(e);return null==t?void 0:t.deref()},this.removeLocalItems=e=>{Array.isArray(e)?e.forEach((e=>{this._objectsById.delete(e)})):this._objectsById.delete(e)},this.isItemDiscarded=e=>this._discardedObjects.has(e),this.reindexItem=(e,t,r)=>{t!==r&&(this._objectsById.set(r,new Ze(e)),this._objectsById.delete(t))},this._updateSessionDelegate=()=>({getLocalItemById:this.getLocalItemById,isItemDiscarded:this.isItemDiscarded,reindexItem:this.reindexItem,commitUpdateSession:e=>{if(!e.hasChanges)return;const t=this._objectsById,r=this._discardedObjects,n=e.discardedItems;if(n){var i,o=s(n);try{for(o.s();!(i=o.n()).done;){const e=i.value;r.add(e)}}catch(e){o.e(e)}finally{o.f()}}const a=e.addedItems;if(a){var c,l=s(a);try{for(l.s();!(c=l.n()).done;){const e=c.value;t.set(e.id,new Ze(e)),r.delete(e)}}catch(e){l.e(e)}finally{l.f()}}const u=new tr(e.addedItems,e.changedItems,e.discardedItems,e.updateContext),p=this._delegates;this._hasUnsortedDelegates&&(p.sort(rr),this._hasUnsortedDelegates=!1);let d=!1;var h,f=s(p);try{for(f.s();!(h=f.n()).done;){const e=h.value.delegate.deref();e?e.onItemsUpdated(u,this):d=!0}}catch(e){f.e(e)}finally{f.f()}d&&(this._delegates=p.filter((e=>e.delegate.deref()))),this.dispatch(u)}})}_getObjectsById(){return this._objectsById}createUpdateSession(e,t){return new Ge(this._core,this._updateSessionDelegate(),e,t)}createLoaderUpdateSession(e){return new Ge(this._core,this._updateSessionDelegate(),Kt,e)}createMutationSession(){return new Ge(this._core,this._updateSessionDelegate(),void 0,void 0,"mutation")}createLoaderMutationSession(){return new Ge(this._core,this._updateSessionDelegate(),Kt,void 0,"mutation")}addDelegate(e,t){this._delegates.push({priority:t,delegate:new Ze(e)}),this._hasUnsortedDelegates=!0}forEach(e){const t=this._objectsById;var r,n=s(t);try{for(n.s();!(r=n.n()).done;){const n=a(r.value,2),i=n[0],o=n[1].deref();o?e(o):t.delete(i)}}catch(e){n.e(e)}finally{n.f()}}map(e){const t=[];return this.forEach((r=>{t.push(e(r))})),t}toArray(){return this.map((e=>e))}}var ir;!function(e){e.STORAGE_ASSIGNEE_TYPE="storage:assignee$$type",e.VISIBLITY="app_metadata$$shell:visibility",e.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME="creative_cloud_toplevel_collection_name",e.FIELD_EXISTS="op_field_exists",e.INCLUDES="includes",e.TYPE="type",e.ARTIFACT_FIELD="app_metadata$$review:sourceAsset$$dc:format",e.STORAGE_ASSIGNEE_ID="storage:assignee$$id",e.SHARED_VIA_INVITE="shared_via_invite",e.OP_AND="op_and",e.OP_OR="op_or",e.REPO_ACL_MODIFIER="repo:acl$$repo:modifier",e.REPO_ACL_PRIVILEGES="repo:acl$$repo:privileges",e.REPO_ACL_RELATIONS="repo:acl$$repo:relations",e.CREATED_FROM_UPLOAD="app_metadata$$cc:createdFromUpload",e.CREATED_BY_CLIENT_ID="repo:createdByClientId"}(ir||(ir={}));const or="api:metadata/peruser#mine$$shell:lastAccessDate",ar={name:"asset_name",created:"create_date",modified:"modify_date",shared:"shared_date",lastAccessed:or};var sr="10.0.7";const cr={scope:["creative_cloud"],asset_id_opacity:!0};class lr extends be{_getEndpointHref(e){return`https://${this._core._environment.endpoints.USS_HOST}${e}`}getQueryResponse(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=Object.assign(Object.assign({},cr),e),n=t._getEndpointHref("/universal-search/v2/search"),i=t._core._environment.getValue("HOST_PRODUCT_DATA"),o=i.PRODUCT_ID,r.next=5,t._doPost(n,{"Content-Type":"application/vnd.adobe.search-request+json","X-Product":o,"X-Product-Location":`SAM.js/${sr}`},JSON.stringify(e),[200]);case 5:return a=r.sent,r.abrupt("return",a.json());case 7:case"end":return r.stop()}}),r)})))()}searchSpace(e,t,r,n){var i=this;return d(u().mark((function o(){var a,s,c,l,p;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return p={hints:[{acp_platform_v2:!0,creative_cloud_rendition_v2:!0}],fetch_fields:{includes:["app_metadata","collaboration_metadata"]},sort_orderby:null!==(a=null==n?void 0:n.sort_orderby)&&void 0!==a?a:"modify_date",sort_order:null!==(s=null==n?void 0:n.sort_order)&&void 0!==s?s:"desc",limit:null!==(c=null==n?void 0:n.limit)&&void 0!==c?c:50,start_index:null!==(l=null==n?void 0:n.start_index)&&void 0!==l?l:0,[ir.TYPE]:(null==n?void 0:n.type)||[],container:{asset_id:[e]}},t?p.op_field_exists=[ir.ARTIFACT_FIELD]:p.op_none_of=[{op_field_exists:[ir.ARTIFACT_FIELD]},{[ir.VISIBLITY]:["hiddenSelf","hiddenRecursive"]}],r&&p.fetch_fields.includes.push("_embedded"),o.abrupt("return",i.getQueryResponse(p));case 4:case"end":return o.stop()}}),o)})))()}}class ur extends be{constructor(){super(...arguments),this._batchRequestLimit=50}get batchRequestLimit(){return this._batchRequestLimit}_getUrl(e){return`https://${this._core._environment.endpoints.INVITATIONS_HOST}${e}`}getCollaborators(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getSharedResponse(t._getUrl(`/api/v4/share/${encodeURIComponent(e)}?extraFeatures=direct_acl`));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}addCollaborators(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(r._getUrl(`/api/v4/share/${encodeURIComponent(e)}`),{},JSON.stringify(t),[200]);case 2:case"end":return n.stop()}}),n)})))()}modifyCollaborators(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPatch(r._getUrl(`/api/v4/share/${encodeURIComponent(e)}`),{},JSON.stringify(t),[200]);case 2:return i=n.sent,n.next=5,i.json();case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}getCollaboratorListForUrns(e){var t=this;return d(u().mark((function r(){var i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i={operation:"bulkGetShares",parameters:{urns:e,queryParams:{extraFeatures:"direct_acl,legacy_role"}}},r.next=3,t._doPost(t._getUrl("/ops/v4/shares"),{"Content-Type":"application/json"},JSON.stringify(i),[200]);case 3:return o=r.sent,r.next=6,o.json();case 6:if((a=r.sent).result&&Array.isArray(a.result)){r.next=9;break}throw v.create(n.UNKNOWN,"Failed to parse response for Invitation Service bulk API.");case 9:return r.abrupt("return",a);case 10:case"end":return r.stop()}}),r)})))()}confirmAccess(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getUrl(`/api/v4/invitations/urn/${encodeURIComponent(e)}`),{},void 0,[200]);case 2:case"end":return r.stop()}}),r)})))()}_shouldRetryMonitorResponse(e,t){if(200===e.status){if("completed"!==JSON.parse(t).jobStatus)return!0}return!1}declineAccess(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v4/invitations/urn/${encodeURIComponent(e)}`),{},[200]);case 2:case"end":return r.stop()}}),r)})))()}getPendingInvitations(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._doGet(e._getUrl("/api/v4/invitations"),{headers:{"Content-Type":"application/json"}});case 2:return r=t.sent,t.next=5,r.json();case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))()}}function pr(e,t){return e===t}function dr(e){return JSON.parse(JSON.stringify(e))}function hr(e,t,r=!1){if(e===t)return!0;if(typeof e!=typeof t||e.constructor!==t.constructor)return!1;if(e instanceof Date)return e.toISOString()===t.toISOString();if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;let i=e,o=t;r&&(i=e.slice(0).sort(),o=t.slice(0).sort());for(let e=0;e<n;++e)if(!hr(i[e],o[e],r))return!1;return!0}if(e instanceof Set){if(e.size!==t.size)return!1;var n,i=s(e.keys());try{for(i.s();!(n=i.n()).done;){const e=n.value;if(!t.has(e))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}if(e instanceof Map){if(e.size!==t.size)return!1;var o,a=s(e.keys());try{for(a.s();!(o=a.n()).done;){const n=o.value;if(!t.has(n))return!1;if(!hr(e.get(n),t.get(n),r))return!1}}catch(e){a.e(e)}finally{a.f()}return!0}if("object"==typeof e){const n=Object.keys(e),i=Object.keys(t),o=n.length;if(o!==i.length)return!1;n.sort(),i.sort();for(let a=0;a<o;++a){const o=n[a];if(o!==i[a])return!1;if(!hr(e[o],t[o],r))return!1}return!0}return!1}const fr=new FinalizationRegistry((e=>{URL.revokeObjectURL(e)}));var mr,gr,vr;!function(e){e[e.NotStarted=0]="NotStarted",e[e.Fetching=1]="Fetching",e[e.Done=2]="Done",e[e.Error=3]="Error"}(mr||(mr={})),function(e){e[e.Size64=64]="Size64",e[e.Size128=128]="Size128",e[e.Size256=256]="Size256",e[e.Size512=512]="Size512",e[e.Size1024=1024]="Size1024"}(gr||(gr={})),function(e){e.PNG="image/png",e.JPEG="image/jpeg"}(vr||(vr={}));const yr=gr.Size512,br=[gr.Size64,gr.Size128,gr.Size256,gr.Size512,gr.Size1024];class _r extends Me{constructor(e){super(),this._core=e,this._entries=[],this._etag=""}_getStandardSize(e,t=br){const r=[...t].sort(((e,t)=>e-t)),n=r.findIndex((t=>t>=e));return-1===n?r[r.length-1]:r[n]}_findURLEntry(e,t){const r=this._getStandardSize(e);if(this._entries.length>0)return this._entries.find((e=>e.size===r&&e.type===t&&e.status!==mr.Error))}_clearStaleEntries(e){const t=this._entries.filter((t=>t.etag!==e||(URL.revokeObjectURL(t.url),!1)));this._entries=t}_getEntryWithFallback(e,t){const r=this._findURLEntry(e,t);if(r)return r;const n=this._entries.map((e=>e.size));if(this._entries.length>0){const t=this._getStandardSize(e,n);return this._entries.find((e=>e.size===t))}}renditionURLStatus(e,t,r){var n;const i=this._getStandardSize(e),o=this._entries.find((e=>e.etag===r&&e.size>=i&&e.type===t));return null!==(n=o&&o.status)&&void 0!==n?n:mr.NotStarted}get etag(){return this._etag}getURL(e,t,r,n){const i=r!==this.etag,o=this._getEntryWithFallback(e,t),a=this._getStandardSize(e);if(o&&o.size>=a&&!i)return o.url;const s={size:a,status:mr.Fetching,url:"",type:t,etag:r},c=this._entries.find((e=>hr(e,s)||hr(e,Object.assign(Object.assign({},s),{status:mr.Error}))));return o&&c?o.url:(this._entries.push(s),this._fetch(s,n),o?o.url:s.url)}_fetch(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.size,o=e.type,a=e.etag,n.next=3,t;case 3:return s=n.sent,r.dispatch({type:"change"}),n.prev=5,n.next=8,s.getRendition(i,o);case 8:c=n.sent,a&&a!==r._etag&&(r._clearStaleEntries(r._etag),r._etag=a),e.size=i,e.type=o,e.url=URL.createObjectURL(c),fr.register(r,e.url,e),e.status=mr.Done,e.etag=a,r.dispatch({type:"change"}),n.next=23;break;case 19:n.prev=19,n.t0=n.catch(5),e.status=mr.Error,r.dispatch({type:"change"});case 23:case"end":return n.stop()}}),n,null,[[5,19]])})))()}clearRenditionError(e,t,r){const n=this._getStandardSize(e),i=this._entries.findIndex((e=>e.size>=n&&e.type===t&&e.etag===r&&e.status===mr.Error));-1!==i&&(this._entries.splice(i,1),this.dispatch({type:"change"}))}release(){0!==this._entries.length&&(this._entries.forEach((e=>{URL.revokeObjectURL(e.url),fr.unregister(this)})),this._entries=[])}}const Er=/^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$/i,wr=/[\\/:*?"|><]/;function Lr(e){return e.length>0&&e.length<=255&&!Er.test(e)&&!wr.test(e)}const xr=/^(.*\/)?(.*?)(?:[\u00A0][^.]*)?(\.[^.]*)?$/;function Sr(e,t,r){function n(e,t){let r=e.replace(/[()]/g,"\\$&");return r=r.replace("%d","([0-9]+)"),r=r.replace("%@","(.*)?"),r+=t?"(\\.[^.]*)$":"(\\.[^.]*)?$",r}const i=e.lastIndexOf(".")>e.lastIndexOf("/"),o=n(t,i),s=t.replace(/ [^ ]*$/,""),c=n(s,i);let l=e.match(o),u=!1;null===l&&(l=e.match(c),u=null!==l);let p="",d="";if(l){let e="",t="",n="";if(u){var h=a(l,3);e=h[1],t=h[2]}else{var f=a(l,4);e=f[1],n=f[2],t=f[3]}p=e,d=t,u&&0===r?r=1:u||parseInt(n)!==r||(r+=1)}else{const t=a(e.match(xr),4);p=`${t[1]||""}${t[2]||""}`,d=t[3]}let m="";return 0!==r?(m=t.replace("%@",`${p||""}`),m=m.replace("%d",r.toString())):m=s.replace("%@",`${p||""}`),{newName:`${m||""}${d||""}`,countUsed:r}}function Or(e,t,r,n,i){var o;let c=(null===(o=i.get(t))||void 0===o?void 0:o.countUsed)||0,l=!1;const u=[];do{const o=n?Sr(r,e._environment.getValue("ASSET_COPY_NAME_FORMAT"),c):c>0?Sr(r,e._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),c):{newName:r,countUsed:c};r=o.newName,c=o.countUsed,l=!1;var p,d=s(i);try{for(d.s();!(p=d.n()).done;){const e=a(p.value,2),t=e[0];if(e[1].newName===r){l=!0,u.push(t);break}}}catch(e){d.e(e)}finally{d.f()}l?c++:i.set(t,o)}while(l);for(var h=0,f=u;h<f.length;h++){const e=f[h],t=i.get(e);i.set(e,{newName:t.newName,countUsed:c})}return r}const Tr=/^(.*)\^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[12345][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/;function Ir(e){const t=e.match(Tr);return t?t[1]:e}const Pr={"cloud-content-archive":"cloud-content","assets-archive":"assets",archive:"files"};function Cr(e,t){const r=e.split("/"),n="users"===r[1]?3:1,i=Pr[r[n]];if(i)return r[n]=i,r[r.length-1]=t||Ir(r[r.length-1]),r.join("/")}function Ar(e,t){const r=t.repoPath.split("/").slice(0,-1);return r.push(e),r.join("/")}function kr(e){const t=e.assetPool,r=e.asset,n=e.session,i=e.operation;r.isFolder&&r.repoPath.trim()&&t.forEach((e=>{var t;if(e.repoPath.startsWith(r.repoPath+"/"))switch(i.type){case"rename":if(!e.repoPath.startsWith(i.newPath)){const t=e.repoPath.replace(r.repoPath,i.newPath);r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(n,e,{"repo:path":t})}break;case"discard":{let i="DISCARDED";(null===(t=e.ancestorIDs)||void 0===t?void 0:t.includes(r.id))&&(i="DISCARDED_PARENT"),r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(n,e,{"repo:state":i});break}case"restore":{const t=i.newPath?e.repoPath.replace(r.repoPath,i.newPath):e.repoPath;r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(n,e,{"repo:state":"ACTIVE","repo:path":t});break}}}))}const Dr=(e,t)=>t.has(e.id)?t.get(e.id):e.name;const Nr="application/vnd.adobecloud.bulk-transfer+json",Rr={"repo:principal":"all","repo:modifier":"deny","repo:privileges":["write"],"repo:relations":[z.AC_POLICY],"repo:inheritance":"deep"},Mr={"repo:principal":"all","repo:modifier":"deny","repo:privileges":["write","delete"],"repo:relations":["describedby",z.ANNOTATIONS,z.APP_METADATA,z.EMBEDDED_METADATA,z.REPO_METADATA,z.PRIMARY,z.RENDITION],"repo:inheritance":"deep"};function jr(e){return[{"repo:principal":{"xdm:provider":{"@id":"https://ims-na1.adobelogin.com/"},"@id":e,"@type":"https://ns.adobe.com/adobecloudplatform/ims/user"},"repo:modifier":"grant","repo:privileges":["read","write"],"repo:relations":["http://ns.adobe.com/adobecloud/rel/ac/policy"],"repo:inheritance":"deep"},{"repo:principal":{"xdm:provider":{"@id":"https://ims-na1.adobelogin.com/"},"@id":e,"@type":"https://ns.adobe.com/adobecloudplatform/ims/user"},"repo:modifier":"grant","repo:privileges":["read","write","delete"],"repo:relations":["describedby","http://ns.adobe.com/adobecloud/rel/annotations","http://ns.adobe.com/adobecloud/rel/metadata/application","http://ns.adobe.com/adobecloud/rel/metadata/embedded","http://ns.adobe.com/adobecloud/rel/metadata/repository","http://ns.adobe.com/adobecloud/rel/primary","http://ns.adobe.com/adobecloud/rel/rendition"],"repo:inheritance":"deep"}]}var Zr;!function(e){e.add="add",e.remove="remove",e.replace="replace"}(Zr||(Zr={}));const Fr={orderDirection:"descending",orderBy:"storage:deviceModifyDate",start:"",limit:0},Br={orderDirection:"descending",orderBy:"created",start:"",limit:0,version:""};function Gr(e){const t={},r=e.start,n=e.limit,i=e.version;return r&&(t.start=r),n&&(t.limit=n),i&&(t.version=i),t}function Ur(e){return("ascending"===e.orderDirection?"+":"-")+e.orderBy}function zr(e,t){const r=Object.assign(Object.assign({},Fr),t),n=Gr(r);return n.orderBy=Ur(r),n.type=r.type,n.embed=JSON.stringify(r.embed),W(e,z.PAGE,n)}function Vr(e,t){const r=function(e){const t=Object.assign(Object.assign({},Br),e),r=Gr(t);return r.orderBy=Ur(t),r.resource=z.VERSION,r}(t);return W(e,z.PAGE,r)}class Hr extends be{constructor(e,t,r,n){super(e._core),this._rapi=e,this._assetId=t,this._links=r,this._etag=n,this._useHighPriorityRequestsIfEnabled=!0}get assetID(){return this._assetId}get links(){return this._links}get etag(){return this._etag}getChildAssets(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=zr(t._links,e),r.next=3,t._doGet(n,{headers:{"Cache-Control":"no-cache, no-store, max-age=0"}});case 3:return i=r.sent,r.abrupt("return",i.json());case 5:case"end":return r.stop()}}),r)})))()}getRepoMetadata(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W(e._links,z.REPO_METADATA),t.next=3,e._doGet(r);case 3:return n=t.sent,t.next=6,n.json();case 6:return i=t.sent,e._etag=i["repo:etag"],t.prev=8,o=e._rapi.getAssetResolveByIdHref(e._assetId),t.next=12,e._core._environment.cache.setItem(o,{links:e._links,etag:e._etag});case 12:t.next=16;break;case 14:t.prev=14,t.t0=t.catch(8);case 16:return t.abrupt("return",i);case 17:case"end":return t.stop()}}),t,null,[[8,14]])})))()}getEmbeddedMetadata(){var e=this;return d(u().mark((function t(){var r,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W(e._links,z.EMBEDDED_METADATA),t.prev=1,t.next=4,e._getResponse(r,{headers:{Accept:G}});case 4:return i=t.sent,t.abrupt("return",i);case 8:if(t.prev=8,t.t0=t.catch(1),t.t0.code!==n.NOT_FOUND){t.next=12;break}return t.abrupt("return",{});case 12:throw t.t0;case 13:case"end":return t.stop()}}),t,null,[[1,8]])})))()}getAppMetadata(){var e=this;return d(u().mark((function t(){var r,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W(e._links,z.APP_METADATA),t.prev=1,t.next=4,e._getResponse(r);case 4:return i=t.sent,t.abrupt("return",i);case 8:if(t.prev=8,t.t0=t.catch(1),t.t0.code!==n.NOT_FOUND){t.next=12;break}return t.abrupt("return",{});case 12:throw t.t0;case 13:case"end":return t.stop()}}),t,null,[[1,8]])})))()}patchAppMetadata(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=W(t._links,z.APP_METADATA),r.next=3,t._doPatch(n,{"Content-Type":U},JSON.stringify(e),[204]);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}getEffectivePermissions(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W(e._links,z.AC_EFFECTIVE),t.next=3,e._getResponse(r);case 3:return n=t.sent,t.abrupt("return",Dt(n));case 5:case"end":return t.stop()}}),t)})))()}getAssetPolicy(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W(e._links,z.AC_POLICY),t.next=3,e._doGet(r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}getManifest(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W(e._links,z.MANIFEST),n={},t.next=4,e._doGet(r,n);case 4:return i=t.sent,t.next=7,i.json();case 7:return o=t.sent,t.abrupt("return",{manifest:o,etag:i.headers.get("ETag")});case 9:case"end":return t.stop()}}),t)})))()}getVersions(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Vr(t._links,e),r.next=3,t._doGet(n);case 3:return i=r.sent,r.abrupt("return",i.json());case 5:case"end":return r.stop()}}),r)})))()}getLastAccessed(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W(e._links,z.PERUSER_METADATA),t.next=3,e._doGet(r,{headers:{"Content-Type":G}});case 3:return n=t.sent,t.next=6,n.json();case 6:return i=t.sent,o=null==i?void 0:i["shell:lastAccessDate"],t.abrupt("return",o?new Date(o):void 0);case 9:case"end":return t.stop()}}),t)})))()}restoreVersionManifest(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doGet(e,{});case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,o=W(t.links,z.MANIFEST),r.next=9,t._doPut(o,{"Content-Type":"application/vnd.adobe.dcx-manifest+json","If-Match":"*"},JSON.stringify(i),[204]);case 9:case"end":return r.stop()}}),r)})))()}patchVersion(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=W(t.links,z.VERSION),r.next=3,t._doPatch(n,{"Content-Type":U},JSON.stringify(e),[204]);case 3:return i=r.sent,r.abrupt("return",i);case 5:case"end":return r.stop()}}),r)})))()}createFolder(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=W(t._links,z.CREATE,{path:e,intermediates:"true",respondWith:"http://ns.adobe.com/adobecloud/rel/metadata/repository"}),r.next=3,t._doPost(n,{"Content-Type":"application/vnd.adobecloud.directory+json"},void 0,[200,201]);case 3:if(201!==(i=r.sent).status){r.next=10;break}return r.next=7,i.json();case 7:r.t0=r.sent,r.next=11;break;case 10:r.t0=void 0;case 11:return r.abrupt("return",r.t0);case 12:case"end":return r.stop()}}),r)})))()}_uploadIndividualBlock(e,t,r,n){var i=this;return d(u().mark((function o(){var a;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a={},o.next=3,i._doPut(e,a,t.slice(r,n),[200],!0);case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),o)})))()}_blockUpload(e,t,r){var n=this;return d(u().mark((function i(){var o,a,s,c,l,p,d,h,f,m,g,v,y,b;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=W(n._links,z.BLOCK_INITIALIZE),a=JSON.stringify({"repo:size":e.size,"repo:blocksize":6e6,"repo:reltype":z.PRIMARY,"dc:format":r}),i.next=4,n._doPost(o,{"Content-Type":Nr},a,[200]);case 4:return s=i.sent,i.next=7,s.json();case 7:for(c=i.sent,l=c["repo:blocksize"],p=c._links[z.BLOCK_TRANSFER],d=W(c._links,z.BLOCK_FINALIZE,{path:t,respondWith:z.REPO_METADATA}),h=[],f=0,m=0;m<e.size;f++,m+=l)g=p[f].href,v=Math.min(e.size,m+l),h.push([g,e,m,v]);y=3;case 14:if(!h.length){i.next=19;break}return i.next=17,Promise.all(h.splice(0,y).map((e=>n._uploadIndividualBlock(...e))));case 17:i.next=14;break;case 19:return i.next=21,n._doPost(d,{"Content-Type":Nr},JSON.stringify(c),[200,201]);case 21:return b=i.sent,i.abrupt("return",b.json());case 23:case"end":return i.stop()}}),i)})))()}importFile(e,t,r){var n=this;return d(u().mark((function i(){var o,a,s;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(c=n._links,o=H(c,z.BLOCK_INITIALIZE)["repo:maxsingletransfersize"]||9437184,!(e.size>=o)){i.next=3;break}return i.abrupt("return",n._blockUpload(e,t,null!=r?r:e.type));case 3:return a=W(n._links,z.CREATE,{path:t,respondWith:z.REPO_METADATA}),i.next=6,n._doPost(a,{"Content-Type":null!=r?r:e.type},e,[200,201]);case 6:if(201!==(s=i.sent).status){i.next=13;break}return i.next=10,s.json();case 10:i.t0=i.sent,i.next=14;break;case 13:i.t0=void 0;case 14:return i.abrupt("return",i.t0);case 15:case"end":return i.stop()}var c}),i)})))()}getBlockDownloadURL(e){var t=this;return d(u().mark((function r(){var i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doGet(e);case 2:return i=r.sent,r.next=5,i.json();case 5:if(null==(o=r.sent)?void 0:o.href){r.next=8;break}throw v.create(n.INTERNAL_ERROR,"Cannot get block download URL");case 8:return r.abrupt("return",o.href);case 9:case"end":return r.stop()}}),r)})))()}getContent(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W(e._links,z.PRIMARY),t.next=3,e._doGet(r,{});case 3:return n=t.sent,t.next=6,n.blob();case 6:return t.t0=t.sent,t.t1=e._getETagFromHeaders(n.headers),t.abrupt("return",{content:t.t0,etag:t.t1});case 9:case"end":return t.stop()}}),t)})))()}commitFileChanges(e,t){var r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(r._links,z.PRIMARY),o={"Content-type":e.type},t&&(o["If-Match"]=t),n.next=5,r._doPut(i,o,e,[200,201,204]);case 5:if(201!==(a=n.sent).status){n.next=12;break}return n.next=9,a.json();case 9:n.t0=n.sent,n.next=13;break;case 12:n.t0=void 0;case 13:return n.t1=n.t0,n.t2=r._getETagFromHeaders(a.headers),n.abrupt("return",{MetaData:n.t1,eTag:n.t2});case 16:case"end":return n.stop()}}),n)})))()}restore(e,t=0){var r=this;return d(u().mark((function i(){var o,a,s,c,l;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={op:"restore",target:{"repo:assetId":r.assetID},name:e},i.prev=1,i.next=4,r.runOperation(o);case 4:return a=i.sent.asset,i.abrupt("return",a);case 8:if(i.prev=8,i.t0=i.catch(1),i.t0.code!==n.CONFLICT){i.next=13;break}return s=Sr(e,r._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),t),c=s.newName,l=s.countUsed,i.abrupt("return",r.restore(c,l));case 13:throw i.t0;case 14:case"end":return i.stop()}}),i,null,[[1,8]])})))()}discard(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={op:"discard",target:{"repo:assetId":e.assetID}},t.next=3,e.runOperation(r);case 3:return n=t.sent,i=n.asset,t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)})))()}patchLastAccessed(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=W(t._links,z.PERUSER_METADATA),(i=[]).push({op:"add",value:e.toISOString(),path:"/shell:lastAccessDate"}),r.next=5,t._doPatch(n,{"Content-Type":U},JSON.stringify(i),[204]);case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))()}runOperation(e){var t=this;return d(u().mark((function r(){var i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._rapi.runOperation(e);case 2:if(i=r.sent,o=i[0],a=o.asset,s=o.error,a||s){r.next=8;break}throw v.wrapErrorIfNeeded(n.UNKNOWN,"Missing Asset metadata in operation response",s);case 8:if(!s){r.next=10;break}throw s;case 10:return r.abrupt("return",i[0]);case 11:case"end":return r.stop()}}),r)})))()}getRendition(e,t){var r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(r._links,z.RENDITION,{size:String(e),type:t}),(o=new URL(i)).searchParams.append("etag",r.etag),n.next=5,r._doGet(o.toString());case 5:return a=n.sent,n.next=8,a.blob();case 8:return n.abrupt("return",n.sent);case 9:case"end":return n.stop()}}),n)})))()}getCustomRendition({size:e=yr,type:t=vr.PNG,urlTemplateOptions:r={},additionalHeaders:n}){var i=this;return d(u().mark((function o(){var a;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=W(i._links,z.RENDITION,Object.assign({size:String(e),type:t},r)),o.next=3,i._doGet(a,{headers:n});case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),o)})))()}getAllCustomRenditions({type:e,urlTemplateOptions:t={},additionalHeaders:r}){var n=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=W(n._links,z.RENDITION,e?Object.assign({type:e},t):Object.assign({},t)),i.next=3,n._doGet(o,{headers:r});case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),i)})))()}setEditingInheritanceRestricted(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=r._core._environment.getValue("USER_ID"),!e){n.next=8;break}return o=[{op:"add",path:"/repo:acl/0",value:Mr},{op:"add",path:"/repo:acl/1",value:Rr}],t&&(a=jr(i),o.push({op:"add",path:"/repo:acl/2",value:a[0]}),o.push({op:"add",path:"/repo:acl/3",value:a[1]})),n.next=6,r._patchACL(o);case 6:n.next=20;break;case 8:return n.next=10,r._getEditingInheritanceRestrictedInfo();case 10:if(s=n.sent,c=s.policyResponse,l=s.denyEditAceIndex,p=s.denyShareAceIndex,!(l<0||p<0)){n.next=16;break}return n.abrupt("return");case 16:return(d=[{op:"remove",path:`/repo:acl/${p}`},{op:"remove",path:`/repo:acl/${l}`}]).sort(((e,t)=>e.path<t.path?0:-1)),n.next=20,r._patchACL(d,c.headers.get("etag")||void 0);case 20:case"end":return n.stop()}}),n)})))()}_patchACL(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(r._links,z.AC_POLICY),n.next=3,r._doPatch(i,{"Content-Type":"application/json-patch+json","If-Match":t},JSON.stringify(e),[200]);case 3:case"end":return n.stop()}}),n)})))()}getEditingInheritanceRestricted(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getEditingInheritanceRestrictedInfo();case 2:return r=t.sent,n=r.denyEditAceIndex,i=r.denyShareAceIndex,t.abrupt("return",n>=0&&i>=0);case 6:case"end":return t.stop()}}),t)})))()}_getEditingInheritanceRestrictedInfo(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAssetPolicy();case 2:return r=t.sent,t.next=5,r.json();case 5:return n=t.sent["repo:acl"],i=n.find((e=>hr(e,Mr,!0))),o=n.find((e=>hr(e,Rr,!0))),t.abrupt("return",{policyResponse:r,denyEditAceIndex:n.indexOf(i),denyShareAceIndex:n.indexOf(o)});case 9:case"end":return t.stop()}}),t)})))()}}const Yr=Symbol("NotFound");class Wr{constructor(e,t){this._name=e,this._core=t}static isSupported(){if("undefined"==typeof window||!window.indexedDB)return!1;try{const e=window.indexedDB.open("sam_indexeddb_test",1);return e.onsuccess=()=>e.result.close(),!0}catch(e){return!1}}_transaction(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._connect();case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return");case 5:return n.abrupt("return",new Promise((n=>{try{const o=i.transaction(r._name,e),a=o.objectStore(r._name),s=t(a);o.onerror=e=>{r._core._environment.error(`transaction error: ${e}`),n(void 0)},o.oncomplete=()=>{n(s)}}catch(e){r._core._environment.error(`transaction exception: ${e}`),n(void 0)}})));case 6:case"end":return n.stop()}}),n)})))()}getItem(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._transaction("readonly",function(){var t=d(u().mark((function t(r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((t=>{const n=r.get(e);n.onsuccess=()=>{t(n.result?{value:n.result.value,expiry:n.result.expiry}:void 0)}})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 1:case"end":return r.stop()}}),r)})))()}setItem(e,t,r){var n=this;return d(u().mark((function i(){return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",n._transaction("readwrite",(n=>{n.put({id:e,expiry:r,value:t})})));case 1:case"end":return i.stop()}}),i)})))()}deleteItem(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._transaction("readwrite",(t=>{t.delete(e)})));case 1:case"end":return r.stop()}}),r)})))()}_connect(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._database){t.next=2;break}return t.abrupt("return",e._database);case 2:return r=e._core._environment.getValue("INDEXED_DB_VERSION"),n=window.indexedDB.open(e._name,r),t.abrupt("return",new Promise((t=>{n.onerror=r=>{e._core._environment.error(`CONNECTION_FAILED Unable to connect to IndexedDB: ${e._name}, error: ${r}`),t(void 0)},n.onupgradeneeded=()=>{const t=n.result;t.objectStoreNames.contains(e._name)&&t.deleteObjectStore(e._name),t.createObjectStore(e._name,{keyPath:"id"})},n.onsuccess=()=>{const i=e._database=n.result;i.onversionchange=t=>{e._core._environment.error(`IndexedDb version changed detected ${e._name}.${r}, ${t}`),i.close(),i.onversionchange=null,e._database=void 0},t(i)}})));case 5:case"end":return t.stop()}}),t)})))()}_clear(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._transaction("readwrite",function(){var e=d(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((e=>{t.clear().onsuccess=()=>{console.log("localDB cleared for",t.name),e(void 0)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return t.stop()}}),t)})))()}}class $r{constructor(e,t){this._name=e,this._core=t}static isSupported(){try{return"undefined"!=typeof window&&!!window.localStorage}catch(e){return!1}}_getKey(e){return`${this._name}#${e}`}getItem(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=window.localStorage.getItem(t._getKey(e)))){r.next=9;break}return r.prev=2,i=JSON.parse(n),o=i.value,a=i.expiry,r.abrupt("return",{value:o,expiry:a?new Date(a):void 0});case 7:r.prev=7,r.t0=r.catch(2);case 9:return r.abrupt("return",void 0);case 10:case"end":return r.stop()}}),r,null,[[2,7]])})))()}setItem(e,t,r){var n=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=JSON.stringify({expiry:r,value:t}),window.localStorage.setItem(n._getKey(e),o);case 2:case"end":return i.stop()}}),i)})))()}deleteItem(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:window.localStorage.removeItem(t._getKey(e));case 1:case"end":return r.stop()}}),r)})))()}}class Kr{constructor(e,t,r){this._userId=e,this._core=t,this._localCache=new Map,this._name="SAM.js-"+this._userId,r?this._persistentCache=r:Wr.isSupported()?this._persistentCache=new Wr(this._name,t):$r.isSupported()&&(this._persistentCache=new $r(this._name,t))}get name(){return this._name}getItem(e,t,r,i){var o=this;return d(u().mark((function a(){var s,c,l,p;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if((s=o._localCache.get(e))||!o._persistentCache){a.next=5;break}return a.next=4,o._persistentCache.getItem(e);case 4:s=a.sent;case 5:if(c=r&&s&&!r(s.value),l=(null==s?void 0:s.expiry)&&s.expiry<=new Date(Date.now()),!c&&!l){a.next=11;break}return a.next=10,o.deleteItem(e);case 10:s=void 0;case 11:if(s||!t){a.next=20;break}return a.next=14,t();case 14:if(p=a.sent,!r||r(p)){a.next=17;break}throw v.create(n.UNKNOWN,`Value for cache key ${e} is invalid: ${JSON.stringify(p)}`);case 17:return a.next=19,o.setItem(e,p,i);case 19:return a.abrupt("return",p);case 20:return a.abrupt("return",s?s.value:Yr);case 21:case"end":return a.stop()}}),a)})))()}setItem(e,t,r=this._core._environment.getValue("CACHE_DEFAULT_TTL")){var n=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=r?new Date(Date.now()+r):void 0,n._localCache.set(e,{value:t,expiry:o}),!n._persistentCache){i.next=5;break}return i.next=5,n._persistentCache.setItem(e,t,o);case 5:case"end":return i.stop()}}),i)})))()}deleteItem(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._localCache.delete(e),!t._persistentCache){r.next=4;break}return r.next=4,t._persistentCache.deleteItem(e);case 4:case"end":return r.stop()}}),r)})))()}}E([Ee,w(0,P)],Kr.prototype,"getItem",null);class qr extends be{constructor(){super(...arguments),this.repositoryIndex=`https://${this._core._environment.endpoints.ACP_CS_HOST}/index`,this.repositoryNameIndex=`https://${this._core._environment.endpoints.ACP_CS_HOST}/repositories`,this._useHighPriorityRequestsIfEnabled=!0,this._cache=this._core._environment.cache}get _fetchIndexState(){return this._core._fetchIndexState}set _fetchIndexState(e){this._core._fetchIndexState=e}_getAndCacheDocument(e){return this._getAllPages(e)}getRootLink(e,t={}){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getIndex();case 2:return i=n.sent,n.abrupt("return",W(i._links,e,t));case 4:case"end":return n.stop()}}),n)})))()}getIndex(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=e._fetchIndexState).pendingCacheClear){t.next=4;break}return t.next=4,i.pendingCacheClear;case 4:if(!i.response||!i.hasChildren){t.next=6;break}return t.abrupt("return",i.response);case 6:return t.next=8,e._cache.getItem(e.repositoryIndex);case 8:if((o=t.sent)!==Yr&&(i.response=o,i.hasChildren=Boolean(null===(n=null===(r=i.response)||void 0===r?void 0:r.children)||void 0===n?void 0:n.length)),i.promise||(i.promise=new Promise(((t,r)=>{e._getResponse(e.repositoryIndex,{headers:{"Cache-Control":"no-cache, no-store, max-age=0"},additionalRetryErrorCodes:[404]}).then(function(){var r=d(u().mark((function r(n){var o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(o=n.children)||void 0===o?void 0:o.length)){r.next=6;break}return r.next=3,e._cache.setItem(e.repositoryIndex,n);case 3:i.hasChildren=!0,r.next=8;break;case 6:i.hasChildren=!1,i.promise=void 0;case 8:i.response=n,t(n);case 10:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).catch(r)}))),!i.promise||i.response&&i.hasChildren){t.next=14;break}return t.next=14,i.promise;case 14:return t.abrupt("return",i.response);case 15:case"end":return t.stop()}}),t)})))()}_clearIndexCache(){this._fetchIndexState.pendingCacheClear=new Promise((e=>{Promise.resolve(this._fetchIndexState.promise).finally((()=>this._cache.deleteItem(this.repositoryIndex))).finally((()=>{this._fetchIndexState={},e()}))}))}_getAndCacheLinksFromHref(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doGet(e);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,o=i._links,r.abrupt("return",{links:o});case 8:case"end":return r.stop()}}),r)})))()}getAssetResolveByIdHref(e){const t=new URL(`https://${this._core._environment.endpoints.ACP_CS_HOST}/links`);return t.searchParams.set("assetId",e),t.toString()}getCloudQuotaUsedAndMax(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getHomeDirectoryMetadata();case 2:return r=t.sent,n=W(r._links,z.QUOTA),t.next=6,e._getResponse(n);case 6:return i=t.sent,t.abrupt("return",{used:i["xdm:consumed"],total:i["xdm:amount"]});case 8:case"end":return t.stop()}}),t)})))()}resolveById(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.getAssetResolveByIdHref(e),r.next=3,t._getAndCacheLinksFromHref(n);case 3:return i=r.sent,o=i.links,r.abrupt("return",new Hr(t,e,o,""));case 6:case"end":return r.stop()}}),r)})))()}getRepoMetadataById(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getRootLink(z.RESOLVE_ID,{id:e});case 2:return n=r.sent,r.next=5,t._getResponse(n);case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))()}getRepoMetadataByPath(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getRootLink(z.RESOLVE_PATH,{repositoryId:e,path:t,mode:"id"});case 2:return i=n.sent,n.next=5,r._getResponse(i);case 5:return o=n.sent,a=o["repo:assetId"],s=o._links,c=r.getAssetResolveByIdHref(a),n.next=11,r._cache.setItem(c,{links:s});case 11:return n.abrupt("return",o);case 12:case"end":return n.stop()}}),n)})))()}getHomeDirectoryMetadata(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getHomeDirectoryMetadata(0);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}_getHomeDirectoryMetadata(e){var t=this;return d(u().mark((function r(){var i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getIndex();case 2:return o=r.sent,r.next=5,null!==(i=t._fetchIndexState.promise)&&void 0!==i?i:o;case 5:if((a=r.sent).children.length){r.next=17;break}if(!(e>=5)){r.next=11;break}throw v.create(n.INVALID_OPERATION,"Home repository not found after 5 retries");case 11:return t._core._environment.log(`/index has no children, ${5-e} retries left`),r.next=14,new Promise((r=>setTimeout(r,t._getRetryErrorDelay(void 0,e))));case 14:return r.next=16,t._getHomeDirectoryMetadata(e+1);case 16:return r.abrupt("return",r.sent);case 17:return r.abrupt("return",a.children[0]._embedded[z.REPO_METADATA]);case 18:case"end":return r.stop()}}),r)})))()}runOperation(e){var t=this;return d(u().mark((function r(){var i,o,a,s,c,l,p,d,h,f,g,y,b;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getRootLink(z.OPS);case 2:return l=r.sent,p={"Content-type":"application/vnd.adobe.asset-operation+json"},d=Array.isArray(e)?e[0]:e,"copy"===(null===(i=d)||void 0===i?void 0:i.op)&&(p.directive="ops-2021"),h="move"===(null===(o=d)||void 0===o?void 0:o.op),f=t._core._environment.getValue("FEATURE_FLAGS"),h&&(null==f?void 0:f["enable-x-bucket-move"])&&(p["enable-x-bucket-move"]="true"),r.next=12,t._doPost(l,p,JSON.stringify(e),"any");case 12:return g=r.sent,r.prev=13,r.next=16,g.json();case 16:y=r.sent,r.next=21;break;case 19:r.prev=19,r.t0=r.catch(13);case 21:if(!y||Array.isArray(y)||200===g.status){r.next=23;break}return r.abrupt("return",[Object.assign(Object.assign({},d),{error:v.createWithRepositoryCode(g.status,null!==(a=y.type)&&void 0!==a?a:m.OPERATION_FAILED,null!==(c=null!==(s=y.title)&&void 0!==s?s:y.message)&&void 0!==c?c:"Operation failed")})]);case 23:if(t._checkResponseStatus(g,l,[200]),y){r.next=26;break}throw v.create(n.UNKNOWN,"Failed to parse response for repo bulk API.");case 26:return b=Array.isArray(y)?y:[y],r.abrupt("return",b.map((e=>{const t=e.error;return Object.assign(Object.assign({},e),{error:t?v.createWithRepositoryCode(t.status,t.type,t.title):void 0})})));case 28:case"end":return r.stop()}}),r,null,[[13,19]])})))()}runOperationsForContext(e,t,r,i,o){var a=this;return d(u().mark((function c(){var l,p,d,h,f,m,g,v,y,b,_,E,w,L;return u().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,a.runOperation(e);case 2:p=c.sent,d={failedResults:[],newModels:[]},h=r.createMutationSession(),f=[],m=s(p),c.prev=7,m.s();case 9:if((g=m.n()).done){c.next=38;break}if(v=g.value,y=v.id&&t.get(v.id)){c.next=14;break}return c.abrupt("continue",36);case 14:if(b=v.asset,!(_=v.error)){c.next=23;break}if(!o){c.next=21;break}if(!(E=null===(l=o.find((e=>e.match(_))))||void 0===l?void 0:l.action)){c.next=21;break}return f.push(E(y,_).then((e=>{e&&d.failedResults.push(e)}))),c.abrupt("continue",36);case 21:return d.failedResults.push({model:y,error:_}),c.abrupt("continue",36);case 23:c.prev=23,(w=i(h,y,b))&&d.newModels.push(w),c.next=36;break;case 28:if(c.prev=28,c.t0=c.catch(23),!(L=c.t0)||L.code!==n.UNKNOWN){c.next=35;break}d.failedResults.push({model:y,error:L}),c.next=36;break;case 35:throw c.t0;case 36:c.next=9;break;case 38:c.next=43;break;case 40:c.prev=40,c.t1=c.catch(7),m.e(c.t1);case 43:return c.prev=43,m.f(),c.finish(43);case 46:return h.commit(),c.next=49,Promise.all(f);case 49:return c.abrupt("return",d);case 50:case"end":return c.stop()}}),c,null,[[7,40,43,46],[23,28]])})))()}getRepositoriesData(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=()=>e._getResponse(e.repositoryNameIndex),864e5,t.next=4,e._cache.getItem(e.repositoryNameIndex,r,void 0,2592e6);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}getRepositoryName(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getRepositoriesData();case 2:if(o=r.sent){r.next=5;break}return r.abrupt("return",void 0);case 5:return a=o.children,s=a.find((t=>t._embedded[z.PRIMARY]["repo:repositoryId"]===e)),r.abrupt("return",null===(i=null===(n=null==s?void 0:s._embedded[z.PRIMARY]["dc:title"])||void 0===n?void 0:n["rdf:_1"])||void 0===i?void 0:i["@value"]);case 8:case"end":return r.stop()}}),r)})))()}getAssetsOwnerDetails(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getRepositoriesData();case 2:return r=t.sent,t.abrupt("return",new Map(r.children.map((e=>{const t=e._embedded[z.PRIMARY]||{};return[t["repo:repositoryId"],t["repo:owner"]]}))));case 4:case"end":return t.stop()}}),t)})))()}getAssetLinks(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.getAssetResolveByIdHref(e),r.next=3,t._getResponse(n);case 3:return i=r.sent,o=i._links,r.abrupt("return",o);case 6:case"end":return r.stop()}}),r)})))()}}E([A,w(0,P)],qr.prototype,"_getAndCacheDocument",null),E([A,w(0,P)],qr.prototype,"_getAndCacheLinksFromHref",null),E([Ee],qr.prototype,"getRepositoriesData",null);const Xr=new WeakMap,Jr=new WeakMap;function Qr(e){const t=Xr.get(e);return console.assert(null!=t,"'this' is expected an Event object, but got",e),t}function en(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"==typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function tn(e,t){Xr.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const r=Object.keys(t);for(let e=0;e<r.length;++e){const t=r[e];t in this||Object.defineProperty(this,t,rn(t))}}function rn(e){return{get(){return Qr(this).event[e]},set(t){Qr(this).event[e]=t},configurable:!0,enumerable:!0}}function nn(e){return{value(){const t=Qr(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function on(e){if(null==e||e===Object.prototype)return tn;let t=Jr.get(e);return null==t&&(t=function(e,t){const r=Object.keys(t);if(0===r.length)return e;function n(t,r){e.call(this,t,r)}n.prototype=Object.create(e.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){const o=r[i];if(!(o in e.prototype)){const e="function"==typeof Object.getOwnPropertyDescriptor(t,o).value;Object.defineProperty(n.prototype,o,e?nn(o):rn(o))}}return n}(on(Object.getPrototypeOf(e)),e),Jr.set(e,t)),t}function an(e){return Qr(e).immediateStopped}function sn(e,t){Qr(e).passiveListener=t}tn.prototype={get type(){return Qr(this).event.type},get target(){return Qr(this).eventTarget},get currentTarget(){return Qr(this).currentTarget},composedPath(){const e=Qr(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Qr(this).eventPhase},stopPropagation(){const e=Qr(this);e.stopped=!0,"function"==typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=Qr(this);e.stopped=!0,e.immediateStopped=!0,"function"==typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(Qr(this).event.bubbles)},get cancelable(){return Boolean(Qr(this).event.cancelable)},preventDefault(){en(Qr(this))},get defaultPrevented(){return Qr(this).canceled},get composed(){return Boolean(Qr(this).event.composed)},get timeStamp(){return Qr(this).timeStamp},get srcElement(){return Qr(this).eventTarget},get cancelBubble(){return Qr(this).stopped},set cancelBubble(e){if(!e)return;const t=Qr(this);t.stopped=!0,"boolean"==typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!Qr(this).canceled},set returnValue(e){e||en(Qr(this))},initEvent(){}},Object.defineProperty(tn.prototype,"constructor",{value:tn,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(tn.prototype,window.Event.prototype),Jr.set(window.Event.prototype,tn));const cn=new WeakMap;function ln(e){return null!==e&&"object"==typeof e}function un(e){const t=cn.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function pn(e,t){Object.defineProperty(e,`on${t}`,function(e){return{get(){let t=un(this).get(e);for(;null!=t;){if(3===t.listenerType)return t.listener;t=t.next}return null},set(t){"function"==typeof t||ln(t)||(t=null);const r=un(this);let n=null,i=r.get(e);for(;null!=i;)3===i.listenerType?null!==n?n.next=i.next:null!==i.next?r.set(e,i.next):r.delete(e):n=i,i=i.next;if(null!==t){const i={listener:t,listenerType:3,passive:!1,once:!1,next:null};null===n?r.set(e,i):n.next=i}},configurable:!0,enumerable:!0}}(t))}function dn(e){function t(){hn.call(this)}t.prototype=Object.create(hn.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let r=0;r<e.length;++r)pn(t.prototype,e[r]);return t}function hn(){if(!(this instanceof hn)){if(1===arguments.length&&Array.isArray(arguments[0]))return dn(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return dn(e)}throw new TypeError("Cannot call a class as a function")}cn.set(this,new Map)}hn.prototype={addEventListener(e,t,r){if(null==t)return;if("function"!=typeof t&&!ln(t))throw new TypeError("'listener' should be a function or an object.");const n=un(this),i=ln(r),o=(i?Boolean(r.capture):Boolean(r))?1:2,a={listener:t,listenerType:o,passive:i&&Boolean(r.passive),once:i&&Boolean(r.once),next:null};let s=n.get(e);if(void 0===s)return void n.set(e,a);let c=null;for(;null!=s;){if(s.listener===t&&s.listenerType===o)return;c=s,s=s.next}c.next=a},removeEventListener(e,t,r){if(null==t)return;const n=un(this),i=(ln(r)?Boolean(r.capture):Boolean(r))?1:2;let o=null,a=n.get(e);for(;null!=a;){if(a.listener===t&&a.listenerType===i)return void(null!==o?o.next=a.next:null!==a.next?n.set(e,a.next):n.delete(e));o=a,a=a.next}},dispatchEvent(e){if(null==e||"string"!=typeof e.type)throw new TypeError('"event.type" should be a string.');const t=un(this),r=e.type;let n=t.get(r);if(null==n)return!0;const i=function(e,t){return new(on(Object.getPrototypeOf(t)))(e,t)}(this,e);let o=null;for(;null!=n;){if(n.once?null!==o?o.next=n.next:null!==n.next?t.set(r,n.next):t.delete(r):o=n,sn(i,n.passive?n.listener:null),"function"==typeof n.listener)try{n.listener.call(this,i)}catch(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}else 3!==n.listenerType&&"function"==typeof n.listener.handleEvent&&n.listener.handleEvent(i);if(an(i))break;n=n.next}return sn(i,null),function(e,t){Qr(e).eventPhase=t}(i,0),function(e,t){Qr(e).currentTarget=t}(i,null),!i.defaultPrevented}},Object.defineProperty(hn.prototype,"constructor",{value:hn,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(hn.prototype,window.EventTarget.prototype);class fn extends hn{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=mn.get(this);if("boolean"!=typeof e)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return e}}pn(fn.prototype,"abort");const mn=new WeakMap;Object.defineProperties(fn.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(fn.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class gn{constructor(){vn.set(this,function(){const e=Object.create(fn.prototype);return hn.call(e),mn.set(e,!1),e}())}get signal(){return yn(this)}abort(){var e;e=yn(this),!1===mn.get(e)&&(mn.set(e,!0),e.dispatchEvent({type:"abort"}))}}const vn=new WeakMap;function yn(e){const t=vn.get(e);if(null==t)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===e?"null":typeof e));return t}Object.defineProperties(gn.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(gn.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});const bn="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;bn&&(void 0===bn.AbortController&&(bn.AbortController=gn),void 0===bn.AbortSignal&&(bn.AbortSignal=fn));const _n="application/vnd.adobecloud.subscription+json",En="X-User-Token",wn={includeResources:[{reltype:"api:metadata/repository"},{reltype:"api:metadata/application"},{reltype:"api:ac/policy"}]};class Ln extends Le{constructor(e,t){if(super(),this._onsInterface=e,this._assets=new Map,this._watchedAssets=new Map,this._initializedFromCache=!1,t){const e=t.id,r=t.href,n=t.assets,i=t.expiresAt;this._subscriptionId=e,this._subscriptionHref=r,this._expiresAt=i,this._watchedAssets=new Map(Object.entries(n)),this._initializedFromCache=this._watchedAssets.size>0}}get _core(){return this._onsInterface._core}get subscriptionId(){return this._subscriptionId}get subscriptionHref(){return this._subscriptionHref}get expiresAt(){var e;return null!==(e=this._expiresAt)&&void 0!==e?e:0}_log(e){this._core._environment.log(e)}get lastError(){return this._lastError}get assets(){return this._assets}get watchedAssets(){return this._watchedAssets}abort(){return!!this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=void 0,this._log(`subscription ${this.subscriptionId} retry got aborted`),!0)}set assets(e){this._assets=new Map(e),this._update()}_update(e=0){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.abort(),!hr(i=t._assets,t._watchedAssets)){r.next=5;break}return t._lastError?(t._lastError=void 0,t.emit("change")):t._initializedFromCache&&t.emit("change",{fromCache:!0}),r.abrupt("return");case 5:if(t._log(`Setting ${i.size} asset ids for ${t.subscriptionId||"<pending subscription id>"}`),r.prev=6,0!==i.size){r.next=13;break}return t._log(`deleting subscription ${t.subscriptionId} requested assets no longer exist`),r.next=11,t._deleteSubscriptionFromServer();case 11:r.next=22;break;case 13:if(!t._subscriptionHref){r.next=19;break}return t._log(`updating subscription on the server ${t.subscriptionId}`),r.next=17,t._updateSubscriptionOnServer(i);case 17:r.next=22;break;case 19:return t._log("creating subscription"),r.next=22,t._createSubscriptionOnServer(i);case 22:t._watchedAssets=i,t._lastError=void 0,t.emit("change"),r.next=33;break;case 27:r.prev=27,r.t0=r.catch(6),t._log(`Error updating subscription: ${r.t0}`),t._lastError=r.t0,t.emit("change"),e<3&&(o=1e3*($(null===(n=r.t0.response)||void 0===n?void 0:n.headers)||Ln.DEFAULT_RETRY_INTERVAL_SEC),o=Math.max(10,o),t._retryTimeout=setTimeout((()=>{t._retryTimeout=void 0,t._update(e+1)}),o));case 33:case"end":return r.stop()}}),r,null,[[6,27]])})))()}_parseSubscriptionResponse(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t();case 2:if(!((o=i.sent).status<200||o.status>=300)){i.next=12;break}if(a=`operation ${e} with http response.status: ${o.status}`,403!==o.status){i.next=10;break}return i.next=8,o.json();case 8:(s=i.sent).type===m.SUBSCRIPTION_COUNT&&(a=`Maximum number of subscriptions per user per device exceeded (${s.max})`);case 10:throw r._log(a),v.createWithResponseAndDescription(o,a);case 12:return i.next=14,o.json();case 14:if((c=i.sent).id&&c._links&&c._links.self&&c._links.self.href){i.next=19;break}throw a="No subscription ID or href was returned in subscribe response.",r._log(a),v.create(n.BAD_REQUEST,a,{response:o});case 19:r._subscriptionId=c.id,r._subscriptionHref=c._links.self.href,c.expiresAt&&(r._expiresAt=c.expiresAt);case 22:case"end":return i.stop()}}),i)})))()}_createObjectsRequestBody(e){const t=[];return e.forEach(((e,r)=>t.push(Object.assign(Object.assign({id:r},wn),e)))),t}_createRequestBody(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._createObjectsRequestBody(null!=e?e:t.watchedAssets),r.next=3,t._core._environment.getDeviceId();case 3:return i=r.sent,o={id:t.subscriptionId,objects:n,device:{id:i},expiresAt:Date.now()+t._core._environment.getValue("ONS_SUBSCRIPTION_TIME_TO_LIVE")},r.abrupt("return",JSON.stringify(o));case 6:case"end":return r.stop()}}),r)})))()}_createSubscriptionOnServer(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._onsInterface._getLink(z.SUBSCRIPTION_CREATE);case 2:return n=r.sent,r.next=5,t._createRequestBody(e);case 5:return i=r.sent,t._log(`Creating subscription for ${e.size} assets: ${[...e.keys()].join(", ")}`),r.abrupt("return",t._parseSubscriptionResponse("create",(()=>t._core._environment.fetch(n,{method:"POST",body:i,authHeader:En,headers:{"Content-Type":_n}}))));case 8:case"end":return r.stop()}}),r)})))()}_updateSubscriptionOnServer(e){var t=this;return d(u().mark((function r(){var i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=t._watchedAssets,a=[],(o=e).forEach(((e,t)=>{if(!i.has(t)){const r={op:"add",path:"/objects/-",value:Object.assign(Object.assign({id:t},wn),e)};a.push(r)}})),i.forEach(((e,t)=>{if(!o.has(t)){const e={op:"remove",path:`/objects/id=${t}`};a.push(e)}})),s=JSON.stringify(a),t._log(`Updating subscription ${t._subscriptionId}: ${s}`),r.prev=7,r.next=10,t._parseSubscriptionResponse("update",(()=>t._core._environment.fetch(t._subscriptionHref,{method:"PATCH",body:s,authHeader:En,headers:{"Content-Type":U}})));case 10:r.next=18;break;case 12:if(r.prev=12,r.t0=r.catch(7),r.t0.code!==n.NOT_FOUND){r.next=17;break}return t._log(`The subscription we tried to update no longer exists (${t._subscriptionId}) - creating a new subscription instead`),r.abrupt("return",t._createSubscriptionOnServer(e));case 17:throw r.t0;case 18:case"end":return r.stop()}}),r,null,[[7,12]])})))()}_deleteSubscriptionFromServer(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e._log(`Deleting subscription ${e._subscriptionId}`),t.prev=1,t.next=4,e._core._environment.fetch(e._subscriptionHref,{method:"DELETE",authHeader:En});case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),e._log(`Unable to delete subscription: ${e._subscriptionHref}. Error: ${t.t0}`);case 9:e._subscriptionId=void 0,e._subscriptionHref=void 0,e._expiresAt=void 0;case 12:case"end":return t.stop()}}),t,null,[[1,6]])})))()}refreshSubscriptionExpiryDate(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e._log(`Refreshing expiry date on subscription ${e.subscriptionId}`),t.next=3,e._createRequestBody();case 3:return r=t.sent,t.abrupt("return",e._parseSubscriptionResponse("update",(()=>e._core._environment.fetch(e.subscriptionHref,{method:"PUT",body:r,authHeader:En,headers:{"Content-Type":_n}}))).catch((()=>e._update())));case 5:case"end":return t.stop()}}),t)})))()}_fetchChangeLogPage(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c,l,p,d,h,f;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s={subscriptionId:t._subscriptionId},!t._nextChangeLogLinks){r.next=5;break}r.t0=W(t._nextChangeLogLinks,z.GENERIC_NEXT,s),r.next=8;break;case 5:return r.next=7,t._onsInterface._getLink(z.ONS_CHANGELOG,s);case 7:r.t0=r.sent;case 8:return c=r.t0,r.next=11,t._core._environment.fetch(c,{headers:{directive:"ons-repometa"}});case 11:if(200===(l=r.sent).status){r.next=21;break}if(p=`Unexpected response fetching change log: ${l.status}`,403!==l.status){r.next=19;break}return r.next=17,l.json();case 17:r.sent.type===m.LIMIT_CHANGELOGRETENTION&&(p='Changelog retention period expired, discarding "next" link and fetching changelog again.',t._nextChangeLogLinks=void 0);case 19:throw t._log(p),v.createWithResponseAndDescription(l,p);case 21:return r.next=23,l.json();case 23:return d=r.sent,h=null!==(n=d["ons:changedSubscriptions"])&&void 0!==n?n:[],f=h.find((e=>e["ons:subscriptionId"]===t._subscriptionId)),(null!==(i=null==f?void 0:f["ons:changes"])&&void 0!==i?i:[]).forEach((t=>{var r;const n=t["repo:assetId"],i=null!==(r=t["ons:resources"])&&void 0!==r?r:[],o=[...Object.keys(i)],a=t["ons:subscribedDirectoryAssetId"];if(n)if(e.has(n)){const t=e.get(n);t.changedResources=[...new Set([...t.changedResources,...o])],e.set(n,t)}else e.set(n,{parentAssetId:a,changedResources:o})})),t._nextChangeLogLinks=null==d?void 0:d._links,r.abrupt("return",null===(a=null===(o=t._nextChangeLogLinks)||void 0===o?void 0:o.next)||void 0===a?void 0:a.nextPage);case 30:case"end":return r.stop()}}),r)})))()}fetchAndNotifyChanges(e=0){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t._log(`Fetching ChangeLog for subscription ${t._subscriptionId}...`),t._retryChangeLogTimeout&&clearTimeout(t._retryChangeLogTimeout),n=r=>{var n;const i=1e3*$(null===(n=r.response)||void 0===n?void 0:n.headers),o=Math.max(i,t._core._environment.getRetryInterval(e));t._log(`Retrying change log fetch in ${o}ms`),t._retryChangeLogTimeout=setTimeout((()=>t.fetchAndNotifyChanges(e+1)),o)},i=new Map,r.prev=4,o=!0;case 6:if(!o){r.next=12;break}return r.next=9,t._fetchChangeLogPage(i);case 9:o=r.sent,r.next=6;break;case 12:r.next=18;break;case 14:r.prev=14,r.t0=r.catch(4),t._log(`Error fetching change log: ${r.t0}`),n(r.t0);case 18:i.size&&(t._log(`Changed Assets: ${[...i.keys()].join(", ")}`),t._onsInterface.emit("change",i));case 19:case"end":return r.stop()}}),r,null,[[4,14]])})))()}validate(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._subscriptionHref){t.next=6;break}if(!(e._assets.size>0)){t.next=4;break}return e._log("assets exist for subscription but no _subscriptionHref was found, trying to _update() again..."),t.abrupt("return",e._update());case 4:return e._log("subscription has no assets and no _subscriptionHref set"),t.abrupt("return");case 6:return t.prev=6,t.next=9,e._core._environment.fetch(e._subscriptionHref,{authHeader:En});case 9:r=t.sent,e._log(`Subscription ${e._subscriptionId} exists on the server`),t.next=18;break;case 13:return t.prev=13,t.t0=t.catch(6),e._log(`Error checking ${e._subscriptionId}, it does not exist on the server`),e._log(t.t0),t.abrupt("return");case 18:if([200,201,204].includes(r.status)){t.next=24;break}return e._log("ONS subscription has been invalidated. Creating new subscription..."),e._subscriptionHref=void 0,e._subscriptionId=void 0,e._watchedAssets=new Map,t.abrupt("return",e._update());case 24:case"end":return t.stop()}}),t,null,[[6,13]])})))()}}Ln.DEFAULT_RETRY_INTERVAL_SEC=0,E([Ee],Ln.prototype,"_update",null),E([Ee],Ln.prototype,"fetchAndNotifyChanges",null);const xn=[z.SUBSCRIPTION_CREATE,z.NOTIFICATIONS_LONGPOLL,z.ONS_CHANGELOG],Sn="X-User-Token",On="firstLongPollStarted",Tn="firstLongPollCompleted",In="ONS_SUBSCRIPTIONS";class Pn extends Le{constructor(e,t=e._environment.getValue("ENABLE_ONS_CACHE")){super(),this._core=e,this._cacheEnabled=t,this._isStarted=!1,this._subscriptions=[],this._maxAssetsPerSubscription=5,this._assetIds=new Set,this._cachedSubscriptionsUsed=!1,this._onSubscriptionChange=({fromCache:e=!1}={})=>{e||(this._cachedSubscriptionsUsed=!1),this._updateCachedSubscriptions(),this._startLongPoll()},this._onVisibilityChange=()=>{var e;this._stopTimeout&&(clearTimeout(this._stopTimeout),this._stopTimeout=void 0),"visible"===(null===(e=this._document)||void 0===e?void 0:e.visibilityState)?this._start():this._stopTimeout=setTimeout((()=>this._stop()),this._core._environment.getValue("ONS_DOCUMENT_VISIBILITY_TIMEOUT"))},this._cache=e._environment.cache}_getSubscriptionConfig(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._getRootDocument();case 3:return i=t.sent,t.abrupt("return",null!==(n=null===(r=null==i?void 0:i.config)||void 0===r?void 0:r.subscriptions)&&void 0!==n?n:{});case 7:return t.prev=7,t.t0=t.catch(0),e._log(`Error fetching subscription config from ONS root document: ${t.t0}`),t.abrupt("return",{});case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()}_updateCachedSubscriptions(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._cacheEnabled){t.next=2;break}return t.abrupt("return");case 2:return r=[],e._subscriptions.forEach((t=>{const n=t.subscriptionId,i=t.subscriptionHref,o=t.assets,a=t.expiresAt;if(!n||!i)return;const s={id:n,href:i,assets:Object.fromEntries(o),expiresAt:a||Date.now()+e._core._environment.getValue("ONS_SUBSCRIPTION_TIME_TO_LIVE")};r.push(s)})),t.next=6,e._cache.setItem(In,JSON.stringify({subscriptions:r}),e._core._environment.getValue("ONS_SUBSCRIPTION_TIME_TO_LIVE"));case 6:case"end":return t.stop()}}),t)})))()}_getAndParseCachedSubscriptions(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._cacheEnabled){t.next=2;break}return t.abrupt("return",[]);case 2:return t.next=4,e._cache.getItem(In);case 4:if((r=t.sent)===Yr){t.next=13;break}return t.prev=6,t.abrupt("return",JSON.parse(r).subscriptions);case 10:t.prev=10,t.t0=t.catch(6),e._log("error parsing cached subscriptions");case 13:return t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[6,10]])})))()}_ensureSubscriptions(){var e=this;return d(u().mark((function t(){var r,n,i,o,a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getSubscriptionConfig();case 2:if(r=t.sent,n=r.maxSubscriptionPerLongPoll||e._core._environment.getValue("ONS_DEFAULT_MAX_SUBSCRIPTIONS"),e._maxAssetsPerSubscription=r.maxAssetsPerRequest||e._core._environment.getValue("ONS_DEFAULT_MAX_ASSETS_PER_SUBSCRIPTION"),!(n>e._subscriptions.length)){t.next=13;break}return t.next=8,e._getAndParseCachedSubscriptions();case 8:for(i=t.sent,e._cachedSubscriptionsUsed=i.length>0,o=e._subscriptions.length;o<n;++o)a=new Ln(e,i[o]),e._subscriptions.push(a),a.on("change",e._onSubscriptionChange);t.next=14;break;case 13:if(n<e._subscriptions.length){for(o=n;o<e._subscriptions.length;++o)(a=e._subscriptions[o]).assets=new Map,a.off("change",e._onSubscriptionChange);e._subscriptions.length=n}case 14:case"end":return t.stop()}}),t)})))()}get _activeSubscriptionIds(){return Array.from(this._subscriptions).filter((e=>e.subscriptionId&&e.watchedAssets.size>0)).map((e=>`${e.subscriptionId}`)).sort()}_startLongPoll(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==(r=e._activeSubscriptionIds).length){t.next=5;break}t.t0=void 0,t.next=8;break;case 5:return t.next=7,e._getLink(z.NOTIFICATIONS_LONGPOLL,{includeJournal:"false",subscriptionId:r});case 7:t.t0=t.sent;case 8:n=t.t0,i=e._pollURL!==n,e._pollURL=n,e.isActive&&i&&(e._stop(),e._start());case 12:case"end":return t.stop()}}),t)})))()}_log(e){this._core._environment.debug(`ONS: ${e}`)}get isActive(){return Boolean(this._abortController)}get assetIds(){return new Set(this._assetIds)}get watchedAssetIds(){const e=new Set;return this._subscriptions.forEach((t=>{t.watchedAssets.forEach(((t,r)=>e.add(r)))})),e}get _document(){if("undefined"!=typeof window)return window.document}start(){var e;this._isStarted||(null===(e=this._document)||void 0===e||e.addEventListener("visibilitychange",this._onVisibilityChange),this._isStarted=!0,this._document&&"visible"!==this._document.visibilityState||this._start())}stop(){var e;this._isStarted&&(null===(e=this._document)||void 0===e||e.removeEventListener("visibilitychange",this._onVisibilityChange),this._isStarted=!1,this._subscriptions.forEach((e=>e.abort())),this._stop())}_stop(){if(!this.isActive)return;this._stopTimeout&&(clearTimeout(this._stopTimeout),this._stopTimeout=void 0),this._log("Stopping...");const e=this._abortController;delete this._abortController,this._abortController=void 0,null==e||e.abort()}_start(){this.isActive?this._log("Already starting skipping..."):(this._log("Starting..."),this._abortController=new AbortController,this._poll())}_truncateAssetIdsByMaxSizeIfNeeded(e){const t=this._maxAssetsPerSubscription*this._subscriptions.length;return e.size>t&&(this._log(`Number of assets ${e.size} exceeds the maximum allowed by ONS. Limiting to ${t}`),e=new Set(Array.from(e).slice(0,t))),e}watch(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._ensureSubscriptions();case 2:n=new Set,e.forEach((r=>{var i;const o=t._core.hostAssetContext._assetPool.getLocalItemById(r),a=null!==(i=null==o?void 0:o.ancestorIDs)&&void 0!==i?i:[],s=a[a.length-1];e.has(s)&&!(null==o?void 0:o.isFolder)||n.add(r)})),t._assetIds=t._truncateAssetIdsByMaxSizeIfNeeded(n),i=new Set,o=Array.from(t._subscriptions.map((e=>{const r=new Map;return e.assets.forEach(((e,n)=>{t._assetIds.has(n)&&i.add(n)&&r.set(n,e)})),r}))),a=0,t._assetIds.forEach((e=>{if(i.has(e))return;for(;o[a].size>=t._maxAssetsPerSubscription;)a++;const r=t._core.hostAssetContext._assetPool.getLocalItemById(e);o[a].set(e,(null==r?void 0:r.isFolder)?{directoryLevel:"shallow"}:{})})),t._subscriptions.forEach(((e,t)=>e.assets=o[t]));case 10:case"end":return r.stop()}}),r)})))()}_notifyFirstLongPollStarted(e=!1){this.emit(On,{cachedSubscriptionsUsed:e})}_notifyFirstLongPollCompleted(e){this.emit(Tn,{expired:e})}_validateAndUpdateSubscriptionExpiration(){const e=Date.now(),t=Math.max(.1*this._core._environment.getValue("ONS_SUBSCRIPTION_TIME_TO_LIVE"),this._core._environment.getValue("ONS_SUBSCRIPTION_RENEW_TIME"));this._subscriptions.filter((r=>r.watchedAssets.size&&r.expiresAt-e<t)).forEach((e=>e.refreshSubscriptionExpiryDate()))}_poll(e=0){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=(r,n=0)=>{n=Math.max(t._core._environment.getRetryInterval(e),n);const i=t._abortController;if(!i)return;t._log(`Retrying long poll in ${n}ms`);const o=setTimeout((()=>t._poll(e+1)),n);i.signal.addEventListener("abort",(()=>{i!==t._abortController&&clearTimeout(o)}))},i=t._abortController){r.next=5;break}return t._log("No abort controller..."),r.abrupt("return");case 5:if(r.prev=5,void 0!==t._pollURL){r.next=9;break}return t._log("Poll URL undefined..."),r.abrupt("return");case 9:return t._notifyFirstLongPollStarted(t._cachedSubscriptionsUsed),o=t._pollURL,18e4,r.next=14,t._core._environment.fetch(o,{signal:i.signal,authHeader:Sn,headers:{"x-poll-timeout":"160"},requestTimeoutMs:18e4});case 14:if(a=r.sent,![200,201,204].includes(a.status)){r.next=27;break}return r.next=18,a.json();case 18:s=r.sent,t._notifyFirstLongPollCompleted(!1),t._log(`Successful long poll for ${o}`),s&&s.subscriptions&&s.subscriptions.length>0&&(t._log(`Subscriptions changed: ${s.subscriptions.join(", ")}`),s.subscriptions.forEach((e=>{const r=t._subscriptions.find((t=>t.subscriptionId===e));null==r||r.fetchAndNotifyChanges()})),t._validateAndUpdateSubscriptionExpiration(),t.emit("notified")),s&&s.checkSubscriptions&&s.checkSubscriptions.length>0&&(t._log(`Checking subscriptions for subscriptions to check ${s.checkSubscriptions.length}`),s.checkSubscriptions.forEach((e=>{const r=t._subscriptions.find((t=>t.subscriptionId===e));r&&r.validate()}))),t._pollURL=s&&s._links&&s._links.next&&s._links.next.href,t._poll(),r.next=28;break;case 27:404===a.status?(t._notifyFirstLongPollCompleted(!0),t._log(`404 Response long poll for ${o}, subscription missing or expired`),t._subscriptions.forEach((e=>{e.subscriptionId&&e.validate()})),n(void 0,t._core._environment.getValue("MAX_RETRY_INTERVAL"))):(t._log(`Unexpected response, trying again ${o}`),n(void 0,1e3*$(a.headers)));case 28:r.next=38;break;case 30:if(r.prev=30,r.t0=r.catch(5),!i.signal.aborted||i===t._abortController){r.next=36;break}return t.emit("aborted"),t._notifyFirstLongPollCompleted(!0),r.abrupt("return");case 36:t._log("Error trying to create long poll request"),n();case 38:case"end":return r.stop()}}),r,null,[[5,30]])})))()}_getAndCacheDocument(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core._environment.fetch(e,{headers:{Accept:"application/vnd.syncservice.v2.hal+json"},authHeader:Sn});case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}_getRootDocument(){return this._getAndCacheDocument(`https://${this._core._environment.endpoints.SYNC_SERVICE_HOST}/api/v1`)}_getLink(e,t={}){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getRootDocument();case 2:return i=n.sent,n.abrupt("return",W(i._links,e,t));case 4:case"end":return n.stop()}}),n)})))()}}E([Ee],Pn.prototype,"_updateCachedSubscriptions",null),E([Ee],Pn.prototype,"_startLongPoll",null),E([k],Pn.prototype,"_notifyFirstLongPollStarted",null),E([k],Pn.prototype,"_notifyFirstLongPollCompleted",null),E([A((e=>e._links&&xn.every((t=>e._links[t])))),w(0,P)],Pn.prototype,"_getAndCacheDocument",null);const Cn=["file","composite","directory","entity","element"],An=["ACTIVE","DISCARDED","DISCARDED_PARENT"];var kn,Dn;!function(e){e[e.None=0]="None",e[e.CollaboratorMaybeEditing=1]="CollaboratorMaybeEditing"}(kn||(kn={})),function(e){e[e.DifferentOwner=1]="DifferentOwner",e[e.PermissionDeniedDestination=2]="PermissionDeniedDestination",e[e.PermissionDeniedSource=3]="PermissionDeniedSource",e[e.NotAFolder=4]="NotAFolder"}(Dn||(Dn={}));class Nn{constructor(e,t){this.task=e,this.onGotOwnership=t}registerNewTask(e){let t=this;for(;t;){const r=t.next;if(!r)return void(t.next=e);t=r}}}class Rn extends Me{constructor(e,t){super(),this._core=e,this.id=t}get lastKnownClientMutation(){return this._lastKnownClientMutation}updateLastKnownClientMutation(){this._lastKnownClientMutation=Date.now()}waitForMutationPropagationIfNeeded(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._lastKnownClientMutation)){r.next=6;break}if(!((i=n+e-Date.now())>0)){r.next=6;break}return r.next=6,new Promise((e=>setTimeout(e,i)));case 6:case"end":return r.stop()}}),r)})))()}get exclusiveTask(){var e;return null===(e=this._exclusiveTaskChain)||void 0===e?void 0:e.task}_setExclusiveTaskChain(e){this._exclusiveTaskChain=e,this.dispatch(R)}_setId(e){this.id=e}static runExclusiveTask(e,t,r){return new Promise((n=>{const i={name:e,items:t},o=()=>n(r(i).finally((()=>{var e,r=s(t);try{for(r.s();!(e=r.n()).done;){const t=e.value,r=t._exclusiveTaskChain.next;t._setExclusiveTaskChain(r),null==r||r.onGotOwnership()}}catch(e){r.e(e)}finally{r.f()}})));let a=0;const c=()=>{0==--a&&setTimeout(o,0)};var l,u=s(t);try{for(u.s();!(l=u.n()).done;){const e=l.value,t=new Nn(i,c),r=e._exclusiveTaskChain;r?(++a,r.registerNewTask(t)):e._setExclusiveTaskChain(t)}}catch(e){u.e(e)}finally{u.f()}0===a&&o()}))}}function Mn(e,t){return e.localeCompare(t)}function jn(e,t){return e===t?0:e<t?-1:1}E([Z],Rn.prototype,"exclusiveTask",null);function Zn(e){return class extends class{constructor(e,t,r){this.direction=e,this.field=t,this.comparator=r}get hash(){return this.direction+":"+this.field}sortItems(e){e.sort(this.comparator)}}{constructor(t,r){let n=e[r];"descending"===t&&(n=function(e){return(t,r)=>-e(t,r)}(n)),super(t,r,n)}}}const Fn={name:"asset_name",created:"create_date",modified:"modify_date",shared:"shared_date"},Bn={name:(e,t)=>Mn(e.name,t.name),shared:(e,t)=>jn(e.shared,t.shared),created:(e,t)=>jn(e.created,t.created),modified:(e,t)=>jn(e.modified,t.modified)};class Gn extends(Zn(Bn)){}Gn.default=new Gn("descending","shared");const Un="USSAdobeAssetFilter";class zn{constructor(e,t,r){this._assetPool=e,this._core=t,this._loader=r}loadPage(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f,m,g,v,y,b,_,E,w,L,x,S,O,T,I;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.order,s=e.limit,c=void 0===s?50:s,l=e.filter,p=e.implicitFilter,d=r._core._environment.getValue("USS_LIST_UPDATE_LATENCY"),h=Date.now()-d,t=t||0,m=(f=l).mediaTypes,g=f.excludeMediaTypes,f.name===Un&&(v=(b=f).uploadedFrom,y=b.userId),n.next=9,r._loader._getUSSResults(Object.assign(Object.assign({order:a,limit:c,filter:l,implicitFilter:p,start:t,mediaTypes:Array.from(null!=m?m:[]),excludeMediaTypes:Array.from(null!=g?g:[])},v?{uploadedFrom:v}:{}),y?{userId:y}:{}));case 9:return _=n.sent,E=_.result_sets[0],w=r._assetPool.createLoaderUpdateSession(h),L=r._extractItems(w,E.items),S=E.total_items||0,O=E.items.length,(T=0===O?t+c:t+O)<S&&(x=e=>r.loadPage(e,T)),I={items:L,total:S,loadNextPage:x,mostRecentValidMutation:h},null===(o=(i=r._loader)._postProcessPage)||void 0===o||o.call(i,e,I),w.commit(),n.abrupt("return",I);case 21:case"end":return n.stop()}}),n)})))()}_getItemData(e){let t=!1,r=0;const n=e.collaboration_metadata;return void 0!==n&&(t=n.some((e=>"all"===e.collaborator_id)),r=n.length),Object.assign(Object.assign({},e),{sharedViaInvite:!!e["collab_metadata#mine"],isShared:r>0,isPublicLink:t,directCollaboratorCount:r,shareFlagsAreDirty:!1})}_extractItems(e,t){return this._core._adobeAssetFactory.assetsFromUSSMetadata(e,t,this._loader._getItemData||this._getItemData,this._loader._libraryContext)}}class Vn{constructor(e,t,r){this._core=t,this._swyInterface=r,this._ussLoaderHelper=new zn(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 5:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,order:i}){var o=this;return d(u().mark((function a(){return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",o._swyInterface.getSWYAssets({orderBy:Fn[i.field],orderDirection:i.direction,start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,embedPermissions:!0}));case 1:case"end":return a.stop()}}),a)})))()}}function Hn(e){(null==e?void 0:e.find((e=>"application/vnd.adobecloud.directory+json"===e)))&&e.push("application/x-sharedcloud-collection+json")}const Yn={orderDirection:"descending",orderBy:"shared_date",start:0,limit:0};class Wn extends be{getSharedByMeAssets(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Hn((t=Object.assign(Object.assign({},Yn),t)).type),i={hints:{acp_platform_v2:!0},fetch_fields:{includes:["collab_metadata$$collaborators"]},"storage:assignee$$type":["user"],op_none_of:[{"app_metadata$$shell:visibility":"hiddenSelf"}],parent_id:[e],[ir.TYPE]:t.type||[],sort_orderby:t.orderBy,sort_order:(a=t,"ascending"===a.orderDirection?"asc":"desc"),limit:t.limit,start_index:t.start},n.next=5,r._core.hostAssetContext._ussInterface.getQueryResponse(i);case 5:return o=n.sent,n.abrupt("return",o);case 7:case"end":return n.stop()}var a}),n)})))()}}const $n={orderDirection:"descending",orderBy:"shared_date",start:0,limit:0,mediaTypes:[],excludeMediaTypes:[]};class Kn extends be{getSWYAssets(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Hn((e=Object.assign(Object.assign({},$n),e)).mediaTypes),Hn(e.excludeMediaTypes),n={shared_via_invite:!0,hints:{acp_platform_v2:!0},fetch_fields:{includes:At()},op_none_of:[{op_field_exists:["app_metadata$$cc:inheritable$$cc:team$$repo:assetId","app_metadata$$cc:inherited$$cc:space$$repo:assetId","app_metadata$$cc:inheritable$$cc:space$$repo:assetId"]},{[ir.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"appdata"},{[ir.TYPE]:e.excludeMediaTypes||[]},{[ir.STORAGE_ASSIGNEE_ID]:t._core._environment.getValue("USER_ID")}],[ir.TYPE]:e.mediaTypes||[],sort_orderby:e.orderBy,sort_order:(o=e,"ascending"===o.orderDirection?"asc":"desc"),limit:e.limit,start_index:e.start},e.embedPermissions&&n.fetch_fields.includes.push("_embedded"),r.next=7,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 7:return i=r.sent,r.abrupt("return",i);case 9:case"end":return r.stop()}var o}),r)})))()}}const qn={orderDirection:"descending",orderBy:"modify_date",start:0,limit:0};class Xn extends be{getFilteredAssets(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Hn((e=Object.assign(Object.assign({},qn),e)).mediaTypes),Hn(e.excludeMediaTypes),n=Object.assign(Object.assign(Object.assign({hints:{acp_platform_v2:!0},fetch_fields:{includes:At()},[ir.STORAGE_ASSIGNEE_TYPE]:["user"],op_none_of:[{op_field_exists:["app_metadata$$cc:inheritable$$cc:team$$repo:assetId","app_metadata$$cc:inherited$$cc:team$$repo:assetId"]},{[ir.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"appdata"},{[ir.TYPE]:e.excludeMediaTypes||[]}]},e.assetId?Object.assign({},e.deepSearch?{container:{asset_id:[e.assetId]}}:{parent_id:[e.assetId]}):{}),{[ir.TYPE]:e.mediaTypes||[],sort_orderby:e.orderBy,sort_order:(c=e,"ascending"===c.orderDirection?"asc":"desc"),limit:e.limit,start_index:e.start}),e.query?{q:e.query}:{}),i=e.userId,o=e.uploadedFrom,i&&(n.op_and=n.op_and||[],n.op_and.push({[ir.STORAGE_ASSIGNEE_ID]:i})),o&&(n.op_and=n.op_and||[],n.op_and.push({[ir.CREATED_FROM_UPLOAD]:!0}),Array.isArray(o)&&(a=o.map((e=>({[ir.CREATED_BY_CLIENT_ID]:e}))),n.op_and.push({[ir.OP_OR]:a}))),r.next=10,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 10:return s=r.sent,r.abrupt("return",s);case 12:case"end":return r.stop()}var c}),r)})))()}}const Jn={orderDirection:"descending",orderBy:"modify_date",start:0,limit:0};class Qn extends be{getFilteredAssets(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Hn((e=Object.assign(Object.assign({},Jn),e)).mediaTypes),Hn(e.excludeMediaTypes),n=Object.assign({hints:{acp_platform_v2:!0},fetch_fields:{includes:At()},[ir.STORAGE_ASSIGNEE_TYPE]:["user"],op_none_of:[{op_field_exists:["app_metadata$$cc:inheritable$$cc:space$$repo:assetId","app_metadata$$cc:inherited$$cc:space$$repo:assetId"]},{[ir.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"appdata"},{[ir.TYPE]:e.excludeMediaTypes||[]}],op_or:[{[ir.STORAGE_ASSIGNEE_ID]:t._core._environment.getValue("USER_ID")},{[ir.SHARED_VIA_INVITE]:!0}],[ir.TYPE]:e.mediaTypes||[],sort_orderby:e.orderBy,sort_order:(o=e,"ascending"===o.orderDirection?"asc":"desc"),limit:e.limit,start_index:e.start},e.query?{q:e.query}:{}),e.embedPermissions&&n.fetch_fields.includes.push("_embedded"),r.next=7,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 7:return i=r.sent,r.abrupt("return",i);case 9:case"end":return r.stop()}var o}),r)})))()}}const ei={start:0,limit:0,mediaTypes:[],excludeMediaTypes:[]};class ti extends be{_getCommonFilters(e){const t=(null!=(e=Object.assign(Object.assign({},ei),e))?e:{}).uploadedFrom;Hn(e.mediaTypes),Hn(e.excludeMediaTypes),e.excludeMediaTypes=Array.from(new Set(["application/x-sharedcloud-collection+json",...e.excludeMediaTypes||[]]));const r={hints:{acp_platform_v2:!0},fetch_fields:{includes:At()},sort_order:"desc",limit:e.limit,start_index:e.start,[ir.TYPE]:e.mediaTypes||[],op_none_of:[{[ir.FIELD_EXISTS]:["app_metadata$$cc:inheritable$$cc:space$$repo:assetId","app_metadata$$cc:inherited$$cc:space$$repo:assetId","app_metadata$$cc:inheritable$$cc:team$$repo:assetId"]},{[ir.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:["appdata"]},{[ir.TYPE]:e.excludeMediaTypes||[]},{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"pubs"},{[ir.OP_AND]:[{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"cloud-content"},{[ir.FIELD_EXISTS]:["app_metadata$$review:sourceAsset$$dc:format"]}]}]};if(e.embedPermissions&&r.fetch_fields.includes.push("_embedded"),t&&(r.op_and=[],r.op_and.push({[ir.CREATED_FROM_UPLOAD]:!0})),t&&Array.isArray(t)){const e=r.op_and.push({[ir.OP_OR]:[]});t.forEach((t=>{r.op_and[e-1][ir.OP_OR].push({[ir.CREATED_BY_CLIENT_ID]:t})}))}return t&&!Array.isArray(t)&&"ALL"!==t&&r.op_and.push({[ir.CREATED_BY_CLIENT_ID]:t}),r}getRecentAssets(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getCommonFilters(e),i=(null!=e?e:{}).userId,n.sort_orderby="modify_date",o={[ir.STORAGE_ASSIGNEE_ID]:null!=i?i:t._core._environment.getValue("USER_ID")},i?(n.op_and||(n.op_and=[]),n.op_and.push(o)):(n.op_or||(n.op_or=[]),n.op_or.push(o),n.op_or.push({[ir.SHARED_VIA_INVITE]:!0})),r.next=7,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 7:return a=r.sent,r.abrupt("return",a);case 9:case"end":return r.stop()}}),r)})))()}getMRUAssets(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(n=t._getCommonFilters(e)).fetch_fields.includes.push(or),(i=(null!=e?e:{}).userId)&&(n.op_and||(n.op_and=[]),n.op_and.push({[ir.STORAGE_ASSIGNEE_ID]:i})),n.sort_orderby=or,n.op_field_exists=[or],r.next=8,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 8:return o=r.sent,r.abrupt("return",o);case 10:case"end":return r.stop()}}),r)})))()}}const ri=Symbol("$LAZY_LOAD_MANAGERS");var ni;!function(e){e[e.NotLoaded=1]="NotLoaded",e[e.Pending=2]="Pending",e[e.Loading=3]="Loading",e[e.Loaded=4]="Loaded",e[e.Error=5]="Error"}(ni||(ni={}));class ii{constructor({target:e,event:t,fetchData:r,prefetchTimeout:n=100,retryErrorTimeout:i=Number.POSITIVE_INFINITY,cancelFetchData:o}){this._loadStatus=ni.NotLoaded,this._prefetchTimeout=100,this._retryErrorTimeout=Number.POSITIVE_INFINITY,this._retriesRemaining=5,this._onBecomeUnobserved=e=>{e===this._event.type&&(this._loadStatus!==ni.Pending?this._loadStatus===ni.Loading&&this._cancelFetchData&&this._cancelFetchData.call(this._target)&&this.setLoadStatus(ni.NotLoaded):this._prefetchResolve(!0))},this._target=e,this._event=t,this._fetchData=r,this._prefetchTimeout=n,this._retryErrorTimeout=i,this._cancelFetchData=o,this._target.on(Re,this._onBecomeUnobserved)}static manageLazyLoading(e,t){const r=e;r[ri]=r[ri]||new Map,t.forEach((e=>{const t=new ii(Object.assign({target:r},e));r[ri].set(e.event,t)}))}static getManager(e,t){const r=e[ri];let n;n="string"==typeof t?[...r.keys()].find((e=>e.type===t)):t;const i=r.get(n);if(!i)throw new Error(`Target does not have a LazyLoadManager for event ${t}`);return i}static hasManager(e,t){try{return void 0!==ii.getManager(e,t)}catch(e){return!1}}static setLoadStatus(e,t,r){ii.getManager(e,t).setLoadStatus(r)}static getLoadStatus(e,t){return ii.getManager(e,t).loadStatus}static fetchIfNeeded(e,t){ii.getManager(e,t).fetchIfNeeded()}static updatedExternally(e,t){ii.getManager(e,t).updatedExternally()}get loadStatus(){return this._loadStatus}_prefetchDelay(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((t=>{e._prefetchResolve=t,e.setLoadStatus(ni.Pending),setTimeout((()=>{t(!1),e._prefetchResolve=void 0}),e._prefetchTimeout)})));case 1:case"end":return t.stop()}}),t)})))()}onPropertyAccess(){this.fetchIfNeeded()}fetchIfNeeded(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._loadStatus!==ni.NotLoaded){t.next=18;break}if(!e._prefetchTimeout){t.next=8;break}return t.next=4,e._prefetchDelay();case 4:if(!t.sent){t.next=8;break}return e.setLoadStatus(ni.NotLoaded),t.abrupt("return");case 8:return t.prev=8,e._loadStatus=ni.Loading,t.next=12,e._fetchData.call(e._target);case 12:e._loadStatus===ni.Loading&&e.setLoadStatus(ni.Loaded),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(8),e.setLoadStatus(ni.Error);case 18:case"end":return t.stop()}}),t,null,[[8,15]])})))()}setLoadStatus(e){this._loadStatus!==e&&(this._loadStatus=e,e===ni.NotLoaded||e===ni.Loaded?(e===ni.Loaded&&(this._retriesRemaining=5),this._target.dispatch(this._event)):e===ni.Error&&this._retryErrorTimeout<Number.POSITIVE_INFINITY&&this._retriesRemaining>0&&setTimeout((()=>{this._retriesRemaining--,this._loadStatus===ni.Error&&this.setLoadStatus(ni.NotLoaded)}),this._retryErrorTimeout))}updatedExternally(){this._loadStatus!==ni.Loaded?this.setLoadStatus(ni.Loaded):this._target.dispatch(this._event)}}function oi(e,t){return function(r,n,i){if(i.get){const t=i.get;i.get=function(){const r=ii.getManager(this,e);if(!r)throw new Error(`@lazyLoaded target is missing LazyLoadManager for event ${e.type}. Use LazyLoadManager.manageLazyLoading() in constructor to configure`);return r.onPropertyAccess(),t.call(this)}}else{if("function"!=typeof i.value)throw new Error("@lazyLoaded only works with getters and methods");{const t=i.value,r=function(...r){const n=ii.getManager(this,e);if(!n)throw new Error(`@lazyLoaded target is missing LazyLoadManager for event ${e.type}. Use LazyLoadManager.manageLazyLoading() in constructor to configure`);return n.onPropertyAccess(),t.apply(this,r)};i.value=r}}t=[].concat(t),j(e,t)(r,n,i)}}class ai extends Rn{constructor(e,t){super(e,t),this._collaboratorsArray=[],this._shareFlagsAreDirty=!0,this._itemPoolDelegate={onItemsUpdated:()=>{this._setCollaboratorData(),ii.updatedExternally(this,Lt)}},ii.manageLazyLoading(this,[{event:Lt,fetchData:this._queueCollaborators,prefetchTimeout:0,cancelFetchData:this._dequeueCollaborators}])}get isShared(){return this._fetchShareFlagsIfNeeded(),this._isShared}get isSharedWithYouAsset(){return this._fetchShareFlagsIfNeeded(),this._isSharedWithYouAsset}get directCollaboratorCount(){return this._fetchShareFlagsIfNeeded(),this._directCollaboratorCount}get isPublicLink(){return this._fetchShareFlagsIfNeeded(),this._isPublicLink}get _isSWYAsset_NoLazyLoad(){return this._isSharedWithYouAsset}get _isShared_NoLazyLoad(){return this._isShared}get _directCollaboratorCount_NoLazyLoad(){return this._directCollaboratorCount}get _isPublicLink_NoLazyLoad(){return this._isPublicLink}get isSharedWithMe(){return Vt("isSharedWithMe","isSharedWithMe is deprecated and will be removed on or after 2024-10-01. Please use isSharedWithYouAsset instead."),this.isSharedWithYouAsset}get _isCollaboratorDataLoaded(){return ii.getLoadStatus(this,Lt.type)===ni.Loaded}_fetchShareFlagsIfNeeded(){this._shareFlagsAreDirty&&ii.fetchIfNeeded(this,Lt)}_queueCollaborators(){return this._core.collaborationContext._collaboratorRequestQueue.enqueue(this)}_dequeueCollaborators(){return this._core.collaborationContext._collaboratorRequestQueue.dequeue(this)}get collaboratorArray(){return this._collaboratorsArray}get collaborators(){return this._collaboratorSources||(this._collaboratorSources=this._core.collaborationContext._getCollaboratorSources(this.id),this._collaboratorSources.collaboratorPool.addDelegate(this._itemPoolDelegate,"context")),this._collaboratorSources.collaboratorSource}removeCollaborator(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.collaborationContext._removeCollaborator(t.id,e);case 2:case"end":return r.stop()}}),r)})))()}removeCurrentUserFromCollaborationList(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._core.collaborationContext._removeCurrentUserFromCollaborationList(e));case 1:case"end":return t.stop()}}),t)})))()}get invitedCollaborators(){return this._collaboratorSources||(this._collaboratorSources=this._core.collaborationContext._getCollaboratorSources(this.id)),this._collaboratorSources.invitedCollaboratorSource}removeInvitedCollaborator(e){return this._core.collaborationContext.removeInvitedCollaborator(this.id,e)}_setCollaboratorData(e){this._collaboratorSources=this._core.collaborationContext._getCollaboratorSources(this.id);const t=this._collaboratorSources.collaboratorPool;this._collaboratorsArray=null!=e?e:t.toArray(),this._shareFlagsAreDirty=!1,this._isShared=this._collaboratorsArray.some((e=>e.isDirect)),this._isSharedWithYouAsset=this._collaboratorsArray.some((e=>e.isDirect&&e.isCurrentUser)),this._isPublicLink=this._collaboratorsArray.some((e=>"all"===e.id)),this._directCollaboratorCount=this._collaboratorsArray.filter((e=>e.isDirect)).length}}E([Z(Lt,"_isShared")],ai.prototype,"isShared",null),E([Z(Lt,"_isSharedWithYouAsset")],ai.prototype,"isSharedWithYouAsset",null),E([Z(Lt,"_directCollaboratorCount")],ai.prototype,"directCollaboratorCount",null),E([Z(Lt,"_isPublicLink")],ai.prototype,"isPublicLink",null),E([oi(Lt,"_collaboratorsArray")],ai.prototype,"collaboratorArray",null),E([k],ai.prototype,"collaborators",null),E([k],ai.prototype,"invitedCollaborators",null);class si extends Le{constructor(e){super(),this._core=e,this._isLoaded=!1}load(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._loadData();case 2:e._isLoaded=!0,e.emit("change");case 4:case"end":return t.stop()}}),t)})))()}unload(){this._data=void 0,this._isLoaded=!1,this.emit("change")}_mergeData(e){this._data=Object.assign(Object.assign({},this._data||{}),e||{}),this.emit("change")}get isLoaded(){return this._isLoaded}get data(){return this._data}_setData(e){this._data=e,this._isLoaded=!0,this.emit("change")}}E([Z],si.prototype,"isLoaded",null),E([Z],si.prototype,"data",null);class ci extends si{constructor(e,t){super(e),this._core=e,this._parent=t}_loadData(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._parent._ensureLink(z.EMBEDDED_METADATA);case 2:return t.next=4,e._parent._getAssetInterface();case 4:return r=t.sent,t.next=7,r.getEmbeddedMetadata();case 7:e._data=t.sent;case 8:case"end":return t.stop()}}),t)})))()}}class li extends si{constructor(e,t){super(e),this._core=e,this._parent=t}_loadData(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._parent._ensureLink(z.APP_METADATA);case 2:return t.next=4,e._parent._getAssetInterface();case 4:return r=t.sent,t.next=7,r.getAppMetadata();case 7:e._data=t.sent;case 8:case"end":return t.stop()}}),t)})))()}_patch(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._parent._ensureLink(z.APP_METADATA);case 2:return r.next=4,t._parent._getAssetInterface();case 4:return n=r.sent,r.next=7,n.patchAppMetadata(e);case 7:case"end":return r.stop()}}),r)})))()}}class ui extends si{constructor(e,t){super(e),this._core=e,this._parent=t,this._etag=""}get etag(){return this._etag}_loadData(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._parent._getAssetInterface();case 2:return r=t.sent,t.next=5,r.getManifest();case 5:n=t.sent,i=n.manifest,o=n.etag,e._data=i,e._etag=o||"";case 10:case"end":return t.stop()}}),t)})))()}}E([Z],ui.prototype,"etag",null);class pi extends class extends class{constructor(e){this._propertyUpdater=e.propertyUpdater,this._changeEvent=e.changeEvent||R,this._changeEventsMap=e.changeEventMap}updateLocalItem(e,t,r){if(!e.checkIfItemAllowsMutations(t))return;e.ensureItemIsAdded(t);const n=this._propertyUpdater.update(t,r),i=new Set(n.map((e=>{var r,n,i;return null!==(i=null!==(n=null===(r=this._changeEventsMap)||void 0===r?void 0:r.get(e))&&void 0!==n?n:function(e,t){var r;return null===(r=e[M]||void 0)||void 0===r?void 0:r.get(t)}(t,e))&&void 0!==i?i:this._changeEvent})));n.length&&e.queueChangedItem(t,[...i])}}{constructor(e){super(e),this._localItemType=e.localItemType,this._getRemoteId=e.getRemoteId,this._getAlternateIds=e.getAlternateIds}updateRemoteItem(e,t){const r=this._getRemoteId(t),i=this._getAlternateIds(t);if(!r&&!(null==i?void 0:i.length))throw v.create(n.BAD_REQUEST,"An ID or alternate ID must exist on the remote item structure.");let o=r?e.getItemById(r):void 0;if(!o&&i)for(let t=0;t<i.length;t++){const n=i[t];if(o=e.getItemById(n),o){r&&e.reindexItem(o,n,r);break}}if(!o){o=new(0,this._localItemType)(e._core,r||i[0])}return this.updateLocalItem(e,o,t),o}updateRemoteItems(e,t){if(!Array.isArray(t))throw v.create(n.BAD_REQUEST,"Invalid data received, expected list of items.");return t.map((t=>this.updateRemoteItem(e,t)))}}{constructor(e){super(Object.assign({getRemoteId:t=>t[e.remoteIdProperty],getAlternateIds(t){if(e.alternateIdProperties)return e.alternateIdProperties.map((e=>t[e])).filter((e=>!!e))}},e))}}const di=Symbol("NotFound"),hi={string:{parse:e=>null==e?void 0:String(e),isEqual:pr},number:{parse:Number,isEqual:pr},date:{parse:e=>{if(null!==e)return void 0===e||e instanceof Date?e:new Date(String(e))},isEqual:(e,t)=>(null==e?void 0:e.toISOString())===(null==t?void 0:t.toISOString())},date_as_number:{parse:e=>void 0===e?void 0:new Date(Number(e)),isEqual:(e,t)=>(null==e?void 0:e.toISOString())===(null==t?void 0:t.toISOString())},boolean:{parse:e=>!0===e||"string"==typeof e&&"true"===e.toLowerCase()||"number"==typeof e&&Boolean(e),isEqual:pr},object:{parse:e=>void 0!==e?dr(e):void 0,isEqual:hr},object_subset:{parse:dr,isEqual(e,t){if(e===t)return!0;if(void 0===e)return!1;const r=Object.keys(t).reduce(((t,r)=>(t[r]=e[r],t)),{});return hr(r,t)}}},fi=/([^.[]+)|(\[[^\]]+\])/g;function mi(e){const t=function(e){let t=e.match(fi)||[];if(!t.length)throw v.create(n.BAD_REQUEST,`Un-parseable key ${e}`);return t=t.map((e=>"["===e[0]&&"]"===e.slice(-1)?e.slice(1,-1):e)),t}(e);return e=>{let r=e;var n,i=s(t);try{for(i.s();!(n=i.n()).done;){const e=n.value;if(!Object.prototype.hasOwnProperty.call(r,e))return di;r=r[e]}}catch(e){i.e(e)}finally{i.f()}return r}}function gi(e){if(e.includes("."))throw v.create(n.BAD_REQUEST,`Cannot use dot delimiter (${e}) without a custom setter`);return(t,r)=>{r[e]=t}}function vi(e){if(e.includes("."))throw v.create(n.BAD_REQUEST,`Cannot use dot delimiter (${e}) without a custom setter`);return(t,r)=>{var n;r[e]=Object.assign(Object.assign({},null!==(n=r[e])&&void 0!==n?n:{}),null!=t?t:{})}}function yi(e,t,r){if(!t)return r?hi.object:hi.string;if("string"==typeof t){if(!Object.prototype.hasOwnProperty.call(hi,t))throw v.create(n.BAD_REQUEST,`Unexpected type format ${t} for ${e} property updater.`);return hi[t]}return t}function bi(e,t,r,n){return!(r&&!r.includes(n))||(e._core._environment.error(`Invalid value ${n} passed for the ${t} property. Expected one of ${r.join(", ")}.`),!1)}function _i(e,t){const r=function(e,t){if("string"==typeof t)return{name:e,format:hi.string,get:mi(t),set:gi(e),isArray:!1};const r=t.name,n=t.format,i=t.choices,o=t.get,a=t.set,s=t.isArray,c=t.mapByKey,l=null!=r?r:e;return{name:l,format:yi(l,n,c),choices:i,mapByKey:c,isArray:null!=s&&s,get:null!=o?o:mi(null!=r?r:e),set:null!=a?a:"object_subset"===n?vi(e):gi(e)}}(e,t),n=r.name,i=r.format,o=r.choices,a=r.get,c=r.set,l=r.isArray,u=r.mapByKey;return(t,r)=>{const p=t,d=mi(e),h=d(p)===di?void 0:d(p);let f=a(r,t);if(f===di)return!1;if(u){if(!Array.isArray(f))return t._core._environment.error(`Invalid value ${f} passed for the ${n} property. Expected an array.`),!1;const e=new Map;var m,g=s(f);try{for(g.s();!(m=g.n()).done;){const r=m.value;if(!Object.prototype.hasOwnProperty.call(r,u)){t._core._environment.error(`Invalid item passed for the ${n} array property. Missing ${u} property on the item of the array.`);continue}const a=r[u],s=i.parse(r);bi(t,n,o,s)&&e.set(a,s)}}catch(e){g.e(e)}finally{g.f()}if(hr(h,e))return!1;f=e}else if(l){if(!Array.isArray(f))return t._core._environment.error(`Invalid value ${f} passed for the ${n} property. Expected an array.`),!1;const e=[];var v,y=s(f);try{for(y.s();!(v=y.n()).done;){const r=v.value,a=i.parse(r);bi(t,n,o,a)&&e.push(a)}}catch(e){y.e(e)}finally{y.f()}if(hr(h,f))return!1;f=e}else{if(f=i.parse(f),!bi(t,n,o,f))return!1;if(i.isEqual(h,f))return!1}return c(f,p),!0}}class Ei{constructor(e){this._updaters=Object.keys(e).map((t=>({updater:_i(t,e[t]),key:t})))}update(e,t){const r=[];var n,i=s(this._updaters);try{for(i.s();!(n=i.n()).done;){const i=n.value,o=i.updater,a=i.key;o(e,t)&&r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r}}class wi{constructor(e){this._isDiscarded=!1,this._isPublished=!1,this._isSharedWithYou=!1,this._includeHiddenRecursive=!1,this._includeHiddenRecursive=!!(null==e?void 0:e._includeHiddenRecursive),this._isDiscarded=!!(null==e?void 0:e._isDiscarded),this._isPublished=!!(null==e?void 0:e._isPublished),this._isSharedWithYou=!!(null==e?void 0:e._isSharedWithYou)}matches(e){return(!e.isComposite||0!==e.sizeInBytes)&&(e.isDiscarded===this._isDiscarded&&((!e._isSWYAsset_NoLazyLoad||e._isSWYAsset_NoLazyLoad===this._isSharedWithYou)&&((!this._isDiscarded||"DISCARDED_PARENT"!==e._assetState)&&(e.isPublished===this._isPublished&&("/cloud-content-archive"!==e.repoPath&&"/archive"!==e.repoPath&&!("hiddenSelf"===e.shellVisibility||"hiddenRecursive"===e.shellVisibility&&!this._includeHiddenRecursive))))))}get hash(){return(this._isDiscarded?"discarded":"")+(this._isPublished?"published":"")+(this._isSharedWithYou?"shared":"")+(this._includeHiddenRecursive?"hiddenRecursive":"")}getRelationToFilter(e){return this._isDiscarded!==e._isDiscarded||this._isPublished!==e._isPublished||this._includeHiddenRecursive!==e._includeHiddenRecursive||this._isSharedWithYou!==e._isSharedWithYou?"disjoint":"subset"}}class Li extends wi{constructor(e){super(),this._query=null==e?void 0:e.query,this._deepSearch=null==e?void 0:e.deepSearch,this._asset=null==e?void 0:e.asset}get hash(){var e;return[null===(e=this._asset)||void 0===e?void 0:e.id,super.hash,void 0!==this.deepSearch?`deepSearch=${this._deepSearch}`:void 0,this.query?`query=${this._query}`:void 0].filter((e=>e)).join(":")}get deepSearch(){return this._deepSearch}get asset(){return this._asset}get query(){return this._query}matches(e){if(this.asset&&this.asset.repositoryID&&e.repositoryID&&this.asset.repositoryID!==e.repositoryID)return!1;if(this.asset&&this.asset.repoPath&&e.repoPath){const t=this.asset.repoPath;if(this.deepSearch){if(!e.repoPath.startsWith(T.join(t,"/")))return!1}else if(t!==e.repoPath.substring(0,e.repoPath.lastIndexOf("/")))return!1}return super.matches(e)}getRelationToFilter(e){var t,r,n,i;const o=null===(t=this.asset)||void 0===t?void 0:t.repositoryID,a=null===(r=e.asset)||void 0===r?void 0:r.repositoryID;return o&&a&&o!==a||this.deepSearch!==e.deepSearch||(null===(n=this.query)||void 0===n?void 0:n.toLowerCase())!==(null===(i=e.query)||void 0===i?void 0:i.toLowerCase())?"disjoint":super.getRelationToFilter(e)}}const xi={name:"repo:name",created:"storage:deviceCreateDate",modified:"storage:deviceModifyDate",shared:"storage:deviceModifyDate"},Si={name:(e,t)=>Mn(e.name,t.name),created:(e,t)=>jn(e.created,t.created),modified:(e,t)=>jn(e.modified,t.modified),shared:(e,t)=>jn(e.shared,t.shared)};class Oi extends(Zn(Si)){}Oi.default=new Oi("descending","modified");class Ti{constructor(e,t,r,n,i){this._assetPool=e,this._asset=t,this._core=r,this._includePermissions=n,this._loadLibraryData=i}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l,p,d,h,f,m,g,y,b,_,E,w,L;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=e.order,a=e.limit,s=e.filter,c=e.implicitFilter,l=[..."mediaTypes"in c&&c.mediaTypes||"mediaTypes"in s&&s.mediaTypes||[]],p=void 0,!r._loadLibraryData){i.next=9;break}if(r._asset.isProject){i.next=8;break}throw v.create(n.UNSUPPORTED,`Asking for child libraries from non-project asset with id: ${r._asset.id}`);case 8:p=r._core.hostAssetContext._libraryInterface.getLibrariesForProject(r._asset.id);case 9:return d=r._assetPool._core._environment.getValue("ASSETS_LIST_UPDATE_LATENCY"),h=Date.now()-d,f=[{resource:{reltype:z.APP_METADATA},selectors:It}],r._includePermissions&&f.push({resource:{reltype:z.AC_EFFECTIVE}}),i.next=15,r._asset._ensureLink(z.PAGE);case 15:return i.next=17,r._asset._getAssetInterface();case 17:return m=i.sent,i.next=20,m.getChildAssets({orderBy:xi[o.field],orderDirection:o.direction,start:t,limit:a,type:l,embed:f});case 20:return g=i.sent,y=r._assetPool.createLoaderMutationSession(),r._asset.isProject&&r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(y,r._asset,{"repo:ancestors":g["repo:ancestors"]}),i.next=25,r._core.getLibraryContext();case 25:return b=i.sent,_=r._core._adobeAssetFactory.assetsFromRepoMetadata(y,g.children.map((e=>{var t;return e["repo:ancestors"]||(e["repo:ancestors"]=[...null!==(t=r._asset.ancestorIDs)&&void 0!==t?t:[],r._asset.id]),e})),b),r._loadLibraryData&&(E=_.filter((e=>e.isLibrary))).forEach((e=>e._setLibraryLoadState("LOADING"))),y.commit(),r._loadLibraryData&&p.then((e=>r._updateLibrariesData(E,e))),(L=g._page.next)&&(w=e=>r._loadPage(e,L)),i.abrupt("return",{items:_,loadNextPage:w,mostRecentValidMutation:h});case 33:case"end":return i.stop()}}),i)})))()}_getSafeLibraryData(e){if(!e)return{};return{library_urn:e.library_urn,id:e.id,bookmark:e.bookmark,name:e.name,ownership:e.ownership,roles:e.roles}}_updateLibrariesData(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r._core.hostAssetContext._assetPool.createUpdateSession(),n.next=3,r._core.getLibraryContext();case 3:o=n.sent,e.forEach((e=>{const n=t.find((t=>t.library_urn===e.id));if(n){const t=r._getSafeLibraryData(n);o._libraryUpdater.updateLocalItem(i,e,t),e._setLibraryLoadState("LOADED")}else e._setLibraryLoadState("NOT_LOADED")})),i.commit();case 6:case"end":return n.stop()}}),n)})))()}}var Ii,Pi,Ci,Ai;!function(e){e.Created="rm.storage:deviceCreateDate",e.Modified="rm.storage:deviceModifyDate",e.Name="rm.repo:name"}(Ii||(Ii={})),function(e){e.Ascending="ASC",e.Descending="DESC"}(Pi||(Pi={})),function(e){e.MEDIA_TYPE="rm.dc:format",e.DIRECTORY_TYPE="am.project:directoryType",e.INHERITANCE_TYPE="function:missing"}(Ci||(Ci={})),function(e){e.SharedBy="cm.sharedBy",e.LastAccessDate="am.shell:lastActivity.date",e.Collaborator="cm.collaborator",e.PublicCollaborator="cm.publicCollaborator",e.ParentProjectId="am.cc:inherited.cc:team.repo:assetId",e.StudentAssignmentAssetId="am.cc:inherited.cc:studentAssignment.repo:assetId",e.StudentAssignmentDirectoryId="am.cc:inheritable.cc:studentAssignment.repo:assetId",e.CCInherited="am.cc:inherited",e.CCInheritable="am.cc:inheritable",e.HzDocumentMetadata="am.hz:documentMetadata",e.CreatedFromUpload="am.cc:createdFromUpload",e.CreatedByClientId="rm.createdByClientId"}(Ai||(Ai={}));const ki={name:"asset_name",created:"create_date",modified:"modify_date",lastAccessed:or},Di={name:Ii.Name,created:Ii.Created,modified:Ii.Modified,lastAccessed:Ii.Modified},Ni={name:(e,t)=>Mn(e.name,t.name),created:(e,t)=>jn(e.created,t.created),modified:(e,t)=>jn(e.modified,t.modified),lastAccessed:(e,t)=>jn(e.lastAccessed,t.lastAccessed)};class Ri extends(Zn(Ni)){}Ri.default=new Ri("descending","modified");class Mi{constructor(e,t,r,n,i){this._adobeAssetSearchInterface=r,this._asset=n,this._implicitFilter=i,this._getItemData=this._getItemDataWithRepoId(this._asset.repositoryID),this._ussLoaderHelper=new zn(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 1:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,order:r,mediaTypes:n,excludeMediaTypes:i,filter:o}){var a=this;return d(u().mark((function s(){var c,l,p,d,h;return u().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return l=null===(c=a._implicitFilter)||void 0===c?void 0:c._query,p=Boolean(a._implicitFilter.deepSearch),d={orderBy:ki[r.field],orderDirection:r.direction,start:e,limit:t,mediaTypes:n,excludeMediaTypes:i,query:l,deepSearch:p,assetId:a._asset.cloudID},o.name===Un&&(h=o,d.userId=h.userId,d.uploadedFrom=h.uploadedFrom),s.abrupt("return",a._adobeAssetSearchInterface.getFilteredAssets(d));case 5:case"end":return s.stop()}}),s)})))()}_getItemDataWithRepoId(e){return t=>Object.assign(Object.assign({},t),{"repo:repositoryId":e})}}function ji(e){const t=e;return new Promise((r=>{function n(){e.status!==ct.Loading&&(t.off(Yt,n),r())}t.on(Yt,n),n()}))}var Zi,Fi;function Bi(e,t){return e.filterRelation!==t.filterRelation?"subset"===e.filterRelation?-1:1:e.generation!==t.generation?t.generation-e.generation:t.length-e.length}!function(e){e[e.Ascending=0]="Ascending",e[e.Descending=1]="Descending"}(Zi||(Zi={})),function(e){e[e.Name=0]="Name",e[e.Modified=1]="Modified",e[e.Created=2]="Created",e[e.Shared=3]="Shared"}(Fi||(Fi={}));class Gi{constructor(e,t,r=new Ht){this._itemPool=e,this._loaders=t,this._implicitFilter=r,this._lists=new Map}getList(e,t=new Ht,r){if("number"==typeof e||"number"==typeof t)throw v.create(n.UNSUPPORTED,"Using OrderDirection and OrderField is not implemented in SAM.js, and will be deprecated in SAM.cpp");let i=this._getExistingList(e,t);if(i)i._updateLoadOptions(Object.assign({refreshTimeout:-1},r));else{const n=this._getMostCompleteCompatibleList(t);i=new Qt(this._itemPool,this._loaders,e,this._implicitFilter,t,n,r),i.on($t,(()=>this._onListFullyLoaded(i))),this._lists.set(this._getListHash(e,t,this._implicitFilter),new Ze(i))}return i.status===ct.NotStarted&&i.refresh(),i}getListWithTypes(e,t,r){throw v.create(n.UNSUPPORTED,"getListWithTypes is not implemented in SAM.js and will be deprecated in SAM.cpp")}_getListHash(e,t,r){return`${r.hash}:${t.hash}:${e.hash}`}_getExistingList(e,t){const r=this._getListHash(e,t,this._implicitFilter),n=this._lists.get(r);if(n)return n.deref()}setNeedsRefresh(){var e,t=s(this._getLists());try{for(t.s();!(e=t.n()).done;){e.value.setNeedsRefresh()}}catch(e){t.e(e)}finally{t.f()}}_getMostCompleteCompatibleList(e){var t;const r=[];var n,i=s(this._getLists());try{for(i.s();!(n=i.n()).done;){const t=n.value;if(t.status===ct.ReadyFullyLoaded){const n=pt(e,t.filter);"disjoint"!==n&&r.push({list:t,filterRelation:n,generation:t.generation,length:t.items.length})}}}catch(e){i.e(e)}finally{i.f()}return r.sort(Bi),null===(t=r[0])||void 0===t?void 0:t.list}_getLists(){var e=this;return u().mark((function t(){var r,n,i,o,c,l,p;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e._lists,n=s(r.entries()),t.prev=2,n.s();case 4:if((i=n.n()).done){t.next=14;break}if(o=a(i.value,2),c=o[0],l=o[1],p=l.deref()){t.next=10;break}return r.delete(c),t.abrupt("continue",12);case 10:return t.next=12,p;case 12:t.next=4;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(2),n.e(t.t0);case 19:return t.prev=19,n.f(),t.finish(19);case 22:case"end":return t.stop()}}),t,null,[[2,16,19,22]])}))()}_onListFullyLoaded(e){if(e.status===ct.ReadyFullyLoaded){var t,r=s(this._getLists());try{for(r.s();!(t=r.n()).done;){const r=t.value;r!==e&&"subset"===pt(r.filter,e.filter)&&ji(r).then((()=>{r.completedGeneration>=e.completedGeneration||r._applyListItemsFrom(e)}))}}catch(e){r.e(e)}finally{r.f()}}}}class Ui extends Rn{constructor(){super(...arguments),this._etag="static-etag",this._assetId="",this._assetEtag="",this._createdAt=new Date,this._createdBy="",this._manifest=new ui(this._core,this)}get _headAssetInterface(){return new Hr(this._core.hostAssetContext._rapi,this._assetId,this._assetLinks,this._assetEtag)}_getAssetInterface(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Hr(e._core.hostAssetContext._rapi,e._assetId,e.__links,e._etag));case 1:case"end":return t.stop()}}),t)})))()}get versionId(){return this.id}get created(){return this._createdAt}get createdBy(){return this._createdBy}get assetId(){return this._assetId}get milestone(){return this._label?{label:this._label,description:this._description}:void 0}get manifest(){return this._manifest}get links(){return Object.assign({},this.__links)}_getRenditionFetcher(){return this._renditionFetcher||(this._renditionFetcher=new _r(this._core),this._renditionFetcher.on("change",(()=>{this.dispatch({type:"change"})}))),this._renditionFetcher}getRenditionURL(e,t=vr.PNG){return this._getRenditionFetcher().getURL(e,t,this._etag,this._getAssetInterface())}renditionURLStatus(e,t){return this._getRenditionFetcher().renditionURLStatus(e,t,this._etag)}getCustomRendition({size:e,type:t,urlTemplateOptions:r,additionalHeaders:n}={}){var i=this;return d(u().mark((function o(){var a;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i._getAssetInterface();case 2:return a=o.sent,o.abrupt("return",a.getCustomRendition({size:e,type:t,urlTemplateOptions:r,additionalHeaders:n}));case 4:case"end":return o.stop()}}),o)})))()}getAllCustomRenditions({type:e,urlTemplateOptions:t,additionalHeaders:r}={}){var n=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._getAssetInterface();case 2:return o=i.sent,i.abrupt("return",o.getAllCustomRenditions({type:e,urlTemplateOptions:t,additionalHeaders:r}));case 4:case"end":return i.stop()}}),i)})))()}restore(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.hostAssetContext.getAssetWithCloudID(e._assetId);case 2:if(r=t.sent,!r.isComposite){t.next=12;break}return n=W(e.__links,z.MANIFEST),t.next=8,e._headAssetInterface.restoreVersionManifest(n);case 8:return t.next=10,r._load();case 10:t.next=15;break;case 12:return i=W(r.links,z.PRIMARY),t.next=15,e.copy(i);case 15:case"end":return t.stop()}}),t)})))()}copy(e){var t=this;return d(u().mark((function r(){var i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.hostAssetContext.getAssetWithCloudID(t._assetId);case 2:if(i=r.sent,o=i.isComposite,a=W(t.__links,z.PRIMARY),!o){r.next=9;break}throw v.create(n.UNSUPPORTED,"AssetVersion.copy not implemented for composite assets");case 9:return r.next=11,t._headAssetInterface.runOperation({op:"copy",id:t._assetId,source:{href:a,"if-match":"*"},target:{href:e,"if-match":"*"}});case 11:return s=r.sent,r.abrupt("return",s);case 13:case"end":return r.stop()}}),r)})))()}setMilestone(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c,l,p,d;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.label,a=void 0===o?(null===(n=t.milestone)||void 0===n?void 0:n.label)||"":o,s=e.description,c=void 0===s?(null===(i=t.milestone)||void 0===i?void 0:i.description)||"":s,l=[{op:t.milestone?Zr.replace:Zr.add,path:`/children/version=${t.versionId}/milestone`,value:{label:a,description:c}}],r.next=4,t._headAssetInterface.patchVersion(l);case 4:return r.next=6,t._core.hostAssetContext.getAssetWithCloudID(t._assetId);case 6:p=r.sent,d=p._versionPool.createUpdateSession(),zi.updateLocalItem(d,t,{milestone:{label:a,description:c}}),d.commit();case 10:case"end":return r.stop()}}),r)})))()}removeMilestone(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.milestone){t.next=2;break}return t.abrupt("return");case 2:return r=[{op:Zr.remove,path:`/children/version=${e.versionId}/milestone`}],t.next=5,e._headAssetInterface.patchVersion(r);case 5:return t.next=7,e._core.hostAssetContext.getAssetWithCloudID(e._assetId);case 7:n=t.sent,i=n._versionPool.createUpdateSession(),zi.updateLocalItem(i,e,{milestone:{label:""}}),i.commit();case 11:case"end":return t.stop()}}),t)})))()}}E([Z],Ui.prototype,"versionId",null),E([Z],Ui.prototype,"created",null),E([Z],Ui.prototype,"createdBy",null),E([Z],Ui.prototype,"assetId",null),E([Z],Ui.prototype,"milestone",null),E([Z],Ui.prototype,"links",null),E([Z],Ui.prototype,"getRenditionURL",null),E([Z],Ui.prototype,"renditionURLStatus",null);const zi=new pi({localItemType:Ui,remoteIdProperty:"version",propertyUpdater:new Ei({_createdAt:{name:"created",format:"date"},_createdBy:"created_by",_label:"milestone.label",_description:"milestone.description",_assetId:"assetId",_assetEtag:"assetEtag",_assetLinks:{name:"assetLinks",format:"object"},__links:{name:"_links",format:"object"}})});class Vi{constructor(e,t){this._versionPool=e,this._assetInterfacePromise=t}loadPage(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._loadPage(e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}_loadPage(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f,m,g,v,y;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.limit,a=r._versionPool._core._environment.getValue("VERSIONS_LIST_UPDATE_LATENCY"),s=Date.now()-a,n.next=5,r._assetInterfacePromise;case 5:return c=n.sent,l=e.filter,p=(null==l?void 0:l.version)||void 0,n.next=10,c.getVersions({start:t,limit:o,version:p});case 10:return d=n.sent,h=r._versionPool.createLoaderUpdateSession(s),f=d.children.map((e=>Object.assign(Object.assign({},e),{assetId:c.assetID,assetEtag:c.etag,assetLinks:c.links}))),m=zi.updateRemoteItems(h,f),h.commit(),v=d.children.length,(y=null===(i=d.children[v-1])||void 0===i?void 0:i.created)&&o&&v===o&&(g=e=>r._loadPage(e,y)),n.abrupt("return",{items:m,total:d.total_children,loadNextPage:g,mostRecentValidMutation:s});case 19:case"end":return n.stop()}}),n)})))()}}class Hi extends si{constructor(e,t){super(e),this._core=e,this._parent=t,this._etag=""}get etag(){return this._etag}_setContent(e,t){this._etag=t||"",this._data=e,this.emit("change")}_loadData(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._parent._ensureLink(z.PRIMARY);case 2:return t.next=4,e._parent._getAssetInterface();case 4:return r=t.sent,t.next=7,r.getContent();case 7:n=t.sent,i=n.content,o=n.etag,e._data=i,e._etag=o||"";case 12:case"end":return t.stop()}}),t)})))()}}E([Z],Hi.prototype,"etag",null);class Yi{constructor(e){this._isMilestone=null==e?void 0:e.isMilestone,this._createdAfter=null==e?void 0:e.createdAfter,this._createdBefore=null==e?void 0:e.createdBefore,this._createdBy=null==e?void 0:e.createdBy,this._version=null==e?void 0:e.version}static AssetVersionFilter(e,t,r,n,i){return new Yi({createdBy:n,createdAfter:t,createdBefore:r,isMilestone:e,version:i})}get isMilestone(){return this._isMilestone}get createdBy(){return this._createdBy}get createdAfter(){return this._createdAfter}get createdBefore(){return this._createdBefore}get version(){return this._version}get hash(){var e,t,r;const n=null===(e=this.createdBy)||void 0===e?void 0:e.join(","),i=(null===(t=this.createdAfter)||void 0===t?void 0:t.getTime())||0,o=(null===(r=this.createdBefore)||void 0===r?void 0:r.getTime())||0,a=this.version||void 0;return String(this.isMilestone)+":"+n+":"+i+":"+o+":"+a}matches(e){const t=void 0===this.isMilestone||this.isMilestone===Boolean(e.milestone),r=void 0===this.createdBy||this.createdBy.includes(e.createdBy),n=(!this.createdAfter||e.created>=this.createdAfter)&&(!this.createdBefore||e.created<=this.createdBefore),i=void 0===this.version||this.version===e.versionId;return t&&r&&n&&i}_getRelationWrtMilestone(e){return this.isMilestone===e.isMilestone?"subset":void 0===this.isMilestone||void 0===e.isMilestone?"unknown":"disjoint"}_getRelationWrtCreatedBy(e){if(!this.createdBy&&!e.createdBy)return"subset";if(this.createdBy&&e.createdBy){const t=new Set(this.createdBy);return e.createdBy.every((e=>t.has(e)))?"subset":e.createdBy.some((e=>t.has(e)))?"unknown":"disjoint"}return this.createdBy?"subset":"unknown"}_getRelationWrtDateRange(e){var t,r,n,i;const o=(null===(t=this.createdAfter)||void 0===t?void 0:t.getTime())||-1/0,a=(null===(r=this.createdBefore)||void 0===r?void 0:r.getTime())||1/0,s=(null===(n=e.createdAfter)||void 0===n?void 0:n.getTime())||-1/0,c=(null===(i=e.createdBefore)||void 0===i?void 0:i.getTime())||1/0;return s<=o&&c>=a?"subset":s>a||c<o?"disjoint":"unknown"}_getRelationWrtVersion(e){return this.version===e.version?"subset":void 0===this.version||void 0===e.version?"unknown":"disjoint"}getRelationToFilter(e){const t=[this._getRelationWrtMilestone(e),this._getRelationWrtCreatedBy(e),this._getRelationWrtDateRange(e),this._getRelationWrtVersion(e)];return t.includes("disjoint")?"disjoint":t.every((e=>"subset"===e))?"subset":"unknown"}}Yi.BookmarkedVersions=new Yi({isMilestone:!0});class Wi extends wi{constructor(e){const t=e.asset;super(_(e,["asset"])),this._asset=t}get asset(){return this._asset}get hash(){return[this._asset.id,super.hash].filter((e=>e)).join(":")}matches(e){if(this._asset.repositoryID&&e.repositoryID&&this._asset.repositoryID!==e.repositoryID)return!1;const t=this._asset.repoPath;return(!t||t===e.repoPath.substring(0,e.repoPath.lastIndexOf("/")))&&super.matches(e)}getRelationToFilter(e){const t=this._asset.repoPath,r=e._asset.repoPath;if(t&&r&&t!==r)return"disjoint";const n=this._asset.repositoryID,i=e._asset.repositoryID;return n&&i&&n!==i?"disjoint":!t&&r?"unknown":super.getRelationToFilter(e)}}function $i(e,t){var r,n,i,o;e._embedded||(e._embedded={}),(r=e._embedded)[n=z.APP_METADATA]||(r[n]={}),(i=e._embedded[z.APP_METADATA])["cc:inherited"]||(i["cc:inherited"]={}),(o=e._embedded[z.APP_METADATA]["cc:inherited"])["cc:team"]||(o["cc:team"]={}),e._embedded[z.APP_METADATA]["cc:inherited"]["cc:team"]["repo:assetId"]=t}var Ki,qi,Xi,Ji;!function(e){e[e.Folder=256]="Folder",e[e.File=512]="File",e[e.Composite=1024]="Composite"}(Ki||(Ki={})),function(e){e[e.InSync=0]="InSync",e[e.OutOfSync=1]="OutOfSync",e[e.SyncConflict=2]="SyncConflict",e[e.SyncError=3]="SyncError",e[e.Syncing=4]="Syncing"}(qi||(qi={})),function(e){e[e.None=0]="None",e[e.CloudContentCorrupted=1]="CloudContentCorrupted",e[e.LocalContentCorrupted=2]="LocalContentCorrupted",e[e.HasTooManyComponents=3]="HasTooManyComponents",e[e.HasTooManyChildren=4]="HasTooManyChildren",e[e.MaximumSizeExceeded=5]="MaximumSizeExceeded",e[e.Unknown=6]="Unknown"}(Xi||(Xi={})),function(e){e[e.NoErr=0]="NoErr",e[e.Conflict=1]="Conflict",e[e.DeleteConflict=2]="DeleteConflict",e[e.ParentDeletedConflict=3]="ParentDeletedConflict"}(Ji||(Ji={}));const Qi=new Map([["file",Ki.File],["composite",Ki.Composite],["directory",Ki.Folder]]),eo=/^\/[^/]+$|^\/$/;class to extends ai{constructor(e,t,r){super(e,t),this._core=e,this._name="",this._etag="",this._repositoryID="",this._path="",this._storageRegion="",this._type="",this._size=0,this._version="",this._assetClass="file",this._assetState="ACTIVE",this._created=new Date,this._modified=new Date,this._createdBy="",this._modifiedBy="",this._permissions=kt.All,this._isPublished=!1,this._storageAssignee={id:"",type:"user"},this._isArchivedLibraryElement=!1,this._needsRepoMetadata=!1,this.isProject=!1,this.isLibrary=!1,this.isCustomModel=!1,this._versionPool=new nr(this._core,"version"),this._linksCameFromResolveAPI=!1,this.isAvailableOffline=!1,this.isUserPinned=!1,this.isNameDCTitle=!1,this._embeddedMetadata=new ci(e,this),this._appMetadata=new li(e,this),this._manifest=new ui(e,this),this._fileContent=new Hi(e,this),this.__links=null==r?void 0:r.links,this._etag=(null==r?void 0:r.etag)||"",this._renditionFetcher=new _r(this._core),this._renditionFetcher.on("change",(()=>{this.dispatch({type:"change"})})),this.fr=new FinalizationRegistry((()=>{this._finalizer()})),this.fr.register(this,"adobe-asset")}get createdFromUpload(){return this.appMetadata.data&&this.appMetadata.data["cc:createdFromUpload"]?!!this.appMetadata.data["cc:createdFromUpload"]:this._createdFromUpload}get createdByClientId(){return this._createdByClientId}_finalizer(){this._renditionFetcher.release()}_loadWithRetry(){return this._load()}_getAssetInterface(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Hr(e._core.hostAssetContext._rapi,e.id,e.links,e.etag));case 1:case"end":return t.stop()}}),t)})))()}get _resources(){return new Map([["embeddedMetadata",this._embeddedMetadata],["appMetadata",this._appMetadata],["manifest",this._manifest],["fileContent",this._fileContent]])}_reloadPermissions(){var e=this;return d(u().mark((function t(){var r,i,o,a,s,c;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},i=void 0,t.prev=2,t.next=5,e._ensureLink(z.AC_EFFECTIVE);case 5:return t.next=7,e._getAssetInterface();case 7:return o=t.sent,t.next=10,o.getEffectivePermissions();case 10:(a=t.sent)&&(r.effectivePermission=a),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(2),i=t.t0;case 17:if(!i){t.next=23;break}if(![n.NOT_FOUND,n.ACCESS_DENIED].includes(i.code)){t.next=22;break}r.effectivePermission=i.code===n.ACCESS_DENIED?kt.Ack:kt.None,t.next=23;break;case 22:throw i;case 23:if(!(s=[kt.Ack,kt.None].includes(r.effectivePermission))||!e._core.hostAssetContext._assetPool.isItemDiscarded(e)){t.next=30;break}return e._isShared=!1,e._isSharedWithYouAsset=!1,e._shareFlagsAreDirty=!1,ii.setLoadStatus(e,Lt,ni.Loaded),t.abrupt("return");case 30:c=e._core.hostAssetContext._assetPool.createMutationSession(),s?(r.isShared=!1,r.sharedViaInvite=!1,r.shareFlagsAreDirty=!1,ii.setLoadStatus(e,Lt,ni.Loaded),c.queueDiscardedItem(e)):(r.shareFlagsAreDirty=!0,ii.setLoadStatus(e,Lt,ni.NotLoaded)),e._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(c,e,r),c.commit();case 34:case"end":return t.stop()}}),t,null,[[2,14]])})))()}_load({repoMetadata:e,appMetadata:t,effectivePermission:r}={}){var i=this;return d(u().mark((function o(){var a,s,c,l,p,d,h,f,m,g,v;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=void 0,c={},o.prev=2,o.next=5,i._ensureLink(z.REPO_METADATA);case 5:return o.next=7,i._getAssetInterface();case 7:return s=o.sent,o.next=10,Promise.allSettled([e?Promise.resolve(e):s.getRepoMetadata(),r?Promise.resolve(r):s.getEffectivePermissions()]);case 10:l=o.sent,e="fulfilled"===l[0].status?l[0].value:void 0,p="fulfilled"===l[1].status?l[1].value:void 0,a=l.map((e=>"rejected"===e.status&&e.reason)).find((e=>e)),i._linksCameFromResolveAPI=void 0!==e,c=e||{},p&&(c.effectivePermission=p),o.next=22;break;case 19:o.prev=19,o.t0=o.catch(2),a=o.t0;case 22:if(!a){o.next=30;break}if(![n.NOT_FOUND,n.ACCESS_DENIED].includes(a.code)){o.next=27;break}c.effectivePermission=a.code===n.ACCESS_DENIED?kt.Ack:kt.None,o.next=28;break;case 27:throw a;case 28:o.next=36;break;case 30:if(d=[...i._resources.values()].filter((e=>e.isLoaded)),void 0!==i.shellVisibility||eo.test(c["repo:path"])||d.includes(i._appMetadata)||!c.effectivePermission||(c.effectivePermission&kt.ReadAppMetadata)!==kt.ReadAppMetadata||d.push(i._appMetadata),t&&(i._appMetadata._setData(t),-1!==(h=d.indexOf(i._appMetadata))&&d.splice(h,1)),!d.length){o.next=36;break}return o.next=36,Promise.all(d.map((e=>e.load())));case 36:if(!(f=[kt.Ack,kt.None].includes(c.effectivePermission))||!i._core.hostAssetContext._assetPool.isItemDiscarded(i)){o.next=43;break}return i._isShared=!1,i._isSharedWithYouAsset=!1,i._shareFlagsAreDirty=!1,ii.setLoadStatus(i,Lt,ni.Loaded),o.abrupt("return");case 43:if(!(m="directory"===c["repo:assetClass"]||i.isFolder)&&!f){o.next=48;break}o.t1=void 0,o.next=51;break;case 48:return o.next=50,s.getLastAccessed();case 50:o.t1=o.sent;case 51:g=o.t1,v=i._core.hostAssetContext._assetPool.createMutationSession(),m&&c["repo:path"]&&c["repo:path"]!==i.repoPath&&kr({assetPool:i._core.hostAssetContext._assetPool,asset:i,session:v,operation:{type:"rename",newPath:c["repo:path"]}}),i._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(v,i,Object.assign(Object.assign({},c),{lastAccessed:g})),f&&(i._isShared=!1,i._isSharedWithYouAsset=!1,i._shareFlagsAreDirty=!1,ii.setLoadStatus(i,Lt,ni.Loaded),v.queueDiscardedItem(i)),v.commit();case 57:case"end":return o.stop()}}),o,null,[[2,19]])})))()}get versions(){const e=new Vi(this._versionPool,this._ensureLink(z.PAGE).then((()=>this._getAssetInterface())));return new Gi(this._versionPool,[e],new Yi)}getCommentsResource(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._core.hostAssetContext.getCommentsResource(e.id));case 1:case"end":return t.stop()}}),t)})))()}get assetType(){return Vt("AdobeAsset.assetType","AdobeAsset.assetType is deprecated and will be removed on or after 2024-10-01. Please use isFolder, isFile, isComposite, etc. instead"),Qi.get(this._assetClass)}get isFolder(){return"directory"===this._assetClass}get isAssignment(){return this.appMetadata.data?"assignment"===this.appMetadata.data["project:directoryType"]:void 0}get isFile(){return"file"===this._assetClass}get isComposite(){return"composite"===this._assetClass}get isLibraryElement(){return"element"===this._assetClass}get imageLength(){return this._imageLength}get imageWidth(){return this._imageWidth}get parentAssignmentID(){var e,t,r;return null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:assignment"])||void 0===r?void 0:r["repo:assetId"]}get isChildOfAssignment(){return!!this.parentAssignmentID}get parentClassroomId(){var e,t,r;return null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:classroom"])||void 0===r?void 0:r["repo:assetId"]}get isChildOfClassroom(){return!!this.parentClassroomId}get parentAssignmentMaterialsId(){var e,t,r;return null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:assignmentMaterials"])||void 0===r?void 0:r["repo:assetId"]}get isChildOfAssignmentMaterials(){return!!this.parentAssignmentMaterialsId}get parentStudentAssignmentId(){var e,t,r;return null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:studentAssignment"])||void 0===r?void 0:r["repo:assetId"]}get isChildOfStudentAssignment(){return!!this.parentStudentAssignmentId}_isPathInsideProject(){return["/projects/[^/]+/[^/]+","/content/assets/projects/[^/]+/[^/]+","/users/[^/]+/projects/[^/]+/[^/]+"].some((e=>new RegExp(e).test(this._path)))}get parentProjectID(){var e,t,r;const n=null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:team"])||void 0===r?void 0:r["repo:assetId"],i=this._ancestorIDs&&!this._ancestorIDs.includes(n);return n&&!i||!this._isPathInsideProject()||this._fixParentProjectID(),n}_fixParentProjectID(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.projectContext._callContextAPI(e.cloudID,e.repositoryID);case 2:r=t.sent,(n=r["repo:assetId"])&&e.appMetadata._mergeData({"cc:inherited":{"cc:team":{"repo:assetId":n}}});case 5:case"end":return t.stop()}}),t)})))()}get isChildOfProject(){return!!this.parentProjectID}get isArtifact(){if(this.appMetadata.data)return!!this.appMetadata.data["review:sourceAsset"]}get needsRepoMetadata(){return this._needsRepoMetadata}get isReviewLink(){return!!this.repoPath.startsWith("/pubs/")||this.isArtifact}get reviewLinkSourceType(){var e;if(!this.isReviewLink)return"";const t=null===(e=this.appMetadata.data)||void 0===e?void 0:e[xt.REVIEW_SOURCE_ASSET]["dc:format"];return t||("application/vnd.adobe.xd.cloudproject+dcx"===this.mediaType?this.mediaType:this.repoPath.startsWith("/pubs/aero/v5/")?"application/vnd.adobe.real+dcx":this.repoPath.startsWith("/pubs/id_review/")?"":this.repoPath.startsWith("/pubs/")?"3d/vnd.adobe.asd+dcx":"")}get name(){return Ir(this._name)}get displayName(){}get shellVisibility(){if(void 0!==this._appMetadata.data)return this._appMetadata.data["shell:visibility"]||""}get ancestorIDs(){return this._ancestorIDs}get storageAssignee(){return this._storageAssignee}get extension(){return this.name.lastIndexOf(".")>0?this.name.substring(this.name.lastIndexOf(".")+1):""}get mediaType(){return this._type}get cloudID(){return this.id}get repositoryID(){return this._repositoryID}get repositoryName(){return void 0===this._repositoryName&&this._populateRepositoryName(),this._repositoryName}get repoPath(){return this._path}get storageRegion(){return this._storageRegion}get created(){return this._created}get modified(){return this._modified}get lastAccessed(){return this._lastAccessed}updateLastAccessed(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isFolder){t.next=3;break}return Vt("AdobeAsset.updateLastAccessed","updateLastAccessed API is not allowed on folders"),t.abrupt("return");case 3:return t.next=5,e._ensureLink(z.PERUSER_METADATA);case 5:return t.next=7,e._getAssetInterface();case 7:return r=t.sent,n=new Date,t.next=11,r.patchLastAccessed(n);case 11:i=e._core.hostAssetContext._assetPool.createUpdateSession(),e._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(i,e,{lastAccessed:n}),i.commit();case 14:case"end":return t.stop()}}),t)})))()}get shared(){return this._shared}get sizeInBytes(){return this._size}get isDiscarded(){return this._isArchivedLibraryElement||void 0!==Cr(this.repoPath)||["DISCARDED","DISCARDED_PARENT"].includes(this._assetState)}get assetRefString(){return JSON.stringify({cloud_id:this.cloudID,path:this.repoPath,display_name:this.name,repository_id:this.repositoryID})}get isPublished(){return this._isPublished}get children(){if(!this.isFolder)throw v.create(n.BAD_REQUEST,"Children list can be fetched only for folder");const e=this.isProject||this.isChildOfProject,t=new Ti(this._core.hostAssetContext._assetPool,this,this._core,e),r=new Wi({asset:this,_isSharedWithYou:!0});return new Gi(this._core.hostAssetContext._assetPool,[t],r)}searchChildren(e){if(!this.isFolder)throw v.create(n.BAD_REQUEST,"Children can be searched only in the folder");const t=e.deepSearch,r=e.query,i=new Li({asset:this,deepSearch:t,query:r}),o=new Mi(this._core.hostAssetContext._assetPool,this._core,this._core.hostAssetContext._adobeAssetSearchInterface,this,i);return new Gi(this._core.hostAssetContext._assetPool,[o],i)}discard(){var e=this;return d(u().mark((function t(){var r,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}throw v.create(n.INVALID_OPERATION,"Asset is already discarded");case 2:return t.next=4,e._getAssetInterface();case 4:return r=t.sent,t.next=7,r.discard();case 7:i=t.sent,e._hasArtifacts&&e._core.hostAssetContext._deleteAssetOutputsFolder(e),i&&(o=e._core.hostAssetContext._assetPool.createUpdateSession(),e._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(o,e,i),e.isFolder&&kr({assetPool:e._core.hostAssetContext._assetPool,asset:e,session:o,operation:{type:"discard"}}),o.commit());case 10:case"end":return t.stop()}}),t)})))()}get hasArtifacts(){return this._hasArtifacts}_clearRepositoryName(){this._repositoryName=void 0,this.emit("change")}_populateRepositoryName(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._repositoryName){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e._core.hostAssetContext._repositoryNameFromID(e._repositoryID);case 4:(r=t.sent)&&(n=e._core.hostAssetContext._assetPool.createUpdateSession(),e._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(n,e,{repositoryName:r}),n.commit());case 6:case"end":return t.stop()}}),t)})))()}createFolder(e,t=!1,r=0){var i=this;return d(u().mark((function o(){var a,s,c,l;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i.isFolder){o.next=2;break}throw v.create(n.INVALID_OPERATION,"Asset is not Folder");case 2:if(Lr(e)){o.next=4;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for asset create folder operation.");case 4:return o.prev=4,a=e,o.next=8,i._ensureLink(z.CREATE);case 8:return o.next=10,i._getAssetInterface();case 10:return s=o.sent,o.next=13,s.createFolder(a);case 13:if(!(c=o.sent)){o.next=17;break}return(i.isProject||i.isChildOfProject)&&$i(c,i.isChildOfProject?i.parentProjectID:i.id),o.abrupt("return",i._core.hostAssetContext._createAssetFromMetadata(c));case 17:return o.next=19,i._core.hostAssetContext.getAssetWithRepoPath(`${i.repoPath}/${a}`,i.repositoryID);case 19:return o.abrupt("return",o.sent);case 22:if(o.prev=22,o.t0=o.catch(4),o.t0.code!==n.CONFLICT||!t){o.next=27;break}return l=Sr(e,i._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),r+1),o.abrupt("return",i.createFolder(l.newName,t,l.countUsed));case 27:throw o.t0;case 28:case"end":return o.stop()}}),o,null,[[4,22]])})))()}_setCreatedFromUploadData(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.patchAppMetadata([{op:"add",path:"/cc:createdFromUpload",value:!0}]);case 2:return t.next=4,e.updateLastAccessed();case 4:case"end":return t.stop()}}),t)})))()}importFile(e,t,r,i=!1,o=0){var a=this;return d(u().mark((function s(){var c,l,p,d,h,f;return u().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(a.isFolder){s.next=2;break}throw v.create(n.INVALID_OPERATION,"Asset is not Folder");case 2:if("string"!=typeof e){s.next=4;break}throw v.create(n.BAD_REQUEST,"Unsupported string for file to import");case 4:if(Lr(t)){s.next=6;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for file import operation.");case 6:return s.prev=6,c=t,s.next=10,a._ensureLink(z.CREATE);case 10:return s.next=12,a._ensureLink(z.BLOCK_INITIALIZE);case 12:return s.next=14,a._getAssetInterface();case 14:return l=s.sent,s.next=17,l.importFile(e,c,r);case 17:if(!(p=s.sent)){s.next=24;break}return(a.isProject||a.isChildOfProject)&&$i(p,a.isChildOfProject?a.parentProjectID:a.id),d=a._core.hostAssetContext._createAssetFromMetadata(p),s.next=23,d._setCreatedFromUploadData();case 23:return s.abrupt("return",d);case 24:return s.next=26,a._core.hostAssetContext.getAssetWithRepoPath(`${a.repoPath}/${c}`,a.repositoryID);case 26:return h=s.sent,s.next=29,h._setCreatedFromUploadData();case 29:return s.abrupt("return",h);case 32:if(s.prev=32,s.t0=s.catch(6),s.t0.code!==n.CONFLICT||!i){s.next=37;break}return f=Sr(t,a._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),o+1),s.abrupt("return",a.importFile(e,f.newName,r,i,o+1));case 37:throw s.t0;case 38:case"end":return s.stop()}}),s,null,[[6,32]])})))()}getDownloadURL(){var e=this;return d(u().mark((function t(){var r,i,o,a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._ensureLink(z.PRIMARY);case 2:return t.next=4,e._getAssetInterface();case 4:if(r=t.sent,!(e._size<10485760)){t.next=17;break}return t.next=8,r.getContent();case 8:if((i=t.sent).content){t.next=11;break}throw v.create(n.INTERNAL_ERROR,"Cannot fetch blob");case 11:if(null==(o=URL.createObjectURL(i.content))?void 0:o.length){t.next=14;break}throw v.create(n.INTERNAL_ERROR,"Cannot convert blob to URL");case 14:return t.abrupt("return",o);case 17:return t.next=19,e._ensureLink(z.DOWNLOAD);case 19:return a=W(e.__links,z.DOWNLOAD),t.next=22,r.getBlockDownloadURL(a);case 22:return t.abrupt("return",t.sent);case 23:case"end":return t.stop()}}),t)})))()}get fileContent(){if(!this.isFile)throw v.create(n.BAD_REQUEST,"Cannot get content of an asset that is not a file");return this._fileContent}commitFileChanges(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l,p;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r.isFile){i.next=2;break}throw v.create(n.INVALID_OPERATION,"Asset is not File");case 2:return i.prev=2,i.next=5,r._ensureLink(z.PRIMARY);case 5:return i.next=7,r._getAssetInterface();case 7:return o=i.sent,i.next=10,o.commitFileChanges(e,t);case 10:return a=i.sent,r._fileContent.isLoaded&&r._fileContent._setContent(e,a.eTag),i.abrupt("return",{status:Ji.NoErr,committedEtag:a.eTag});case 15:if(i.prev=15,i.t0=i.catch(2),!(i.t0 instanceof v)){i.next=32;break}if(i.t0.code!==n.CONFLICT){i.next=20;break}return i.abrupt("return",{status:Ji.Conflict});case 20:if(i.t0.code!==n.NOT_FOUND){i.next=32;break}return s=r.repoPath.substring(0,r.repoPath.lastIndexOf("/")),c=!1,i.next=25,r._core.hostAssetContext.getAssetWithRepoPath(s,r.repositoryID).catch((e=>{const t=e;if(n.NOT_FOUND!==t.code)throw e;c=!0}));case 25:if(l=i.sent,!c){i.next=28;break}return i.abrupt("return",{status:Ji.ParentDeletedConflict});case 28:return i.next=30,null==l?void 0:l.importFile(e,r.name);case 30:return p=i.sent,i.abrupt("return",{status:Ji.DeleteConflict,newAsset:p});case 32:throw i.t0;case 33:case"end":return i.stop()}}),i,null,[[2,15]])})))()}restore(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l,p,d,h,f,m;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r.isDiscarded){i.next=2;break}throw v.create(n.INVALID_OPERATION,"Cannot restore an asset that is not discarded");case 2:if(!r.isLibraryElement){i.next=10;break}return i.next=5,r._core.hostAssetContext.restoreLibraryElement(r.cloudID);case 5:(a=r._core.hostAssetContext._assetPool.createUpdateSession()).queueDiscardedItem(r),a.commit(),i.next=44;break;case 10:if(!(c=Cr(r.repoPath,e))){i.next=17;break}return i.next=14,r._move(c,!0);case 14:s=i.sent,i.next=43;break;case 17:return i.next=19,r._getAssetInterface();case 19:return l=i.sent,i.prev=20,i.next=23,l.restore(e||r.name);case 23:s=i.sent,i.next=43;break;case 26:if(i.prev=26,i.t0=i.catch(20),(p=i.t0).code!==n.CONFLICT){i.next=34;break}return d=Sr(e||r.name,r._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),(t||0)+1),h=d.newName,f=d.countUsed,i.abrupt("return",r.restore(h,f));case 34:if(p.code!==n.ACCESS_DENIED){i.next=42;break}if(!(null===(o=r.ancestorIDs)||void 0===o?void 0:o.length)){i.next=42;break}return m=r.ancestorIDs[r.ancestorIDs.length-1],i.next=39,r._core.hostAssetContext.getAssetWithCloudID(m);case 39:if(!i.sent.isDiscarded){i.next=42;break}throw v.create(n.PARENT_DISCARDED,"Parent folder is discarded");case 42:throw p;case 43:s&&(a=r._core.hostAssetContext._assetPool.createUpdateSession(),r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(a,r,s),r.isFolder&&s["repo:path"]&&kr({assetPool:r._core.hostAssetContext._assetPool,asset:r,session:a,operation:{type:"restore",newPath:s["repo:path"]}}),a.commit());case 44:case"end":return i.stop()}}),i,null,[[20,26]])})))()}permanentlyDelete(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isLibraryElement){t.next=8;break}return t.next=3,e._core.hostAssetContext.permanentlyDeleteLibraryElement(e.cloudID);case 3:(r=e._core.hostAssetContext._assetPool.createUpdateSession()).queueDiscardedItem(e),r.commit(),t.next=13;break;case 8:return t.next=10,e._core.hostAssetContext.permanentlyDeleteAssets([e]);case 10:if(!(n=t.sent).failedResults.length){t.next=13;break}throw n.failedResults[0].error;case 13:case"end":return t.stop()}}),t)})))()}get etag(){return this._etag}get version(){return this._version}get createdBy(){return this._createdBy}get modifiedBy(){return this._modifiedBy}get discarded(){return this._discarded}get discardedBy(){return this._discardedBy}hasPermission(...e){return e.every((e=>(this._permissions&e)===e))}get embeddedMetadata(){return this._embeddedMetadata}get appMetadata(){return this._appMetadata}patchAppMetadata(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._appMetadata._patch(e);case 2:case"end":return r.stop()}}),r)})))()}get manifest(){if(!this.isComposite)throw v.create(n.BAD_REQUEST,"Cannot get manifest of an asset that is not a composite");return this._manifest}_releaseRenditions(){this._renditionFetcher.release()}getRenditionURL(e,t=vr.PNG){return this.isFolder||this.isLibraryElement&&!this.links[z.RENDITION]?"":this._renditionFetcher.getURL(e,t,this.etag,this._getAssetInterface())}get thumbnailURL(){return this.getRenditionURL(yr,vr.PNG)}get thumbnailStatus(){return this.renditionURLStatus(yr,vr.PNG)}getCustomRendition({size:e,type:t,urlTemplateOptions:r,additionalHeaders:n}={}){var i=this;return d(u().mark((function o(){var a;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i._ensureLink(z.RENDITION);case 2:return o.next=4,i._getAssetInterface();case 4:return a=o.sent,o.abrupt("return",a.getCustomRendition({size:e,type:t,urlTemplateOptions:r,additionalHeaders:n}));case 6:case"end":return o.stop()}}),o)})))()}getAllCustomRenditions({type:e,urlTemplateOptions:t,additionalHeaders:r}={}){var n=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._ensureLink(z.RENDITION);case 2:return i.next=4,n._getAssetInterface();case 4:return o=i.sent,i.abrupt("return",o.getAllCustomRenditions({type:e,urlTemplateOptions:t,additionalHeaders:r}));case 6:case"end":return i.stop()}}),i)})))()}clearRenditionError(e=yr,t=vr.PNG){this._renditionFetcher.clearRenditionError(e,t,this.etag)}renditionURLStatus(e,t){return this.isFolder||this.isLibraryElement&&!this.links[z.RENDITION]?mr.Done:this._renditionFetcher.renditionURLStatus(e,t,this.etag)}get spaceID(){var e,t,r;return Vt("AdobeAsset.spaceID","AdobeAsset.spaceID is deprecated and will be removed on or after 2024-10-01."),null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:space"])||void 0===r?void 0:r["repo:assetId"]}get isSpaceAsset(){return Vt("AdobeAsset.isSpaceAsset","AdobeAsset.isSpaceAsset is deprecated and will be removed on or after 2024-10-01."),!!this.spaceID}getSpace(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Vt("AdobeAsset.getSpace","AdobeAsset.getSpace is deprecated and will be removed on or after 2024-10-01."),t.next=3,e._core.spaceContext.getEnclosingSpace(e.cloudID);case 3:if(r=t.sent){t.next=6;break}throw v.create(n.NOT_FOUND,"Asset does not belong to a Space");case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))()}get links(){return Object.assign({},this.__links)}_ensureLink(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(n=t.__links)||void 0===n?void 0:n[e])){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._core.hostAssetContext._rapi.getAssetLinks(t.cloudID);case 4:i=r.sent,o=t._core.hostAssetContext._assetPool.createUpdateSession(),t._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(o,t,{_links:Object.assign(Object.assign({},t.__links),i)}),o.commit();case 8:case"end":return r.stop()}}),r)})))()}_move(e,t=!1,r=0){var i=this;return d(u().mark((function o(){var a,s,c,l;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,i._repositoryID){o.next=4;break}return o.next=4,i._load();case 4:return a={op:"move",source:{"repo:assetId":i.id,"repo:repositoryId":i._repositoryID},target:{"repo:path":e,"repo:repositoryId":i._repositoryID}},o.next=7,i._getAssetInterface();case 7:return s=o.sent,o.next=10,s.runOperation(a);case 10:return c=o.sent,o.abrupt("return",c.asset);case 14:if(o.prev=14,o.t0=o.catch(0),o.t0.code!==n.CONFLICT||!t){o.next=19;break}return l=Sr(e,i._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),r+1),o.abrupt("return",i._move(l.newName,!0,l.countUsed));case 19:throw o.t0;case 20:case"end":return o.stop()}}),o,null,[[0,14]])})))()}_copy(e,t,r=!0,i=0,o){var a=this;return d(u().mark((function s(){var c;return u().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return c={failedResults:[],newModels:[]},s.next=3,Rn.runExclusiveTask("copy",[a],d(u().mark((function r(){var s,l,p,d,h;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s=a._finalizePath(e.repoPath,t,i),l=s.path,p=s.counter,i=p,(d=new Map).set(a.id,a),e.repositoryID){r.next=7;break}return r.next=7,e._load();case 7:return h=a._getCopyOp(e.repositoryID,l),r.next=10,a._core.hostAssetContext._runOperations([h],d,o||((e,t,r)=>{if(!r)throw v.create(n.UNKNOWN,"Missing metadata from asset copy operation.");return a._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(e,r)}));case 10:c=r.sent;case 11:case"end":return r.stop()}}),r)}))));case 3:if(!c.failedResults.length){s.next=9;break}if(c.failedResults[0].error.code!==n.CONFLICT||!0!==r){s.next=8;break}return s.next=7,a._copy(e,t,r,i+1);case 7:return s.abrupt("return",s.sent);case 8:throw c.failedResults[0].error;case 9:return s.abrupt("return",c.newModels[0]);case 10:case"end":return s.stop()}}),s)})))()}_copyWithDestMetadata(e,t,r,i=!0,o=0,a){var s=this;return d(u().mark((function c(){var l;return u().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return l={failedResults:[],newModels:[]},c.next=3,Rn.runExclusiveTask("copy",[s],d(u().mark((function i(){var c,p,d,h,f;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return c=s._finalizePath(t,r,o),p=c.path,d=c.counter,o=d,(h=new Map).set(s.id,s),f=s._getCopyOp(e,p),i.next=7,s._core.hostAssetContext._runOperations([f],h,a||((e,t,r)=>{if(!r)throw v.create(n.UNKNOWN,"Missing metadata from asset copy operation.");return s._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(e,r)}));case 7:l=i.sent;case 8:case"end":return i.stop()}}),i)}))));case 3:if(!l.failedResults.length){c.next=9;break}if(l.failedResults[0].error.code!==n.CONFLICT||!0!==i){c.next=8;break}return c.next=7,s._copyWithDestMetadata(e,t,r,i,o+1);case 7:return c.abrupt("return",c.sent);case 8:throw l.failedResults[0].error;case 9:return c.abrupt("return",l.newModels[0]);case 10:case"end":return c.stop()}}),c)})))()}_finalizePath(e,t,r=0){let i=this.name;if(void 0!==t){if(!Lr(t))throw v.create(n.BAD_REQUEST,"Invalid name provided for asset copy operation.");if(i=t,r){const e=Sr(i,this._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),r);i=e.newName,r=e.countUsed}}else{const t=e===this.repoPath.substring(0,this.repoPath.lastIndexOf("/"))?Sr(i,this._core._environment.getValue("ASSET_COPY_NAME_FORMAT"),r):r>0?Sr(i,this._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),r):{newName:i,countUsed:r};i=t.newName,r=t.countUsed}return{path:`${e}/${i}`,counter:r}}_getCopyOp(e,t){const r=[{reltype:z.PRIMARY}];"application/pdf"===this.mediaType&&r.push({reltype:z.APP_METADATA});const n={op:"copy",id:this.id,source:{"repo:assetId":this.id},target:{"repo:path":t,"repo:repositoryId":e},includeResources:r};if(this.repositoryID){n.source["repo:repositoryId"]=this.repositoryID}return n}copy(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._copy(e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}duplicate(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.ancestorIDs.slice(-1)[0],r.next=3,t._core.hostAssetContext.getAssetWithCloudID(n);case 3:return i=r.sent,r.next=6,t._copy(i,e);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}rename(e){var t=this;return d(u().mark((function r(){var i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(Lr(e)){r.next=2;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for asset rename operation.");case 2:return i=Ar(e,t),r.next=5,t._move(i);case 5:(o=r.sent)&&(a=t._core.hostAssetContext._assetPool,s=a.createUpdateSession(),t.isFolder&&kr({assetPool:a,asset:t,session:s,operation:{type:"rename",newPath:i}}),t._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(s,t,o),s.commit());case 7:case"end":return r.stop()}}),r)})))()}move(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t&&(i=new Map([[r.id,t]])),n.next=3,r._core.hostAssetContext.moveAssets([r],e,i);case 3:if(!(o=n.sent).failedResults.length){n.next=6;break}throw o.failedResults[0].error;case 6:case"end":return n.stop()}}),n)})))()}transferToSpace(e){return Vt("AdobeAsset.transferToSpace","AdobeAsset.transferToSpace is deprecated and will be removed on or after 2024-10-01."),this._core.hostAssetContext.transfer(this,e)}}function ro(e){var t;return void 0!==e.effectivePermission?e.effectivePermission:(null===(t=e._embedded)||void 0===t?void 0:t[z.AC_EFFECTIVE])?Dt(e._embedded[z.AC_EFFECTIVE]):di}E([Z],to.prototype,"createdFromUpload",null),E([Z],to.prototype,"createdByClientId",null),E([_e],to.prototype,"_loadWithRetry",null),E([k],to.prototype,"versions",null),E([Z],to.prototype,"assetType",null),E([Z],to.prototype,"isFolder",null),E([Z],to.prototype,"isAssignment",null),E([Z],to.prototype,"isFile",null),E([Z],to.prototype,"isComposite",null),E([Z],to.prototype,"isLibraryElement",null),E([Z],to.prototype,"imageLength",null),E([Z],to.prototype,"imageWidth",null),E([Z],to.prototype,"parentAssignmentID",null),E([Z],to.prototype,"isChildOfAssignment",null),E([Z],to.prototype,"parentClassroomId",null),E([Z],to.prototype,"isChildOfClassroom",null),E([Z],to.prototype,"parentAssignmentMaterialsId",null),E([Z],to.prototype,"isChildOfAssignmentMaterials",null),E([Z],to.prototype,"parentStudentAssignmentId",null),E([Z],to.prototype,"isChildOfStudentAssignment",null),E([Z],to.prototype,"parentProjectID",null),E([k],to.prototype,"_fixParentProjectID",null),E([Z],to.prototype,"isChildOfProject",null),E([Z],to.prototype,"isArtifact",null),E([Z],to.prototype,"name",null),E([Z],to.prototype,"shellVisibility",null),E([Z],to.prototype,"ancestorIDs",null),E([Z],to.prototype,"storageAssignee",null),E([Z],to.prototype,"extension",null),E([Z],to.prototype,"mediaType",null),E([Z],to.prototype,"cloudID",null),E([Z],to.prototype,"repositoryID",null),E([Z],to.prototype,"repositoryName",null),E([Z],to.prototype,"repoPath",null),E([Z],to.prototype,"storageRegion",null),E([Z],to.prototype,"created",null),E([Z],to.prototype,"modified",null),E([Z],to.prototype,"lastAccessed",null),E([Z],to.prototype,"shared",null),E([Z],to.prototype,"sizeInBytes",null),E([Z],to.prototype,"isDiscarded",null),E([Z],to.prototype,"assetRefString",null),E([Z],to.prototype,"isPublished",null),E([k],to.prototype,"children",null),E([Z],to.prototype,"hasArtifacts",null),E([Z],to.prototype,"etag",null),E([Z],to.prototype,"version",null),E([Z],to.prototype,"createdBy",null),E([Z],to.prototype,"modifiedBy",null),E([Z],to.prototype,"discarded",null),E([Z],to.prototype,"discardedBy",null),E([Z],to.prototype,"hasPermission",null),E([Z],to.prototype,"appMetadata",null),E([Z],to.prototype,"getRenditionURL",null),E([Z],to.prototype,"thumbnailURL",null),E([Z],to.prototype,"thumbnailStatus",null),E([Z],to.prototype,"renditionURLStatus",null),E([Z],to.prototype,"spaceID",null),E([Z],to.prototype,"links",null);const no={parse:e=>e,isEqual:(e,t)=>(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.type)===(null==t?void 0:t.type)},io=new pi({localItemType:to,remoteIdProperty:"repo:assetId",changeEventMap:new Map([["_isShared",Lt],["_isSharedWithYouAsset",Lt]]),propertyUpdater:new Ei({_name:"repo:name",_etag:"repo:etag",_repositoryID:"repo:repositoryId",_repositoryName:"repositoryName",_path:"repo:path",_storageRegion:"storage:region",_type:"dc:format",_size:{name:"repo:size",format:"number"},_version:"repo:version",_assetClass:{name:"repo:assetClass",choices:Cn},_assetState:{name:"repo:state",choices:An},_created:{name:"storage:deviceCreateDate",format:"date"},_modified:{name:"storage:deviceModifyDate",format:"date"},_lastAccessed:{name:"lastAccessed",format:"date"},_storageAssignee:{name:"storage:assignee",format:no},_discarded:{name:"repo:discardDate",format:"date"},_createdBy:"repo:createdBy",_modifiedBy:"repo:modifiedBy",_discardedBy:"repo:discardedBy",_imageLength:{name:"tiff:imageLength",format:"number"},_imageWidth:{name:"tiff:imageWidth",format:"number"},_permissions:{get:ro,format:"number"},_isShared:{name:"isShared",format:"boolean"},_isSharedWithYouAsset:{name:"sharedViaInvite",format:"boolean"},_shareFlagsAreDirty:{name:"shareFlagsAreDirty",format:"boolean"},"_appMetadata._data":{name:`_embedded[${z.APP_METADATA}]`,format:"object_subset",set:(e,t)=>{t.appMetadata._mergeData(e)}},_ancestorIDs:{name:"repo:ancestors",isArray:!0,format:"string"},__links:{name:"_links",format:"object"},_hasArtifacts:{name:"hasArtifacts",format:"boolean"},_createdByClientId:"repo:createdByClientId"})});const oo=new pi({localItemType:to,remoteIdProperty:"asset_id",changeEventMap:new Map([["_isShared",Lt],["_isSharedWithYouAsset",Lt],["_isPublicLink",Lt],["_directCollaboratorCount",Lt]]),propertyUpdater:new Ei({_name:"asset_name",_etag:{get:function(e){var t;return e.composite_manifest_etag||(null===(t=e.etag)||void 0===t?void 0:t.primary)||""}},_repositoryID:"repo:repositoryId",_path:{get:function(e){return e.asset_name_path&&e.asset_name?T.join(e.asset_name_path,e.asset_name):e.asset_name_path||e.asset_name||""},format:"string"},_type:{get:function(e){return"application/x-sharedcloud-collection+json"===e.type?"application/vnd.adobecloud.directory+json":e.type},format:"string"},_size:{name:"size",format:"number"},_version:"asset_version_id",_assetClass:{get:function(e){return"application/x-sharedcloud-collection+json"===e.type||"application/vnd.adobecloud.directory+json"===e.type?"directory":"dcx"!==e.creative_cloud_asset_type?"file":e.asset_sub_type},choices:Cn,format:"string"},_permissions:{get:ro,format:"number"},_created:{name:"create_date",format:"date"},_modified:{name:"modify_date",format:"date"},_shared:{name:"collab_metadata#mine.shared_date",format:"date_as_number"},_discarded:{name:"discarded_date",format:"date"},_discardedBy:"discarded_by",_assetState:{name:"repo:state",choices:An,format:"string"},_isArchivedLibraryElement:{name:"isArchivedLibraryElement",format:"boolean"},_lastAccessed:{get:function(e){var t,r;const n=null===(r=null===(t=e["api:metadata/peruser"])||void 0===t?void 0:t[0])||void 0===r?void 0:r["shell:lastAccessDate"];return void 0===n?di:""!==n?n:void 0},format:"date"},_createdFromUpload:{get:function(e){var t;return null===(t=e["api:metadata/application"])||void 0===t?void 0:t["cc:createdFromUpload"]},format:"boolean"},_storageAssignee:{name:"storage:assignee",format:no},_storageRegion:{name:"region",get:function(e){var t,r;switch(null===(t=e.region)||void 0===t?void 0:t.toLowerCase()){case"us":return"VA6";case"ap":return"JPN3";case"eu":return"IRL1";default:return(null===(r=e.region)||void 0===r?void 0:r.toUpperCase())||""}},format:"string"},_createdBy:"creative_cloud_creator_id",_isSharedWithYouAsset:{name:"sharedViaInvite",format:"boolean"},_isShared:{name:"isShared",format:"boolean"},_isPublicLink:{name:"isPublicLink",format:"boolean"},_directCollaboratorCount:{name:"directCollaboratorCount",format:"number"},_isPublished:{name:"published",format:"boolean"},_imageLength:{name:"image_height",format:"number"},_imageWidth:{name:"image_width",format:"number"},_shareFlagsAreDirty:{name:"shareFlagsAreDirty",format:"boolean"},"_appMetadata._data":{name:"app_metadata",format:"object_subset",set:(e,t)=>{t.appMetadata._mergeData(e)}},_ancestorIDs:{name:"path",isArray:!0,format:"string"},__links:{name:"_links",format:"object"},_createdByClientId:"repo:createdByClientId"})});class ao extends be{transfer(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,r.next=5,t._doPost(W(n,z.ATS_MOVE),{"Content-Type":"application/json"},JSON.stringify(e),[200]);case 5:return i=r.sent,r.next=8,i.json();case 8:if(!(o=r.sent).status||200===o.status){r.next=11;break}throw v.createWithResponse(i);case 11:return r.abrupt("return",o.assetId);case 12:case"end":return r.stop()}}),r)})))()}discoverLinks(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getResponse(e.getUrl("/"));case 2:return r=t.sent,t.abrupt("return",r._links);case 4:case"end":return t.stop()}}),t)})))()}getUrl(e){return`https://${this._core._environment.endpoints.TRANSFER_SERVICE_HOST}${e}`}}const so={[z.REVIEW_SERVICE_PROVISION]:["documentId","assetRegion","repositoryId"],[z.REVIEW_SERVICE_DISCARD]:["assetId","assetRegion","repositoryId"],[z.REVIEW_SERVICE_OUTPUTS]:["assetId","assetRegion","documentId","embed","limit","orderBy","outputType","repositoryId","start"],[z.REVIEW_SERIVCE_HAS_OUTPUTS]:["assetRegion"]},co=function(e){return e.map((e=>({"repo:assetId":e.id,"repo:repositoryId":e.repositoryID})))};class lo extends be{constructor(){super(...arguments),this.baseURL=`https://${this._core._environment.endpoints.REVIEW_SERVICE_HOST}`,this.baseEndpoint="/api/v1",this.indexEndpoint=this.baseEndpoint+"/index"}getEndpointURL(e){return`${this.baseURL}${e}`}_discoverLinks(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e,t._getHeaders());case 2:return n=r.sent,r.abrupt("return",n._links);case 4:case"end":return r.stop()}}),r)})))()}_getHeaders(e){const t={};return e&&(t["Content-Type"]=e),t}discoverLinks(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._discoverLinks(e.getEndpointURL(e.indexEndpoint)));case 1:case"end":return t.stop()}}),t)})))()}discardOutputsForAsset(e,t,r){var n=this;return d(u().mark((function i(){var o,a;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.discoverLinks();case 2:return o=i.sent,a=W(o,z.REVIEW_SERVICE_DISCARD,Object.assign(Object.assign({assetId:e},t&&{assetRegion:t}),r&&{repositoryID:r})),i.next=6,n._doPost(a,n._getHeaders(),void 0,[204]);case 6:case"end":return i.stop()}}),i)})))()}hasOutputs(e,t){var r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,o=W(i,z.REVIEW_SERIVCE_HAS_OUTPUTS,Object.assign({},t&&{assetRegion:t})),n.next=6,r._doPost(o,r._getHeaders(G),JSON.stringify(e),[200]);case 6:return a=n.sent,n.next=9,a.json();case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}}),n)})))()}_createFrameLinkUrl(e){const t=new URL(`${this.baseURL}/api/v1/frameioLink`);return Object.entries(e).forEach((([e,r])=>t.searchParams.set(e,r))),t.toString()}createReviewLink(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.reviewLinkId,i=e.artifactId,o=e.projectId,a=_(e,["reviewLinkId","artifactId","projectId"]),r.next=3,t._doPost(t._createFrameLinkUrl(a),{"Content-Type":"application/json"},JSON.stringify({reviewLinkId:`${n}`,artifactId:`${i}`,projectId:`${o}`}));case 3:return s=r.sent,r.next=6,s.json();case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}getReviewLinks(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doGet(t._createFrameLinkUrl(e));case 2:return n=r.sent,r.next=5,n.json();case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))()}updateReviewLink(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.artifactId,i=e.projectId,o=e.etag,a=void 0===o?"*":o,s=_(e,["artifactId","projectId","etag"]),r.next=3,t._doPut(t._createFrameLinkUrl(s),{"Content-Type":"application/json","If-Match":`${a}`},JSON.stringify({artifactId:`${n}`,projectId:`${i}`}));case 3:return c=r.sent,r.next=6,c.json();case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}deleteReviewLink(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.etag,i=_(e,["etag"]),o={},n&&(o={"If-Match":`${n}`}),r.next=5,t._doDelete(t._createFrameLinkUrl(i),o,[204]);case 5:case"end":return r.stop()}}),r)})))()}}E([A((function(e){return V(e,so)})),w(0,P)],lo.prototype,"_discoverLinks",null);const uo=Symbol("reloadSpace"),po=Symbol("clearLastReloadError");class ho{constructor(e,t,r,n,i,o=!1){this._asset=r,this._ussInterface=n,this._artifactFilter=i,this._embedPermissions=o,this._getItemData=this._getItemDataWithRepoId(this._asset.repositoryID),this._ussLoaderHelper=new zn(e,t,this)}supportsFilter(e){const t=[];if(t.push(e),!t.every((e=>e.artifactFilter===this._artifactFilter||void 0===e.artifactFilter)))throw v.create(n.BAD_REQUEST,"SpaceSearchAssetFilter.artifactFilter does not match SpaceSearchAssetLoader.artifactFilter");return!0}loadPage(e){return this._ussLoaderHelper.loadPage(e)}_getUSSResults({start:e,limit:t,order:r,mediaTypes:n}){var i=this;return d(u().mark((function o(){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",i._ussInterface.searchSpace(i._asset.id,"onlyArtifacts"===i._artifactFilter,i._embedPermissions,{type:n,sort_orderby:ar[r.field],sort_order:"descending"===r.direction?"desc":"asc",limit:t,start_index:e}));case 1:case"end":return o.stop()}}),o)})))()}_getItemDataWithRepoId(e){return t=>Object.assign(Object.assign({},t),{"repo:repositoryId":e})}}class fo extends wi{constructor(e){super({_includeHiddenRecursive:null==e?void 0:e._includeHiddenRecursive}),this._asset=null==e?void 0:e.asset,this.artifactFilter=null==e?void 0:e.artifactFilter}get hash(){var e;return["spaceSearch",null===(e=this._asset)||void 0===e?void 0:e.id,this.artifactFilter,super.hash].filter((e=>e)).join(":")}matches(e){var t;return!((null===(t=this._asset)||void 0===t?void 0:t.repoPath)&&!e.repoPath.startsWith(`${this._asset.repoPath}/`))&&((!e.isArtifact||"excludeArtifacts"!==this.artifactFilter)&&(!(!e.isArtifact&&"onlyArtifacts"===this.artifactFilter)&&super.matches(e)))}getRelationToFilter(e){var t,r;const n=null===(t=this._asset)||void 0===t?void 0:t.repoPath,i=null===(r=e._asset)||void 0===r?void 0:r.repoPath;if(n&&i&&!n.startsWith(`${i}/`)&&!i.startsWith(`${n}/`))return"disjoint";if(this.artifactFilter&&e.artifactFilter&&this.artifactFilter!==e.artifactFilter)return"disjoint";const o=super.getRelationToFilter(e);return"disjoint"===o?"disjoint":"unknown"===o||!n&&i||n&&i&&n.startsWith(`${i}/`)||!this.artifactFilter&&e.artifactFilter?"unknown":"subset"}}fo.default=new fo;class mo extends ai{constructor(){super(...arguments),this._name="",this._repositoryID="",this._repositoryName="",this._pathName="",this._created=new Date,this._modified=new Date,this._contributorCount=0,this._role="NONE",this._color="",this._isBookmarked=!1,this._teamID="",this._teamName="",this._thumbnail="",this._access="private",this._etag="",this._version=0,this._state="active",this._loadedGeneration=0,this._teamRole="UNKNOWN"}get spaceID(){return this.id}get name(){return this._name}get access(){return this._access}get etag(){return this._etag}get state(){return this._state}get repositoryID(){return this._repositoryID}get repositoryName(){return this._repositoryName}get pathName(){return this._pathName}get created(){return this._created}get modified(){return this._modified}get contributorCount(){return this._contributorCount}get role(){return this._role}get color(){return this._color}get isBookmarked(){return this._isBookmarked}get teamID(){return this._teamID}get teamName(){return this._teamName}get description(){return this._description}get thumbnail(){return this._thumbnail}get version(){return this._version}get teamRole(){return this._teamRole}get _links(){return this.__links}ensureDescription(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==e._description){t.next=3;break}return t.next=3,e.load({refreshTimeout:-1});case 3:return t.abrupt("return",null!==(r=e.description)&&void 0!==r?r:"");case 4:case"end":return t.stop()}}),t)})))()}getChild(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._children){r.next=3;break}return r.next=3,t.load({refreshTimeout:-1});case 3:return r.abrupt("return",null===(n=t._children)||void 0===n?void 0:n.get(e));case 4:case"end":return r.stop()}}),r)})))()}searchWorkingFiles(){var e=this;return d(u().mark((function t(){var r,n,i,o,a,s;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._core.hostAssetContext,n=r._assetPool,i=r._ussInterface,t.next=3,e._core.hostAssetContext.getAssetWithRepoPath(`${e.pathName}/working_files`,e.repositoryID);case 3:return o=t.sent,a=new ho(n,e._core,o,i,"excludeArtifacts",!0),s=new fo({asset:o,artifactFilter:"excludeArtifacts"}),t.abrupt("return",new Gi(n,[a],s));case 7:case"end":return t.stop()}}),t)})))()}searchArtifacts(e=!1){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._core.hostAssetContext,i=n._assetPool,o=n._ussInterface,r.next=3,t._core.hostAssetContext.getAssetWithCloudID(t.id);case 3:return a=r.sent,s=new ho(i,t._core,a,o,"onlyArtifacts",e),c=new fo({asset:a,artifactFilter:"onlyArtifacts",_includeHiddenRecursive:!0}),r.abrupt("return",new Gi(i,[s],c));case 7:case"end":return r.stop()}}),r)})))()}getWorkingFiles(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.hostAssetContext.getAssetWithRepoPath(`${e.pathName}/working_files`,e.repositoryID);case 2:return r=t.sent,t.abrupt("return",r.children);case 4:case"end":return t.stop()}}),t)})))()}load(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=null==e?void 0:e.refreshTimeout,o=t._lastReload,o&&(o.pending||-1===i||i&&o.requestTime+i>Date.now())||(o=t._lastReload={pending:!0,inProgress:!0,generation:(null!==(n=null==o?void 0:o.generation)&&void 0!==n?n:t._loadedGeneration)+1,requestTime:Date.now(),promise:new Promise(((e,r)=>{setTimeout((()=>t._executeReload(o).finally((()=>o.error?r(o.error):e()))),0)}))},t.dispatch(R)),r.next=6,o.promise;case 6:case"end":return r.stop()}}),r)})))()}_executeReload(e){var t=this;return d(u().mark((function r(){var i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e===t._lastReload){r.next=3;break}return y(!e.pending,"The pending flag must be false after the reload was cleared out."),r.abrupt("return");case 3:return e.pending=!1,r.prev=4,r.next=7,t._core.spaceContext[uo](t);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(4),e.error=r.t0;case 12:if(e.inProgress=!1,!(t._lastReload!==e&&e.generation<=t._loadedGeneration)){r.next=16;break}return r.abrupt("return");case 16:e.error instanceof v&&e.error.code===n.NOT_FOUND&&((i=t._core.spaceContext.spacePool.createUpdateSession()).queueDiscardedItem(t),i.commit()),t.dispatch(R);case 18:case"end":return r.stop()}}),r,null,[[4,9]])})))()}[po](){const e=this._lastReload;(null==e?void 0:e.error)&&(e.error=void 0,e.pending=!1,this.dispatch(R))}get isReloading(){var e,t;return null!==(t=null===(e=this._lastReload)||void 0===e?void 0:e.inProgress)&&void 0!==t&&t}get lastReloadError(){var e;return null===(e=this._lastReload)||void 0===e?void 0:e.error}update(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.updateSpace(t,e);case 2:case"end":return r.stop()}}),r)})))()}rename(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.updateSpace(t,{name:e});case 2:case"end":return r.stop()}}),r)})))()}archive(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.archiveSpaces([e]);case 2:if(!(r=t.sent).failedResults.length){t.next=5;break}throw r.failedResults[0].error;case 5:case"end":return t.stop()}}),t)})))()}restore(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return void 0!==e&&(n=new Map).set(t,e),r.next=3,t._core.spaceContext.restoreSpaces([t],n);case 3:if(!(i=r.sent).failedResults.length){r.next=6;break}throw i.failedResults[0].error;case 6:case"end":return r.stop()}}),r)})))()}}E([Z],mo.prototype,"name",null),E([Z],mo.prototype,"access",null),E([Z],mo.prototype,"etag",null),E([Z],mo.prototype,"state",null),E([Z],mo.prototype,"repositoryID",null),E([Z],mo.prototype,"repositoryName",null),E([Z],mo.prototype,"pathName",null),E([Z],mo.prototype,"created",null),E([Z],mo.prototype,"modified",null),E([Z],mo.prototype,"contributorCount",null),E([Z],mo.prototype,"role",null),E([Z],mo.prototype,"color",null),E([Z],mo.prototype,"isBookmarked",null),E([Z],mo.prototype,"teamID",null),E([Z],mo.prototype,"teamName",null),E([Z],mo.prototype,"description",null),E([Z],mo.prototype,"thumbnail",null),E([Z],mo.prototype,"version",null),E([Z],mo.prototype,"teamRole",null),E([Z],mo.prototype,"_links",null),E([k],mo.prototype,"searchWorkingFiles",null),E([k],mo.prototype,"searchArtifacts",null),E([k],mo.prototype,"getWorkingFiles",null),E([Z],mo.prototype,"isReloading",null),E([Z],mo.prototype,"lastReloadError",null);const go=new pi({localItemType:mo,remoteIdProperty:"id",propertyUpdater:new Ei({_name:"name",_access:{name:"access",choices:["private","team"]},_etag:"etag",_repositoryID:"repositoryId",_repositoryName:"repositoryName",_pathName:"pathName",_created:{name:"createdDate",format:"date"},_modified:{name:"modifiedDate",format:"date"},_contributorCount:{name:"contributorCount",format:"number"},_role:{name:"role",choices:["NONE","CONTRIBUTOR","REVIEWER"]},_color:{name:"color"},_isBookmarked:{name:"bookmarked",format:"boolean"},_teamID:"teamId",_teamName:"teamName",_description:"description",_thumbnail:"thumbnail",_children:{name:"children",mapByKey:"name",format:{parse:e=>({id:e.id,_links:e._links}),isEqual:(e,t)=>e.id===t.id&&hr(e._links,t._links)}},_version:{name:"version",format:"number"},_teamRole:{name:"teamRole",choices:["UNKNOWN","NONE","MEMBER"]},_state:{name:"state",choices:["active","archived","in_progress"]},__links:{name:"_links",format:"object"}})});class vo{constructor(e,t,r,n){this._core=t,this._recentInterface=r,this._implicitFilter=n,this._ussLoaderHelper=new zn(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 5:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,filter:i}){var o=this;return d(u().mark((function a(){var s,c;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,embedPermissions:!0},i.name===Un&&(c=i,s.userId=c.userId,s.uploadedFrom=c.uploadedFrom),a.abrupt("return",o._recentInterface.getRecentAssets(s));case 3:case"end":return a.stop()}}),a)})))()}_postProcessPage(e,t){const r=t.items;r.length&&(this._implicitFilter._lastModificationDate=r[r.length-1].modified)}}class yo extends wi{constructor(){super({_isSharedWithYou:!0})}get hash(){return super.hash}matches(e){return!e.isFolder&&(!(this._lastModificationDate&&e.modified<this._lastModificationDate)&&super.matches(e))}getRelationToFilter(e){var t,r;const n=e;return(null===(t=this._lastModificationDate)||void 0===t?void 0:t.valueOf())!==(null===(r=n._lastModificationDate)||void 0===r?void 0:r.valueOf())?"disjoint":super.getRelationToFilter(e)}}function bo(e,t,r,n,i){return _o.apply(this,arguments)}function _o(){return _o=d(u().mark((function e(t,r,i,o,c){var l,p,d,h,f,m,g,v;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=[],p=[],t.failedResults.forEach((e=>{e.error.code===n.CONFLICT?l.push(e.model):p.push(e)})),!l.length){e.next=12;break}d=s(o);try{for(d.s();!(h=d.n()).done;)f=a(h.value,2),m=f[0],g=f[1],o.set(m,{newName:g.newName,countUsed:g.countUsed+1})}catch(e){d.e(e)}finally{d.f()}return e.next=8,c(l,r,i,!0,o);case 8:return(v=e.sent).failedResults=[...v.failedResults,...p],v.newModels=[...v.newModels,...t.newModels],e.abrupt("return",v);case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e)}))),_o.apply(this,arguments)}class Eo{constructor(e,t,r){this._recentInterface=r,this._ussLoaderHelper=new zn(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 1:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n}){var i=this;return d(u().mark((function o(){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",i._recentInterface.getMRUAssets({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,embedPermissions:!0}));case 1:case"end":return o.stop()}}),o)})))()}}class wo extends wi{constructor(){super({_isSharedWithYou:!0})}get hash(){return`${super.hash}`}matches(e){return!e.isFolder&&(void 0!==e.lastAccessed&&super.matches(e))}}function Lo(e){const t=e.split(":");return[t.pop(),t.join(":")]}function xo(e){return!0===e?"team_view":!1===e?"team_edit":""}function So(e){const t=a(e.split("?"),2),r=t[0],n=t[1],i=new URLSearchParams(n),o={};["start","limit","selector","type","orderBy","group","owner"].forEach((e=>{const t=i.get(e);t&&(o[e]=t,i.delete(e))}));const s=`${i}`;return[s.length>0?`${r}?${s}`:r,o]}class Oo extends be{_getUrl(e){return`https://${this._core._environment.endpoints.MELVILLE_HOST}${e}`}getLibraryData(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(t._getUrl(`/api/v1/libraries/${e}?selector=rendition_grid`),{headers:{"Cache-Control":"no-cache, no-store, max-age=0"}});case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getLibraries(e){var t=this;return d(u().mark((function r(){var i,o,s,c,l,p,d;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null==e?void 0:e.limit)||void 0!==(null==e?void 0:e.start)){r.next=2;break}throw v.create(n.BAD_REQUEST,"[Melville] If limit is provided, start must also be provided.");case 2:return u=e,e=Object.fromEntries(Object.entries(u).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort()),i=K(t._getUrl("/api/v1/libraries"),e),o=So(i),s=a(o,2),c=s[0],l=s[1],p={"Cache-Control":"no-cache, no-store, max-age=0"},d=Object.assign(Object.assign({},p),l),r.next=9,t._getResponse(c,{headers:d});case 9:return r.abrupt("return",r.sent);case 10:case"end":return r.stop()}var u}),r)})))()}getLibrariesForProject(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getLibraries({team:e,selector:"rendition_grid"});case 2:return n=r.sent,r.abrupt("return",n.libraries);case 4:case"end":return r.stop()}}),r)})))()}getLibrariesWithLink(e){var t=this;return d(u().mark((function r(){var n,i,o,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=So(t._getUrl(e.href)),i=a(n,2),o=i[0],s=i[1],r.next=3,t._getResponse(o,{headers:s});case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}restoreLibraryElement(e){var t=this;return d(u().mark((function r(){var n,i,o,s,c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Lo(e),i=a(n,2),o=i[0],s=i[1],c={self:{id:s.toString(),elements:[o]}},r.next=4,t._doPost(t._getUrl(`/api/v1/libraries/${s}/archive`),{"Content-Type":"application/json"},JSON.stringify(c),[200]);case 4:case"end":return r.stop()}}),r)})))()}permanentlyDeleteLibraryElement(e){var t=this;return d(u().mark((function r(){var n,i,o,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Lo(e),i=a(n,2),o=i[0],s=i[1],r.next=3,t._doDelete(t._getUrl(`/api/v1/libraries/${s}/archive/${o}`),{"Content-Type":"application/json"},[204]);case 3:case"end":return r.stop()}}),r)})))()}discardLibrary(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v1/libraries/${e}`),{"Content-Type":"application/json"},[204]);case 2:case"end":return r.stop()}}),r)})))()}restoreLibrary(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={self:`/api/v1/archive/${e}`},r.next=3,t._doPost(t._getUrl("/api/v1/libraries"),{"Content-Type":"application/json"},JSON.stringify(n),[201]);case 3:case"end":return r.stop()}}),r)})))()}copyLibrary(e,t,r,n){var i=this;return d(u().mark((function o(){var a,s,c;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=xo(n),s={source:e,name:t},""!==a&&(s.access=a),void 0!==r&&(s.parent_assetId=r),o.next=6,i._doPost(i._getUrl("/api/v1/libraries"),{"Content-Type":"application/json"},JSON.stringify(s),[200,201]);case 6:return c=o.sent,o.next=9,c.json();case 9:return o.abrupt("return",o.sent);case 10:case"end":return o.stop()}}),o)})))()}moveLibrary(e,t,r){var n=this;return d(u().mark((function i(){var o,a,s;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=xo(r),a={self:e,parent_assetId:t,"repo:manifestPatch":[{op:"replace",path:"/id",value:e}]},""!==o&&(a.access=o),i.next=5,n._doPost(n._getUrl("/api/v1/libraries"),{"Content-Type":"application/json"},JSON.stringify(a),[200,201]);case 5:return s=i.sent,i.next=8,s.json();case 8:return i.abrupt("return",i.sent);case 9:case"end":return i.stop()}}),i)})))()}createLibrary(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i="/api/v1/libraries","string"!=typeof e){r.next=5;break}n={name:e},r.next=11;break;case 5:if("object"!=typeof e){r.next=10;break}i=(n=e).syncCreate?"/api/v1/libraries?invocation_mode=sync":"/api/v1/libraries",r.next=11;break;case 10:throw new Error("Invalid arguments");case 11:return o=_(n,["syncCreate"]),r.next=14,t._doPost(t._getUrl(i),{"Content-Type":"application/json"},JSON.stringify(o),[201,200]);case 14:return a=r.sent,r.next=17,a.json();case 17:return r.abrupt("return",r.sent);case 18:case"end":return r.stop()}}),r)})))()}bookmarkLibraries(e){var t=this;return d(u().mark((function r(){var i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=e.map((e=>{if(!e.id||!e.urn&&!e.url||"collab"===e.type&&!e.urn||"public"===e.type&&!e.url)throw v.create(n.BAD_REQUEST,"[Melville] BookmarkData must include `id` and either `urn` for collaborated libraries or `url` for public libraries.");return e.type=e.type||(e.url?"public":"collab"),e})),i={bookmarks:e},r.next=4,t._doPost(t._getUrl("/api/v1/libraries/bookmarks"),{"Content-Type":"application/json"},JSON.stringify(i),[200,201]);case 4:return o=r.sent,r.next=7,o.json();case 7:return r.abrupt("return",r.sent);case 8:case"end":return r.stop()}}),r)})))()}getBookmarks(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getResponse(e._getUrl("/api/v1/libraries/bookmarks?useCache=false&ussCache=false"),{headers:{"Content-Type":G,"Cache-Control":"no-cache, no-store, max-age=0"}});case 2:return r=t.sent,t.next=5,r.bookmarks;case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))()}unbookmarkLibrary(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v1/libraries/bookmarks/${e}`),{"Content-Type":"application/json"},[204]);case 2:case"end":return r.stop()}}),r)})))()}updateMetadata(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPut(r._getUrl(`/api/v1/libraries/${e}/metadata`),{"Content-Type":"application/json"},JSON.stringify(t),[204,200]);case 2:case"end":return n.stop()}}),n)})))()}}const To={orderDirection:"descending",orderBy:"modify_date",start:0,limit:0,mediaTypes:[],excludeMediaTypes:[]};class Io extends be{getPublishedAssets(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Hn((e=Object.assign(Object.assign({},To),e)).mediaTypes),Hn(e.excludeMediaTypes),n={sort_orderby:e.orderBy,hints:{acp_platform_v2:!0},fetch_fields:{includes:["app_metadata"]},op_or:[{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"pubs"},{[ir.OP_AND]:[{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"cloud-content"},{[ir.FIELD_EXISTS]:["app_metadata$$review:sourceAsset$$dc:format"]}]}],op_none_of:[{[ir.TYPE]:e.excludeMediaTypes||[]}],[ir.STORAGE_ASSIGNEE_ID]:t._core._environment.getValue("USER_ID"),asset_id_opacity:!0,[ir.TYPE]:e.mediaTypes||[],sort_order:(i=e,"ascending"===i.orderDirection?"asc":"desc"),limit:e.limit,start_index:e.start},r.next=6,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}var i}),r)})))()}}class Po{constructor(e,t,r){this._publishedInterface=r,this._ussLoaderHelper=new zn(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 1:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,order:i}){var o=this;return d(u().mark((function a(){return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",o._publishedInterface.getPublishedAssets({orderBy:ki[i.field],orderDirection:i.direction,start:e,limit:t,mediaTypes:r,excludeMediaTypes:n}));case 1:case"end":return a.stop()}}),a)})))()}_getItemData(e){return Object.assign(Object.assign({},e),{published:!0})}}class Co extends wi{constructor(){super({_isPublished:!0})}}class Ao extends wi{constructor(){super({_isDiscarded:!0})}matches(e){return!this.isSyncedAsset(e)&&!this.isMobileCreation(e)&&(!(!e.hasPermission(kt.Restore)&&!e.hasPermission(kt.Delete))&&super.matches(e))}isSyncedAsset(e){return e.repoPath.startsWith("/files/")}isMobileCreation(e){return e.repoPath.startsWith("/assets/")&&!e.repoPath.startsWith("/assets/adobe-libraries/")}}const ko={limit:50,start:0,orderDirection:"descending",orderBy:"modified",mediaTypes:[],excludeMediaTypes:[]},Do=["creative_cloud_colortheme","creative_cloud_gradient","_embedded"],No=["application/vnd.adobe.draw.project+dcx","application/vnd.adobe.sketch.project+dcx","application/vnd.adobe.photoshop-mix.composition+dcx","application/vnd.adobe.photoshop-fix.composition+dcx","application/vnd.adobe.line.sketchbook+dcx","application/vnd.adobe.layup.project+dcx","application/vnd.adobe.comp.project+dcx","application/vnd.adobe.clip.project+dcx","application/vnd.adobe.clsproject+dcx","image/vnd.adobe.cls+dcx"];class Ro extends be{getDiscardedAssets(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Hn((e=Object.assign(Object.assign({},ko),e)).mediaTypes),Hn(e.excludeMediaTypes),n="ascending"===e.orderDirection?"asc":"desc",i=ar[e.orderBy||"modified"],o=t._core._environment.getValue("USER_ID"),a={hints:{acp_platform_v2:!0},creative_cloud_archive:!0,creative_cloud_discarded_directly:!0,[ir.TYPE]:e.mediaTypes||[],fetch_fields:{includes:[...At(),...Do]},op_or:[{[ir.STORAGE_ASSIGNEE_ID]:o},{op_and:[{[ir.STORAGE_ASSIGNEE_TYPE]:"org"},{[ir.TYPE]:["application/vnd.adobe.library+dcx"]},{[ir.REPO_ACL_MODIFIER]:"grant",[ir.REPO_ACL_PRIVILEGES]:["write"],[ir.REPO_ACL_RELATIONS]:[z.PRIMARY]}]},{op_and:[{op_or:[{[ir.STORAGE_ASSIGNEE_ID]:o},{[ir.STORAGE_ASSIGNEE_TYPE]:"org"}]},{op_field_exists:["app_metadata$$cc:inheritable$$cc:team$$repo:assetId","app_metadata$$cc:inherited$$cc:team$$repo:assetId"]}]}],op_none_of:[{[ir.TYPE]:e.excludeMediaTypes||[]},{[ir.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[ir.FIELD_EXISTS]:["app_metadata$$review:sourceAsset$$dc:format"]},{[ir.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:["archive","files"]},{[ir.TYPE]:No}],sort_orderby:i,sort_order:n,limit:e.limit,start_index:e.start},r.abrupt("return",t._core.hostAssetContext._ussInterface.getQueryResponse(a));case 8:case"end":return r.stop()}}),r)})))()}}class Mo{constructor(e,t,r){this._core=t,this._discardedInterface=r,this._ussLoaderHelper=new zn(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.next=6,t._core.hostAssetContext._getListOfRepositoryIDs();case 6:return null==(n=r.sent)||n.forEach((e=>t._core.projectContext._canRestoreProject(e))),r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 9:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,order:i}){return this._discardedInterface.getDiscardedAssets({start:e,limit:t,orderBy:i.field,orderDirection:i.direction,mediaTypes:r,excludeMediaTypes:n})}_getItemData(e){var t;const r=e.creative_cloud_colortheme||e.creative_cloud_gradient||null===(t=e._links)||void 0===t?void 0:t[z.RENDITION],n="element"===e.asset_sub_type;return n&&(e._links=Object.assign(Object.assign({},e._links||{}),{[z.RENDITION]:r})),Object.assign(Object.assign({},e),{isArchivedLibraryElement:n})}}class jo extends wi{constructor(e){super({_isSharedWithYou:!0}),this._query="",this._projectsOnly=!1,this._query=(null==e?void 0:e._query)||"",this._projectsOnly=(null==e?void 0:e._projectsOnly)||!1}get hash(){return[super.hash,this.query?`query=${this._query}`:void 0,this.projectsOnly?`projects_only=${this._projectsOnly}`:void 0].filter((e=>e)).join(":")}get query(){return this._query}get projectsOnly(){return this._projectsOnly}matches(e){return!(this._matchingIDsFromSearch&&!this._matchingIDsFromSearch.has(e.id))&&(!(this._query&&!this._matchingIDsFromSearch)&&super.matches(e))}getRelationToFilter(e){var t,r;return(null===(t=this.query)||void 0===t?void 0:t.toLowerCase())!==(null===(r=e.query)||void 0===r?void 0:r.toLowerCase())?"disjoint":super.getRelationToFilter(e)}}class Zo{constructor(){this._contexts=new Map}register(e){let t=this._contexts.get(e);t||(t={id:ut(),references:new Set},this._contexts.set(e,t));const r=ut();return t.references.add(r),()=>{const t=this._contexts.get(e);t&&(t.references.delete(r),0===t.references.size&&this._contexts.delete(e))}}reportObserved(e,t="change"){var r,n=s(this._contexts);try{for(n.s();!(r=n.n()).done;){const n=a(r.value,2),i=n[0],o=`_atom_${n[1].id}_${t}`;let s=e[o];if(!s){const r=()=>s.reportChanged();s=i(`${e.constructor.name}_${t}`,(()=>{e.on(t,r)}),(()=>{e.off(t,r)})),e[o]=s}s.reportObserved()}}catch(e){n.e(e)}finally{n.f()}}}const Fo=(e,...t)=>{const r=new AbortController,n=()=>{t.forEach((e=>e.removeEventListener("abort",i)))},i=()=>{r.abort(),n()};return t.some((e=>e.aborted))?i():t.forEach((e=>e.addEventListener("abort",i))),e.signal=r.signal,n};var Bo;!function(e){e[e.Stage=0]="Stage",e[e.Production=1]="Production"}(Bo||(Bo={}));const Go={USER_ID:"",USER_EMAIL:"",CLIENT_ID:"",ACCESS_TOKEN:"",ENVIRONMENT:Bo.Production,HOST_PRODUCT_DATA:{PRODUCT_ID:"",PRODUCT_LOCATION:""},FETCH_REQUEST_TIMEOUT:6e4,ASYNC_DEFAULT_DELAY:1e3,CACHE_DEFAULT_TTL:2592e6,MIN_RETRY_INTERVAL:1e3,MAX_RETRY_INTERVAL:12e4,ONS_DOCUMENT_VISIBILITY_TIMEOUT:1e4,ONS_DEFAULT_MAX_SUBSCRIPTIONS:5,ONS_DEFAULT_MAX_ASSETS_PER_SUBSCRIPTION:100,ONS_SUBSCRIPTION_TIME_TO_LIVE:216e5,ONS_SUBSCRIPTION_RENEW_TIME:3e5,INDEXED_DB_VERSION:1,PROJECTS_LIST_UPDATE_LATENCY:3e3,PROJECTS_ITEM_UPDATE_LATENCY:1e3,CLASSROOMS_LIST_UPDATE_LATENCY:3e3,ASSETS_LIST_UPDATE_LATENCY:100,USS_LIST_UPDATE_LATENCY:3e3,VERSIONS_LIST_UPDATE_LATENCY:100,ASSET_COPY_NAME_FORMAT:"%@ copy (%d)",ASSET_CONFLICT_NAME_FORMAT:"%@ (%d)",DISABLE_ONS:!1,ENABLE_ONS_CACHE:!1,_VERSION_OVERRIDE_FOR_TEST:"",HIGH_PRIORITY_RAPI_REQUESTS:!1,LOCALE:"en-US",SESSION_TYPE:"logged-in",USE_GRAPHQL:!1,FEATURE_FLAGS:{"enable-x-bucket-move":!1}},Uo={[Bo.Stage]:{LABEL:"Staging",ACP_CS_HOST:"platform-cs-stage.adobe.io",SYNC_SERVICE_HOST:"acp-ss-stage.adobe.io",PROJECTS_HOST:"ccprojects-stage.adobe.io",ASSIGNMENTS_HOST:"hume-stage.adobe.io",INVITATIONS_HOST:"invitations-stage.adobe.io",TRANSFER_SERVICE_HOST:"ats-stage.adobe.io",USS_HOST:"adobesearch-stage.adobe.io",XDCE_HOST:"xdce-stage.adobe.io",REVIEW_SERVICE_HOST:"ccassetreview-stage.adobe.io",MELVILLE_HOST:"ccx-melville-stage.adobe.io",USSv3_HOST:"ax-projects-search-stage.adobe.io",PPS_HOST:"pps-stage.adobe.io",BEHANCE_HOST:"cc-api-behance-stage.adobe.io",CLASSROOMS_HOST:"edu-classrooms-stage.adobe.io",COMMENT_HOST:"comments-stage.adobe.io"},[Bo.Production]:{LABEL:"Production",ACP_CS_HOST:"platform-cs.adobe.io",SYNC_SERVICE_HOST:"acp-ss.adobe.io",PROJECTS_HOST:"ccprojects.adobe.io",ASSIGNMENTS_HOST:"hume.adobe.io",INVITATIONS_HOST:"invitations.adobe.io",TRANSFER_SERVICE_HOST:"ats.adobe.io",USS_HOST:"adobesearch.adobe.io",XDCE_HOST:"xdce.adobe.io",REVIEW_SERVICE_HOST:"ccassetreview.adobe.io",MELVILLE_HOST:"libraries.adobe.io",USSv3_HOST:"ax-projects-search.adobe.io",PPS_HOST:"pps.adobe.io",BEHANCE_HOST:"cc-api-behance.adobe.io",CLASSROOMS_HOST:"edu-classrooms.adobe.io",COMMENT_HOST:"comments-stage.adobe.io"}},zo=e=>"string"==typeof e&&Boolean(e),Vo=[{key:"CLIENT_ID",validator:zo},{key:"USER_ID",validator:zo},{key:"ENVIRONMENT",validator:e=>(e=>"number"==typeof e)(e)&&e in Bo},{key:"HOST_PRODUCT_DATA",validator(e){if(!e)return!1;const t=e.PRODUCT_ID;return zo(t)}}];class Ho{constructor(e,t,r){this._core=e,this._hooks=r,this._isTokenInvalid=!0,this.mobx=new Zo;const i=Object.assign({},Go.FEATURE_FLAGS,t.FEATURE_FLAGS),o=Object.assign({},Go,t);o.FEATURE_FLAGS=i;const a=Vo.filter((({key:e,validator:t})=>!t(o[e])));if(a.length){const e=a.map((({key:e})=>e)).join(", ");throw v.create(n.BAD_REQUEST,`Invalid required options: ${e}`)}if(o.ACCESS_TOKEN)this._isTokenInvalid=!1;else if(!r.refreshAccessToken)throw v.create(n.BAD_REQUEST,"refreshAccessToken hook must be provided if ACCESS_TOKEN is not set");this._config=o,this._cache=new Kr(o.USER_ID,e,r.persistentCache)}get cache(){return this._cache}getValue(e){return this._config[e]}setValue(e,t){this._config[e]=t;const r={type:bt},n={configurationKeyName:e};this._core.dispatch(r,n)}get endpoints(){const e=this._config.ENVIRONMENT;return Uo[e]}getDeviceId(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=e._config.DEVICE_ID,t.t0){t.next=5;break}return t.next=4,e.cache.getItem("DEVICE_ID",d(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ut());case 1:case"end":return e.stop()}}),e)}))),(e=>"string"==typeof e));case 4:t.t0=t.sent;case 5:return t.abrupt("return",t.t0);case 6:case"end":return t.stop()}}),t)})))()}getUserId(){return this.getValue("USER_ID")}_loggerEvent(e,t){this._core.listenerCount(yt)>0&&this._core.emit(yt,new Et(e,t))}log(e){this._loggerEvent(e,ou.Info)}debug(e){this._loggerEvent(e,ou.Debug)}error(e){this._loggerEvent(e,ou.Err)}warn(e){this._loggerEvent(e,ou.Warn)}_refreshAccessToken(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("logged-out"===e._config.SESSION_TYPE||!e._isTokenInvalid){t.next=15;break}if(e._hooks.refreshAccessToken){t.next=3;break}return t.abrupt("return","");case 3:return e.log("Refreshing access token from host..."),t.prev=4,t.next=7,e._hooks.refreshAccessToken(e._config.ACCESS_TOKEN);case 7:e._config.ACCESS_TOKEN=t.sent,t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(4),v.wrapErrorIfNeeded(n.AUTHORIZATION_ERROR,"Failed to refresh access token",t.t0);case 13:e._isTokenInvalid=!1,e.log("Refreshing access token "+(e._config.ACCESS_TOKEN?"successful":"unsuccessful"));case 15:return t.abrupt("return",e._config.ACCESS_TOKEN);case 16:case"end":return t.stop()}}),t,null,[[4,10]])})))()}fetch(e,t={},r=0){var i=this;return d(u().mark((function o(){var a,s,c,l,p,d,h,f,m,g,y,b,E,w,L,x,S,O;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!i._hooks.fetch){o.next=2;break}return o.abrupt("return",i._hooks.fetch(e,t));case 2:if(a=i._config.SESSION_TYPE,!i._isTokenInvalid){o.next=9;break}return o.next=6,i._refreshAccessToken();case 6:o.t0=o.sent,o.next=10;break;case 9:o.t0=i._config.ACCESS_TOKEN;case 10:if(s=o.t0,"logged-out"===a||s){o.next=13;break}throw v.create(n.AUTHORIZATION_ERROR,"Unable to obtain access token - did you provide a refreshAccessToken hook?");case 13:return c=t.headers,l=void 0===c?{}:c,p=t.authHeader,d=t.noOtherHeaders,h=t.requestTimeoutMs,f=_(t,["headers","authHeader","noOtherHeaders","requestTimeoutMs"]),"Authorization",m="logged-out"!==a?{[p||"Authorization"]:`${"guest"===a?"AnonBearer":"Bearer"} ${s}`}:{},g=d?dr(l):Object.assign(Object.assign(Object.assign({},dr(l)),m),{"X-Api-Key":i._config.CLIENT_ID}),y=new AbortController,b=()=>{},f.signal?b=Fo(f,f.signal,y.signal):f.signal=y.signal,E=h||i.getValue("FETCH_REQUEST_TIMEOUT"),w=setTimeout((()=>y.abort()),E),L=Date.now(),o.prev=23,o.next=26,fetch(e,Object.assign(Object.assign({},f),{headers:g}));case 26:if(x=o.sent,S=x.headers.get("X-Request-Id"),O=S||"no requestId",i.debug(`[${O}] ${t.method||"GET"} ${e} ${x.status} (${Date.now()-L}ms)`),clearTimeout(w),401!==x.status){o.next=39;break}if(s===i._config.ACCESS_TOKEN){o.next=36;break}return o.abrupt("return",i.fetch(e,t,r+1));case 36:if(i._isTokenInvalid=!0,!(r<1)){o.next=39;break}return o.abrupt("return",i.fetch(e,t,r+1));case 39:return o.abrupt("return",x);case 42:throw o.prev=42,o.t1=o.catch(23),i.debug(`Error - ${o.t1} (${Date.now()-L}ms)`),v.wrapErrorIfNeeded(n.NETWORK_ERROR,`Failed network request when fetching: ${e}`,o.t1);case 46:return o.prev=46,b(),o.finish(46);case 49:case"end":return o.stop()}}),o,null,[[23,42,46,49]])})))()}getRetryInterval(e){return this.getValue(e<3?"MIN_RETRY_INTERVAL":"MAX_RETRY_INTERVAL")}}E([k],Ho.prototype,"getDeviceId",null),E([Ee],Ho.prototype,"_refreshAccessToken",null);class Yo extends be{constructor(){super(...arguments),this.queryPath="/uss/v3/query"}getQueryResponse(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`https://${t._core._environment.endpoints.USSv3_HOST}${t.queryPath}`,i=Object.assign({id:"query1",scope:{entities:["AcpAsset"]},fetchFields:[Ai.SharedBy,Ai.LastAccessDate,Ai.CCInheritable,Ai.CCInherited,Ai.HzDocumentMetadata]},e),o={experienceId:"Default-Global-Search-Experience",queries:[i]},r.next=5,t._doPost(n,{"X-App-Token":t._core._environment.getValue("ENVIRONMENT")===Bo.Stage?"4c7f3f73-27a6-48f9-8447-d2c8404661fa":"4c988f33-6435-4469-b37b-7dbe33687bd8","content-type":"application/vnd.adobe.search-request+json"},JSON.stringify(o),[200]);case 5:return a=r.sent,r.abrupt("return",a.json());case 7:case"end":return r.stop()}}),r)})))()}}class Wo{constructor(e,t,r){this._assetPool=e,this._core=t,this._loader=r,this._getItemData=this._getItemDataWithUserId(this._core._environment.getUserId())}loadPage(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f,m,g,v,y,b,_,E,w,L,x,S,O;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.order,s=e.limit,c=void 0===s?50:s,l=e.filter,p=e.implicitFilter,d=r._core._environment.getValue("USS_LIST_UPDATE_LATENCY"),h=Date.now()-d,t=t||0,f=l.mediaTypes,m=l.excludeMediaTypes,g=l.excludeInheritanceTypes,n.next=7,r._loader._getUSSResults({order:a,limit:c,filter:l,implicitFilter:p,start:t,mediaTypes:Array.from(null!=f?f:[]),excludeMediaTypes:Array.from(null!=m?m:[]),excludeInheritanceTypes:Array.from(null!=g?g:[])});case 7:return v=n.sent,y=v.queryResults[0],b=y.items||[],_=r._assetPool.createLoaderUpdateSession(h),E=r._loader._extractItems?r._loader._extractItems(_,b):r._extractItems(_,b),L=y.metadata.totalHits||0,x=b.length,(S=0===x?t+c:t+x)<L&&(w=e=>r.loadPage(e,S)),O={items:E,total:L,loadNextPage:w,mostRecentValidMutation:h},null===(o=(i=r._loader)._postProcessPage)||void 0===o||o.call(i,e,O),_.commit(),n.abrupt("return",O);case 20:case"end":return n.stop()}}),n)})))()}_getItemDataWithUserId(e){return t=>{var r,n;return Object.assign(Object.assign(Object.assign(Object.assign({},t.rm),{sharedViaInvite:(null===(r=t.cm)||void 0===r?void 0:r.sharedBy.length)>0&&t.cm.sharedBy[0]!==e,isShared:(null===(n=t.cm)||void 0===n?void 0:n.sharedBy.length)>0}),t.am&&{_embedded:{[z.APP_METADATA]:t.am}}),{shareFlagsAreDirty:!1})}}_extractItems(e,t){var r,n;return this._core._adobeAssetFactory.assetsFromUSSV3AppMetadata(e,t,null!==(r=this._loader._getItemData)&&void 0!==r?r:this._getItemData,null===(n=this._loader)||void 0===n?void 0:n._libraryContext)}}class $o{constructor(e,t,r,n){this._core=t,this._globalSearchInterface=r,this._implicitFilter=n,this._ussLoaderHelper=new Wo(e,this._core,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 5:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t=50,order:r,mediaTypes:n,excludeMediaTypes:i,excludeInheritanceTypes:o}){const a=this._implicitFilter,s=a._query,c=a._projectsOnly;return this._globalSearchInterface.globalSearch({start:e,limit:t,query:s,order:r,mediaTypes:[...n||[]],excludeMediaTypes:[...i||[]],excludeInheritanceTypes:[...o||[]],projectsOnly:c})}_postProcessPage({filter:e},{items:t}){this._implicitFilter._matchingIDsFromSearch=new Set([...this._implicitFilter._matchingIDsFromSearch||[],...t.map((e=>e.id))])}}class Ko extends be{constructor(e,t){super(e),this._ussInterface=t}globalSearch({query:e,start:t=0,limit:r=50,order:n,mediaTypes:i,excludeInheritanceTypes:o,projectsOnly:a}){var s=this;return d(u().mark((function c(){var l,p,d,h,f,m,g,v;return u().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return h=(d=n||{}).field,f=void 0===h?"modified":h,m=d.direction,g=void 0===m?"descending":m,v=[],a?v.push({[Ci.DIRECTORY_TYPE]:["team"]}):(null!==(l=null==i?void 0:i.length)&&void 0!==l&&l&&v.push({[Ci.MEDIA_TYPE]:i}),null!==(p=null==o?void 0:o.length)&&void 0!==p&&p&&v.push({[Ci.INHERITANCE_TYPE]:{funcParams:{fields:o}}})),c.abrupt("return",s._ussInterface.getQueryResponse({start:t,limit:r,textQuery:e,sorts:[{sortOrderBy:Di[f],sortOrder:"ascending"===g?Pi.Ascending:Pi.Descending}],filters:v}));case 4:case"end":return c.stop()}}),c)})))()}}class qo{constructor(e,t,r,n){this._implicitFilter=t,this._core=r,this._adobeAssetGlobalSearchInterface=n,this._ussLoaderHelper=new zn(e,r,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 5:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,order:r,mediaTypes:n,excludeMediaTypes:i}){var o;const a=null===(o=this._implicitFilter)||void 0===o?void 0:o._query;return this._adobeAssetGlobalSearchInterface.getFilteredAssets({orderBy:ki[r.field],orderDirection:r.direction,start:e,limit:t,mediaTypes:n,excludeMediaTypes:i,query:a,embedPermissions:!0})}_postProcessPage(e,t){const r=t.items;this._implicitFilter._matchingIDsFromSearch=new Set([...this._implicitFilter._matchingIDsFromSearch||[],...r.map((e=>e.id))])}}class Xo extends wi{constructor(){super({_isSharedWithYou:!0})}get hash(){return super.hash}matches(e){return!!e._isSWYAsset_NoLazyLoad&&super.matches(e)}getRelationToFilter(e){const t=e;return super.getRelationToFilter(t)}}const Jo=[[z.AC_EFFECTIVE],[z.APP_METADATA],[z.PROJECTS_CREATOR],[z.REPOSITORY]],Qo={orderDirection:"ascending",orderBy:"repo:name",start:0,limit:0,embed:Jo};function ea(e,t){const r=function(e,t){return Object.assign({},e,t)}(Qo,t),n=function(e){const t={};return e.start&&(t.start=e.start),e.limit&&(t.limit=e.limit),t}(r);n.orderBy=function(e){return("ascending"===e.orderDirection?"+":"-")+e.orderBy}(r);const i=r.embed,o=r.view,a=r.repositoryId;return(null==i?void 0:i.length)&&(n.embed=i.join(",")),o&&(n.view=o),a&&(n.repositoryId=a),W(e,z.PROJECTS_COLLECTION,n)}class ta extends be{constructor(){super(...arguments),this._gradientLanguageFetched=""}_discoverLinks(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e);case 2:return n=r.sent,r.abrupt("return",n._links);case 4:case"end":return r.stop()}}),r)})))()}_getEndpointHref(e){return`https://${this._core._environment.endpoints.PROJECTS_HOST}${e}`}discoverLinks(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._discoverLinks(e._getEndpointHref("/api/v3/index")));case 1:case"end":return t.stop()}}),t)})))()}getProjects(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=ea(n,e),r.next=6,t._getResponse(i);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}_getProjectLink(e,t=Jo){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,o=W(i,z.PROJECTS_PRIMARY,Object.assign({assetId:e},t.length?{embed:t.join(",")}:void 0)),n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}getProject(e,t=Jo){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getProjectLink(e,t);case 2:return i=n.sent,n.next=5,r._getResponse(i);case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}getProjectsWithLink(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e.href);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_getCreateLink(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,r.abrupt("return",W(n,z.PROJECTS_CREATE,e.length?{embed:e.join(",")}:void 0));case 4:case"end":return r.stop()}}),r)})))()}createProject(e,t=Jo){var r=this;return d(u().mark((function i(){var o,a,s,c;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r._getCreateLink(t);case 2:return o=i.sent,i.next=5,r._doPost(o,{"Content-Type":G},JSON.stringify(e),[201,403]);case 5:return a=i.sent,s={},i.prev=7,i.next=10,a.json();case 10:s=i.sent,i.next=15;break;case 13:i.prev=13,i.t0=i.catch(7);case 15:if(403!==s.status){i.next=23;break}if(s.type!==m.CHILDREN_LIMIT_EXCEEDED){i.next=20;break}throw v.create(n.PROJECT_LIMIT_EXCEEDED,"Maximum number of Projects exceeded",{response:a,reqId:a.headers.get("x-request-id")||""});case 20:throw c=v.createWithResponse(a,a.url),r._core._environment.error(`ProjectsInterface error ${c}`),c;case 23:return i.abrupt("return",s);case 24:case"end":return i.stop()}}),i,null,[[7,13]])})))()}resolveProjectByName(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResolveByPathLink(e);case 2:return n=r.sent,r.abrupt("return",t._getResponse(n));case 4:case"end":return r.stop()}}),r)})))()}renameProject(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(t,z.PROJECTS_RENAME),n.next=3,r._doPost(i,{"Content-Type":G},JSON.stringify({"repo:name":e}),[204]);case 3:case"end":return n.stop()}}),n)})))()}_getResolveByPathLink(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,o=W(i,z.RESOLVE_PATH,Object.assign({path:e},t?{repositoryId:t}:{})),n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}validateProjectName(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getResolveByPathLink(e,t);case 2:return i=n.sent,n.next=5,r._doHead(i);case 5:case"end":return n.stop()}}),n)})))()}discardProject(e,t){var r=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(null==t?void 0:t[z.DISCARD]){i.next=2;break}throw v.create(n.BAD_REQUEST,`Discard link is missing for this project${e}`);case 2:return o=W(t,z.DISCARD),i.next=5,r._doPost(o,void 0,void 0,[204]);case 5:case"end":return i.stop()}}),i)})))()}restoreProject(e,t){var r=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(null==t?void 0:t[z.RESTORE]){i.next=2;break}throw v.create(n.BAD_REQUEST,`Restore link is missing for this project${e}`);case 2:return o=W(t,z.RESTORE),i.next=5,r._doPost(o,void 0,void 0,[204]);case 5:case"end":return i.stop()}}),i)})))()}getGradients(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`${e}-gradient-data`,r.next=3,t._core._environment.cache.getItem(n);case 3:if((i=r.sent)!==Yr){r.next=6;break}return r.abrupt("return",t._refreshGradients(e));case 6:if(t._gradientLanguageFetched===e){r.next=8;break}return r.abrupt("return",t._refreshGradients(e));case 8:return r.abrupt("return",i);case 9:case"end":return r.stop()}}),r)})))()}_getGradientsLink(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.discoverLinks();case 2:return r=t.sent,n=W(r,z.PROJECTS_GRADIENTS_COLLECTION),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()}_refreshGradients(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getGradientsLink();case 2:return n=r.sent,r.next=5,t._doGet(n,{headers:{"Content-Type":G,"Accept-Language":e}});case 5:return i=r.sent,r.next=8,i.json();case 8:return o=r.sent,a=`${e}-gradient-data`,r.next=12,t._core._environment.cache.setItem(a,o);case 12:return t._gradientLanguageFetched=e,r.abrupt("return",o);case 14:case"end":return r.stop()}}),r)})))()}patchProject(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=[],t.gradientID&&i.push((a=Rt.GRADIENT_ID,s=t.gradientID,{op:"replace",path:a,value:s})),o=W(e,z.APP_METADATA),n.next=5,r._doPatch(o,{"Content-Type":U,"If-Match":"*"},JSON.stringify(i),[204]);case 5:case"end":return n.stop()}var a,s}),n)})))()}_getCapabilityLink(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,n.abrupt("return",W(i,z.PROJECTS_CAPABILITY,Object.assign({privilege:e},t?{repositoryId:t}:{})));case 4:case"end":return n.stop()}}),n)})))()}getCapability(e,t){var r=this;return d(u().mark((function o(){var a,s,c,l;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r._getCapabilityLink(e,t);case 2:return a=o.sent,o.prev=3,o.next=6,r._doGet(a);case 6:o.next=29;break;case 8:if(o.prev=8,o.t0=o.catch(3),b(o.t0)){o.next=12;break}throw o.t0;case 12:if(s=o.t0,c=s._additionalInfo.response){o.next=16;break}throw o.t0;case 16:if([404,403].includes(c.status)){o.next=19;break}throw o.t0;case 19:return o.next=21,c.json();case 21:l=o.sent,o.t1=l.type,o.next=o.t1===m.ADMIN_ONLY?25:o.t1===m.NO_HOME_REPOSITORY?26:o.t1===m.INVALID_HOME_REPOSITORY?27:28;break;case 25:throw v.create(n.ACCESS_DENIED,"Admin disabled creation of projects for user",void 0,i.PROJECTS_ADMIN_ONLY);case 26:throw v.create(n.NOT_FOUND,"No home repository for the user",void 0,i.PROJECTS_NO_HOME_REPOSITORY);case 27:throw v.create(n.NOT_FOUND,"Invalid home Repository for the user",void 0,i.PROJECTS_INVALID_REPOSITORY);case 28:throw o.t0;case 29:case"end":return o.stop()}}),o,null,[[3,8]])})))()}_issueContextAPIRequest(e,t,r){var n=this;return d(u().mark((function i(){var o,a;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=JSON.stringify({"repo:assetId":e,"repo:repositoryId":t}),i.next=3,n._doPost(r,{"Content-Type":"application/json"},o,[200]);case 3:return a=i.sent,i.abrupt("return",a.json());case 5:case"end":return i.stop()}}),i)})))()}}E([A((function(e){return V(e,Nt)})),w(0,P)],ta.prototype,"_discoverLinks",null),E([Ee],ta.prototype,"getGradients",null),E([Ee],ta.prototype,"_refreshGradients",null);const ra={[z.ASSIGNMENTS_COLLECTION]:["classroomId"],[z.ASSIGNMENTS_CREATE]:["classroomId"],[z.ASSIGNMENTS_PRIMARY]:["assignmentId"]};var na;!function(e){e.DRAFT="DRAFT",e.ASSIGNED="ASSIGNED"}(na||(na={}));const ia={canClassroomReadSubmissions:"assignment:canClassroomReadSubmissions",instructions:"assignment:instructions",dueDate:"assignment:dueDate",externalTemplateIds:"assignment:externalTemplateIds",templateIds:"assignment:templateIds",name:"repo:name",tasks:"assignment:tasks",status:"assignment:status",referenceIds:"assignment:referenceIds",externalTutorials:"assignment:externalTemplateIds"};var oa,aa,sa,ca;function la(e,t,r,n){if(!r&&null==e)return!0;switch(t){case"string":return"string"==typeof e;case"date":return"object"==typeof e&&void 0!==e.toDateString;case"string[]":return Array.isArray(e)&&e.every((e=>la(e,"string",!1)));case"enum":return Object.values(n).some((t=>t===e));case"blob":return e instanceof Blob;case"object":return"object"==typeof e&&!Array.isArray(e)&&null!==e}return!1}function ua(e,t){return e.reduce(((e,{key:r,type:n,ref:i,isRequired:o})=>{if(!la(t[r],n,o,i)){const t="enum"===n||"object"===n?"an":"a";let i=`${r.toString()} is not ${t} ${n}`;o&&(i+=" or is missing"),e.push(i)}return e}),[])}function pa(e,t){return t===aa.NONE?"":`${e}-${t}`}!function(e){e.albumCover="album-cover",e.bannerPrint="banner-print",e.bannerWeb="banner-web",e.blogGraphic="blog-graphic",e.blogHeader="blog-header",e.bookCover="book-cover",e.bookmark="bookmark",e.brochure="brochure",e.businessCard="business-card",e.calendar="calendar",e.cardGreeting="card-greeting",e.certificate="certificate",e.checklist="checklist",e.classSchedule="class-schedule",e.comicStrip="comic-strip",e.conceptMap="concept-map",e.couponSheet="coupon-sheet",e.coverPage="cover-page",e.displayAd="display-ad",e.dividerPage="divider-page",e.drawing="drawing",e.drawingWorksheet="drawing-worksheet",e.ebookCover="ebook-cover",e.emailHeader="email-header",e.etsyShopBanner="etsy-shop-banner",e.etsyShopCover="etsy-shop-cover",e.eventbriteHeader="eventbrite-header",e.facebookAd="facebook-ad",e.facebookEventCover="facebook-event-cover",e.facebookGroupCover="facebook-group-cover",e.facebookPageCover="facebook-page-cover",e.facebookPost="facebook-post",e.facebookProfileCover="facebook-profile-cover",e.facebookShopCover="facebook-shop-cover",e.facebookStory="facebook-story",e.flashCard="flash-card",e.flashCardSheet="flash-card-sheet",e.flyer="flyer",e.giftCertificate="gift-certificate",e.giftTag="gift-tag",e.googleClassroomBanner="google-classroom-banner",e.graph="graph",e.graphicOrganizer="graphic-organizer",e.idCard="id-card",e.infographic="infographic",e.instagramAd="instagram-ad",e.instagramCarousel="instagram-carousel",e.instagramLandscapePost="instagram-landscape-post",e.instagramPortraitPost="instagram-portrait-post",e.instagramReel="instagram-reel",e.instagramSquarePost="instagram-square-post",e.instagramStory="instagram-story",e.instagramStoryAd="instagram-story-ad",e.invitation="invitation",e.invoice="invoice",e.journal="journal",e.label="label",e.labelSheet="label-sheet",e.leafletTrifold="leaflet-trifold",e.lessonPlan="lesson-plan",e.letter="letter",e.letterhead="letterhead",e.lineAdSmall="line-ad-small",e.lineAdSquare="line-ad-square",e.lineAdSquareVideo="line-ad-square-video",e.lineAdVertical="line-ad-vertical",e.lineRichMenuLarge="line-rich-menu-large",e.lineRichMenuSmall="line-rich-menu-small",e.lineRichMessage="line-rich-message",e.linkedinBlogPost="linkedin-blog-post",e.linkedinPost="linkedin-post",e.linkedinProfileCover="linkedin-profile-cover",e.logo="logo",e.magazine="magazine",e.mediaKit="media-kit",e.meme="meme",e.memo="memo",e.menu="menu",e.mindmap="mindmap",e.mobileVideo="mobile-video",e.mug="mug",e.nameTag="name-tag",e.newsletter="newsletter",e.noteHeaderImage="note-header-image",e.onlineNewsletter="online-newsletter",e.onlineReport="online-report",e.pamphlet="pamphlet",e.photoBook="photo-book",e.pinterestIdeaPin="pinterest-idea-pin",e.pinterestPost="pinterest-post",e.pinterestSquare="pinterest-square",e.pinterestVertical="pinterest-vertical",e.placeCard="place-card",e.planner="planner",e.playlistCover="playlist-cover",e.podcastCover="podcast-cover",e.postcard="postcard",e.poster="poster",e.presentation="presentation",e.printAd="print-ad",e.program="program",e.proposal="proposal",e.recipeCard="recipe-card",e.redditCover="reddit-cover",e.report="report",e.reportCard="report-card",e.resume="resume",e.rubric="rubric",e.snapchatAd="snapchat-ad",e.snapchatFilter="snapchat-filter",e.soundcloudBanner="soundcloud-banner",e.tableOfContents="table-of-contents",e.ticket="ticket",e.tiktokAd="tiktok-ad",e.tiktokVideo="tiktok-video",e.tshirt="tshirt",e.tumblrBanner="tumblr-banner",e.twitchBanner="twitch-banner",e.twitchOverlay="twitch-overlay",e.twitterHeader="twitter-header",e.twitterPost="twitter-post",e.twitterVideo="twitter-video",e.video="video",e.wallpaperDesktop="wallpaper-desktop",e.wallpaperMobile="wallpaper-mobile",e.webpage="webpage",e.worksheet="worksheet",e.youtubeBanner="youtube-banner",e.youtubeDisplayAds="youtube-display-ads",e.youtubeProfilePhoto="youtube-profile-photo",e.youtubeShorts="youtube-shorts",e.youtubeThumbnail="youtube-thumbnail",e.youtubeVideo="youtube-video",e.youtubeVideoAd="youtube-video-ad",e.zoomBackground="zoom-background"}(oa||(oa={})),function(e){e.STUDENT="student",e.TEACHER="teacher",e.NONE="none"}(aa||(aa={})),function(e){e.ACTIVE="ACTIVE",e.DECLINED="DECLINED",e.INACTIVE="INACTIVE",e.INVITED="INVITED",e.IN_REVIEW="IN_REVIEW",e.NOT_A_MEMBER="NOT_A_MEMBER",e.OWNER="OWNER"}(sa||(sa={})),function(e){e.CLASSLINK="CLASSLINK",e.CLEVER="CLEVER",e.EMAIL="EMAIL",e.GOOGLE_CLASSROOM="GOOGLE_CLASSROOM",e.NONE="NONE"}(ca||(ca={}));const da={orderDirection:"ascending",orderBy:"repo:name",start:0,limit:0};function ha(e,t){const r=function(e,t){return Object.assign({},e,t)}(da,t),n=function(e){const t={};return e.start&&(t.start=e.start),e.limit&&(t.limit=e.limit),t}(r);n.orderBy=function(e){return("ascending"===e.orderDirection?"+":"-")+e.orderBy}(r);const i=r.view,o=r.classroomId;return i&&(n.view=i),o&&(n.classroomId=o),W(e,z.ASSIGNMENTS_COLLECTION,n)}function fa(e){var t,r,n,i,o,a,s,c,l;const u=[],p=[{key:"classroomId",type:"string",isRequired:!0},{key:"createdBy",type:"string",isRequired:!1},{key:"dueDate",type:"date",isRequired:!1},{key:"externalTemplateIds",type:"string[]",isRequired:!1},{key:"instructions",type:"string",isRequired:!1},{key:"name",type:"string",isRequired:!0},{key:"status",type:"enum",isRequired:!1,ref:na},{key:"tasks",type:"string[]",isRequired:!1},{key:"templateIds",type:"string[]",isRequired:!1}];u.push(...ua(p,e)),null===(t=e.references)||void 0===t||t.forEach(((e,t)=>{"object"==typeof e?(la(e.content,"string",!0)||la(e.content,"blob",!0)||u.push(`references[${t}].content is not a string, Blob, or is missing`),la(e.name,"string",!0)||u.push(`references[${t}].name is not a string or is missing`)):"string"!=typeof e&&u.push(`references[${t}] is not an string or ExternalAsset`)})),e.externalTutorials&&(Array.isArray(e.externalTutorials)?e.externalTutorials.forEach(((e,t)=>{(function(e){return ua([{key:"surfaces",type:"object",isRequired:!0},{key:"aem_id",type:"string",isRequired:!0},{key:"metadata",type:"object",isRequired:!1}],e)})(e).forEach((e=>{u.push(`externalTutorials[${t}]: ${e}`)}))})):u.push("externalTutorials is not an array"));const d=(null!==(n=null===(r=e.tasks)||void 0===r?void 0:r.length)&&void 0!==n?n:0)>0,h=(null!==(o=null===(i=e.templateIds)||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0,f=(null!==(s=null===(a=e.externalTutorials)||void 0===a?void 0:a.length)&&void 0!==s?s:0)>0,m=(null!==(l=null===(c=e.externalTemplateIds)||void 0===c?void 0:c.length)&&void 0!==l?l:0)>0;return e.status===na.DRAFT||(d||h||f||m)||u.push("Assigned Assignment must have tasks, templates, externalTemplateIds, or tutorials"),u}class ma extends be{_discoverLinks(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e);case 2:return n=r.sent,r.abrupt("return",n._links);case 4:case"end":return r.stop()}}),r)})))()}_getEndpointHref(e){return`https://${this._core._environment.endpoints.ASSIGNMENTS_HOST}${e}`}discoverLinks(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._discoverLinks(e._getEndpointHref("/api/v1/index")));case 1:case"end":return t.stop()}}),t)})))()}getAssignments(e){var t=this;return d(u().mark((function r(){var i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.classroomId){r.next=2;break}throw v.create(n.BAD_REQUEST,"classroomId is required to fetch assignments");case 2:return r.next=4,t.discoverLinks();case 4:return i=r.sent,o=ha(i,e),r.abrupt("return",t._getResponse(o));case 7:case"end":return r.stop()}}),r)})))()}getAssignment(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=W(n,z.ASSIGNMENTS_PRIMARY,{assignmentId:e}),r.next=6,t._getResponse(i);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}getAssignmentByCode(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=`${W(n,z.ASSIGNMENTS_PRIMARY)}code/${e}`,r.next=6,t._getResponse(i);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}createAssignment(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c,l,p,d,h,f,m;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=(null!==(i=null===(n=e.tasks)||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0,c=e.status||(s?na.ASSIGNED:na.DRAFT),r.next=4,t.discoverLinks();case 4:return l=r.sent,(p=new URL(W(l,z.ASSIGNMENTS_CREATE))).searchParams.append("classroomId",e.classroomId),p.searchParams.append("assign",c===na.ASSIGNED?"true":"false"),d=e.externalTemplateIds||[],h=(null===(o=e.externalTutorials)||void 0===o?void 0:o.map((e=>JSON.stringify(e))))||[],r.next=12,t._doPost(p.toString(),{"Content-Type":G},JSON.stringify({"assignment:canClassroomReadSubmissions":e.canClassroomReadSubmissions,"assignment:dueDate":null===(a=e.dueDate)||void 0===a?void 0:a.toISOString(),"assignment:instructions":e.instructions,"repo:name":e.name,"assignment:status":c,"assignment:tasks":e.tasks||[],"assignment:createdBy":e.createdBy,"assignment:externalTemplateIds":[...d,...h]}),[201]);case 12:return f=r.sent,r.next=15,f.json();case 15:return m=r.sent,r.abrupt("return",m);case 17:case"end":return r.stop()}}),r)})))()}patchAssignment(e,t){var r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:if(i=n.sent,o=Object.entries(t).filter((([e])=>e.startsWith("assignment:"))).map((([e,t])=>({op:"replace",path:`/${e}`,value:t}))),0!==o.length){n.next=6;break}return n.abrupt("return");case 6:return a=W(i,z.ASSIGNMENTS_PRIMARY,{assignmentId:e}),n.next=9,r._doPatch(a,{"Content-Type":G},JSON.stringify(o),[200,204]);case 9:case"end":return n.stop()}}),n)})))()}discardAssignment(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=`${W(n,z.ASSIGNMENTS_PRIMARY,{assignmentId:e})}/:discard`,r.next=6,t._doPost(i,void 0,void 0,[204]);case 6:case"end":return r.stop()}}),r)})))()}restoreAssignment(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=`${W(n,z.ASSIGNMENTS_PRIMARY,{assignmentId:e})}/:restore`,r.next=6,t._doPost(i,void 0,void 0,[204]);case 6:case"end":return r.stop()}}),r)})))()}}var ga;E([A((function(e){return V(e,ra)})),w(0,P)],ma.prototype,"_discoverLinks",null),function(e){e.NOT_STARTED="NOT_STARTED",e.IN_PROGRESS="IN_PROGRESS",e.RETURNED="RETURNED",e.SUBMITTED="SUBMITTED"}(ga||(ga={}));class va extends Rn{constructor(e){super(e._core,e.id),this._assetClass="directory",this._assignmentId=e.assignmentId,this._links=e.links,this._status=e.status||ga.NOT_STARTED,this._student=e.student,this._studentDirectoryId=e.studentDirectoryId,this._submission=e.submission,this._submissionDate=e.submissionDate}get assignmentId(){return this._assignmentId}get status(){return this._status}get student(){return this._student}get studentDirectoryId(){return this._studentDirectoryId}get submission(){return this._submission}get submissionDate(){return this._submissionDate}getFiles({order:e}){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core.classroomContext.getStudentAssignmentFiles({studentDirectoryId:t.studentDirectoryId,order:e}));case 1:case"end":return r.stop()}}),r)})))()}canStart(){return this._status===ga.NOT_STARTED}canReturn(){return this._status===ga.SUBMITTED}return(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.classroomContext._returnAssignment({links:e._links,studentAssignmentId:e.studentDirectoryId,submissionId:null===(r=e.submission)||void 0===r?void 0:r["repo:assetId"]});case 2:return n=t.sent,e._links=n._links,e._status=n["assignment:submissionStatus"],e.emit(N),t.abrupt("return",e);case 7:case"end":return t.stop()}}),t)})))()}start(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.classroomContext._startAssignment({assignmentId:e.assignmentId,links:e._links});case 2:return r=t.sent,e._links=r._links,e._status=r["assignment:submissionStatus"],e._studentDirectoryId=r["repo:assetId"],e.emit(N),t.abrupt("return",e);case 8:case"end":return t.stop()}}),t)})))()}submit(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c,l;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._status!==ga.NOT_STARTED){r.next=3;break}return r.next=3,t.start();case 3:return r.next=5,t._core.hostAssetContext.getAssetWithCloudID(t.studentDirectoryId);case 5:if(!(n=r.sent).children){r.next=10;break}return i=n.children.getList(Oi.default),r.next=10,ji(i);case 10:if(!i||void 0!==i.items.find((t=>t.id===e))){r.next=21;break}return r.next=13,t._core.hostAssetContext.getAssetWithCloudID(e);case 13:return o=r.sent,a=t._core.classroomContext._getFormattedCreatedDateHelper({includeFormattedDate:!1,date:new Date}),r.next=17,t._core.classroomContext.getAssignmentByID(t.assignmentId);case 17:return s=r.sent,c=`${t.student.displayName} ${s.name} ${a}.${o.extension}`,r.next=21,o.move(n,c);case 21:return r.next=23,t._core.classroomContext.submitAssignment({links:t._links,studentAssignmentId:t.studentDirectoryId,submissionId:e});case 23:return l=r.sent,t._links=l._links,t._status=l["assignment:submissionStatus"],t._submission={"repo:assetId":e},t._submissionDate=l["assignment:submissionDate"]?new Date(l["assignment:submissionDate"]):void 0,t.emit(N),r.abrupt("return",t);case 30:case"end":return r.stop()}}),r)})))()}}E([Z],va.prototype,"assignmentId",null),E([Z],va.prototype,"status",null),E([Z],va.prototype,"student",null),E([Z],va.prototype,"studentDirectoryId",null),E([Z],va.prototype,"submission",null),E([Z],va.prototype,"submissionDate",null);const ya={[ga.SUBMITTED]:0,[ga.IN_PROGRESS]:1,[ga.RETURNED]:2,[ga.NOT_STARTED]:3},ba=(e,t)=>jn(e.student.displayName||"",t.student.displayName||""),_a={studentDisplayName:(e,t)=>ba(e,t),submissionDate(e,t){let r;return r=e.submissionDate||t.submissionDate?e.submissionDate?t.submissionDate?jn(e.submissionDate.getTime(),t.submissionDate.getTime()):-1:1:0,0===r?ba(e,t):r},status(e,t){const r=jn(ya[e.status],ya[t.status]);return 0===r?ba(e,t):r}};class Ea extends(Zn(_a)){}Ea.default=new Ea("ascending","studentDisplayName");const wa=Object.values(na);class La extends to{constructor(e,t,r){super(e,t,r),this._core=e,this._assetClass="directory",this._assignmentInterface=new ma(this._core),this._canClassroomReadSubmissions=!1,this._classroomId="",this._code="",this._externalTemplateIds=[],this._externalTemplateIdsRemote=[],this._instructions="",this._isAutoCreated=!1,this._studentAssignments=[],this._externalTutorials=[],this._isExternalTutorialsDirty=!1,this._needsRepoMetadata=!0}get canClassroomReadSubmissions(){return this._canClassroomReadSubmissions}get classroomId(){return this._classroomId}get studentAssignments(){return this._studentAssignments}getStudentAssignmentsByStatus(e){return Array.isArray(e)?this._studentAssignments.filter((t=>e.includes(t.status))):this._studentAssignments.filter((t=>t.status===e))}get existingStudentAssignments(){const e=[ga.IN_PROGRESS,ga.SUBMITTED,ga.RETURNED];return this.getStudentAssignmentsByStatus(e)}get code(){return this._code}get isAssignment(){return!0}get instructions(){return this._instructions}get isAutoCreated(){return this._isAutoCreated}get dueDate(){return this._dueDate}get status(){return this._status}get tasks(){var e;return null!==(e=this._tasks)&&void 0!==e?e:[]}get templateIds(){var e;return null!==(e=this._templateIds)&&void 0!==e?e:[]}get externalTemplateIds(){return this._isExternalTutorialsDirty&&(this._externalTemplateIds=this._externalTemplateIdsRemote.filter((e=>{try{return JSON.parse(e),!1}catch(e){return!0}}))),this._externalTemplateIds}get externalTutorials(){return this._isExternalTutorialsDirty&&(this._externalTutorials=this._externalTemplateIdsRemote.reduce(((e,t)=>{try{e.push(JSON.parse(t))}catch(e){}return e}),[])),this._externalTutorials}get referenceIds(){var e;return null!==(e=this._referenceIds)&&void 0!==e?e:[]}get templates(){return Vt("Assignment.templates","Assignment.templates is deprecated and will be removed on or after 2024-10-01. Please use Assignment.templateIds instead."),[]}get materialsFolder(){return this._materialsFolder}_loadWithRetry(){return this._load()}_load({repoMetadata:e,appMetadata:t,effectivePermission:r}={}){var n=()=>super._load,i=this;return d(u().mark((function o(){var a,s,c;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n().call(i,{repoMetadata:e,appMetadata:t,effectivePermission:r});case 2:if(i._needsRepoMetadata=!1,a=0===i.studentAssignments.length||!i.materialsFolder,!(!e||!t)&&!a){o.next=12;break}return o.next=8,i._assignmentInterface.getAssignment(i.id);case 8:s=o.sent,c=i._core.classroomContext.assignmentPool.createMutationSession(),xa.updateRemoteItem(c,s),c.commit();case 12:case"end":return o.stop()}}),o)})))()}updateAssignment(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core.classroomContext.updateAssignment(t.id,e));case 1:case"end":return r.stop()}}),r)})))()}setTemplates(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core.classroomContext.updateAssignment(t.id,{templateIds:e}));case 1:case"end":return r.stop()}}),r)})))()}assignAssignment(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._core.classroomContext.updateAssignment(e.id,{status:na.ASSIGNED}));case 1:case"end":return t.stop()}}),t)})))()}discard(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e._assignmentInterface.discardAssignment(e.id);case 4:r=e._core.classroomContext.assignmentPool,n=r.createUpdateSession(),xa.updateLocalItem(n,e,{"repo:state":An[1]}),n.commit();case 8:case"end":return t.stop()}}),t)})))()}restore(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isDiscarded){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e._assignmentInterface.restoreAssignment(e.id);case 4:r=e._core.classroomContext.assignmentPool,n=r.createUpdateSession(),xa.updateLocalItem(n,e,{"repo:state":An[0]}),n.commit();case 8:case"end":return t.stop()}}),t)})))()}}E([Z],La.prototype,"canClassroomReadSubmissions",null),E([Z],La.prototype,"classroomId",null),E([Z],La.prototype,"studentAssignments",null),E([Z],La.prototype,"code",null),E([Z],La.prototype,"isAssignment",null),E([Z],La.prototype,"instructions",null),E([Z],La.prototype,"isAutoCreated",null),E([Z],La.prototype,"dueDate",null),E([Z],La.prototype,"status",null),E([Z],La.prototype,"tasks",null),E([Z],La.prototype,"templateIds",null),E([Z],La.prototype,"externalTemplateIds",null),E([Z],La.prototype,"externalTutorials",null),E([Z],La.prototype,"referenceIds",null),E([Z],La.prototype,"materialsFolder",null),E([_e],La.prototype,"_loadWithRetry",null);const xa=new pi({localItemType:La,remoteIdProperty:"repo:assetId",propertyUpdater:new Ei({_canClassroomReadSubmissions:{name:"assignment:canClassroomReadSubmissions",format:"boolean"},_name:{name:"repo:name",format:"string"},_created:{name:"repo:createDate",format:"date"},_repositoryID:{name:"repo:repositoryId",format:"string"},_assignmentLinks:{name:"_links",format:"object"},_studentAssignments:{isArray:!0,name:"children",format:"object",set:(e,t)=>{const r=t;r.studentAssignments.length=0,e.forEach((e=>{const t=new va({_core:r._core,assignmentId:r.id,id:e["repo:assetId"],links:e._links,status:e["assignment:submissionStatus"],student:e["assignment:assignee"],studentDirectoryId:e["repo:assetId"],submission:e["assignment:submission"],submissionDate:e["assignment:submissionDate"]?new Date(e["assignment:submissionDate"]):void 0});r.studentAssignments.push(t)}));Ea.default.sortItems(r.studentAssignments)}},_tasks:{isArray:!0,name:"assignment:tasks"},_code:{name:"assignment:code",format:"string"},_classroomId:{name:"assignment:classroomId",format:"string"},_createdBy:{name:"repo:createdBy",format:"string"},_status:{name:"assignment:status",format:"string",choices:wa},_dueDate:{name:"assignment:dueDate",format:"date"},_instructions:{name:"assignment:instructions",format:"string"},_materialsFolder:{name:"assignment:materialsFolder",format:"object"},_templateIds:{name:"assignment:templateIds",isArray:!0},_externalTemplateIdsRemote:{name:"assignment:externalTemplateIds",isArray:!0,set:(e,t)=>{const r=t;r._externalTemplateIdsRemote=e,r._isExternalTutorialsDirty=!0}},_referenceIds:{name:"assignment:referenceIds",isArray:!0},_path:{name:"repo:path",format:"string"},_modifiedBy:{name:"repo:modifiedBy",format:"string"},_assetState:{name:"repo:state",choices:An},_isAutoCreated:{get:e=>"adobe"===e["assignment:createdBy"],format:"boolean"}})}),Sa="application/vnd.adobe.library+dcx";function Oa(e){var t,r;return!!(null===(r=null===(t=null==e?void 0:e["cc:inheritable"])||void 0===t?void 0:t["cc:team"])||void 0===r?void 0:r["repo:assetId"])}function Ta(e){var t,r,n;return!!(null===(n=null===(r=null===(t=e.am)||void 0===t?void 0:t["cc:inheritable"])||void 0===r?void 0:r["cc:team"])||void 0===n?void 0:n["repo:assetId"])}function Ia(e){var t;return(null===(t=e.rm)||void 0===t?void 0:t["dc:format"])===Sa}function Pa(e){return e.type===Sa}function Ca(e){return{"repo:assetId":e.id}}function Aa(e){var t;return{"repo:assetId":e.asset_id,"repo:repositoryId":e["repo:repositoryId"],_embedded:{[z.AC_EFFECTIVE]:null===(t=e._embedded)||void 0===t?void 0:t[z.AC_EFFECTIVE],[z.APP_METADATA]:e.app_metadata}}}function ka(e){return{library_urn:e.asset_id}}function Da(e){return{library_urn:e.id}}class Na{constructor(e){this._core=e}assetsFromUSSV3AppMetadata(e,t,r,n){return n&&n._libraryUpdater.updateRemoteItems(e,t.filter(Ia).map(Da)),this._core.projectContext._projectUpdater.updateRemoteItems(e,t.filter(Ta).map(Ca)),this._core.hostAssetContext._adobeAssetUpdater.updateRemoteItems(e,t.map((e=>r(e))))}assetsFromUSSMetadata(e,t,r,n){var i,o=s(this._core.projectContext._projectUpdater.updateRemoteItems(e,t.filter((e=>Oa(e.app_metadata))).map(Aa)));try{for(o.s();!(i=o.n()).done;){i.value._applyRestorePermission(e)}}catch(e){o.e(e)}finally{o.f()}return n&&n._libraryUpdater.updateRemoteItems(e,t.filter(Pa).map(ka)),oo.updateRemoteItems(e,t.map((e=>(null==r?void 0:r(e))||e)))}assetsFromRepoMetadata(e,t,r){return t.map((t=>{var n,i,o;let a={};return(null===(n=t._embedded)||void 0===n?void 0:n[z.AC_EFFECTIVE])&&(a=Dt(null===(i=t._embedded)||void 0===i?void 0:i[z.AC_EFFECTIVE])),this.assetFromRepoMetadata(e,t,a,null===(o=t._embedded)||void 0===o?void 0:o[z.APP_METADATA],r)}))}assetFromRepoMetadata(e,t,r,n,i,o){let a;n&&Object.keys(n).length>0&&(t._embedded=Object.assign(Object.assign({},t._embedded),{[z.APP_METADATA]:n}));const s=t||{};if(r&&Object.keys(r).length>0&&(s.effectivePermission=r),o&&Object.keys(o).length>0)a=this._core.projectContext._projectUpdater.updateRemoteItem(e,o),this._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(e,a,s),this._core.projectContext._projectUpdater.updateLocalItem(e,a,o);else if(function(e){return(null==e?void 0:e["dc:format"])===Sa}(s)&&i){const t={library_urn:s["repo:assetId"]};i._libraryUpdater.updateRemoteItem(e,t),a=this._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(e,s)}else if(null===(u=null===(l=null==(c=n)?void 0:c["cc:inheritable"])||void 0===l?void 0:l["cc:assignment"])||void 0===u?void 0:u["repo:assetId"]){const t=function(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{_links:void 0,children:[]})}(s,n);a=xa.updateRemoteItem(e,t),this._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(e,a,s)}else a=this._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(e,s);var c,l,u;return a}}class Ra extends be{constructor(e,t){super(e),this._core=e,this._assetId=t}_getUrl(e){return`https://${this._core._environment.endpoints.COMMENT_HOST}${e}`}_getCommonHeaders(e){const t={"Content-Type":'application/ld+json; profile="https://www.w3.org/ns/anno.jsonld"',Accept:'application/ld+json; profile="https://www.w3.org/ns/anno.jsonld"',Prefer:'return=representation;include="https://www.w3.org/ns/oa#PreferContainedDescriptions"',"x-ccx-workflow":"true"};return e&&(t["If-Match"]=e),t}getCommentList(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getUrl(`/assets/${t._assetId}/annots/?status=open%2Cresolved`),i=t._getCommonHeaders(),e&&(i["If-None-Match"]=e),r.abrupt("return",t._doGet(n,{headers:i,successResponseCodes:[200,208]}));case 4:case"end":return r.stop()}}),r)})))()}getComment(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.annotationId,i=e.etag,o=t._getUrl(`/assets/${t._assetId}/annots/${n}?recursive=true`),r.abrupt("return",t._getResponse(o,{headers:t._getCommonHeaders(i)}));case 3:case"end":return r.stop()}}),r)})))()}createComment(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getUrl(`/assets/${t._assetId}/annots`),r.next=3,t._doPost(n,t._getCommonHeaders(),JSON.stringify(e));case 3:return i=r.sent,r.abrupt("return",i.json());case 5:case"end":return r.stop()}}),r)})))()}editComment(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.annotationId,i=e.etag,o=e.body,a=t._getUrl(`/assets/${t._assetId}/annots/${n}`),r.next=4,t._doPut(a,t._getCommonHeaders(i),JSON.stringify(o),[200]);case 4:return s=r.sent,r.abrupt("return",s.json());case 6:case"end":return r.stop()}}),r)})))()}deleteComment(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.annotationId,i=e.etag,o=t._getUrl(`/assets/${t._assetId}/annots/${n}?recursive=true`),r.next=4,t._doDelete(o,t._getCommonHeaders(i),[204]);case 4:return r.abrupt("return");case 5:case"end":return r.stop()}}),r)})))()}getMetadata(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._getUrl(`/assets/${e._assetId}?operation=fetch_user_comment_metadata`),t.abrupt("return",e._getResponse(r,{headers:e._getCommonHeaders()}));case 2:case"end":return t.stop()}}),t)})))()}updateMetadata(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.annotId,i=e.read,o=n||"",a=t._getUrl(`/assets/${t._assetId}/annots/${o}/metadata?recursive=false`),r.next=5,t._doPut(a,{"Content-Type":'application/vnd.adobe.dc+json;profile="https://comments.adobe.io/schemas/annots_metadata.jsonld"',Accept:'application/vnd.adobe.dc+json;profile="https://comments.adobe.io/schemas/annots_metadata.jsonld"',"x-ccx-workflow":"true"},JSON.stringify({annotId:`/assets/${t._assetId}/annots/${o}`,read:i||!1}),[200]);case 5:return s=r.sent,r.abrupt("return",s.json());case 7:case"end":return r.stop()}}),r)})))()}}class Ma extends Rn{constructor(){super(...arguments),this._creator=void 0,this._created=new Date(0),this._bodyValue=void 0,this._motivation=void 0,this._generator="https://comments.acrobat.com/Comment",this._type="Annotation",this._target=void 0,this._mentions=void 0,this._modified=new Date(0),this._etag=void 0,this._uri=void 0,this._status=void 0,this._replies=void 0,this._readStatus=!1}get creator(){return this._creator}get created(){return this._created}get bodyValue(){return this._bodyValue||""}get motivation(){return this._motivation||"commenting"}get generator(){return this._generator||"https://comments.acrobat.com/Comment"}get type(){return this._type||"Annotation"}get target(){return this._target}get mentions(){return this._mentions}get modified(){return this._modified}get etag(){return this._etag||""}get uri(){return this._uri||""}get status(){return this._status||"open"}get replies(){return this._replies}get readStatus(){return this._readStatus}toJSON(){return{"@context":["https://www.w3.org/ns/anno.jsonld","https://comments.acrobat.com/ns/anno.jsonld"],creator:this._creator,created:this.created.toISOString(),bodyValue:this.bodyValue,motivation:this.motivation,generator:this.generator,type:this.type,target:this.target,modified:this.modified.toISOString(),etag:this.etag,id:this.uri,creationId:this.id,status:this.status}}get assetUrn(){const e=this.uri.split("/");return e.length>2?e[2]:""}get _pool(){return this._commentsResource._commentPool}get _interface(){return this._commentsResource._commentInterface}edit(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._interface,i=t._pool,o=t.toJSON(),a=Object.assign(Object.assign({},o),e),r.next=6,n.editComment({annotationId:t.id,etag:t.etag,body:a});case 6:return s=r.sent,c=i.createUpdateSession(),ja.updateLocalItem(c,t,s),c.commit(),r.abrupt("return",t);case 11:case"end":return r.stop()}}),r)})))()}updateResolvedStatus(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e?"resolved":"open",r.abrupt("return",t.edit({status:n}));case 2:case"end":return r.stop()}}),r)})))()}updateReadStatus(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._interface,i=t._pool,r.next=4,n.updateMetadata({annotId:t.id,read:e});case 4:return o=r.sent,a=i.createUpdateSession(),ja.updateLocalItem(a,t,{creationId:t.id,readStatus:o.read}),a.commit(),r.abrupt("return",t);case 9:case"end":return r.stop()}}),r)})))()}delete(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._interface,n=e._pool,i=e.id,t.next=5,r.deleteComment({annotationId:i,etag:e.etag});case 5:(o=n.createUpdateSession()).queueDiscardedItem(e),o.commit(),n.removeLocalItems([i]);case 9:case"end":return t.stop()}}),t)})))()}reply(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={motivation:"replying",target:{source:t.uri}},r.abrupt("return",t._commentsResource.createComment(Object.assign(Object.assign({},e),n)));case 2:case"end":return r.stop()}}),r)})))()}}E([Z],Ma.prototype,"creator",null),E([Z],Ma.prototype,"created",null),E([Z],Ma.prototype,"bodyValue",null),E([Z],Ma.prototype,"motivation",null),E([Z],Ma.prototype,"generator",null),E([Z],Ma.prototype,"type",null),E([Z],Ma.prototype,"target",null),E([Z],Ma.prototype,"mentions",null),E([Z],Ma.prototype,"modified",null),E([Z],Ma.prototype,"etag",null),E([Z],Ma.prototype,"uri",null),E([Z],Ma.prototype,"status",null),E([Z],Ma.prototype,"replies",null),E([Z],Ma.prototype,"readStatus",null);const ja=new pi({localItemType:Ma,remoteIdProperty:"creationId",propertyUpdater:new Ei({_creator:{name:"creator",format:"object"},_created:{name:"created",format:"date"},_bodyValue:{name:"bodyValue",format:"string"},_motivation:{name:"motivation",format:"string"},_generator:{name:"generator",format:"string"},_type:{name:"type",format:"string"},_target:{name:"target",format:"object"},_mentions:{name:"mentions",format:"object"},_modified:{name:"modified",format:"date"},_etag:{name:"etag",format:"string"},_uri:{name:"id",format:"string"},_status:{name:"status",format:"string"},_replies:{name:"replies",format:"object"},_readStatus:{name:"readStatus",format:"boolean"}})});class Za{constructor(e){this._commentsResource=e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}get retryAfter(){return 1e3*+(this._retryAfter||"12")}get _pool(){return this._commentsResource._commentPool}get _interface(){return this._commentsResource._commentInterface}_loadPage(e,t){var r=this;return d(u().mark((function e(){var t,n,i,o,a,s;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._interface.getCommentList(r._etag);case 2:if(n=e.sent,r._retryAfter=n.headers.get("retry-after")||void 0,r._etag=n.headers.get("etag")||void 0,200!==n.status){e.next=16;break}return e.next=9,n.json();case 9:return i=e.sent,o=i.first.items,a=r._pool.createLoaderUpdateSession(Date.now()),s=ja.updateRemoteItems(a,o),a.commit(),s.forEach((e=>{e._commentsResource=r._commentsResource})),e.abrupt("return",{items:s,total:s.length,loadNextPage:void 0});case 16:return s=(null===(t=r._commentsResource.getCommentList())||void 0===t?void 0:t.items)||[],e.abrupt("return",{items:s,total:s.length,loadNextPage:void 0});case 18:case"end":return e.stop()}}),e)})))()}}const Fa={created:(e,t)=>jn(e.created.getTime(),t.created.getTime())};class Ba extends(Zn(Fa)){}Ba.default=new Ba("ascending","created");class Ga extends Me{constructor(e,t){super(),this._core=e,this._assetId=t,this._commentInterface=new Ra(this._core,this._assetId),this._commentPool=new nr(this._core,"comment"),this._loader=new Za(this),this._source=new Gi(this._commentPool,[this._loader])}createComment(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._commentInterface.createComment(e);case 2:return n=r.sent,i=t._commentPool.createUpdateSession(),o=ja.updateRemoteItem(i,n),i.commit(),o._commentsResource=t,r.abrupt("return",o);case 8:case"end":return r.stop()}}),r)})))()}getComment(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._commentPool.getLocalItemById(e.annotationId)){r.next=9;break}return r.next=4,t._commentInterface.getComment(e);case 4:i=r.sent,o=t._commentPool.createUpdateSession(),n=ja.updateRemoteItem(o,i),o.commit(),n._commentsResource=t;case 9:return r.abrupt("return",n);case 10:case"end":return r.stop()}}),r)})))()}getCommentList(){return this._list||(this._list=this._source.getList(Ba.default,void 0,{refreshTimeout:-1})),this._list}_poll(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=e.getCommentList()).setNeedsRefresh(),r.refresh(),t.next=5,ji(r);case 5:return t.next=7,e._commentInterface.getMetadata();case 7:n=t.sent,i=new Map(n.map((e=>[e.annotId,e.read]))),o=e._commentPool.createLoaderUpdateSession(Date.now()),e._commentPool.forEach((e=>{const t=i.get(e.uri)||!1;e.readStatus!==t&&ja.updateRemoteItem(o,{creationId:e.id,readStatus:t})})),o.commit(),e._stopTimeout=setTimeout((()=>e._poll()),e._loader.retryAfter);case 13:case"end":return t.stop()}}),t)})))()}startShortPoll(){this._stopTimeout||this._poll()}stopShortPoll(){this._stopTimeout&&(clearTimeout(this._stopTimeout),this._stopTimeout=void 0)}get isShortPollActive(){return void 0!==this._stopTimeout}}var Ua,za;!function(e){e[e.Initializing=0]="Initializing",e[e.Offline=1]="Offline",e[e.NotStarted=2]="NotStarted",e[e.Disabled=3]="Disabled",e[e.Synchronized=4]="Synchronized",e[e.InProgress=5]="InProgress",e[e.ErrorQuotaExceeded=6]="ErrorQuotaExceeded",e[e.ErrorSyncDown=7]="ErrorSyncDown",e[e.ErrorOther=8]="ErrorOther"}(Ua||(Ua={})),function(e){e[e.Offline=0]="Offline",e[e.Wan=1]="Wan",e[e.Cellular=2]="Cellular",e[e.OnlineUnknown=3]="OnlineUnknown"}(za||(za={}));class Va extends Event{constructor(e){super("firstLongPollStarted"),this.cachedSubscriptionsUsed=e}}class Ha extends Event{constructor(e){super("firstLongPollCompleted"),this.expired=e}}class Ya extends Me{constructor(e,t){super(),this._core=e,this._assetPool=t,this._rapi=new qr(this._core),this._ons=new Pn(this._core),this._invitationInterface=new ur(this._core),this._ussInterface=new lr(this._core),this._SBMInterface=new Wn(this._core),this._swyInterface=new Kn(this._core),this._recentInterface=new ti(this._core),this._adobeAssetSearchInterface=new Xn(this._core),this._adobeAssetGlobalSearchInterface=new Qn(this._core),this._assetTransferService=new ao(this._core),this._assetReviewServiceInterface=new lo(this._core),this._publishedInterface=new Io(this._core),this._discardedInterface=new Ro(this._core),this.__ussInterfaceV3=new Yo(this._core),this._globalSearchInterfaceV3=new Ko(this._core,this.__ussInterfaceV3),this._libraryInterface=new Oo(this._core),this._commentsById=new Map,this._adobeAssetUpdater=io,this._onHomeFolderChange=()=>{this._rapi._clearIndexCache()},this._onONSNotification=e=>{e.forEach(((e,t)=>{var r,n,i;const o=this._assetPool.getLocalItemById(t);if(o)(null===(r=e.changedResources)||void 0===r?void 0:r.includes("api:metadata/repository"))&&o._loadWithRetry(),(null===(n=e.changedResources)||void 0===n?void 0:n.includes("api:metadata/application"))&&(o.isAssignment?o._loadWithRetry():o.appMetadata.load()),(null===(i=e.changedResources)||void 0===i?void 0:i.includes("api:ac/policy"))&&o._reloadPermissions();else if(e.parentAssetId&&this._assetPool.getLocalItemById(e.parentAssetId)){const r=this._assetPool.getLocalItemById(e.parentAssetId);(null==r?void 0:r.isAssignment)?r._loadWithRetry():this.getAssetWithCloudID(t)}}));const t=new Set(e.keys());this._core.assetLinkManager.lists.forEach((e=>e._onONSNotification(t)))},this._onAssetsChanged=e=>{var t;const r=new Set;this._assetPool.forEach((e=>r.add(e.id))),null===(t=null==e?void 0:e.discardedItems)||void 0===t||t.forEach((e=>r.delete(e.id))),this._core.assetLinkManager.lists.forEach((e=>e.monitoredAssetIDs.forEach((e=>r.add(e))))),r.size>0&&!this._core._environment.getValue("DISABLE_ONS")?(this._ons.watch(r),this._ons.start()):this._ons.stop()},this._assetPool.on(er,this._onAssetsChanged),this._ons.on("change",this._onONSNotification),this._ons.on(On,(e=>{this.dispatch(new Va(e.cachedSubscriptionsUsed))})),this._ons.on(Tn,(e=>{this.dispatch(new Ha(e.expired))}))}get repoInterface(){return Vt("AssetContext.repoInterface","AssetContext.repoInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._rapi}get onsInterface(){return Vt("AssetContext.onsInterface","AssetContext.onsInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._ons}get ussInterface(){return Vt("AssetContext.ussInterface","AssetContext.ussInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._ussInterface}get ussInterfaceV3(){return Vt("AssetContext.ussInterfaceV3","AssetContext.ussInterfaceV3 is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this.__ussInterfaceV3}get sbmInterface(){return Vt("AssetContext.sbmInterface","AssetContext.sbmInterface is deprecated and will be removed on or after 2024-10-01."),this._SBMInterface}get swyInterface(){return Vt("AssetContext.swyInterface","AssetContext.swyInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._swyInterface}get recentInterface(){return Vt("AssetContext.recentInterface","AssetContext.recentInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._recentInterface}get invitationInterface(){return Vt("AssetContext.invitationInterface","AssetContext.invitationInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._invitationInterface}get publishedInterface(){return Vt("AssetContext.publishedInterface","AssetContext.publishedInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._publishedInterface}get assetPool(){return Vt("AsseContext._assetPool","AssetContext._assetPool is deprecated and will be removed on or after 2024-10-01. ItemPools are for internal SAM.js use only."),this._assetPool}get sharedSource(){const e=new Xo,t=new Vn(this._assetPool,this._core,this._swyInterface);return new Gi(this._assetPool,[t],e)}get recentAssetsSource(){const e=new yo,t=new vo(this._assetPool,this._core,this._recentInterface,e);return e._lastModificationDate=new Date(9999,0,1),new Gi(this._assetPool,[t],e)}get MRUAssetsSource(){const e=new wo,t=new Eo(this._assetPool,this._core,this._recentInterface);return new Gi(this._assetPool,[t],e)}get publishedSource(){const e=new Co,t=new Po(this._assetPool,this._core,this._publishedInterface);return new Gi(this._assetPool,[t],e)}get discardedSource(){const e=new Ao,t=new Mo(this._assetPool,this._core,this._discardedInterface);return new Gi(this._assetPool,[t],e)}getGlobalSearchAssetsSource(e){const t=new jo({_query:e,_matchingIDsFromSearch:new Set}),r=new qo(this._assetPool,t,this._core,this._adobeAssetGlobalSearchInterface);return new Gi(this._assetPool,[r],t)}getGlobalSearchAssetsSourceV3(e){const t=new jo({_query:e,_matchingIDsFromSearch:new Set}),r=new $o(this._assetPool,this._core,this._globalSearchInterfaceV3,t);return new Gi(this._assetPool,[r],t)}get isOnline(){return Vt("AssetContext.isOnline","AssetContext.isOnline() is not fully implemented for web"),this.networkStatus!==za.Offline}get networkStatus(){return Vt("AssetContext.networkStatus","AssetContext.networkStatus is not fully implemented for web"),za.OnlineUnknown}_getAssetById(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(i=r._assetPool.getLocalItemById(e))){n.next=10;break}if(!(r._core._environment.getValue("DISABLE_ONS")||i.needsRepoMetadata)){n.next=8;break}return n.next=6,i._loadWithRetry();case 6:n.next=9;break;case 8:i._linksCameFromResolveAPI||r._rapi.getAssetLinks(e).then((e=>{const t=r._assetPool.createUpdateSession();r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(t,i,{_links:e}),i._linksCameFromResolveAPI=!0,t.commit()}));case 9:return n.abrupt("return",i);case 10:if(t){n.next=14;break}return n.next=13,r._rapi.getRepoMetadataById(e);case 13:t=n.sent;case 14:return n.next=16,r._core.getLibraryContext();case 16:return o=n.sent,a=new ta(r._core),s={},c=new Hr(r._rapi,e,t._links,t["repo:etag"]),n.next=22,c.getEffectivePermissions();case 22:if(((l=n.sent)&kt.ReadAppMetadata)!==kt.ReadAppMetadata){n.next=29;break}return n.next=26,c.getAppMetadata();case 26:n.t0=n.sent,n.next=30;break;case 29:n.t0={};case 30:if(p=n.t0,!(d=Oa(p))){n.next=36;break}return n.next=35,a.getProject(t["repo:assetId"]);case 35:s=n.sent;case 36:if(h=r._assetPool.createMutationSession(),f=r._core._adobeAssetFactory.assetFromRepoMetadata(h,t,l,p,o,d?s:void 0),h.commit(),!d){n.next=44;break}return n.next=42,f._load({repoMetadata:t,appMetadata:p,effectivePermission:l,projectMetadata:s});case 42:n.next=46;break;case 44:return n.next=46,f._load({repoMetadata:t,appMetadata:p,effectivePermission:l});case 46:return f._linksCameFromResolveAPI=!0,n.abrupt("return",f);case 48:case"end":return n.stop()}}),n)})))()}getHomeFolder(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._homeFolder){t.next=8;break}return t.next=3,e._rapi.getHomeDirectoryMetadata();case 3:r=t.sent,n=e._assetPool.createMutationSession(),e._homeFolder=e._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(n,r),n.commit(),e._homeFolder.on(N,e._onHomeFolderChange);case 8:return t.abrupt("return",e._homeFolder);case 9:case"end":return t.stop()}}),t)})))()}getRootFolder(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._rootFolder){t.next=4;break}return t.next=3,e.getAssetWithRepoPath("/cloud-content");case 3:e._rootFolder=t.sent;case 4:return t.abrupt("return",e._rootFolder);case 5:case"end":return t.stop()}}),t)})))()}getUserRepoID(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.getHomeFolder().then((e=>e.repositoryID)));case 1:case"end":return t.stop()}}),t)})))()}getAssetWithCloudID(e,t=!1){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=3;break}return n.next=3,r._core.collaborationContext.confirmAccess(e);case 3:return n.abrupt("return",r._getAssetById(e));case 4:case"end":return n.stop()}}),n)})))()}getAssetWithRepoPath(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l,p,d,h;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t){i.next=7;break}return i.next=3,r.getHomeFolder();case 3:o=i.sent,t=o.repositoryID,a=o.repoPath,e=T.join(a,e);case 7:return i.prev=7,i.next=10,r._rapi.getRepoMetadataByPath(t,e);case 10:return s=i.sent,i.abrupt("return",r._getAssetById(s["repo:assetId"],s));case 14:i.prev=14,i.t0=i.catch(7),c=0,l=["cloud-content","temp"];case 18:if(!(c<l.length)){i.next=30;break}if(p=l[c],d=`/${p}`,h=e.indexOf(d)===e.lastIndexOf(d),i.t0.code!==n.NOT_FOUND||!h||!e.endsWith(d)){i.next=27;break}return i.next=25,r.getHomeFolder();case 25:return o=i.sent,i.abrupt("return",o.createFolder(p));case 27:c++,i.next=18;break;case 30:throw i.t0;case 31:case"end":return i.stop()}}),i,null,[[7,14]])})))()}getAssetWithAssetRefString(e,t=!1){var r=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:i.prev=0,o=JSON.parse(e),i.next=7;break;case 4:throw i.prev=4,i.t0=i.catch(0),v.create(n.BAD_REQUEST,"Incorrectly formatted AssetRefString",{underlyingError:i.t0});case 7:if(!o.cloud_id){i.next=11;break}return i.abrupt("return",r.getAssetWithCloudID(o.cloud_id,t));case 11:if(!o.path){i.next=15;break}return i.abrupt("return",r.getAssetWithRepoPath(o.path,o.repository_id));case 15:throw v.create(n.BAD_REQUEST,"Invalid AssetRefString");case 16:case"end":return i.stop()}}),i,null,[[0,4]])})))()}_createAssetFromMetadata(e){const t=this._assetPool.createUpdateSession(),r=this._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(t,e);return t.commit(),r}_repositoryNameFromID(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._rapi.getRepositoryName(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_getListOfRepositoryIDs(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._rapi.getRepositoriesData();case 2:if(r=t.sent){t.next=5;break}return t.abrupt("return",void 0);case 5:return n=r.children,t.abrupt("return",n.map((e=>e._embedded[z.PRIMARY]["repo:repositoryId"])));case 7:case"end":return t.stop()}}),t)})))()}getXDCEData(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core._environment.fetch(`https://${t._core._environment.endpoints.XDCE_HOST}/v2/document/${e}`).then((e=>e.json())));case 1:case"end":return r.stop()}}),r)})))()}removeAssetsFromAssetsPool(e){this._assetPool.removeLocalItems(e)}permanentlyDeleteAssets(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=r=>{if(r.discardedItems){const n=r.discardedItems.filter((t=>e.includes(t))).map((e=>e.id));n.length&&t.removeAssetsFromAssetsPool(n)}},t._assetPool.on(er,i),r.prev=2,r.next=5,Rn.runExclusiveTask("delete",e,d(u().mark((function r(){var i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=new Map,o=e.map((e=>{i.set(e.id,e);const t={op:"delete",id:e.id,target:{"repo:assetId":e.id}};if(e.repositoryID){t.target["repo:repositoryId"]=e.repositoryID}return t.recursive=e.isFolder,t})),r.next=4,t._runOperations(o,i,((e,r)=>{r._releaseRenditions(),t._assetPool.getLocalItemById(r.id)&&(t._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(e,r,{effectivePermission:kt.None}),e.queueDiscardedItem(r))}));case 4:n=r.sent;case 5:case"end":return r.stop()}}),r)}))));case 5:return r.prev=5,t._assetPool.off(er,i),r.finish(5);case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r,null,[[2,,5,8]])})))()}getCloudQuotaUsedAndMax(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._rapi.getCloudQuotaUsedAndMax());case 1:case"end":return t.stop()}}),t)})))()}transfer(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(t instanceof mo)){i.next=9;break}return i.next=3,t.getChild("working_files");case 3:if(a=i.sent){i.next=6;break}throw v.create(n.NOT_FOUND,"unable to find working_files for provided space");case 6:o=a.id,i.next=10;break;case 9:o=t.cloudID;case 10:return s={source:{assetId:e.cloudID,repositoryId:e.repositoryID},target:{assetId:o,repositoryId:t.repositoryID}},i.next=13,r._assetTransferService.transfer(s);case 13:return c=i.sent,(l=r._assetPool.createUpdateSession()).queueDiscardedItem(e),l.commit(),i.abrupt("return",c);case 18:case"end":return i.stop()}}),i)})))()}_moveAssets(e,t,r=new Map,n=!0,i){var o=this;return d(u().mark((function a(){var s;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={failedResults:[],newModels:[]},a.next=3,Rn.runExclusiveTask("move",e,d(u().mark((function n(){var a,c;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.repositoryID){n.next=3;break}return n.next=3,t._load();case 3:return void 0===i&&(i=new Map),a=new Map,c=e.map((e=>{a.set(e.id,e);let n=`${t.repoPath}/${Dr(e,r)}`;n=Or(o._core,e.id,n,!1,i);const s={op:"move",id:e.id,source:{"repo:assetId":e.id},target:{"repo:path":n,"repo:repositoryId":t.repositoryID}};if(e.repositoryID){s.source["repo:repositoryId"]=e.repositoryID}if(e.repositoryID!==t.repositoryID&&e._clearRepositoryName(),e.isFolder){const t=o._assetPool.createUpdateSession();kr({assetPool:o._assetPool,asset:e,session:t,operation:{type:"rename",newPath:n}}),t.commit()}return s})),n.next=8,o._runOperations(c,a);case 8:s=n.sent;case 9:case"end":return n.stop()}}),n)}))));case 3:if(!n){a.next=7;break}return a.next=6,bo(s,t,r,i,o._moveAssets.bind(o));case 6:return a.abrupt("return",a.sent);case 7:return a.abrupt("return",s);case 8:case"end":return a.stop()}}),a)})))()}moveAssets(e,t,r=new Map){var n=this;return d(u().mark((function i(){return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",n._moveAssets(e,t,r));case 1:case"end":return i.stop()}}),i)})))()}getMoveCapability(e,t){var r=this;return d(u().mark((function i(){var o,a,s;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t.isFolder){i.next=2;break}return i.abrupt("return",{canMove:!1,reason:Dn.NotAFolder});case 2:if(t.hasPermission(kt.Write)){i.next=4;break}return i.abrupt("return",{canMove:!1,reason:Dn.PermissionDeniedDestination});case 4:if(!e.some((e=>!e.hasPermission(kt.Move)))){i.next=6;break}return i.abrupt("return",{canMove:!1,reason:Dn.PermissionDeniedSource});case 6:if(!e.every((e=>e.storageAssignee.id===t.storageAssignee.id))){i.next=8;break}return i.abrupt("return",{canMove:!0,warning:kn.None});case 8:return i.next=10,r._rapi.getAssetsOwnerDetails();case 10:if(o=i.sent,void 0!==(a=o.get(t.repositoryID))){i.next=14;break}throw v.create(n.NOT_FOUND,"target's repo owner detail is not available");case 14:if(!e.some((e=>{var t;return(null===(t=o.get(e.repositoryID))||void 0===t?void 0:t.id)!==a.id}))){i.next=16;break}return i.abrupt("return",{canMove:!1,reason:Dn.DifferentOwner});case 16:if(!e.some((e=>e.isFolder||e.isProject||e.isChildOfProject||e._isShared_NoLazyLoad))){i.next=19;break}return i.abrupt("return",{canMove:!0,warning:kn.CollaboratorMaybeEditing});case 19:if(s=!1,e.forEach((e=>{e._isCollaboratorDataLoaded||void 0!==e.isShared||(ii.fetchIfNeeded(e,wt),s=!0)})),!s){i.next=27;break}return i.next=24,r._core.collaborationContext._collaboratorRequestQueue._processNow();case 24:if(!e.some((e=>e.isShared&&e.collaboratorArray.some((e=>e.isDirect&&"editor"===e.role))))){i.next=27;break}return i.abrupt("return",{canMove:!0,warning:kn.CollaboratorMaybeEditing});case 27:return i.abrupt("return",{canMove:!0,warning:kn.None});case 28:case"end":return i.stop()}}),i)})))()}assetsHaveArtifacts(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=co(e),r.next=3,t._assetReviewServiceInterface.hasOutputs(n);case 3:if(0!==(i=r.sent).length){r.next=6;break}return r.abrupt("return",!1);case 6:return o=t._assetPool.createUpdateSession(),t._core.hostAssetContext._adobeAssetUpdater.updateRemoteItems(o,i.map((e=>({"repo:assetId":e["repo:assetId"],hasArtifacts:!0})))),o.commit(),r.abrupt("return",!0);case 10:case"end":return r.stop()}}),r)})))()}_deleteAssetOutputsFolder(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._assetReviewServiceInterface.discardOutputsForAsset(e.id));case 1:case"end":return r.stop()}}),r)})))()}_copyAssets(e,t,r=new Map,i=!0,o){var a=this;return d(u().mark((function s(){var c;return u().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return c={failedResults:[],newModels:[]},s.next=3,Rn.runExclusiveTask("copy",e,d(u().mark((function i(){var s,l;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t.repositoryID){i.next=3;break}return i.next=3,t._load();case 3:return void 0===o&&(o=new Map),s=new Map,l=e.map((e=>{s.set(e.id,e);let n=`${t.repoPath}/${Dr(e,r)}`;const i=t.repoPath===e.repoPath.substring(0,e.repoPath.lastIndexOf("/"));n=Or(a._core,e.id,n,i,o);const c=[{reltype:z.PRIMARY}];"application/pdf"===e.mediaType&&c.push({reltype:z.APP_METADATA});const l={op:"copy",id:e.id,source:{"repo:assetId":e.id},target:{"repo:path":n,"repo:repositoryId":t.repositoryID},includeResources:c};if(e.repositoryID){l.source["repo:repositoryId"]=e.repositoryID}return l})),i.next=8,a._runOperations(l,s,((e,t,r)=>{if(!r)throw v.create(n.UNKNOWN,"Missing metadata from asset bulk operation.");return a._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(e,r)}));case 8:c=i.sent;case 9:case"end":return i.stop()}}),i)}))));case 3:if(!i){s.next=7;break}return s.next=6,bo(c,t,r,o,a._copyAssets.bind(a));case 6:return s.abrupt("return",s.sent);case 7:return s.abrupt("return",c);case 8:case"end":return s.stop()}}),s)})))()}copyAssets(e,t,r=new Map){var n=this;return d(u().mark((function i(){return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._copyAssets(e,t,r);case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),i)})))()}duplicateAssets(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e[0].repoPath.substring(0,e[0].repoPath.lastIndexOf("/")),r.next=3,t._core.hostAssetContext.getAssetWithRepoPath(n,e[0].repositoryID);case 3:return i=r.sent,r.next=6,t._copyAssets(e,i);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}_runOperations(e,t,r){var i=this;return d(u().mark((function o(){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i._rapi.runOperationsForContext(e,t,i._assetPool,r||((e,t,r)=>{if(!r)throw v.create(n.UNKNOWN,"Missing metadata from asset bulk operation.");i._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(e,t,r)}),[{match:e=>e.code===n.ACCESS_DENIED||e.code===n.NOT_FOUND,action:function(){var e=d(u().mark((function e(t,r){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._load();case 2:return e.abrupt("return",{model:t,error:r});case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()}]);case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}}),o)})))()}restoreLibraryElement(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryInterface.restoreLibraryElement(e);case 2:case"end":return r.stop()}}),r)})))()}permanentlyDeleteLibraryElement(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryInterface.permanentlyDeleteLibraryElement(e);case 2:case"end":return r.stop()}}),r)})))()}getAssetInterface(e){return Vt("AdobeAsset.getAssetInterface","AdobeAsset.getAssetInterface is deprecated and will be removed on or after 2024-10-01."),new Hr(this._rapi,e["repo:assetId"],e._links,e["repo:etag"])}getCommentsResource(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(i=null===(n=t._commentsById.get(e))||void 0===n?void 0:n.deref())||(i=new Ga(t._core,e),t._commentsById.set(e,new Ze(i))),r.abrupt("return",i);case 3:case"end":return r.stop()}}),r)})))()}}E([k],Ya.prototype,"sharedSource",null),E([k],Ya.prototype,"recentAssetsSource",null),E([k],Ya.prototype,"MRUAssetsSource",null),E([k],Ya.prototype,"publishedSource",null),E([k],Ya.prototype,"discardedSource",null),E([Ee,w(0,P)],Ya.prototype,"_getAssetById",null),E([Ee],Ya.prototype,"getHomeFolder",null),E([Ee],Ya.prototype,"getAssetWithRepoPath",null);const Wa=["repo:repositoryId","repo:name","repo:etag","stRef:relativePath","stRef:documentID"];function $a(e){const t=e._permissions;return t===kt.Ack||t===kt.None}const Ka=["application/illustrator"];class qa extends Le{constructor(e,t){super(),this._assetLinkList=e,this._data=t,this._resolutionErrors=[],this._onChange=()=>{var e,t;const r=null===(e=this._resolvedAssets)||void 0===e?void 0:e.filter($a);(null==r?void 0:r.length)&&(this._resolutionErrors=r.map((e=>v.create(e._permissions===kt.Ack?n.ACCESS_DENIED:n.NOT_FOUND,"lost access"))),this._resolvedAssets=null===(t=this._resolvedAssets)||void 0===t?void 0:t.filter((e=>!r.includes(e)))),this.emit("change"),this._assetLinkList._onChange()}}_setLinkData(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r._data=e,t&&(r._resolvedAssets=[t]),r._onChange(),r.adobeAsset&&r.assetID===r.adobeAsset.cloudID){n.next=6;break}return n.next=6,r._resolveWithRetry();case 6:return n.abrupt("return",r);case 7:case"end":return n.stop()}}),n)})))()}_setLinkedAsset(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getLinkDataForAsset(e),r.abrupt("return",t._setLinkData(n,e));case 2:case"end":return r.stop()}}),r)})))()}_getLinkDataForAsset(e){var t,r;const n={"repo:assetId":e.cloudID,"repo:repositoryId":e.repositoryID,"repo:etag":e.etag,"dc:format":e.mediaType,"repo:name":e.name,"stRef:documentID":null===(t=e.embeddedMetadata.data)||void 0===t?void 0:t["xmpMM:DocumentID"],"stRef:instanceID":null===(r=e.embeddedMetadata.data)||void 0===r?void 0:r["xmpMM:InstanceID"],"stRef:manager":"Adobe Cloud"},i=this._assetLinkList.containerAsset;return i&&i.repositoryID===e.repositoryID&&(n["stRef:relativePath"]=T.relative(T.dirname(i.repoPath),e.repoPath)),n}_serializeLinkData(e){return JSON.stringify(e,Object.keys(e).sort())}_resolveWithRetry(){return this._resolve()}_resolve(){var e=this;return d(u().mark((function t(){var r,i,o,a,s,c,l;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=[],o=[],a=e=>{if(![n.NOT_FOUND,n.ACCESS_DENIED].includes(e.code))throw e;o.push(e)},t.prev=3,t.next=6,e._context.getAssetWithCloudID(e.assetID);case 6:if((s=t.sent).embeddedMetadata.isLoaded){t.next=10;break}return t.next=10,s.embeddedMetadata.load();case 10:i.push(s),t.next=17;break;case 13:t.prev=13,t.t0=t.catch(3),e._core._environment.error(`Failed to resolve link by id (${e.assetID}): ${t.t0}`),a(t.t0);case 17:if(c=e._assetLinkList.containerAsset,!e.relativePath||!c||c.repositoryID!==e.repositoryID){t.next=34;break}return l=T.join(T.dirname(c.repoPath),e.relativePath),t.prev=20,t.next=23,e._context.getAssetWithRepoPath(l,e.repositoryID);case 23:if((s=t.sent).embeddedMetadata.isLoaded){t.next=27;break}return t.next=27,s.embeddedMetadata.load();case 27:i[0]&&i[0].cloudID===s.cloudID||((null===(r=i[0])||void 0===r?void 0:r.isDiscarded)?i.unshift(s):i.push(s)),t.next=34;break;case 30:t.prev=30,t.t1=t.catch(20),e._core._environment.error(`Failed to resolve link by path: ${e.repositoryID}, ${l}`),a(t.t1);case 34:e._resolvedAssets&&e._resolvedAssets.forEach((t=>t.off("change",e._onChange))),i.forEach((t=>t.on("change",e._onChange))),e._resolvedAssets=i,e._resolutionErrors=o,e._onChange();case 39:case"end":return t.stop()}}),t,null,[[3,13],[20,30]])})))()}get _core(){return this._assetLinkList._core}get _context(){return this._assetLinkList._manager._context}get adobeAsset(){var e;return null===(e=this._resolvedAssets)||void 0===e?void 0:e[0]}get alternativeAdobeAsset(){var e;return null===(e=this._resolvedAssets)||void 0===e?void 0:e[1]}get linkStatus(){if(!this._resolvedAssets)return"UpToDate";if(!this.adobeAsset)return this._resolutionErrors.some((e=>e.code===n.ACCESS_DENIED))?"Restricted":"Broken";if(this.adobeAsset.isDiscarded)return"Discarded";const e=this.adobeAsset.embeddedMetadata.data["xmpMM:InstanceID"]||"",t=!e&&!this.instanceID||Ka.includes(this.type),r=e!==this.instanceID||t&&this.etag!==this.adobeAsset.etag;if(this.alternativeAdobeAsset||r)return"OutOfDate";const i=this._getLinkDataForAsset(this.adobeAsset),o=Wa.some((e=>i[e]!==this._data[e]));return o?"MetadataOutOfDate":"UpToDate"}get fragmentIdentifier(){return this._data["stRef:fromPart"]||""}get version(){return this._data["repo:version"]||""}get assetID(){return this._data["repo:assetId"]}get repositoryID(){return this._data["repo:repositoryId"]||""}get name(){return this._data["repo:name"]||""}get type(){return this._data["dc:format"]||""}get etag(){return this._data["repo:etag"]||""}get relativePath(){return this._data["stRef:relativePath"]||""}get documentID(){return this._data["stRef:documentID"]||""}get instanceID(){return this._data["stRef:instanceID"]||""}getAssetLinkRef(){return Object.assign({},this._data)}getAssetLinkRefString(){return this._serializeLinkData(this._data)}getNewAssetLinkRef(e){return this._getLinkDataForAsset(e)}getNewAssetLinkRefString(e){return this._serializeLinkData(this.getNewAssetLinkRef(e))}updateWithAsset(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setLinkedAsset(e);case 2:return r.abrupt("return",t.getAssetLinkRefString());case 3:case"end":return r.stop()}}),r)})))()}updateWithLinkRef(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setLinkData(e);case 2:return r.abrupt("return",e);case 3:case"end":return r.stop()}}),r)})))()}updateWithLinkRefString(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setLinkData(JSON.parse(e));case 2:return r.abrupt("return",e);case 3:case"end":return r.stop()}}),r)})))()}acceptMetadataChanges(){if(this.adobeAsset&&"MetadataOutOfDate"===this.linkStatus){const e=this._getLinkDataForAsset(this.adobeAsset);this._data=Object.assign(Object.assign({},this._data),e),this._onChange()}return this.getAssetLinkRefString()}}E([Ee],qa.prototype,"_setLinkData",null),E([_e],qa.prototype,"_resolveWithRetry",null),E([Z],qa.prototype,"adobeAsset",null),E([Z],qa.prototype,"alternativeAdobeAsset",null),E([Z],qa.prototype,"linkStatus",null),E([Z],qa.prototype,"fragmentIdentifier",null),E([Z],qa.prototype,"version",null),E([Z],qa.prototype,"assetID",null),E([Z],qa.prototype,"repositoryID",null),E([Z],qa.prototype,"name",null),E([Z],qa.prototype,"type",null),E([Z],qa.prototype,"etag",null),E([Z],qa.prototype,"relativePath",null),E([Z],qa.prototype,"documentID",null),E([Z],qa.prototype,"instanceID",null),E([Z],qa.prototype,"getAssetLinkRef",null),E([Z],qa.prototype,"getAssetLinkRefString",null),E([Z],qa.prototype,"getNewAssetLinkRef",null),E([Z],qa.prototype,"getNewAssetLinkRefString",null);class Xa extends Le{constructor(e,t){super(),this._manager=e,this._containerAsset=t,this._links=new Set,this._directlyMonitoredAssetIDs=new Map,this._onChange=()=>{this.emit("change")},this._refreshLinks=(e=new Set(this.monitoredAssetIDs))=>{this.forEach((t=>{!t.adobeAsset&&e.has(t.assetID)&&t._resolveWithRetry()}))},this._onONSNotification=e=>{this._refreshLinks(e);const t=this._monitoredAssetIDs,r=new Set;e.forEach((e=>{t.has(e)&&r.add(e);const n=this._directlyMonitoredAssetIDs.get(e.toLowerCase());n&&r.add(n)})),this.emit("notified",[...r])}}get _core(){return this._manager._core}addAssetID(e){this._directlyMonitoredAssetIDs.set(e.toLowerCase(),e),this._onChange()}removeAssetID(e){this._directlyMonitoredAssetIDs.delete(e.toLowerCase()),this._onChange()}add(e){var t=this;return Promise.all(e.map(function(){var e=d(u().mark((function e(r){var n,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="string"==typeof r?JSON.parse(r):r,i=new qa(t,n),t._links.add(i),t._onChange(),e.next=6,i._resolveWithRetry();case 6:return e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))}create(e,t,r){var n=this;return d(u().mark((function i(){var o,a;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o="string"==typeof e?e:e.cloudID,a=new qa(n,{"repo:assetId":o,"stRef:fromPart":t,"repo:version":r,"stRef:manager":"Adobe Cloud"}),n._links.add(a),n._onChange(),i.next=6,a._resolve();case 6:return a.adobeAsset&&a._setLinkedAsset(a.adobeAsset),i.abrupt("return",a);case 8:case"end":return i.stop()}}),i)})))()}remove(e){this._links.delete(e),this._onChange()}clear(){this._links.clear(),this._onChange()}get count(){return this._links.size}get links(){return[...this._links]}get _monitoredAssetIDs(){const e=new Set(this._directlyMonitoredAssetIDs.values());return this.forEach((t=>{e.add(t.assetID),t.alternativeAdobeAsset&&e.add(t.alternativeAdobeAsset.cloudID)})),e}get monitoredAssetIDs(){return[...this._monitoredAssetIDs]}forEach(e){this._links.forEach(e)}get containerAsset(){return this._containerAsset}activate(e=0){Vt("AssetLinkList.activate",`AssetLinkList.activate(${e}) is deprecated - lists are always monitored for notifications.This method will be removed on or after 2024-10-01.`)}deactivate(){Vt("AssetLinkList.deactivate","AssetLinkList.deactivate() is deprecated - lists are always monitored for notifications. This method will be removed on or after 2024-10-01.")}get isActive(){return Vt("AssetLinkList.isActive","AssetLinkList.isActive is deprecated - lists are always monitored for notifications. This method will be removed on or after 2024-10-01."),!0}updateContainerAsset(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._containerAsset=e,t._onChange(),r.next=4,Promise.all(Array.from(t._links).map((e=>e._resolveWithRetry())));case 4:case"end":return r.stop()}}),r)})))()}clone(e){e.links.forEach((e=>this._links.add(e)))}}E([Z],Xa.prototype,"count",null),E([Z],Xa.prototype,"links",null),E([Z],Xa.prototype,"monitoredAssetIDs",null),E([Z],Xa.prototype,"forEach",null),E([Z],Xa.prototype,"containerAsset",null),E([Z],Xa.prototype,"isActive",null);class Ja extends Le{constructor(e){super(),this._context=e,this._lists=new Set,this._onListChange=()=>{this._context._onAssetsChanged()}}get _core(){return this._context._core}createList(e){const t=new Xa(this,e);return t.on("change",this._onListChange),this._lists.add(t),this.emit("change"),t}removeList(e){this._lists.delete(e),e.off("change",this._onListChange),this.emit("change")}get lists(){return[...this._lists]}}E([Z],Ja.prototype,"lists",null);const Qa={[z.WORKSPACES_CONTEXT]:[],[z.TEAMS_PAGE]:["start","limit"],[z.WORKSPACES_PRIMARY]:["id","selector"],[z.WORKSPACES_PAGE]:["orderBy","start","limit","teamId","bookmarkFilter","teamAccess"],[z.REPOSITORIES_PAGE]:[],[z.TEAMS_CREATE]:[],[z.TEAM_PROVISION]:[],[z.WORKSPACES_BOOKMARKS_BATCH]:[]},es=[200,201],ts=["FULL"],rs={start:0,limit:0,orderDirection:"ascending",orderBy:"name"},ns={orderDirection:"ascending",orderBy:"name",bookmarked:!1,teamID:void 0,start:0,limit:0};function is(e,t){return Object.assign({},e,t)}function os(e){return("ascending"===e.orderDirection?"+":"-")+e.orderBy}function as(e){const t={};return e.start&&(t.start=e.start),e.limit&&(t.limit=e.limit),t}function ss(e,t){const r=is(rs,t),n=as(r);return n.orderBy=os(r),n.nameContains=r.nameContains,n.state=r.state,W(e,z.TEAMS_PAGE,n)}function cs(e,t){const r=is(ns,t),n=as(r);n.orderBy=os(r),r.bookmarked||(n.bookmarkFilter=!1),!1===r.teamAccess&&(n.teamAccess=!1);const i=r.teamID;return i&&(n.teamId=i),W(e,z.WORKSPACES_PAGE,n)}class ls extends be{_getHeaders(e){const t={"x-service-features":"CanvasMigration","Cache-Control":"no-cache"};return e&&(t["Content-Type"]=e),t}_discoverLinks(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e,t._getHeaders());case 2:return n=r.sent,r.abrupt("return",n._links);case 4:case"end":return r.stop()}}),r)})))()}_getEndpointHref(e){return`https://${this._core._environment.endpoints.PROJECTS_HOST}${e}`}discoverLinks(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._discoverLinks(e._getEndpointHref("/api/v2/index")));case 1:case"end":return t.stop()}}),t)})))()}getTeams(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=ss(n,e),r.next=6,t._getResponse(i,t._getHeaders());case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}getOrgRepositories(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.discoverLinks();case 2:return r=t.sent,n=W(r,z.REPOSITORIES_PAGE,{}),t.next=6,e._getResponse(n,e._getHeaders());case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})))()}createTeam(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=W(n,z.TEAMS_CREATE,{}),r.next=6,t._doPost(i,t._getHeaders(G),JSON.stringify(e));case 6:return o=r.sent,r.abrupt("return",o.json());case 8:case"end":return r.stop()}}),r)})))()}permanentlyDeleteTeam(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=W(e,z.TEAMS_PRIMARY),r.next=3,t._doDelete(n,t._getHeaders(),[204]);case 3:case"end":return r.stop()}}),r)})))()}archiveTeam(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=W(e,z.TEAMS_DISCARD),r.next=3,t._doPost(n,t._getHeaders(),void 0,[204]);case 3:case"end":return r.stop()}}),r)})))()}restoreTeam(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=W(e,z.TEAMS_RESTORE),r.next=3,t._doPost(n,t._getHeaders(),void 0,[204]);case 3:case"end":return r.stop()}}),r)})))()}renameTeam(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(e,z.TEAMS_RENAME),n.next=3,r._doPost(i,r._getHeaders(G),JSON.stringify({name:t}),[204]);case 3:case"end":return n.stop()}}),n)})))()}patchTeam(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(e,z.TEAMS_PROPERTIES),n.next=3,r._doPatch(i,Object.assign(Object.assign({},r._getHeaders(U)),{"If-Match":"*"}),JSON.stringify(t),[204]);case 3:case"end":return n.stop()}}),n)})))()}getTeamProperties(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=W(e,z.TEAMS_PROPERTIES),r.next=3,t._getResponse(n,t._getHeaders());case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}provisionTeam(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.discoverLinks();case 2:return r=t.sent,n=W(r,z.TEAM_PROVISION,{}),t.next=6,e._doPost(n,e._getHeaders(),void 0,es);case 6:return i=t.sent,t.abrupt("return",i.json());case 8:case"end":return t.stop()}}),t)})))()}getSpaces(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=cs(n,e),r.next=6,t._getResponse(i,t._getHeaders());case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}getSpace(e,t=ts){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,o=W(i,z.WORKSPACES_PRIMARY,{id:e,selector:t}),n.next=6,r._getResponse(o,r._getHeaders());case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))()}reloadSpace(e,t=ts){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(e,z.WORKSPACES_PRIMARY,{selector:t}),n.next=3,r._getResponse(i,r._getHeaders());case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()}bookmarkOp(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=W(n,z.WORKSPACES_BOOKMARKS_BATCH),r.next=6,t._doPost(i,t._getHeaders(G),JSON.stringify(e),[200]);case 6:return o=r.sent,r.abrupt("return",o.json());case 8:case"end":return r.stop()}}),r)})))()}createSpace(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(e,z.WORKSPACES_CREATE),n.next=3,r._doPost(i,r._getHeaders(G),JSON.stringify(t));case 3:return o=n.sent,n.abrupt("return",o.json());case 5:case"end":return n.stop()}}),n)})))()}patchSpace(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=W(e,z.WORKSPACES_PRIMARY),n.next=3,r._doPatch(i,r._getHeaders(U),JSON.stringify(t),[200,204]);case 3:case"end":return n.stop()}}),n)})))()}getEnclosingSpaces(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=W(n,z.WORKSPACES_CONTEXT),r.next=6,t._doPost(i,t._getHeaders(G),JSON.stringify(e),[200]);case 6:return o=r.sent,r.abrupt("return",o.json());case 8:case"end":return r.stop()}}),r)})))()}}E([A((function(e){return V(e,Qa)})),w(0,P)],ls.prototype,"_discoverLinks",null);const us={name:"name",created:"createdDate"},ps={name:(e,t)=>Mn(e.name,t.name),created:(e,t)=>jn(e.created,t.created)};class ds extends(Zn(ps)){}ds.default=new ds("ascending","name");class hs{constructor(e,t,r){this._spacePool=e,this._workspaceInterface=t,this._teamRoleGetterFactory=r}supportsFilter(e){if(!e)return!1;const t=e.teamRole,r=e.state;return"MEMBER"!==t&&"active"===r}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function i(){var o,a,c,l,p,d,h,f,m,g,y,b,_,E,w,L,x,S;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(l=e.order,p=e.filter,d=e.limit,"MEMBER"!==(h=null===(o=p)||void 0===o?void 0:o.teamRole)){i.next=4;break}throw v.create(n.BAD_REQUEST,"Filtering only for spaces with reamRole MEMBER is not supported.");case 4:if(f=r._spacePool._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),m=Date.now()-f,g=r._workspaceInterface.getSpaces({orderBy:us[l.field],orderDirection:l.direction,teamID:null===(a=p)||void 0===a?void 0:a.teamID,bookmarked:null===(c=p)||void 0===c?void 0:c.bookmarked,teamAccess:"NONE"!==h&&void 0,start:t,limit:d}),!h){i.next=11;break}i.t0=()=>h,i.next=14;break;case 11:return i.next=13,r._teamRoleGetterFactory();case 13:i.t0=i.sent;case 14:return y=i.t0,i.next=17,g;case 17:b=i.sent,_=r._spacePool.createLoaderUpdateSession(m),E=go.updateRemoteItems(_,b.projects.map((e=>Object.assign(Object.assign({},e),{teamRole:y(e.teamId),state:"active"})))),w=s(E);try{for(w.s();!(L=w.n()).done;)L.value[po]()}catch(e){w.e(e)}finally{w.f()}return _.commit(),(S=b.pageSpec.start+b.pageSpec.limit)<b.pageSpec.totalLimit&&(x=e=>r._loadPage(e,S)),i.abrupt("return",{items:E,total:b.pageSpec.totalLimit,loadNextPage:x,mostRecentValidMutation:m});case 26:case"end":return i.stop()}}),i)})))()}}var fs;!function(e){e.Size50="50",e.Size100="100",e.Size115="115",e.Size230="230",e.Size138="138",e.Size276="276"}(fs||(fs={}));const ms=["owner","viewer","editor","none"],gs=["editor","owner"],vs=["self","deep","deep_override"];class ys extends Rn{constructor(){super(...arguments),this._role="viewer",this._type="imsUser",this._isDirect=!1,this._assetID="",this._canShare=!1}get assetId(){return this._assetID}get hasProfile(){Vt("Collaborator.hasProfile","Collaborator.hasProfile is deprecated and will be removed on or after 2024-10-01")}get collaboratorID(){return this.id}get imsUserId(){var e;return"imsUser"===this._type?this.id:null===(e=this._additionalData)||void 0===e?void 0:e.linkedIdentity}get email(){var e;return null===(e=this._additionalData)||void 0===e?void 0:e.email}get name(){var e,t;const r=this._additionalData;return null!==(t=null!==(e=null==r?void 0:r.displayName)&&void 0!==e?e:null==r?void 0:r.groupName)&&void 0!==t?t:null==r?void 0:r.organizationName}get role(){return this._role}get type(){return this._type}get inheritances(){return this._inheritances}get isDirect(){return this._isDirect}get hasContributorRole(){return gs.includes(this._role)}get hasName(){return!!this.name}get invited(){var e;return null===(e=this._inheritances)||void 0===e?void 0:e.includes("deep")}get isAdmin(){var e;return null===(e=this._inheritances)||void 0===e?void 0:e.includes("deep_override")}get canShare(){return this._canShare}get isCurrentUser(){return this._core._environment.getValue("USER_ID")===this.imsUserId}get avatarURL(){return this.getAvatarURL(fs.Size138)}getAvatarURL(e){var t,r,n;return null!==(n=null===(r=null===(t=this._additionalData)||void 0===t?void 0:t.images)||void 0===r?void 0:r[e])&&void 0!==n?n:""}}E([Z(Lt)],ys.prototype,"email",null),E([Z(Lt)],ys.prototype,"name",null),E([Z(Lt)],ys.prototype,"avatarURL",null),E([Z(Lt)],ys.prototype,"getAvatarURL",null);const bs=new pi({localItemType:ys,remoteIdProperty:"id",changeEvent:Lt,propertyUpdater:new Ei({_type:{name:"type",choices:["imsUser","addressBookGroup","addressBookContact","predefinedPrincipal","imsGroup"]},_role:{name:"role",choices:ms},_inheritances:{name:"inheritances",isArray:!0,choices:vs},_additionalData:{name:"additionalData",format:"object"},_isDirect:{name:"isDirect",format:"boolean"},_avatarURLs:{name:"avatarURLs",format:"object"},_assetID:{name:"assetID",format:"string"},_canShare:{name:"canShare",format:"boolean"}})});class _s extends ai{constructor(){super(...arguments),this._created=new Date,this._createdBy="",this._name="",this._repositoryID="",this._repositoryName="",this._state="active",this._role="none"}get teamID(){return this.id}get created(){return this._created}get createdBy(){return this._createdBy}get name(){return this._name}get description(){return this._description}get repositoryID(){return this._repositoryID}get repositoryName(){return this._repositoryName}get repositoryOwnerID(){return this._repositoryOwnerID}get repositoryOwnerEmail(){return this._repositoryOwnerEmail}get repositoryOwnerType(){return this._repositoryOwnerType}get collaboratorRole(){return Vt("collaboratorRoleDeprecated","The property collaboratorRole has been depecrated in favor of role."),"owner"===this._role?"editor":this._role}get role(){return this._role}get state(){return this._state}get _links(){return this.__links}archive(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.archiveTeam(e);case 2:case"end":return t.stop()}}),t)})))()}createSpace(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.createSpace(t,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}permanentlyDelete(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.permanentlyDeleteTeam(e);case 2:case"end":return t.stop()}}),t)})))()}rename(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.renameTeam(t,e);case 2:case"end":return r.stop()}}),r)})))()}restore(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.restoreTeam(e);case 2:case"end":return t.stop()}}),t)})))()}update(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.updateTeam(t,e);case 2:case"end":return r.stop()}}),r)})))()}ensureDescription(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.loadTeamProperties(e);case 2:case"end":return t.stop()}}),t)})))()}}E([Z],_s.prototype,"created",null),E([Z],_s.prototype,"createdBy",null),E([Z],_s.prototype,"name",null),E([Z],_s.prototype,"description",null),E([Z],_s.prototype,"repositoryID",null),E([Z],_s.prototype,"repositoryName",null),E([Z],_s.prototype,"repositoryOwnerID",null),E([Z],_s.prototype,"repositoryOwnerEmail",null),E([Z],_s.prototype,"repositoryOwnerType",null),E([Z],_s.prototype,"collaboratorRole",null),E([Z],_s.prototype,"role",null),E([Z],_s.prototype,"state",null),E([Z],_s.prototype,"_links",null);const Es=new pi({localItemType:_s,remoteIdProperty:"id",propertyUpdater:new Ei({_created:{name:"createDate",format:"date"},_createdBy:"createdBy",_description:"description",_name:"name",_repositoryID:"repositoryId",_repositoryName:"repositoryName",_repositoryOwnerID:"repositoryOwner.id",_repositoryOwnerEmail:"repositoryOwner.email",_repositoryOwnerType:{name:"repositoryOwner.type",choices:["org","user"]},_role:{name:"role",choices:ms},_state:{name:"state",choices:["active","discarded"]},__links:{name:"_links",format:"object"}})}),ws={name:"name",created:"createDate"},Ls={name:(e,t)=>Mn(e.name,t.name),created:(e,t)=>jn(e.created,t.created)};class xs extends(Zn(Ls)){}xs.default=new xs("ascending","name");class Ss{constructor(e,t){this._teamPool=e,this._projectInterface=t}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f,m,g;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.limit,s=e.filter,c=e.order,l=r._teamPool._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),p=Date.now()-l,n.next=5,r._projectInterface.getTeams({orderBy:ws[c.field],orderDirection:c.direction,start:t,limit:a,nameContains:null===(i=s)||void 0===i?void 0:i.nameContains,state:null===(o=s)||void 0===o?void 0:o.state});case 5:return d=n.sent,h=r._teamPool.createLoaderUpdateSession(p),f=Es.updateRemoteItems(h,d.teams),h.commit(),(g=d.pageSpec.start+d.pageSpec.limit)<d.pageSpec.totalLimit&&(m=e=>r._loadPage(e,g)),n.abrupt("return",{items:f,total:d.pageSpec.totalLimit,loadNextPage:m,mostRecentValidMutation:p});case 12:case"end":return n.stop()}}),n)})))()}}class Os extends Rn{constructor(){super(...arguments),this._repositoryID=""}get repositoryID(){return this._repositoryID}createTeam(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.createTeam(t,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}}E([Z],Os.prototype,"repositoryID",null);const Ts=new pi({localItemType:Os,remoteIdProperty:"repositoryId",propertyUpdater:new Ei({_repositoryID:"repositoryId"})});class Is{constructor(e,t){this._orgRepositoryPool=e,this._projectInterface=t}loadPage(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._projectInterface.getOrgRepositories();case 2:return r=t.sent,n=e._orgRepositoryPool.createLoaderUpdateSession(Date.now()),i=Ts.updateRemoteItems(n,r.repositories),n.commit(),t.abrupt("return",{items:i});case 7:case"end":return t.stop()}}),t)})))()}}var Ps;!function(e){e[e.DISJOINTED=0]="DISJOINTED",e[e.SUPERSET=1]="SUPERSET",e[e.SUBSET=2]="SUBSET",e[e.UNKNOWN=3]="UNKNOWN",e[e.IDENTICAL=4]="IDENTICAL"}(Ps||(Ps={}));const Cs=e=>/\S/.test(e);class As{constructor(e){this._nameContains=null==e?void 0:e.nameContains,this._state=null==e?void 0:e.state}static TeamsContainingName(e){return new As({nameContains:e})}get nameContains(){return this._nameContains}get state(){return this._state}get hash(){var e,t;return(null!==(e=this._nameContains)&&void 0!==e?e:"any-name")+":"+(null!==(t=this._state)&&void 0!==t?t:"any-state")}_getRelationToNameContains(e,t){if(e===t)return Ps.IDENTICAL;const r=e.toLowerCase().split(" ").filter(Cs).sort(),n=t.toLowerCase().split(" ").filter(Cs).sort();if(0===r.length&&0===n.length)return Ps.IDENTICAL;if(0===r.length||0===n.length)return Ps.DISJOINTED;if(r.length===n.length&&r.every(((e,t)=>e===n[t])))return Ps.IDENTICAL;let i=0,o=0;return r.forEach((e=>{const t=n.find((t=>{const r=t.startsWith(e),n=e.startsWith(t);return r||n}));t&&(e.length<=t.length&&o++,e.length>t.length&&i++)})),r.length===i?Ps.SUBSET:r.length===o?Ps.SUPERSET:0===i&&0===o?Ps.DISJOINTED:Ps.UNKNOWN}_searchTarget(e,t){const r=e.toLowerCase().split(" ").filter(Cs),n=t.toLowerCase().split(" ").filter(Cs);return 0!==r.length&&0!==n.length&&r.every((e=>n.find((t=>t.startsWith(e)))))}matches(e){const t=this._state;if(t&&t!==e.state)return!1;const r=this._nameContains;return!(r&&!this._searchTarget(r,e.name))}getRelationToFilter(e){let t;return this.nameContains&&e.nameContains&&(t=this._getRelationToNameContains(this.nameContains,e.nameContains),t===Ps.DISJOINTED)||this.state&&e.state&&this.state!==e.state?"disjoint":!this.state&&e.state||!this.nameContains&&e.nameContains||t&&t===Ps.SUPERSET||t===Ps.UNKNOWN?"unknown":"subset"}}As.ActiveTeams=new As({state:"active"}),As.DiscardedTeams=new As({state:"discarded"});class ks{constructor(e){this._bookmarked=!1,this._bookmarked=Boolean(null==e?void 0:e.bookmarked),this._teamID=null==e?void 0:e.teamID,this._teamRole=null==e?void 0:e.teamRole,this._state=null==e?void 0:e.state,this._teamRole=null==e?void 0:e.teamRole}static ActiveSpacesFromTeam(e){return new ks({state:"active",teamID:e})}get bookmarked(){return this._bookmarked}get teamID(){return this._teamID}get teamRole(){return this._teamRole}get state(){return this._state}get hash(){var e,t;return String(this.bookmarked)+":"+(this.teamID||"all-teams")+":"+(null!==(e=this._teamRole)&&void 0!==e?e:"all-roles")+":"+(null!==(t=this._state)&&void 0!==t?t:"any-state")}matches(e){if(this._bookmarked&&!e.isBookmarked)return!1;const t=this._teamID;if(t&&e.teamID!==t)return!1;const r=this._teamRole;if(r&&e.teamRole!==r)return!1;const n=this._state;return!n||n===e.state}getRelationToFilter(e){const t=e;return this._teamRole!==t._teamRole?this._teamRole&&t._teamRole?"disjoint":"unknown":this.teamID&&t.teamID&&this.teamID!==t.teamID?"disjoint":!this.teamID&&t.teamID||!this.bookmarked&&e.bookmarked?"unknown":this._state!==e._state?this._state&&e._state?"disjoint":"unknown":"subset"}}ks.ActiveSpaces=new ks({state:"active"}),ks.ArchivedSpaces=new ks({state:"archived"}),ks.ActiveBookmarkedSpaces=new ks({state:"active",bookmarked:!0}),ks.ActiveSpacesFromOtherTeams=new ks({state:"active",teamRole:"NONE"});function Ds(e){const t=new Set(e.items.map((e=>e.id)));return e=>t.has(e)?"MEMBER":"NONE"}function Ns(e){const t=e._links;if(!t)throw v.create(n.BAD_REQUEST,'Object has not been loaded correctly, missing "_links" property.');return t}class Rs{constructor(e){var t=this;this._core=e,this._orgRepositoryPool=new nr(this._core,"orgRepository"),this._teamPool=new nr(this._core,"team"),this._spacePool=new nr(this._core,"space"),this._projectInterface=new ls(this._core),this._rapi=new qr(this._core),this._hostAssetContext=this._core.hostAssetContext,this._teamRoleGetterFactory=d(u().mark((function e(){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._fetchTeams();case 2:return r=e.sent,e.abrupt("return",Ds(r));case 4:case"end":return e.stop()}}),e)}))),this._teamPoolDelegate={onItemsUpdated:()=>{const e=this.getTeams()._getExistingList(xs.default,new Ht);if(!e||!e.items.length)return void this._core._environment.debug("[SpaceContext._teamPoolDelegate] skipping update of Space.teamRole -- no teams");const t=this._spacePool,r=Ds(e),n=t.createUpdateSession("Updating teamRole across all spaces");this._spacePool.forEach((e=>{const t=r(e.teamID);e.teamRole!==t&&go.updateLocalItem(n,e,{teamRole:t})})),n.commit()}},this._teamPool.addDelegate(this._teamPoolDelegate,"context")}get projectInterface(){return this._projectInterface}get orgRepositoryPool(){return this._orgRepositoryPool}get teamPool(){return this._teamPool}get spacePool(){return this._spacePool}discoverLinks(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._projectInterface.discoverLinks();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getOrgRepositories(){const e=new Is(this._orgRepositoryPool,this._projectInterface);return new Gi(this._orgRepositoryPool,[e])}getTeams(){const e=new Ss(this._teamPool,this._projectInterface);return new Gi(this._teamPool,[e],new As)}getSpaces(){const e=new hs(this._spacePool,this._projectInterface,this._teamRoleGetterFactory);return new Gi(this._spacePool,[e],new ks)}_fetchTeams(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.getTeams().getList(xs.default,void 0,{refreshTimeout:3e5}),t.next=3,ji(r);case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}provisionType1Team(){var e=this;return d(u().mark((function t(){var r,n,i,o,a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("type1"===e._core._environment.getValue("ACCOUNT_TYPE")){t.next=2;break}return t.abrupt("return",void 0);case 2:return t.next=4,e._fetchTeams();case 4:if(r=t.sent,n=e._core._environment.getValue("USER_ID"),i=r.items.find((e=>e.repositoryOwnerID===n&&"user"===e.repositoryOwnerType))){t.next=14;break}return t.next=10,e._projectInterface.provisionTeam();case 10:o=t.sent,a=e._teamPool.createMutationSession(),i=Es.updateRemoteItem(a,o),a.commit();case 14:return t.abrupt("return",i);case 15:case"end":return t.stop()}}),t)})))()}createTeam(e,t){var r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._projectInterface.createTeam(Object.assign(Object.assign({},t),{repositoryId:e.repositoryID}));case 2:return i=n.sent,o=r._teamPool.createMutationSession(),a=Es.updateRemoteItem(o,i),o.commit(),n.abrupt("return",a);case 7:case"end":return n.stop()}}),n)})))()}_renameAsset(e,t){var r=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(Lr(t)){i.next=2;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for the rename operation.");case 2:return i.next=4,r._hostAssetContext.getAssetWithCloudID(e);case 4:return o=i.sent,i.next=7,o.rename(t);case 7:return i.abrupt("return",o);case 8:case"end":return i.stop()}}),i)})))()}_renameTeam(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l,p,d;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=t.name){i.next=3;break}return i.abrupt("return");case 3:if(Lr(o)){i.next=5;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for the rename operation.");case 5:return a=Ns(e),i.next=8,r._projectInterface.renameTeam(a,o);case 8:s=r._hostAssetContext._assetPool,(c=s.getLocalItemById(e.id))&&(l=Ar(o,c),p=s.createUpdateSession(),kr({assetPool:r._hostAssetContext._assetPool,asset:c,session:p,operation:{type:"rename",newPath:l}}),r._hostAssetContext._adobeAssetUpdater.updateLocalItem(p,c,{"repo:path":l,"repo:name":o}),p.commit()),d=r.teamPool.createMutationSession(),Es.updateLocalItem(d,e,{name:o}),d.commit();case 14:case"end":return i.stop()}}),i)})))()}renameTeam(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.updateTeam(e,{name:t});case 2:case"end":return n.stop()}}),n)})))()}restoreTeam(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Rn.runExclusiveTask("restore",[e],d(u().mark((function r(){var i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,i=Ns(e),o=t.teamPool.createUpdateSession(),r.next=5,t._projectInterface.restoreTeam(i);case 5:Es.updateLocalItem(o,e,{state:"active"}),o.commit(),r.next=12;break;case 9:throw r.prev=9,r.t0=r.catch(0),v.create(n.UNKNOWN,"An error occured restoring team",{underlyingError:r.t0});case 12:case"end":return r.stop()}}),r,null,[[0,9]])}))));case 2:case"end":return r.stop()}}),r)})))()}archiveTeam(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Rn.runExclusiveTask("archive",[e],d(u().mark((function r(){var i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=t.teamPool.createUpdateSession(),r.prev=1,o=Ns(e),r.next=5,t._projectInterface.archiveTeam(o);case 5:r.next=19;break;case 7:if(r.prev=7,r.t0=r.catch(1),(a=r.t0).code!==n.BAD_REQUEST){r.next=18;break}return r.next=13,t._hostAssetContext.getAssetWithCloudID(e.id);case 13:return s=r.sent,r.next=16,s.discard();case 16:r.next=19;break;case 18:throw a;case 19:Es.updateLocalItem(i,e,{state:"discarded"}),i.commit();case 21:case"end":return r.stop()}}),r,null,[[1,7]])}))));case 2:case"end":return r.stop()}}),r)})))()}_validateDescription(e){return e.length<=1e3}_validateColor(e){return/^#[A-Fa-f0-9]{6}$/.test(e)}_getPatchOP(e,t,r,i){if(i&&!i(e))throw v.create(n.BAD_REQUEST,`Property ${t} has invalid value`);return 0===e.length&&r&&r.length>0?{op:"remove",path:t}:{op:r?"replace":"add",value:e,path:t}}_patchTeam(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.description,o=[],a={},void 0!==i&&(o.push(r._getPatchOP(i,"/description",e.description,r._validateDescription)),a.description=i),o.length){n.next=6;break}return n.abrupt("return");case 6:return s=Ns(e),n.next=9,r._projectInterface.patchTeam(s,o);case 9:c=r.teamPool.createMutationSession(),Es.updateLocalItem(c,e,a),c.commit();case 12:case"end":return n.stop()}}),n)})))()}updateTeam(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Rn.runExclusiveTask("update",[e],d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.allSettled([r._patchTeam(e,t),r._renameTeam(e,t)]);case 2:i=n.sent,r._checkForRejection(i,(()=>{const t=r.teamPool.createUpdateSession();t.queueDiscardedItem(e),t.commit()}));case 4:case"end":return n.stop()}}),n)}))));case 2:case"end":return n.stop()}}),n)})))()}loadTeamProperties(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Ns(e),r.next=3,t._projectInterface.getTeamProperties(n);case 3:if((i=r.sent)&&0!==Object.keys(i).length){r.next=6;break}return r.abrupt("return");case 6:o=t.teamPool.createMutationSession(),Es.updateLocalItem(o,e,Object.assign({},i)),o.commit();case 9:case"end":return r.stop()}}),r)})))()}permanentlyDeleteTeam(e){var t=this;return d(u().mark((function r(){var i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("active"!==e.state){r.next=2;break}throw v.create(n.UNSUPPORTED,"Teams that are not 'discarded' cannot be permanently deleted.");case 2:return i=r=>{if(r.discardedItems){const n=r.discardedItems.filter((t=>t.id===e.id)).map((e=>e.id));n.length&&t._teamPool.removeLocalItems(n)}},t._teamPool.on(er,i),r.prev=4,r.next=7,Rn.runExclusiveTask("delete",[e],d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Ns(e),r.next=3,t._projectInterface.permanentlyDeleteTeam(n);case 3:(i=t.teamPool.createUpdateSession()).queueDiscardedItem(e),i.commit();case 6:case"end":return r.stop()}}),r)}))));case 7:return r.prev=7,t.teamPool.off(er,i),r.finish(7);case 10:case"end":return r.stop()}}),r,null,[[4,,7,10]])})))()}[uo](e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._core._environment.getValue("PROJECTS_ITEM_UPDATE_LATENCY"),r.next=3,e.waitForMutationPropagationIfNeeded(n);case 3:return i=Ns(e),r.next=6,t._projectInterface.reloadSpace(i,ts);case 6:o=r.sent,a=t._spacePool.createUpdateSession(),go.updateLocalItem(a,e,o),a.commit();case 10:case"end":return r.stop()}}),r)})))()}_moveSpaces(e,t,r=new Map,n=!0,i){var o=this;return d(u().mark((function a(){var s;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={failedResults:[],newModels:[]},a.next=3,Rn.runExclusiveTask("move",e,d(u().mark((function n(){var a,c,l;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o._hostAssetContext.getAssetWithCloudID(t.id);case 2:return a=n.sent,void 0===i&&(i=new Map),c=new Map,l=e.map((e=>{c.set(e.id,e);let t=`${a.repoPath}/${Dr(e,r)}`;return t=Or(o._core,e.id,t,!1,i),{op:"move",id:e.id,source:{"repo:assetId":e.id,"repo:repositoryId":e.repositoryID},target:{"repo:path":t,"repo:repositoryId":a.repositoryID}}})),n.next=8,o._runOperations(l,c,{teamId:t.id,teamName:t.name});case 8:s=n.sent;case 9:case"end":return n.stop()}}),n)}))));case 3:if(!n){a.next=7;break}return a.next=6,bo(s,t,r,i,o._moveSpaces.bind(o));case 6:return a.abrupt("return",a.sent);case 7:return a.abrupt("return",s);case 8:case"end":return a.stop()}}),a)})))()}moveSpaces(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._moveSpaces(e,t));case 1:case"end":return n.stop()}}),n)})))()}archiveSpaces(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Rn.runExclusiveTask("archive",e,d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=new Map,i=e.map((e=>(n.set(e.id,e),{op:"discard",id:e.id,target:{"repo:assetId":e.id,"repo:repositoryId":e.repositoryID}}))),r.next=4,t._runOperations(i,n);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)}))));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}restoreSpaces(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Rn.runExclusiveTask("restore",e,d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=new Map,o=e.map((e=>(i.set(e.id,e),{op:"restore",id:e.id,target:{"repo:assetId":e.id,"repo:repositoryId":e.repositoryID},name:null==t?void 0:t.get(e)}))),n.next=4,r._runOperations(o,i);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)}))));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}_runOperations(e,t,r={}){var i=this;return d(u().mark((function o(){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i._rapi.runOperationsForContext(e,t,i._spacePool,((e,t,o)=>{if(!o)throw v.create(n.UNKNOWN,"Missing metadata from asset bulk operation.");const a=o["repo:path"];if(t.pathName!==a){const e=i._hostAssetContext._assetPool,r=e.getLocalItemById(t.id),n=e.createUpdateSession();r&&(kr({assetPool:i._hostAssetContext._assetPool,asset:r,session:n,operation:{type:"rename",newPath:a}}),i._hostAssetContext._adobeAssetUpdater.updateLocalItem(n,r,{"repo:path":a}),n.commit())}go.updateLocalItem(e,t,Object.assign({state:"ACTIVE"===o["repo:state"]?"active":"archived",name:o["repo:name"],pathName:o["repo:path"]},r))}),[{match:e=>e.code===n.ACCESS_DENIED||e.code===n.NOT_FOUND,action:function(){var e=d(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.load().catch((e=>({model:t,error:e})));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 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}}),o)})))()}createSpaceBookmarks(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._bookmarkSpaces("ADD",e));case 1:case"end":return r.stop()}}),r)})))()}removeSpaceBookmarks(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._bookmarkSpaces("REMOVE",e));case 1:case"end":return r.stop()}}),r)})))()}_bookmarkSpaces(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Rn.runExclusiveTask("bookmark",t,d(u().mark((function n(){var i,o,a,c,l,p,d,h,f,m,g,v,y,b,_,E,w,L,x;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=r._core._environment.getValue("USER_ID"),a={bookmarked:"ADD"===e},c=r.spacePool.createUpdateSession(),l=new Map,p=t.map((e=>(l.set(e.id,{space:e,wasBookmarked:e.isBookmarked}),go.updateLocalItem(c,e,a),{projectUrn:e.id,userId:o}))),c.commit(),n.prev=6,n.next=9,r._projectInterface.bookmarkOp({op:e,items:p});case 9:d=n.sent;case 10:if(n.prev=10,d){h=s(d.responses);try{for(h.s();!(f=h.n()).done;)m=f.value,(g=l.get(null===(i=m.request)||void 0===i?void 0:i.projectUrn))&&(g.status=m.status)}catch(e){h.e(e)}finally{h.f()}}v=r.spacePool.createUpdateSession(),y=r.spacePool.createMutationSession(),b=s(l.values());try{for(b.s();!(_=b.n()).done;)E=_.value,w=E.space,L=E.wasBookmarked,201===(x=E.status)?go.updateLocalItem(y,w,a):(go.updateLocalItem(v,w,{bookmarked:L}),404===x&&v.queueDiscardedItem(w))}catch(e){b.e(e)}finally{b.f()}return v.commit(),y.commit(),n.finish(10);case 19:case"end":return n.stop()}}),n,null,[[6,,10,19]])}))));case 2:case"end":return n.stop()}}),n)})))()}_checkForRejection(e,t){var r,i=s(e);try{for(i.s();!(r=i.n()).done;){const e=r.value;if("rejected"===e.status){const r=e.reason;throw r instanceof v&&r.code===n.NOT_FOUND&&t(),r}}}catch(e){i.e(e)}finally{i.f()}}updateSpace(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Rn.runExclusiveTask("update",[e],d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.allSettled([r._renameSpace(e,t),r._patchSpace(e,t)]);case 2:i=n.sent,r._checkForRejection(i,(()=>{const t=r.spacePool.createUpdateSession();t.queueDiscardedItem(e),t.commit()}));case 4:case"end":return n.stop()}}),n)}))));case 2:case"end":return n.stop()}}),n)})))()}_renameSpace(e,t){var r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0!==(i=t.name)){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,r._renameAsset(e.id,i);case 5:o=n.sent,a=r.spacePool.createMutationSession(),go.updateLocalItem(a,e,{name:o.name,pathName:o.repoPath}),a.commit();case 9:case"end":return n.stop()}}),n)})))()}_patchSpace(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.description,o=t.color,a=[],s={},void 0!==i&&(a.push(r._getPatchOP(i,"/description",e.description,r._validateDescription)),s.description=i),void 0!==o&&(a.push(r._getPatchOP(o,"/color",e.color,r._validateColor)),s.color=o),a.length){n.next=7;break}return n.abrupt("return");case 7:return c=Ns(e),n.next=10,r._projectInterface.patchSpace(c,a);case 10:l=r.spacePool.createMutationSession(),go.updateLocalItem(l,e,s),l.commit();case 13:case"end":return n.stop()}}),n)})))()}createSpace(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=Ns(e),r._validateColor(t.color),r._validateDescription(t.description),Lr(t.name),n.next=6,r._projectInterface.createSpace(i,Object.assign(Object.assign({},t),{parentId:e.id}));case 6:return o=n.sent,a=r.spacePool.createMutationSession(),s=go.updateRemoteItem(a,Object.assign(Object.assign({},o),{teamId:e.id})),a.commit(),n.abrupt("return",s);case 11:case"end":return n.stop()}}),n)})))()}getEnclosingSpace(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getEnclosingSpaces([e]);case 2:return n=r.sent,r.abrupt("return",n.get(e));case 4:case"end":return r.stop()}}),r)})))()}getEnclosingSpaces(e){var t=this;return d(u().mark((function r(){var n,i,o,a,c,l,p,d,h,f;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),i=Date.now()-n,r.next=4,t._projectInterface.getEnclosingSpaces(e.map((e=>({"repo:assetId":e}))));case 4:o=r.sent,a=new Map,c=t.spacePool.createUpdateSession("get enclosing spaces",i),l=s(o.responses),r.prev=8,l.s();case 10:if((p=l.n()).done){r.next=19;break}if(200===(d=p.value).status){r.next=14;break}return r.abrupt("continue",17);case 14:h=d.request["repo:assetId"],f=go.updateRemoteItem(c,d.body),a.set(h,f);case 17:r.next=10;break;case 19:r.next=24;break;case 21:r.prev=21,r.t0=r.catch(8),l.e(r.t0);case 24:return r.prev=24,l.f(),r.finish(24);case 27:return c.commit(),r.abrupt("return",a);case 29:case"end":return r.stop()}}),r,null,[[8,21,24,27]])})))()}lookupSpaceById(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._spacePool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._projectInterface.getSpace(e,ts);case 4:i=r.sent,o=t._spacePool.createUpdateSession(),n=go.updateRemoteItem(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}onUserLeftTeam(e){const t=this._teamPool.getLocalItemById(e);if(t){const e=this._teamPool.createUpdateSession();e.queueDiscardedItem(t),e.commit()}}}E([k],Rs.prototype,"getOrgRepositories",null),E([k],Rs.prototype,"getTeams",null),E([k],Rs.prototype,"getSpaces",null);class Ms{constructor(e,t,r){this._collaboratorPool=e,this._invitationInterface=t,this._urn=r}loadPage(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._invitationInterface.getCollaborators(e._urn);case 2:return r=t.sent,n=e._collaboratorPool.createLoaderUpdateSession(Date.now()),i=new Set(r.directCollaborators.map((({id:e})=>e))),r.collaborators.forEach((e=>e.isDirect=i.has(e.id))),o=bs.updateRemoteItems(n,r.collaborators),n.commit(),t.abrupt("return",{items:o});case 9:case"end":return t.stop()}}),t)})))()}}const js=new pi({localItemType:class extends Rn{constructor(){super(...arguments),this._email="",this._role="viewer",this._canComment=!1,this._canShare=!1,this._acceptanceRequired=!1,this._created=new Date}get invitationID(){return this.id}get email(){return this._email}get role(){return this._role}get canComment(){return this._canComment}get canShare(){return this._canShare}get acceptanceRequired(){return this._acceptanceRequired}get inheritance(){return this._inheritance}get created(){return this._created}},remoteIdProperty:"id",propertyUpdater:new Ei({_email:"email",_role:{name:"role",choices:ms},_canComment:{name:"canComment",format:"boolean"},_canShare:{name:"canShare",format:"boolean"},_acceptanceRequired:{name:"acceptanceRequired",format:"boolean"},_inheritance:{name:"inheritance",choices:vs},_created:{name:"created",format:"date_as_number"}})});class Zs{constructor(e,t,r){this._invitedCollaboratorPool=e,this._invitationInterface=t,this._urn=r}loadPage(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._invitationInterface.getCollaborators(e._urn);case 2:return r=t.sent,n=e._invitedCollaboratorPool.createLoaderUpdateSession(Date.now()),i=js.updateRemoteItems(n,r.invitations),n.commit(),t.abrupt("return",{items:i});case 7:case"end":return t.stop()}}),t)})))()}}const Fs={parse:e=>e,isEqual:(e,t)=>hr(e,t)};const Bs={parse:e=>e,isEqual:(e,t)=>hr(e,t)};const Gs=new pi({localItemType:class extends Rn{constructor(){super(...arguments),this._collaborators=[],this._error=void 0}get getAssetID(){return this.id}get collaborators(){return this._collaborators}get error(){return this._error}},remoteIdProperty:"urn",propertyUpdater:new Ei({_collaborators:{get:function(e,t){const r=new nr(t._core,"collaborator").createUpdateSession();if(200!==e.statusCode)return[];const n=JSON.parse(e.response).collaborators.map((t=>Object.assign(Object.assign({},t),{assetID:e.urn}))),i=bs.updateRemoteItems(r,n);return r.commit(),i},format:Fs},_error:{get:function(e){if(200===e.statusCode)return;const t=JSON.parse(e.response);return v.createWithRepositoryCode(t.statusCode,"",t.error)},format:Bs}})});class Us{constructor(e,t,r){this._collaboratorsByAssetIDPool=e,this._invitationInterface=t,this._assetIDs=r}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t=0){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=void 0===(i=e.limit)?r._invitationInterface.batchRequestLimit:i,i=Math.min(i,r._invitationInterface.batchRequestLimit),o=r._assetIDs.slice(t,t+i),n.next=6,r._invitationInterface.getCollaboratorListForUrns(o);case 6:return a=n.sent,s=r._collaboratorsByAssetIDPool.createLoaderUpdateSession(Date.now()),c=Gs.updateRemoteItems(s,a.result),s.commit(),t+c.length<r._assetIDs.length&&(l=e=>r._loadPage(e,t+c.length)),n.abrupt("return",{items:c,loadNextPage:l});case 12:case"end":return n.stop()}}),n)})))()}}class zs{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}class Vs{constructor(e,t=50,r=50,n=3){var i=this;this._batchProcessor=e,this._maxItemsPerBatch=t,this._delay=r,this._maxInFlightBatches=n,this._itemQueue=new Set,this._itemPromises=new Map,this._inFlightBatches=new Set,this._processQueue=d(u().mark((function e(){var t,r,n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(clearTimeout(i._timer),i._timer=void 0,e.prev=2,!(i.inFlightCount>=i._maxInFlightBatches)){e.next=6;break}return e.next=6,Promise.race([...i._inFlightBatches].map((e=>e.promise)));case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:for(;i.inFlightCount<=i._maxInFlightBatches&&i._itemQueue.size>0;){for(t=new Set;i._itemQueue.size>0&&t.size<i._maxItemsPerBatch;)r=i._itemQueue.values().next().value,i._itemQueue.delete(r),t.add(r);n={batch:t,promise:i._batchProcessor(t).catch((()=>{[...t.values()].forEach((e=>i.rejectItemPromise(e)))})).finally((()=>{i._inFlightBatches.delete(n),[...t.values()].forEach((e=>i.resolveItemPromise(e)))}))},i._inFlightBatches.add(n)}i._itemQueue.size>0&&!i._timer&&(i._timer=setTimeout(i._processQueue,i._delay));case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))}enqueue(e){if(this.isInQueue(e)||this.isInFlight(e))return this._itemPromises.get(e).promise;this._itemQueue.add(e);const t=new zs;return this._itemPromises.set(e,t),this._timer||(this._timer=setTimeout(this._processQueue,this._delay)),this._itemQueue.size>=this._maxItemsPerBatch&&this._processQueue(),t.promise}dequeue(e){const t=this._itemQueue.has(e);return this._itemQueue.delete(e),t&&(this._itemPromises.get(e).resolve(),this._itemPromises.delete(e)),t}resolveItemPromise(e){var t;null===(t=this._itemPromises.get(e))||void 0===t||t.resolve(),this._itemPromises.delete(e)}rejectItemPromise(e){var t;null===(t=this._itemPromises.get(e))||void 0===t||t.reject(),this._itemPromises.delete(e)}get size(){return this._itemQueue.size}get inFlightCount(){return this._inFlightBatches.size}isInQueue(e){return this._itemQueue.has(e)}isInFlight(e){return!![...this._inFlightBatches].find((t=>t.batch.has(e)))}_processNow(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._itemQueue.size||e._inFlightBatches.size){t.next=2;break}return t.abrupt("return");case 2:return e._processQueue(),t.prev=3,t.next=6,Promise.race([...e._inFlightBatches].map((e=>e.promise)));case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(3);case 10:if(e._itemQueue.size){t.next=2;break}case 11:case"end":return t.stop()}}),t,null,[[3,8]])})))()}}class Hs{constructor(e){var t=this;this._core=e,this._collaboratorSourceMap=new Map,this._invitationInterface=new ur(this._core),this._collaboratorsByAssetIDPool=new nr(this._core,"collaboratorsByAssetID"),this._accessConfirmedIDs=new Set,this._handleBatchRequest=function(){var e=d(u().mark((function e(r){var n,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new Map([...r].map((e=>[e.id,e]))),e.next=3,t._invitationInterface.getCollaboratorListForUrns([...n.keys()]);case 3:i=e.sent,i.result.forEach((e=>{const r=e.urn,i=n.get(r);if(!i)return;if(200!==e.statusCode)return void t._collaboratorRequestQueue.rejectItemPromise(i);const o=t._getCollaboratorSources(r),a=JSON.parse(e.response),s=a.collaborators.map((e=>{const t=a.directCollaborators.find((t=>t.id===e.id));return Object.assign(Object.assign({},e),{assetID:r,isDirect:!!t})})),c=o.collaboratorPool.createUpdateSession(),l=bs.updateRemoteItems(c,s);c.commit(),i._setCollaboratorData(l)}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._collaboratorRequestQueue=new Vs(this._handleBatchRequest)}_getCollaboratorsNow(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._collaboratorRequestQueue.enqueue(e),r.next=3,t._collaboratorRequestQueue._processNow();case 3:ii.hasManager(e,Lt)?ii.updatedExternally(e,Lt):e.dispatch(Lt);case 4:case"end":return r.stop()}}),r)})))()}getCollaboratorsForAssets(e){Vt("getCollaboratorsForAssets","This method is deprecated and will be removed. Use ShareableItem.collaboratorArray instead.");const t=new Us(this._collaboratorsByAssetIDPool,this._invitationInterface,e);return new Gi(this._collaboratorsByAssetIDPool,[t],new Ht)}_getCollaboratorSources(e){const t=this._collaboratorSourceMap.get(e);if(t)return t;const r=new nr(this._core,"collaborator"),n=new Ms(r,this._invitationInterface,e),i=new Gi(r,[n],new Ht),o=new nr(this._core,"invitedCollaborator"),a=new Zs(o,this._invitationInterface,e),s={collaboratorPool:r,collaboratorSource:i,invitedCollaboratorPool:o,invitedCollaboratorSource:new Gi(o,[a],new Ht)};return this._collaboratorSourceMap.set(e,s),s}getCollaborators(e){return Vt("CollaborationContext.getCollaborators","This method is deprecated and will be removed. Use ShareableItem.collaboratorArray instead."),this._getCollaboratorSources(e).collaboratorSource}removeCollaborator(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Vt("CollaborationContext.removeCollaborator","This method is deprecated and will be removed on or after 2024-10-01. Use ShareableItem.removeCollaborator instead."),n.abrupt("return",r._removeCollaborator(e,t));case 2:case"end":return n.stop()}}),n)})))()}_removeCollaborator(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l,p,d;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r._invitationInterface.modifyCollaborators(e,{collaborators:[{id:t.id,action:"remove"}]});case 2:if(s=i.sent,c=null===(o=s.collaborators)||void 0===o?void 0:o.find((e=>e.id===t.id))){i.next=6;break}throw v.create(n.BAD_REQUEST,"Collaborator patch request unsuccessful");case 6:if(200===c.statusCode){i.next=8;break}throw v.createWithRepositoryCode(c.statusCode,null!==(a=c.errorSubcode)&&void 0!==a?a:"",c.statusText);case 8:l=r._getCollaboratorSources(e),p=l.collaboratorPool,(d=p.createUpdateSession()).queueDiscardedItem(t),t.isCurrentUser&&r._accessConfirmedIDs.delete(e),d.commit();case 13:case"end":return i.stop()}}),i)})))()}removeInvitedCollaborator(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l,p,d;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return Vt("CollaborationContext.removeInvitedCollaborator","This method is deprecated and will be removed on or after 2025-01-01."),i.next=3,r._invitationInterface.modifyCollaborators(e,{invitations:[{id:t.id,action:"remove"}]});case 3:if(s=i.sent,c=null===(o=s.invitations)||void 0===o?void 0:o.find((e=>e.id===t.id))){i.next=7;break}throw v.create(n.BAD_REQUEST,"InvitedCollaborator patch request unsuccessful");case 7:if(200===c.statusCode){i.next=9;break}throw v.createWithRepositoryCode(c.statusCode,null!==(a=c.errorSubcode)&&void 0!==a?a:"",c.statusText);case 9:l=r._getCollaboratorSources(e),p=l.invitedCollaboratorPool,(d=p.createUpdateSession()).queueDiscardedItem(t),d.commit();case 13:case"end":return i.stop()}}),i)})))()}getInvitedCollaborators(e){return Vt("CollaborationContext.getInvitedCollaborators","This method is deprecated and will be removed on or after 2025-01-01. Use ShareableItem.collaboratorArray instead."),this._getCollaboratorSources(e).invitedCollaboratorSource}_removeCurrentUserFromCollaborationList(e){var t=this;return d(u().mark((function r(){var i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e._isCollaboratorDataLoaded){r.next=3;break}return r.next=3,t._getCollaboratorsNow(e);case 3:if(i=e.collaboratorArray.find((e=>e.isCurrentUser))){r.next=6;break}throw v.create(n.BAD_REQUEST,`Current user is not a collaborator on ${e.id}`);case 6:return r.next=8,t._removeCollaborator(e.id,i);case 8:e.collaboratorArray.includes(i)&&(o=e.collaboratorArray.filter((e=>e!==i)),e._setCollaboratorData(o),ii.hasManager(e,Lt)?ii.updatedExternally(e,Lt):e.dispatch(Lt));case 9:case"end":return r.stop()}}),r)})))()}removeCurrentUserFromCollaborationList(e){Vt("removeCurrentUserFromCollaborationList/getCollaborator","This method does not work correctly and will be removed. Use ShareableItem.removeCurrentUserFromCollaboratorList() insstead.");const t=this.getCollaborator(e);return this._removeCollaborator(e,t)}getCollaborator(e){var t;Vt("removeCurrentUserFromCollaborationList/getCollaborator","This method does not work correctly and will be removed. Use ShareableItem.collaboratorsArray.find(c => c.isCurrentUser()) instead.");const r=this._core._environment.getValue("USER_ID");return null!==(t=this._getCollaboratorSources(e).collaboratorPool.getLocalItemById(r))&&void 0!==t?t:new ys(this._core,r)}_addCollaborators(e,t,r,n,i){const o=Object.assign(Object.assign(Object.assign({recipients:t},n?{notification:n}:{notification:{ans:{}}}),r?{configuration:r}:{}),i?{captcha:i}:{});this._invitationInterface.addCollaborators(e,o)}getPendingInvitations(){return this._invitationInterface.getPendingInvitations()}confirmAccess(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._accessConfirmedIDs.has(e)){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._invitationInterface.confirmAccess(e);case 4:t._accessConfirmedIDs.add(e);case 5:case"end":return r.stop()}}),r)})))()}}const Ys=Symbol.for("com.adobe.ccac.samjs.extendclass.override_map"),Ws=Symbol.for("com.adobe.ccac.samjs.extendclass.extension_set"),$s=Symbol.for("com.adobe.ccac.samjs.extendclass.observable_set"),Ks=Symbol.for("com.adobe.ccac.samjs.extendclass.emitter"),qs=Symbol.for("com.adobe.ccac.samjs.extendclass.overridden_getters");function Xs({klass:e,core:t,extensions:r={},overrides:n={},eventMap:i={},defaultObservableEvent:o,observableMap:a={}}){const s=Object.getOwnPropertyDescriptors(e.prototype);let c=s;function l(e,t){const r=e[t];if("function"==typeof e[t])return{value:r};if(["string","boolean","number"].includes(typeof e[t]))throw new Error("Cannot use primitives for PropertyDescriptor");return r}void 0===c.on&&(c=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(e.prototype))),s._core||Object.defineProperty(e.prototype,"_core",{value:t}),Object.getOwnPropertyDescriptor(e.prototype,qs)||Object.defineProperty(e.prototype,qs,{value:{}}),Object.getOwnPropertyDescriptor(e.prototype,Ks)||Object.defineProperties(e.prototype,{[Ks]:{get(){var e;let t;return t="function"==typeof(null===(e=c.on)||void 0===e?void 0:e.value)?{on:c.on.value.bind(this),off:c.off.value.bind(this),emit:c.trigger.value.bind(this),addListener:c.on.value.bind(this),removeListener:c.off.value.bind(this)}:new Le,Object.defineProperty(this,Ks,{value:t}),this[Ks]}},on:{value(e,...t){var r;return(null!==(r=i[e])&&void 0!==r?r:[e]).forEach((e=>this[Ks].on(e,...t))),this}},addListener:{value(...e){return this.on(...e)}},off:{value(e,...t){var r;return(null!==(r=i[e])&&void 0!==r?r:[e]).forEach((e=>this[Ks].off(e,...t))),this}},removeListener:{value(...e){return this.off(...e)}},emit:{value(...e){return this[Ks].emit(...e)}},dispatch:{value(e){return this.emit(e.type,e,this)}}});const u=new Set,p=e.prototype[Ws]||new Set;Object.keys(r).forEach((t=>{if(s[t])return;const n=l(r,t);Object.defineProperty(e.prototype,t,n),u.add(t),p.add(t)})),e.prototype[Ws]=p;const d=e.prototype[Ys]||new Set;Object.keys(n).forEach((t=>{if(d.has(t))return;if(u.has(t)||p.has(t))throw new Error(`[ExtendClass] cannot override property '${t}' because it is an extension.`);if(!s[t])throw new Error(`[ExtendClass] target class does not have property '${t}' so it cannot be overridden.`);const r=l(n,t),i=s[t].value;"function"==typeof i?Object.defineProperty(e.prototype,t,{get(){return r.value.original=i.bind(this),r.value}}):(s[t].get&&(e.prototype[qs][t]=s[t].get),Object.defineProperty(e.prototype,t,r)),d.add(t),u.add(t)})),e.prototype[Ys]=d;const h={};Object.keys(a).reduce(((e,t)=>(a[t].forEach((r=>{if(e.has(r))throw new Error(`[ExtendClass] cannot have the same property (${r}) appear multiple times in observableMap`);if(u.has(r))throw new Error(`[ExtendClass] cannot make property (${r}) observable as it was defined in extensions/overrides`);e.add(r),h[r]=t})),e)),new Set),o&&Object.keys(s).filter((e=>!!s[e].get)).forEach((e=>h[e]=o));const f=e.prototype[$s]||new Set;[...p,...d,...f].forEach((e=>u.add(e))),Object.entries(h).forEach((([t,r])=>{var n;(null===(n=s[t])||void 0===n?void 0:n.get)&&!u.has(t)&&(Object.defineProperty(e.prototype,t,{get(){return this._core._environment.mobx.reportObserved(this,r),s[t].get.call(this)}}),f.add(t))})),e.prototype[$s]=f}function Js(){return"undefined"!=typeof window?null===window||void 0===window?void 0:window.acplModel:void 0}function Qs(e=""){const t=e.split(".");"0-main"===t[2]&&t.splice(2,1);const r=a(t,3),n=r[0],i=void 0===n?"0":n,o=r[1],s=void 0===o?"0":o,c=r[2];return[i,s,void 0===c?"0":c].map((e=>e.padStart(4,"0"))).join("")}function ec(e,t){var r;const n=Qs(null===(r=Js())||void 0===r?void 0:r.version),i=Qs(t);switch(e){case"lt":return n<i;case"gte":return n>=i;default:return!1}}const tc=new class extends D{constructor(){super("thumbnailChange")}};const rc=new class extends D{constructor(){super("permissionsChange")}};function nc(e){const t=Js(),r=t.applicationAssetContext.constructor;if(ec("lt","9999.9999.9999")){Xs({klass:r,core:e,overrides:{getAssetWithCloudID(e,t=!1){return this.getAssetWithCloudID.original(e,t)},getAssetWithAssetRefString(e,t=!1){return this.getAssetWithAssetRefString.original(e,t)}},extensions:{getUserRepoID(){return this._userRepoID?Promise.resolve(this._userRepoID):this._core._AssetContextJS._rapi.getHomeDirectoryMetadata().then((e=>(this._userRepoID=e["repo:repositoryId"],this._userRepoID)))},transfer(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(t instanceof mo)){i.next=9;break}return i.next=3,t.getChild("working_files");case 3:if(a=i.sent){i.next=6;break}throw v.create(n.NOT_FOUND,"unable to find working_files for provided space");case 6:o=a.id,i.next=10;break;case 9:o=t.cloudID;case 10:if(s=e.repositoryID,c=t.repositoryID,"~"!==s){i.next=16;break}return i.next=15,r.getUserRepoID();case 15:s=i.sent;case 16:if("~"!==c){i.next=20;break}return i.next=19,r.getUserRepoID();case 19:c=i.sent;case 20:return l={source:{assetId:e.cloudID,repositoryId:s},target:{assetId:o,repositoryId:c}},i.abrupt("return",r._core._AssetContextJS._assetTransferService.transfer(l));case 22:case"end":return i.stop()}}),i)})))()},assetPool:{get(){return Vt("SAMCpp.ts _assetPool","AssetContext._assetPool is deprecated and will be removed on or after 2024-10-01. ItemPools are not for use by clients."),this._core._AssetContextJS._assetPool}},_assetPool:{get(){return this._core._AssetContextJS._assetPool}},isOnline:{get(){return void 0!==this.networkStatus?this.networkStatus!==za.Offline:void 0}},recentAssetsSource:{get(){return this.recentsSource}},getRootFolder(){return Promise.resolve(this.rootFolder)},assetsHaveArtifacts:t=>d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.some((e=>!e.routesToAcplV2))){r.next=2;break}return r.abrupt("return",!1);case 2:return n=new lo(e),i=co(t),r.next=6,n.hasOutputs(i);case 6:if(0!==(o=r.sent).length){r.next=9;break}return r.abrupt("return",!1);case 9:return o.forEach((e=>{const r=t.find((t=>t.id===e["repo:assetId"]));r&&(r._hasArtifacts=!0,r.dispatch({type:"change"}))})),r.abrupt("return",!0);case 11:case"end":return r.stop()}}),r)})))()},observableMap:{networkChanged:["networkStatus"],stateChanged:["cloudSyncStatus"]}});const i=({properties:e,status:t,previews:r})=>{for(var n,i,o=0,a=[...e,...t];o<a.length;o++){const e=a[o];null===(n=e._onAssetChanged)||void 0===n||n.call(e)}var c,l=s(r);try{for(l.s();!(c=l.n()).done;){const e=c.value;null===(i=null==e?void 0:e._onRenditionChanged)||void 0===i||i.call(e)}}catch(e){l.e(e)}finally{l.f()}};t.applicationAssetContext._isForwardingAssetChangeEvents||(t.applicationAssetContext.on("changedAssets",i),t.applicationAssetContext._isForwardingAssetChangeEvents=!0)}}function ic(e){const t=Js(),r={ascending:Zi.Ascending,descending:Zi.Descending},n={name:Fi.Name,modified:Fi.Modified,created:Fi.Created,shared:Fi.Shared},i=t.applicationAssetContext.rootFolder.children.constructor;ec("lt","9999.9999.9999")&&Xs({klass:i,core:e,overrides:{getList(e,t){var i,o;let a,s;const c=e;null===(o=null!==(i=c.direction)&&void 0!==i?i:c.field)||void 0===o||o?(s=r[c.direction],a=n[c.field]):(s=e,a=t,t=void 0),s=s in Zi?s:Zi.Descending,a=a in Fi?a:Fi.Modified;const l=t;let u;return u=(null==l?void 0:l.mediaTypes)?this.getListWithTypes(s,a,[...l.mediaTypes]):this.getList.original(s,a),u._addEventInterceptors(),u}}})}function oc(e){const t=Js(),r=["refreshed","movedAsset","addedAsset","removedAsset"],n=t.applicationAssetContext.rootFolder.children.getList(Zi.Descending,Fi.Modified).constructor;ec("lt","9999.9999.9999")&&Xs({klass:n,core:e,extensions:{loadNextPage(){return this.loadMoreItems()},refresh(){return this.load()},_addEventInterceptors(){this._onError||(this._onError=e=>{this._errors=this._errors||[],this._errors.push(e),this.dispatch(Xt)},this.on("error",this._onError)),this._onListNotification||(this._onListNotification=()=>{void 0===this._notificationTimer&&(this._notificationTimer=setTimeout((()=>{this._notificationTimer=void 0,this._items=this[qs].items.call(this),this.dispatch(qt),this.dispatch(Xt)}),120))},r.forEach((e=>this.on(e,this._onListNotification)))),this._onStatusChange||(this._onStatusChange=()=>{this.status===ct.Loading?this.dispatch(Xt):this._onListNotification()},this.on("statusChanged",this._onStatusChange))},errors:{get(){return this._core._environment.mobx.reportObserved(this,Xt.type),this._errors}}},overrides:{load(){this._errors=void 0,this.load.original(),this.dispatch(Xt)},loadMoreItems(){this.loadMoreItems.original(),this.dispatch(Xt)},items:{get(){return this._core._environment.mobx.reportObserved(this,qt.type),this._items||(this._items=this[qs].items.call(this)),this._items}}},observableMap:{[Xt.type]:["status"]}})}function ac(e){const t=Js().applicationAssetContext.rootFolder.constructor;ec("lt","9999.9999.9999")&&Xs({klass:t,core:e,overrides:{restore(e){return this.isLibraryElement?this._core._AssetContextJS.restoreLibraryElement(this.cloudID):this.restore.original(e)},permanentlyDelete(){return this.isLibraryElement?this._core._AssetContextJS.permanentlyDeleteLibraryElement(this.cloudID):this.permanentlyDelete.original()},duplicate(){return this.duplicate.original(!1)}},extensions:{_setCollaboratorData(e){to.prototype._setCollaboratorData.apply(this,[e]),this._isCollaboratorDataLoaded=!0,this.dispatch(Lt)},_queueCollaborators(){this._isCollaboratorDataLoaded||to.prototype._queueCollaborators.apply(this)},isShared:{get(){return this._core._environment.mobx.reportObserved(this,wt),!!this.isSharedWithYouAsset||(this._queueCollaborators(),this._isShared)}},directCollaboratorCount:{get(){return this._core._environment.mobx.reportObserved(this,wt),this._queueCollaborators(),this._directCollaboratorCount}},collaboratorArray:{get(){return this._core._environment.mobx.reportObserved(this,wt),this._queueCollaborators(),this._collaboratorsArray}},isPublicLink:{get(){return this._core._environment.mobx.reportObserved(this,wt),this._queueCollaborators(),this._isPublicLink}},id:{get(){return this.cloudID||this.localID}},removeCurrentUserFromCollaborationList(){return this._core.collaborationContext._removeCurrentUserFromCollaborationList(this)},discard(){return this.archive().then((()=>{this.routesToAcplV2||Vt("discardAsArchive",`Asset.discard(): '${this.repoPath}' will be archived rather than discarded because it routes to ACPL v1 rather than V2.`);const e=()=>{if(!this.isDiscarded||!this._hasArtifacts||!this.routesToAcplV2)return;new lo(this._core).discardOutputsForAsset(this.id).then((()=>{this._hasArtifacts=!1,this.off(R.type,e)}))};this.on(R.type,e),this.isDiscarded&&this._hasArtifacts&&e()}))},links:{get:()=>({})},hasPermission(...e){this._core._environment.mobx.reportObserved(this,rc.type);const t=!!this._permissions&&to.prototype.hasPermission.apply(this,e);return this._hasLoadedPermissions||(this._hasLoadedPermissions=!0,this._core._AssetContextJS._rapi.resolveById(this.cloudID).then((e=>e.getEffectivePermissions())).then((e=>{this._permissions=e,this.dispatch(rc)}))),t},thumbnailURL:{get(){var e;return this._core._environment.mobx.reportObserved(this,tc.type),this.isFolder||this.isLibraryElement?"":(!this._refreshThumbnail&&this._thumbnailInfo||(this._refreshThumbnail=!1,this._thumbnailStatus=mr.Fetching,this.getThumbnailRendition().then((({file:e,hash:t})=>{var r,n;if(this._thumbnailStatus=mr.Done,(null===(r=this._thumbnailInfo)||void 0===r?void 0:r.file)===e&&(null===(n=this._thumbnailInfo)||void 0===n?void 0:n.hash)===t)return;e=e.replace("#","%23").replace("^","%5E");const i=new URL(`file://${e}`);i.searchParams.append("force",t),this._thumbnailInfo={file:e,hash:t,url:i.href},this.dispatch(tc)})).catch((()=>{this._thumbnailStatus=mr.Error,this._thumbnailInfo={},this.dispatch(tc)}))),(null===(e=this._thumbnailInfo)||void 0===e?void 0:e.url)||"")}},thumbnailStatus:{get(){var e;return null!==(e=this._thumbnailStatus)&&void 0!==e?e:mr.NotStarted}},getRenditionURL(){return Vt("getRenditionURL","SAM.cpp does not support all options of getRenditionURL. Clients that run on web and desktop should use AdobeAsset.thumbnailURL instead."),this.thumbnailURL},renditionURLStatus(){return this.thumbnailStatus},clearRenditionError(){this._thumbnailStatus===mr.Error&&(this._thumbnailStatus=mr.NotStarted,this._thumbnailInfo=void 0,this._refreshThumbnail=!0,this.dispatch(tc))},_onAssetChanged(){this.dispatch(R)},_onRenditionChanged(){this._refreshThumbnail=!0,this.dispatch(tc)},transferToSpace(e){return this._core.hostAssetContext.transfer(this,e)},versions:{get(){if(this._assetVersionSource)return this._assetVersionSource;const e=new nr(this._core,"version"),t=this._core._AssetContextJS._rapi.resolveById(this.id),r=new Vi(e,t);return this._assetVersionSource=new Gi(e,[r],new Ht),this._assetVersionSource}},getCommentsResource(){return this._commentsResource||(this._commentsResource=new Ga(this._core,this.id)),this._commentsResource},hasArtifacts:{get(){return this._core._environment.mobx.reportObserved(this,"change"),this._hasArtifacts}}},defaultObservableEvent:R.type})}function sc(){const e=Js().applicationAssetContext;ec("gte","2.0.0-main.1524")&&ec("lt","9999.9999.9999")?Object.defineProperties(mo.prototype,{searchWorkingFiles:{value(){return this._searchWorkingFilesSource?Promise.resolve(this._searchWorkingFilesSource):(this._searchWorkingFilesSource=new Promise(((t,r)=>{e.spaceContext.lookupSpaceById(this.id).then((e=>{e||r(v.create(n.NOT_FOUND,`searchWorkingFiles could not find Space ${this.id}`)),t(e.searchWorkingFiles())}))})),this._searchWorkingFilesSource)}},searchArtifacts:{value(t=!1){return this._searchArtifactsSource?Promise.resolve(this._searchArtifactsSource):(this._searchArtifactsSource=new Promise(((r,i)=>{e.spaceContext.lookupSpaceById(this.id).then((e=>{e||i(v.create(n.NOT_FOUND,`searchArtifacts could not find Space ${this.id}`)),r(e.searchArtifacts(t))}))})),this._searchArtifactsSource)}}}):ec("lt","2.0.0-main.1524")&&Object.defineProperties(mo.prototype,{searchWorkingFiles:{value(){var e=this;return d(u().mark((function t(){var r,n,i,o,a,s;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._core._AssetContextJS,n=r._assetPool,i=r._ussInterface,t.next=4,e._core.hostAssetContext.getAssetWithRepoPath(`${e.pathName}/working_files`,e.repositoryID);case 4:return o=t.sent,a=new ho(n,e._core,o,i,"excludeArtifacts",!0),s=new fo({asset:o,artifactFilter:"excludeArtifacts"}),t.abrupt("return",new Gi(n,[a],s));case 8:case"end":return t.stop()}}),t)})))()}},searchArtifacts:{value(e=!1){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._core._AssetContextJS,i=n._assetPool,o=n._ussInterface,r.next=4,t._core.hostAssetContext.getAssetWithCloudID(t.id);case 4:return a=r.sent,s=new ho(i,t._core,a,o,"onlyArtifacts",e),c=new fo({asset:a,artifactFilter:"onlyArtifacts",_includeHiddenRecursive:!0}),r.abrupt("return",new Gi(i,[s],c));case 8:case"end":return r.stop()}}),r)})))()}}})}function cc(e,t){return`${e}-${t}`}function lc(e,t,r){return e.map((e=>Object.assign(Object.assign({},e),{computedID:cc(e["project:gradientId"],r),"project:gradientData":Object.assign(Object.assign({},e["project:gradientData"]),{isDefault:t===e["project:gradientId"],languageCode:r})})))}class uc{constructor(e){var t,r;this._mediaTypes=void 0,this._excludeMediaTypes=void 0,(null==e?void 0:e.mediaTypes)&&(this._mediaTypes=new Set(e.mediaTypes)),(null==e?void 0:e.excludeMediaTypes)&&(this._excludeMediaTypes=new Set(e.excludeMediaTypes)),(null===(t=null==e?void 0:e.mediaTypes)||void 0===t?void 0:t.length)&&(null===(r=null==e?void 0:e.excludeMediaTypes)||void 0===r?void 0:r.length)&&(this._mediaTypes=new Set([]),console.warn("Both mediaTypes and excludeMediaTypes should not be specified while creating AdobeAssetFilter, setting default value for mediaTypes"))}get hash(){var e,t;let r="mediatypes="+((null===(e=this._mediaTypes)||void 0===e?void 0:e.size)?`${[...this._mediaTypes].sort().join(",")}`:"all-types");return r+=":excludemediatypes="+((null===(t=this._excludeMediaTypes)||void 0===t?void 0:t.size)?`${[...this._excludeMediaTypes].sort().join(",")}`:"none"),r}get mediaTypes(){return this._mediaTypes}get excludeMediaTypes(){return this._excludeMediaTypes}get name(){return"AdobeAssetFilter"}matches(e){var t,r;return(!(null===(t=this._excludeMediaTypes)||void 0===t?void 0:t.size)||!this._excludeMediaTypes.has(e.mediaType))&&(!(null===(r=this._mediaTypes)||void 0===r?void 0:r.size)||this._mediaTypes.has(e.mediaType))}getRelationToFilter(e){const t=this.getMediaRelationToFilter(e);return"disjoint"===t?"disjoint":"unknown"===t?"unknown":t}getMediaRelationToFilter(e){var t,r,n,i,o,a,c,l,u,p,d,h;let f;function m(e,t){let r=!0,n=!1;var i,o=s(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;t.has(e)?n=!0:r=!1}}catch(e){o.e(e)}finally{o.f()}return n?r?f.subset:f.intersaction:f.disjoint}!function(e){e[e.uninitialized=0]="uninitialized",e[e.subset=1]="subset",e[e.disjoint=2]="disjoint",e[e.intersaction=3]="intersaction"}(f||(f={}));let g=f.uninitialized,v=f.uninitialized,y=f.uninitialized,b=f.uninitialized;return(null===(t=this._mediaTypes)||void 0===t?void 0:t.size)&&(null===(r=e._mediaTypes)||void 0===r?void 0:r.size)&&(g=m(this._mediaTypes,e._mediaTypes)),(null===(n=this._mediaTypes)||void 0===n?void 0:n.size)&&(null===(i=e._excludeMediaTypes)||void 0===i?void 0:i.size)&&(v=m(this._mediaTypes,e._excludeMediaTypes)),(null===(o=this._excludeMediaTypes)||void 0===o?void 0:o.size)&&(null===(a=e._mediaTypes)||void 0===a?void 0:a.size)&&(y=m(e._mediaTypes,this._excludeMediaTypes)),(null===(c=this._excludeMediaTypes)||void 0===c?void 0:c.size)&&(null===(l=e._excludeMediaTypes)||void 0===l?void 0:l.size)&&(b=m(e._excludeMediaTypes,this._excludeMediaTypes)),y===f.subset||v===f.subset||g===f.disjoint?"disjoint":b===f.intersaction||y===f.intersaction||v===f.intersaction||g===f.intersaction?"unknown":(null===(u=this._mediaTypes)||void 0===u?void 0:u.size)||(null===(p=this._excludeMediaTypes)||void 0===p?void 0:p.size)||!(null===(d=e._mediaTypes)||void 0===d?void 0:d.size)&&!(null===(h=e._excludeMediaTypes)||void 0===h?void 0:h.size)?"subset":"unknown"}}class pc{constructor(e){const t=e.asset,r=e.mediaTypes,n=e.excludeMediaTypes,i=_(e,["asset","mediaTypes","excludeMediaTypes"]);this._implicitDirectoryListingFilter=new Wi(Object.assign({asset:t},i)),(r||n)&&(this._adobeAssetFilter=new uc({mediaTypes:r,excludeMediaTypes:n}))}get hash(){var e,t;return[null===(e=this._implicitDirectoryListingFilter)||void 0===e?void 0:e.hash,null===(t=this._adobeAssetFilter)||void 0===t?void 0:t.hash].filter((e=>!!e)).join(":")}getRelationToFilter(e){return this._adobeAssetFilter&&e._adobeAssetFilter&&"disjoint"===this._adobeAssetFilter.getRelationToFilter(e._adobeAssetFilter)||this._implicitDirectoryListingFilter&&e._implicitDirectoryListingFilter&&"disjoint"===this._implicitDirectoryListingFilter.getRelationToFilter(e._implicitDirectoryListingFilter)?"disjoint":this._adobeAssetFilter&&e._adobeAssetFilter&&"unknown"===this._adobeAssetFilter.getRelationToFilter(e._adobeAssetFilter)||this._implicitDirectoryListingFilter&&e._implicitDirectoryListingFilter&&"unknown"===this._implicitDirectoryListingFilter.getRelationToFilter(e._implicitDirectoryListingFilter)?"unknown":"subset"}matches(e){return!(this._adobeAssetFilter&&!this._adobeAssetFilter.matches(e))&&!(this._implicitDirectoryListingFilter&&!this._implicitDirectoryListingFilter.matches(e))}get mediaTypes(){var e;return null===(e=this._adobeAssetFilter)||void 0===e?void 0:e.mediaTypes}}class dc extends to{constructor(e,t,r){super(e,t,r),this._core=e,this._description="",this._projectPermissions=kt.All,this._assetClass="directory",this._projectInterface=new ta(this._core),this.isProject=!0,this._repositoryOwner={id:"",type:"user"},this._projectLinks=null==r?void 0:r.projectLinks,this._needsRepoMetadata=!0,ii.manageLazyLoading(this,[{event:R,fetchData:this._getGradient}])}get gradientID(){var e;return null!==(e=this._gradientID)&&void 0!==e?e:""}get gradient(){return this._gradient}_getGradient(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.projectContext.getGradient(e.gradientID);case 2:e._gradient=t.sent;case 3:case"end":return t.stop()}}),t)})))()}get description(){return Vt("Description Not yet Supported","Currently the description field is not supported by the service."),this._description}_load({repoMetadata:e,appMetadata:t,effectivePermission:r,projectMetadata:n}={}){var i=()=>super._load,o=this;return d(u().mark((function a(){var s;return u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i().call(o,{repoMetadata:e,appMetadata:t,effectivePermission:r});case 2:if(o._needsRepoMetadata=!1,n){a.next=7;break}return a.next=6,o._projectInterface.getProject(o.id);case 6:n=a.sent;case 7:s=o._core.projectContext._assetPool.createMutationSession(),o._core.projectContext._projectUpdater.updateRemoteItem(s,n),s.commit();case 10:case"end":return a.stop()}}),a)})))()}get projectLinks(){return this._projectLinks}get creator(){return this._creator}get view(){return this._view}move(e){return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Vt("[MOVE_UNSUPPORTED]",`Move on a project is not supported ${e}`),t.abrupt("return");case 2:case"end":return t.stop()}}),t)})))()}rename(e){var t=this;return d(u().mark((function r(){var i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null===(i=t._projectLinks)||void 0===i?void 0:i[z.PROJECTS_RENAME]){r.next=2;break}throw v.create(n.BAD_REQUEST,"Rename link is missing for this project.");case 2:if(Lr(e)){r.next=4;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for asset rename operation.");case 4:return r.next=6,t._projectInterface.renameProject(e,t._projectLinks);case 6:o=t._core.projectContext._assetPool,a=o.createUpdateSession(),s=Ar(e,t),kr({assetPool:t._core.hostAssetContext._assetPool,asset:t,session:a,operation:{type:"rename",newPath:s}}),t._core.projectContext._projectUpdater.updateLocalItem(a,t,{"repo:name":e,"repo:path":s}),a.commit();case 12:case"end":return r.stop()}}),r)})))()}discard(){var e=this;return d(u().mark((function t(){var r,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}throw v.create(n.INVALID_OPERATION,"Asset is already discarded");case 2:return t.next=4,e._ensureLink(z.DISCARD);case 4:return t.next=6,e._projectInterface.discardProject(e.id,e._projectLinks);case 6:r=e._core.projectContext._assetPool,i=r.createUpdateSession(),kr({assetPool:e._core.hostAssetContext._assetPool,asset:e,session:i,operation:{type:"discard"}}),e._core.projectContext._projectUpdater.updateLocalItem(i,e,{"repo:state":"DISCARDED"}),i.commit();case 11:case"end":return t.stop()}}),t)})))()}restore(){var e=this;return d(u().mark((function t(){var r,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isDiscarded){t.next=2;break}throw v.create(n.INVALID_OPERATION,"Cannot restore an asset that is not discarded");case 2:return t.next=4,e._ensureLink(z.RESTORE);case 4:return t.next=6,e._projectInterface.restoreProject(e.id,e._projectLinks);case 6:r=e._core.projectContext._assetPool,i=r.createUpdateSession(),kr({assetPool:e._core.hostAssetContext._assetPool,asset:e,session:i,operation:{type:"restore"}}),e._core.projectContext._projectUpdater.updateLocalItem(i,e,{"repo:state":"ACTIVE"}),i.commit();case 11:case"end":return t.stop()}}),t)})))()}_updateProjectLinksFromService(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._projectInterface.getProject(e.id);case 2:r=t.sent,n=r._links,i=e._core.projectContext._assetPool,o=i.createUpdateSession(),e._core.projectContext._projectUpdater.updateLocalItem(o,e,{_links:n}),o.commit();case 8:case"end":return t.stop()}}),t)})))()}_isProjectLinkType(e){return[z.CREATE,z.RESTORE,z.DISCARD,z.PROJECTS_RENAME,z.PAGE].includes(e)}_ensureLink(e){var t=()=>super._ensureLink,r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r._isProjectLinkType(e)){n.next=9;break}if(null===(i=r._projectLinks)||void 0===i?void 0:i[e]){n.next=4;break}return n.next=4,r._updateProjectLinksFromService();case 4:return o=Object.assign(Object.assign({},r.__links),{[e]:r._projectLinks[e]}),a=r._core.hostAssetContext._assetPool.createUpdateSession(),r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(a,r,{_links:o}),a.commit(),n.abrupt("return");case 9:return r._core._environment.debug(`ProjectLinkMissing ${e} Link ${e} missing on project, called out fetch it`),n.next=12,t().call(r,e);case 12:case"end":return n.stop()}}),n)})))()}validateProjectNameForRename(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.toLowerCase()!==t.name.toLowerCase()){r.next=2;break}return r.abrupt("return",!0);case 2:return r.next=4,t._core.projectContext.validateProjectNameForCreate(e,t);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}updateProperties(){return d(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}leaveStatus(){const e=this.collaboratorArray;if(!this._isCollaboratorDataLoaded)return Zt.PENDING;if(0===e.length)return Zt.CANNOT_LEAVE_NO_COLLABORATORS;const t=e.find((e=>e.isCurrentUser));if(!t)return Zt.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER;if("owner"===t.role)return Zt.CANNOT_LEAVE_IS_OWNER;if(!t.isDirect&&t.isAdmin)return Zt.CANNOT_LEAVE_IS_ADMIN_OF_PROJECT;if(1===e.length)return Zt.CANNOT_LEAVE_LAST_COLLABORATOR;return e.find((e=>e.canShare&&e.isDirect&&e!==t))||"user"===this.storageAssignee.type?t.isDirect?Zt.CAN_LEAVE:Zt.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER:Zt.CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION}userCanLeaveProject(){Vt("userCanLeaveProject Deprecated","Use Project.leaveStatus instead. This will be removed on or after 2024-10-01.");switch(this.leaveStatus()){case Zt.PENDING:return;case Zt.CAN_LEAVE:return!0;case Zt.CANNOT_LEAVE_NO_COLLABORATORS:case Zt.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER:case Zt.CANNOT_LEAVE_LAST_COLLABORATOR:case Zt.CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION:case Zt.CANNOT_LEAVE_IS_ADMIN_OF_PROJECT:case Zt.CANNOT_LEAVE_IS_OWNER:return!1}}hasPermission(...e){return e.every((e=>(this._projectPermissions&e)===e))}updateProject(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.projectContext.updateProject(t.id,e);case 2:case"end":return r.stop()}}),r)})))()}_applyRestorePermission(e){this._core.projectContext._getCachedRestoreCapability(this.repositoryID)?this._projectPermissions|=kt.Restore:this._projectPermissions&=~kt.Restore,this._core.projectContext._projectUpdater.updateLocalItem(e,this,{projectPermissions:this._projectPermissions})}_reloadPermissions(){var e=()=>super._reloadPermissions,t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._load();case 2:e().call(t);case 3:case"end":return r.stop()}}),r)})))()}get librariesSource(){const e=new Ti(this._core.hostAssetContext._assetPool,this,this._core,!0,!0),t=new pc({asset:this,mediaTypes:[Sa],_isSharedWithYou:!0});return new Gi(this._core.hostAssetContext._assetPool,[e],t)}get repositoryOwner(){return this._repositoryOwner}createLibrary(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.getLibraryContext();case 2:return n=r.sent,i={name:e.name,parent_assetId:t.id,roles:e.roles},void 0!==e.restrictEdit&&(i.access=e.restrictEdit?"team_view":"team_edit"),r.abrupt("return",n._createLibrary(i));case 6:case"end":return r.stop()}}),r)})))()}}E([Z],dc.prototype,"gradientID",null),E([oi(R,"_gradient")],dc.prototype,"gradient",null),E([Z],dc.prototype,"description",null),E([oi(Lt,"_collaboratorsArray")],dc.prototype,"leaveStatus",null),E([Z],dc.prototype,"hasPermission",null),E([k],dc.prototype,"librariesSource",null),E([Z],dc.prototype,"repositoryOwner",null);const hc=new pi({localItemType:dc,remoteIdProperty:"repo:assetId",propertyUpdater:new Ei({_repositoryID:"repo:repositoryId",_path:"repo:path",_etag:"repo:etag",_view:{name:"project:view",get:function(e){switch(e["project:view"]){case"sharedWithYou":return Mt.SWY;case"yours":return Mt.Yours;default:return}},format:"number"},_created:{name:"repo:createDate",format:"date"},_description:"description",_name:"repo:name",_assetState:{name:"repo:state",choices:An},_storageAssignee:{name:"storage:assignee",format:no},_projectLinks:{name:"_links",format:"object"},_creator:{name:`_embedded[${z.PROJECTS_CREATOR}]`,format:"object"},_createdBy:`_embedded[${z.PROJECTS_CREATOR}].id`,_gradientID:{name:`_embedded[${z.APP_METADATA}][project:rendition].gradientId`,set:(e,t)=>{const r=t;if(!e)return void(r._gradientID="");const n=cc(e,r._core._environment.getValue("LOCALE"));r._gradientID!==n&&(r._gradientID=n,ii.setLoadStatus(r,N,ni.NotLoaded))}},_projectPermissions:{get:function(e){var t;return(null===(t=e._embedded)||void 0===t?void 0:t[z.AC_EFFECTIVE])?function(e){const t=e[z.PROJECTS_PRIMARY]||e["*"]||[],r=e[z.PRIMARY]||e["*"]||[],n=e[z.DIRECTORY]||e["*"]||[];let i=kt.None;return t.forEach((e=>{switch(e){case"ack":i|=kt.Ack;break;case"read":i|=kt.Read;break;case"rename":i|=kt.Rename;break;case"discard":i|=kt.Discard;break;case"restore":i|=kt.Restore}})),r.forEach((e=>{switch(e){case"write":i|=kt.Write;break;case"delete":n.includes("write")&&(i|=kt.Delete)}})),i}(e._embedded[z.AC_EFFECTIVE]):di},format:"number"},_repositoryOwner:{name:`_embedded[${z.REPOSITORY}][repo:owner]`,format:no}})}),fc={name:"repo:name",created:"repo:createDate"},mc={name:(e,t)=>Mn(e.name,t.name),created:(e,t)=>jn(e.created,t.created)};class gc extends(Zn(mc)){}gc.default=new gc("ascending","name");class vc{constructor(e,t,r){this._projectPool=e,this._projectInterface=t,this._projectUpdater=r}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f,m,g,v;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.order,o=e.limit,a=e.filter,s=r._projectPool._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),c=Date.now()-s,!t){n.next=9;break}return n.next=6,r._projectInterface.getProjectsWithLink(t);case 6:l=n.sent,n.next=15;break;case 9:return d=(null==(p=a)?void 0:p.view)?{view:Ut(p.view)}:{},h=(null==p?void 0:p.repositoryID)?{repositoryId:p.repositoryID}:{},n.next=14,r._projectInterface.getProjects(Object.assign(Object.assign({orderBy:fc[i.field],orderDirection:i.direction,limit:o},d),h));case 14:l=n.sent;case 15:return f=r._projectPool.createLoaderUpdateSession(c),m=r._projectUpdater.updateRemoteItems(f,l.children),f.commit(),(v=l._links.next)&&(g=e=>r._loadPage(e,v)),n.abrupt("return",{items:m,total:l._page.total,loadNextPage:g,mostRecentValidMutation:c});case 21:case"end":return n.stop()}}),n)})))()}}class yc{constructor(e){this._isDiscarded=!1,this._view=Mt.All;const t=null!=e?e:{},r=t._isDiscarded,n=t.view,i=t.repositoryID;this._isDiscarded=!!r,void 0!==n&&(this._view=n),i&&(this._repositoryID=i)}get hash(){return`discarded=${this._isDiscarded}view=${this._view}repositoryId=${this._repositoryID}`}get view(){return this._view}get repositoryID(){return this._repositoryID}matches(e){if(!e.isProject)return!1;if(e.isDiscarded!==this._isDiscarded)return!1;if(this._repositoryID&&this._repositoryID!==e.repositoryID)return!1;if(this._view===Mt.Admin)return!0;return!(this._view!==Mt.All&&this._view&&this._view!==e.view)}getRelationToFilter(e){return this._repositoryID!==e.repositoryID||this._isDiscarded!==e._isDiscarded||this._view!==e.view&&[Mt.SWY,Mt.Yours].includes(this._view)&&[Mt.SWY,Mt.Yours].includes(e.view)?"disjoint":this._view===e.view||e.view===Mt.Admin||e.view===Mt.All&&this.view!==Mt.Admin?"subset":"unknown"}}yc.YourProjects=new yc({view:Mt.Yours}),yc.AllProjects=new yc({view:Mt.All}),yc.SWYProjects=new yc({view:Mt.SWY}),yc.AdminProjects=new yc({view:Mt.Admin});const bc=new pi({localItemType:class extends Rn{constructor(){super(...arguments),this._isDefault=!1,this._type="",this._angle=0,this._stops=[],this._name="",this._languageCode="",this._gradientID="",this._textAlpha=1,this._textMode="RGB",this._textColorValue={r:0,g:0,b:0},this._textType="process"}get isDefault(){return this._isDefault}get type(){return this._type}get angle(){return this._angle}get stops(){return this._stops}get name(){return this._name}get languageCode(){return this._languageCode}get gradientID(){return this._gradientID}get textAlpha(){return this._textAlpha}get textMode(){return this._textMode}get textColorValue(){return this._textColorValue}get textType(){return this._textType}},remoteIdProperty:"computedID",propertyUpdater:new Ei({_isDefault:{name:"project:gradientData.isDefault",format:"boolean"},_type:{name:"project:gradientData.type",format:"string"},_angle:{name:"project:gradientData.angle",format:"string"},_name:{name:"project:gradientName",format:"string"},_stops:{name:"project:gradientData.stops",format:"object"},_languageCode:{name:"project:gradientData.languageCode",format:"string"},_gradientID:"project:gradientId",_textAlpha:{name:"project:gradientTextColor.alpha",format:"number"},_textMode:{name:"project:gradientTextColor.mode",format:"string"},_textColorValue:{name:"project:gradientTextColor.value",format:"object"},_textType:{name:"project:gradientTextColor.type",format:"string"}})});class _c{constructor(e,t){this._core=e,this._assetPool=t,this._projectInterface=new ta(this._core),this._gradientPool=new nr(this._core,"gradient"),this._canRestoreProjectCache=new Map,this._projectUpdater=hc,this._core.on(bt,((e,t,r)=>{"LOCALE"===r.configurationKeyName&&this._getGradients()}))}get assetPool(){return Vt("ProjectContext._assetPool","This property is deprecated and will be removed on or after 10-01-2024. For internal use by SAM.js only."),this._assetPool}projects(){const e=new vc(this._assetPool,this._projectInterface,this._projectUpdater);return new Gi(this._assetPool,[e],yc.AllProjects)}createProject(e){var t=this;return d(u().mark((function r(){var i,o,a,s,c,l,p;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=e.name,o=e.gradientID,a=e.repositoryID,Lr(i)){r.next=3;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for the rename operation.");case 3:return r.next=5,t.getGradient(o);case 5:return s=r.sent,r.next=8,t._projectInterface.createProject(Object.assign({[z.APP_METADATA]:{"project:rendition":{gradientId:s.gradientID}},"repo:name":i},a?{"repo:repositoryId":a}:{}));case 8:return c=r.sent,l=t._assetPool.createMutationSession(),p=t._projectUpdater.updateRemoteItem(l,c),l.commit(),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)})))()}resolveProjectByName(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._projectInterface.resolveProjectByName(e);case 2:return n=r.sent,i=n["repo:assetId"],t._core.collaborationContext.confirmAccess(i),o=t._assetPool.createMutationSession(),a=t._projectUpdater.updateRemoteItem(o,n),o.commit(),r.abrupt("return",a);case 9:case"end":return r.stop()}}),r)})))()}validateProjectNameForCreate(e,t,r){var i=this;return d(u().mark((function o(){var a,s;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(Lr(e)){o.next=2;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for asset rename operation.");case 2:return a=e,t&&(a=Ar(e,t)),o.prev=4,o.next=7,i._projectInterface.validateProjectName(a,r);case 7:o.next=19;break;case 9:if(o.prev=9,o.t0=o.catch(4),(s=o.t0).code!==n.NOT_FOUND){o.next=16;break}return o.abrupt("return",!0);case 16:if(s.code!==n.CONFLICT){o.next=18;break}return o.abrupt("return",!1);case 18:throw o.t0;case 19:return o.abrupt("return",!1);case 20:case"end":return o.stop()}}),o,null,[[4,9]])})))()}getProjectbyID(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._assetPool.getLocalItemById(e))){r.next=4;break}return t._core.collaborationContext.confirmAccess(e),r.abrupt("return",n);case 4:return r.next=6,t._core.collaborationContext.confirmAccess(e);case 6:return r.next=8,t._projectInterface.getProject(e);case 8:return i=r.sent,o=t._assetPool.createMutationSession(),n=t._projectUpdater.updateRemoteItem(o,i),o.commit(),r.abrupt("return",n);case 13:case"end":return r.stop()}}),r)})))()}_getGradients(){var e=this;return d(u().mark((function t(){var r,n,i,o,a,s;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._core._environment.getValue("LOCALE"),t.next=3,e._projectInterface.getGradients(r);case 3:return n=t.sent,i=n.default,o=e._gradientPool.createUpdateSession(),a=lc(n.children,i,r),s=bc.updateRemoteItems(o,a),o.commit(),t.abrupt("return",s);case 10:case"end":return t.stop()}}),t)})))()}getGradients(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getGradients();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getGradient(e){var t=this;return d(u().mark((function r(){var i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=t._gradientPool.getLocalItemById(e),o=t._core._environment.getValue("LOCALE"),!i||i.languageCode!==o){r.next=4;break}return r.abrupt("return",i);case 4:return r.next=6,t._getGradients();case 6:if(a=t._gradientPool.getLocalItemById(e)){r.next=14;break}if(!t._defaultGradient||t._defaultGradient.languageCode!==o){r.next=10;break}return r.abrupt("return",t._defaultGradient);case 10:if(t._gradientPool.forEach((e=>{e.isDefault&&(t._defaultGradient=e)})),!t._defaultGradient){r.next=13;break}return r.abrupt("return",t._defaultGradient);case 13:throw v.create(n.UNKNOWN,`Gradient ID does not exist ${e}`);case 14:return r.abrupt("return",a);case 15:case"end":return r.stop()}}),r)})))()}updateProject(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={},!t.gradientID){n.next=15;break}return n.next=4,r.getGradient(t.gradientID);case 4:return o=n.sent,n.next=7,r.getProjectbyID(e);case 7:return a=n.sent,s=a.projectLinks,i=Object.assign(Object.assign({},i),{gradientID:o.gradientID}),n.next=12,r._projectInterface.patchProject(s,i);case 12:c=r._assetPool.createMutationSession(),r._projectUpdater.updateRemoteItem(c,{"repo:assetId":a.id,_embedded:{[z.APP_METADATA]:{"project:rendition":{gradientId:o.gradientID}}}}),c.commit();case 15:case"end":return n.stop()}}),n)})))()}canCreateProjects(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t._projectInterface.getCapability(jt.CREATE,e);case 3:return r.abrupt("return",!0);case 6:if(r.prev=6,r.t0=r.catch(0),b(r.t0)){r.next=10;break}throw r.t0;case 10:return r.abrupt("return",!1);case 11:case"end":return r.stop()}}),r,null,[[0,6]])})))()}_canRestoreProject(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._canRestoreProjectCache.has(e)){r.next=2;break}return r.abrupt("return",t._canRestoreProjectCache.get(e));case 2:return r.next=4,t.canCreateProjects(e);case 4:return n=r.sent,t._canRestoreProjectCache.set(e,n),r.abrupt("return",n);case 7:case"end":return r.stop()}}),r)})))()}_getCachedRestoreCapability(e){return this._canRestoreProjectCache.get(e)||!1}canCreateProjectReason(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t._projectInterface.getCapability(jt.CREATE,e);case 3:return r.abrupt("return",Ft.ALLOWED);case 6:if(r.prev=6,r.t0=r.catch(0),b(r.t0)){r.next=10;break}return r.abrupt("return",Ft.UNKNOWN);case 10:r.t1=r.t0.subCode,r.next=r.t1===i.PROJECTS_ADMIN_ONLY?13:r.t1===i.PROJECTS_NO_HOME_REPOSITORY?14:r.t1===i.PROJECTS_INVALID_REPOSITORY?15:16;break;case 13:return r.abrupt("return",Ft.ADMIN_DISABLED);case 14:return r.abrupt("return",Ft.NO_HOME_REPOSITORY);case 15:return r.abrupt("return",Ft.INVALID_REPOSITORY);case 16:return r.abrupt("return",Ft.UNKNOWN);case 17:case"end":return r.stop()}}),r,null,[[0,6]])})))()}getProjectsSearchSource(e){const t=new jo({_query:e,_projectsOnly:!0}),r=new $o(this._core.hostAssetContext._assetPool,this._core,this._core.hostAssetContext._globalSearchInterfaceV3,t);return new Gi(this._assetPool,[r],t)}_callContextAPI(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._projectInterface.discoverLinks();case 2:return i=n.sent,o=i[z.PROJECTS_CONTEXT].href,n.next=6,r._projectInterface._issueContextAPIRequest(e,t,o);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))()}}var Ec,wc,Lc,xc,Sc,Oc,Tc,Ic,Pc,Cc;E([k],_c.prototype,"projects",null),function(e){e.GC="GC"}(Ec||(Ec={})),function(e){e.STUDENT="STUDENT",e.TEACHER="TEACHER"}(wc||(wc={})),function(e){e.BLOCKED="BLOCKED",e.INVITED="INVITED",e.JOINED="JOINED",e.NOT_ENROLLED="NOT_ENROLLED",e.REMOVED="REMOVED"}(Lc||(Lc={})),function(e){e.CLEVER="clever",e.CLASS_LINK="classlink"}(xc||(xc={})),function(e){e.ACTIVE="ACTIVE",e.ARCHIVED="ARCHIVED"}(Sc||(Sc={})),function(e){e.TRUE="TRUE",e.RESTRICTED="RESTRICTED",e.UNRESTRICTED="UNRESTRICTED",e.NONE="NONE"}(Oc||(Oc={})),function(e){e.noSubject="",e.allsubjects="allsubjects",e.careersTechnicalEducation="careersTechnicalEducation",e.computerScience="computerScience",e.english="english",e.math="math",e.otherLanguages="otherLanguages",e.others="others",e.science="science",e.socialStudies="socialStudies",e.visualPerformingArts="visualPerformingArts"}(Tc||(Tc={})),function(e){e.STUDENT="STUDENT",e.TEACHER="TEACHER"}(Ic||(Ic={})),function(e){e.REMOVE_STUDENT_SUCCESS="REMOVE_STUDENT_SUCCESS",e.BLOCK_STUDENT_SUCCESS="BLOCK_STUDENT_SUCCESS",e.UNBLOCK_STUDENT_SUCCESS="UNBLOCK_STUDENT_SUCCESS",e.DELETE_DOMAIN_MAPPING_ACCEPTED="DELETE_DOMAIN_MAPPING_ACCEPTED"}(Pc||(Pc={})),function(e){e.OWNER="OWNER",e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.INVITED="INVITED",e.IN_REVIEW="IN_REVIEW",e.DECLINED="DECLINED",e.NOT_A_MEMBER="NOT_A_MEMBER"}(Cc||(Cc={}));const Ac={"Content-Type":G};function kc(e){const t=[],r=[{key:"subject",type:"enum",isRequired:!1,ref:Tc},{key:"grades",type:"string[]",isRequired:!1},{key:"period",type:"string",isRequired:!1}];t.push(...ua(r,e));const n="string"==typeof e.name&&null!==e.name,i="string"==typeof e.id&&null!==e.id;return n||i||t.push("name or id is missing"),t}class Dc extends be{_monitorResponse(e){return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}}),t)})))()}_getUrl(e){return`https://${this._core._environment.endpoints.CLASSROOMS_HOST}${e}`}createClassroom(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getUrl("/api/v1/classrooms"),Ac,JSON.stringify({className:e.name,subject:e.subject,grades:e.grades,period:e.period}),[201]);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()}createClassroomFromVirtual(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getUrl(`/api/v1/classrooms/virtual/${e}/create`),{"Content-Type":G},void 0,[201]);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()}updateClassroomFromVirtual(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(r._getUrl(`/api/v1/classrooms/virtual/${e}/update`),{"Content-Type":G},JSON.stringify({className:t.name,subject:t.subject,grades:t.grades,period:t.period}),[201]);case 2:return i=n.sent,n.next=5,i.json();case 5:return o=n.sent,n.abrupt("return",o);case 7:case"end":return n.stop()}}),n)})))()}deleteClassroom(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v1/classrooms/${e}`),Ac,[202]);case 2:case"end":return r.stop()}}),r)})))()}deleteVirtualClassroom(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getUrl(`/api/v1/classrooms/virtual/${e}/delete`),Ac,void 0,[202]);case 2:case"end":return r.stop()}}),r)})))()}getClassroom(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getResponse(t._getUrl(`/api/v1/classrooms/${e}`)),r.abrupt("return",n.then((e=>{var t;return null!==(t=e.importedFrom)&&void 0!==t||(e.importedFrom={}),e})));case 2:case"end":return r.stop()}}),r)})))()}getClassrooms(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._getResponse(e._getUrl("/api/v1/classrooms")),t.abrupt("return",r.then((e=>e.map((e=>{var t;return null!==(t=e.importedFrom)&&void 0!==t||(e.importedFrom={}),e})))));case 2:case"end":return t.stop()}}),t)})))()}refreshClassroomCode(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._doPut(t._getUrl(`/api/v1/classrooms/${e}/code/refresh`),void 0,void 0,[200]).then((e=>e.json())));case 1:case"end":return r.stop()}}),r)})))()}updateClassroom(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPatch(r._getUrl(`/api/v1/classrooms/${e}`),{"Content-Type":G},JSON.stringify({className:t.name,subject:t.subject,grades:t.grades,period:t.period}));case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}getClassroomTeachers(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.getClassroomMembers(e,aa.TEACHER));case 1:case"end":return r.stop()}}),r)})))()}getClassroomStudents(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getClassroomMembers(e,aa.STUDENT);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getClassroomMembers(e,t){var r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t===aa.NONE?"":`/${t}s`,o=`/api/v1/classrooms/${e}/members${i}`,n.next=4,r._getResponse(r._getUrl(o));case 4:return(a=n.sent).members.forEach((t=>{t.classroomId=e,t.computedKey=pa(e,t.role)})),n.abrupt("return",a.members);case 7:case"end":return n.stop()}}),n)})))()}getMembership(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(t._getUrl(`/api/v1/classrooms/${e}/members/status`)));case 1:case"end":return r.stop()}}),r)})))()}blockStudent(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(r._getUrl(`/api/v1/classrooms/${e}/members/students/block`),Ac,JSON.stringify({studentId:t}),[200]);case 2:return i=n.sent,n.next=5,i.json();case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}unblockStudent(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(r._getUrl(`/api/v1/classrooms/${e}/members/students/unblock`),Ac,JSON.stringify({studentId:t}),[200]);case 2:return i=n.sent,n.next=5,i.json();case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}removeStudent(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doDelete(r._getUrl(`/api/v1/classrooms/${e}/members/students?studentId=${t}`),Ac,[202]);case 2:return i=n.sent,n.next=5,i.json();case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}}class Nc extends Rn{constructor(){super(...arguments),this._classroomId="",this._displayName="",this._email="",this._firstName="",this._inviteSource=ca.NONE,this._lastName="",this._membershipStatus=sa.NOT_A_MEMBER,this._role=aa.NONE,this._userId=""}get classroomId(){return this._classroomId}get displayName(){return this._displayName}get email(){return this._email}get firstName(){return this._firstName}get inviteSource(){return this._inviteSource}get lastName(){return this._lastName}get membershipStatus(){return this._membershipStatus}get role(){return this._role}get userId(){return this._userId}}E([Z],Nc.prototype,"classroomId",null),E([Z],Nc.prototype,"displayName",null),E([Z],Nc.prototype,"email",null),E([Z],Nc.prototype,"firstName",null),E([Z],Nc.prototype,"inviteSource",null),E([Z],Nc.prototype,"lastName",null),E([Z],Nc.prototype,"membershipStatus",null),E([Z],Nc.prototype,"role",null),E([Z],Nc.prototype,"userId",null);const Rc=new pi({localItemType:Nc,remoteIdProperty:"computedKey",propertyUpdater:new Ei({_classroomId:{name:"classroomId",format:"string"},_displayName:{name:"displayName",format:"string"},_email:{name:"email",format:"string"},_firstName:{name:"firstName",format:"string"},_inviteSource:{name:"inviteSource",format:"string",choices:Object.values(ca)},_lastName:{name:"lastName",format:"string"},_membershipStatus:{name:"membershipStatus",format:"string",choices:Object.values(sa)},_role:{name:"role",format:"string",choices:Object.values(aa)},_userId:{name:"userId",format:"string"}})});class Mc{constructor(e,t){this._ClassroomMemberPool=e,this._classroomsInterface=t}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function t(){var n,i,o,a,s;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.filter,i=n,t.next=4,r._classroomsInterface.getClassroomMembers(i.classroomId,i.role);case 4:return o=t.sent,a=r._ClassroomMemberPool.createLoaderUpdateSession(Date.now()),s=Rc.updateRemoteItems(a,o),a.commit(),t.abrupt("return",{items:s,total:s.length,loadNextPage:void 0});case 9:case"end":return t.stop()}}),t)})))()}}class jc{constructor(e){this.classroomId=e.classroomId||"",this.role=e.role||aa.NONE,this.computedKey=e.classroomId&&e.role&&pa(e.classroomId,e.role)||""}matches(e){return(!this.role||this.role===aa.NONE||e.id===this.computedKey)&&(!(!this.role||this.role===aa.NONE)||(e.id===pa(this.classroomId,aa.STUDENT)||e.id===pa(this.classroomId,aa.TEACHER)))}getRelationToFilter(){return"unknown"}get hash(){return`userId=${pa(this.classroomId,this.role)}`}}const Zc=Object.values(Tc);class Fc extends Rn{constructor(e,t){super(e,t),this._core=e,this._code="",this._importSource={},this._isDeleted=!1,this._isVirtual=!1,this._grades=[],this._memberRole=aa.NONE,this._name="",this._period="",this._status=Sc.ACTIVE,this._subject=Tc.noSubject,this._classroomsInterface=new Dc(this._core);const r=new Mc(this._core.classroomContext._classroomMemberPool,this._classroomsInterface);this._members=new Gi(this._core.classroomContext._classroomMemberPool,[r],new jc({classroomId:this.id}))}get code(){return this._code}get created(){if(this._created)return new Date(this._created)}get importSource(){return this._importSource}get isDeleted(){return this._isDeleted}get isVirtual(){return this._isVirtual}get grades(){return this._grades}get members(){return this._members?this._members:new Gi(this._core.classroomContext._classroomMemberPool,[new Mc(this._core.classroomContext._classroomMemberPool,this._classroomsInterface)],new jc({classroomId:this.id}))}get memberRole(){return this._memberRole}get name(){return this._name}get period(){return this._period}get status(){return this._status}get subject(){return this._subject}get type(){return this._type}get userCount(){return this._userCount}delete(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._classroomsInterface.deleteClassroom(e.id);case 2:case"end":return t.stop()}}),t)})))()}refreshCode(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._classroomsInterface.refreshClassroomCode(e.id);case 1:case"end":return t.stop()}}),t)})))()}update(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core.classroomContext.updateClassroom(t.id,e));case 1:case"end":return r.stop()}}),r)})))()}}E([Z],Fc.prototype,"code",null),E([Z],Fc.prototype,"created",null),E([Z],Fc.prototype,"importSource",null),E([Z],Fc.prototype,"isDeleted",null),E([Z],Fc.prototype,"isVirtual",null),E([Z],Fc.prototype,"grades",null),E([Z],Fc.prototype,"members",null),E([Z],Fc.prototype,"memberRole",null),E([Z],Fc.prototype,"name",null),E([Z],Fc.prototype,"period",null),E([Z],Fc.prototype,"status",null),E([Z],Fc.prototype,"subject",null),E([Z],Fc.prototype,"type",null),E([Z],Fc.prototype,"userCount",null);const Bc=new pi({localItemType:Fc,remoteIdProperty:"classId",alternateIdProperties:["virtualId"],propertyUpdater:new Ei({_code:{name:"classCode",format:"string"},_created:{name:"createdOn",format:"string"},_importSource:{name:"importedFrom",format:"object",set:(e,t)=>{t._importSource={id:e.sourceId,type:e.source,synced:e.lastUpdatedAt?new Date(e.lastUpdatedAt):void 0}}},_isDeleted:{name:"deleted",format:"boolean"},_isVirtual:{name:"isVirtualClassroom",format:"boolean"},_grades:{isArray:!0,name:"grades"},_memberRole:{name:"memberRole",format:"string"},_name:{name:"className",format:"string"},_period:{name:"period",format:"string"},_status:{name:"status",format:"string",choices:Object.values(Sc)},_subject:{name:"subject",format:"string",choices:Zc},_type:{name:"type",format:"string",choices:Object.values(Oc)},_userCount:{name:"userCount",format:"number"},_virtualId:{name:"virtualId",format:"string"}})});class Gc{constructor(e,t){this._classroomPool=e,this._classroomsInterface=t}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function e(){var t,n,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._classroomsInterface.getClassrooms();case 2:return t=e.sent,n=r._classroomPool.createLoaderUpdateSession(Date.now()),i=Bc.updateRemoteItems(n,t),n.commit(),e.abrupt("return",{items:i,total:i.length,loadNextPage:void 0});case 7:case"end":return e.stop()}}),e)})))()}}class Uc{constructor(e,t){this._assignmentPool=e,this._assignmentInterface=t}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function t(){var n,i,o,a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r._assignmentInterface.getAssignments(Object.assign(Object.assign({},e),{classroomId:e.filter.classroomId}));case 2:return n=t.sent,i=Date.now(),o=r._assignmentPool.createLoaderUpdateSession(i),a=xa.updateRemoteItems(o,n.children),o.commit(),t.abrupt("return",{items:a,total:n.children.length,mostRecentValidMutation:i});case 8:case"end":return t.stop()}}),t)})))()}}class zc extends be{return(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n=e.links,i=e.studentAssignmentId,o=e.submissionId,a=W(n,z.ASSIGNMENTS_RETURN,{studentAssignmentId:i,submissionId:o}),r.next=5,t._doPost(a,void 0,void 0,[200]);case 5:return s=r.sent,r.next=8,s.json();case 8:return c=r.sent,r.abrupt("return",c);case 12:throw r.prev=12,r.t0=r.catch(0),t._core._environment.error(`Error was thrown in StudentAssignmentsInterface.return. ${r.t0}`),r.t0;case 16:case"end":return r.stop()}}),r,null,[[0,12]])})))()}start(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n=e.assignmentId,i=e.links,o=W(i,z.ASSIGNMENTS_START,{assignmentId:n}),r.next=5,t._doPost(o,void 0,void 0,[200]);case 5:return a=r.sent,r.next=8,a.json();case 8:return s=r.sent,r.abrupt("return",s);case 12:throw r.prev=12,r.t0=r.catch(0),t._core._environment.error(`Error was thrown in StudentAssignmentsInterface.start. ${r.t0}`),r.t0;case 16:case"end":return r.stop()}}),r,null,[[0,12]])})))()}submit(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n=e.links,i=e.studentAssignmentId,o=e.submissionId,a=W(n,z.ASSIGNMENTS_SUBMIT,{studentAssignmentId:i,submissionId:o}),r.next=5,t._doPost(a,void 0,void 0,[200]);case 5:return s=r.sent,r.next=8,s.json();case 8:return c=r.sent,r.abrupt("return",c);case 12:throw r.prev=12,r.t0=r.catch(0),t._core._environment.error(`Error was thrown in StudentAssignmentsInterface.submit. ${r.t0}`),r.t0;case 16:case"end":return r.stop()}}),r,null,[[0,12]])})))()}}const Vc={[na.DRAFT]:0,[na.ASSIGNED]:1},Hc=(e,t)=>Mn(e.name||"",t.name||""),Yc={name:(e,t)=>Hc(e,t),dueDate(e,t){let r;return r=e.dueDate||t.dueDate?e.dueDate?t.dueDate?jn(e.dueDate.getTime(),t.dueDate.getTime()):-1:1:0,0===r?Hc(e,t):r},status(e,t){const r=jn(Vc[e.status],Vc[t.status]);return 0===r?Hc(e,t):r}};class Wc extends(Zn(Yc)){}Wc.default=new Wc("ascending","name");class $c{constructor(e){this.classroomId=e.classroomId||""}matches(e){return!!e.isAssignment&&(e.classroomId===this.classroomId&&!e.isDiscarded)}getRelationToFilter(){return"unknown"}get hash(){return`classroomId=${this.classroomId}`}}class Kc{constructor(e,t){this._adobeAsset=t,this._core=e}get id(){return this._adobeAsset.id}get"repo:assetId"(){return this._adobeAsset.id}get sourceAssets(){return this._adobeAsset.appMetadata.data["assignment:sourceAssets"]}get sourceTasks(){return this._adobeAsset.appMetadata.data["assignment:sourceTasks"]}get sourceTutorials(){return this._adobeAsset.appMetadata.data["assignment:sourceTutorials"]}get mediaType(){return this._adobeAsset.mediaType}get adobeAsset(){return this._adobeAsset}update({sourceAssets:e,sourceTasks:t,sourceTutorials:r}){var n=this;return d(u().mark((function i(){return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e||t||r){i.next=2;break}throw Error("Incorrect parameters: sourceAssetId, sourceTask, or sourceTutorials parameter required");case 2:return i.next=4,n._core.classroomContext.updateStudentAssignmentFile(n,{"assignment:sourceAssets":e,"assignment:sourceTasks":t,"assignment:sourceTutorials":r});case 4:return i.abrupt("return",n);case 5:case"end":return i.stop()}}),i)})))()}patchAppMetadata(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._adobeAsset.patchAppMetadata(e));case 1:case"end":return r.stop()}}),r)})))()}}const qc=new pi({localItemType:to,remoteIdProperty:"id",propertyUpdater:new Ei({})}),Xc=(e,t)=>void 0!==Object.getOwnPropertyDescriptor(e,t);class Jc{constructor(e,t){this._core=e,this._assetPool=t,this._assignmentInterface=new ma(this._core),this._classroomsInterface=new Dc(this._core),this._studentAssignmentsInterface=new zc(this._core),this._classroomPool=new nr(this._core,"classroom"),this._classroomMemberPool=new nr(this._core,"classroomMember"),this._assignmentListsToKeepAlive=new Map}get assignmentPool(){return this._assetPool}getClassroomById(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._classroomsInterface,i=t._classroomPool,o=i.getLocalItemById(e)){r.next=10;break}return r.next=6,n.getClassroom(e);case 6:a=r.sent,s=i.createUpdateSession(),o=Bc.updateRemoteItem(s,t._processRemoteClassroomItem(e,a)),s.commit();case 10:return r.abrupt("return",o);case 11:case"end":return r.stop()}}),r)})))()}getClassroomByCode(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._classroomPool.toArray().find((t=>t.code===e)))){r.next=3;break}return r.abrupt("return",n);case 3:return r.abrupt("return",t.getClassroomById(e));case 4:case"end":return r.stop()}}),r)})))()}getClassrooms(){return new Gi(this._classroomPool,[new Gc(this._classroomPool,this._classroomsInterface)])}getClassroomMembers(){return new Gi(this._classroomMemberPool,[new Mc(this._classroomMemberPool,this._classroomsInterface)])}getAssignments(){const e=new Uc(this._assetPool,this._assignmentInterface);return new Gi(this._assetPool,[e])}cleanAssignmentName(e){return e.trimEnd()}createClassroom(e){var t=this;return d(u().mark((function r(){var i,o,a,s,c,l;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((o=kc(e)).length>0)){r.next=3;break}throw v.create(n.BAD_REQUEST,JSON.stringify(o));case 3:if(!e.id){r.next=10;break}return r.next=6,t._classroomsInterface.createClassroomFromVirtual(e.id);case 6:(a=r.sent).virtualId=e.id,r.next=16;break;case 10:if(Lr(s=(null===(i=e.name)||void 0===i?void 0:i.trim())||"")){r.next=13;break}throw v.create(n.BAD_REQUEST,"Invalid class name provided for the creation operation.");case 13:return r.next=15,t._classroomsInterface.createClassroom(Object.assign(Object.assign({},e),{name:s}));case 15:a=r.sent;case 16:return c=t._classroomPool.createMutationSession(),l=Bc.updateRemoteItem(c,a),c.commit(),r.abrupt("return",l);case 20:case"end":return r.stop()}}),r)})))()}createAssignment(e){var t=this;return d(u().mark((function r(){var i,o,a,s,c,l,p,d,h,f,m,g,y,b,E,w,L;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((i=fa(e)).length>0)){r.next=3;break}throw v.create(n.BAD_REQUEST,JSON.stringify(i));case 3:if(o=e.classroomId,a=t._classroomPool.toArray().find((t=>t._virtualId===e.classroomId)),!a){r.next=9;break}o=a.id,r.next=19;break;case 9:return r.next=11,t.getClassroomById(e.classroomId);case 11:if(!(s=r.sent).isVirtual){r.next=19;break}return r.next=15,t.createClassroom({id:s.id});case 15:if(c=r.sent,(o=c.id)!==e.classroomId){r.next=19;break}throw v.create(n.BAD_REQUEST,"Cannot create an assignment with a virtual classroom.");case 19:if(Lr(l=t.cleanAssignmentName(e.name))){r.next=22;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for the creation operation.");case 22:return p=e.templateIds,d=e.references,(h=_(e,["templateIds","references"])).name=l,m=null!=d?d:[],g=(f=null!=p?p:[]).length+m.length>0,y=h.status||na.DRAFT,Xc(h,"status")&&!g||(h.status=na.DRAFT),r.next=31,t._assignmentInterface.createAssignment(Object.assign(Object.assign({},h),{classroomId:o}));case 31:if(b=r.sent,E=t._assetPool.createMutationSession(),w=xa.updateRemoteItem(E,b),E.commit(),L={},f.length>0&&(L.templateIds=f),m.length>0&&(L.references=m),!g){r.next=41;break}return r.next=41,t.updateAssignment(w.id,Object.assign(Object.assign({},L),{status:y}));case 41:return r.abrupt("return",w);case 42:case"end":return r.stop()}}),r)})))()}_assignAssignment(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._assetPool.getLocalItemById(e)){r.next=3;break}throw v.create(n.NOT_FOUND,`Could not find assignment to assign with ID of "${e}"`);case 3:return r.abrupt("return",t.updateAssignment(e,{status:na.ASSIGNED}));case 4:case"end":return r.stop()}}),r)})))()}getAssignmentByID(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._assetPool.getLocalItemById(e))){r.next=3;break}return r.abrupt("return",n);case 3:return r.next=5,t._assignmentInterface.getAssignment(e);case 5:return i=r.sent,o=t._assetPool.createMutationSession(),n=xa.updateRemoteItem(o,i),o.commit(),r.abrupt("return",n);case 10:case"end":return r.stop()}}),r)})))()}getAssignmentByCode(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._assetPool.toArray().find((t=>t.code===e)))){r.next=3;break}return r.abrupt("return",n);case 3:return r.next=5,t._assignmentInterface.getAssignmentByCode(e);case 5:return i=r.sent,o=t._assetPool.createMutationSession(),n=xa.updateRemoteItem(o,i),o.commit(),r.abrupt("return",n);case 10:case"end":return r.stop()}}),r)})))()}_discardAssignment(e){return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.discard();case 3:t.next=9;break;case 5:throw t.prev=5,t.t0=t.catch(0),t.t0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})))()}_restoreAssignment(e){return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.restore();case 3:t.next=9;break;case 5:throw t.prev=5,t.t0=t.catch(0),t.t0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})))()}_returnAssignment(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._studentAssignmentsInterface.return(e));case 1:case"end":return r.stop()}}),r)})))()}_startAssignment(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._studentAssignmentsInterface.start(e));case 1:case"end":return r.stop()}}),r)})))()}submitAssignment(e){var t=this;return d(u().mark((function r(){var i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=e.studentAssignmentId,!e.assignmentId){r.next=6;break}return r.next=4,t.getAssignmentByID(e.assignmentId);case 4:o=r.sent,i=o.studentAssignments[0].id;case 6:if(i){r.next=8;break}throw v.create(n.BAD_REQUEST,"Either studentAssignmentId or assignmentId is required to submit an assignment");case 8:return r.abrupt("return",t._studentAssignmentsInterface.submit({studentAssignmentId:i,submissionId:e.submissionId,links:e.links}));case 9:case"end":return r.stop()}}),r)})))()}updateStudentAssignmentFile(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null!==(i=t["assignment:sourceAssets"])&&void 0!==i||(t["assignment:sourceAssets"]=[]),null!==(o=t["assignment:sourceTasks"])&&void 0!==o||(t["assignment:sourceTasks"]=[]),null!==(a=t["assignment:sourceTutorials"])&&void 0!==a||(t["assignment:sourceTutorials"]=[]),s=[{op:"add",path:"/assignment:sourceAssets",value:t["assignment:sourceAssets"]},{op:"add",path:"/assignment:sourceTasks",value:t["assignment:sourceTasks"]},{op:"add",path:"/assignment:sourceTutorials",value:t["assignment:sourceTutorials"]}],"string"!=typeof e){n.next=10;break}return n.next=7,r._core.hostAssetContext.getAssetWithCloudID(e);case 7:n.t0=n.sent,n.next=11;break;case 10:n.t0=e;case 11:return c=n.t0,n.next=14,c.patchAppMetadata(s);case 14:return n.abrupt("return",c);case 15:case"end":return n.stop()}}),n)})))()}validateAssignmentNameForCreate(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._validateAssignmentName(e,t);case 2:case"end":return n.stop()}}),n)})))()}validateAssignmentNameForUpdate(e,t,r){var n=this;return d(u().mark((function i(){return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._validateAssignmentName(e,t,r);case 2:case"end":return i.stop()}}),i)})))()}keepAssignmentListAlive(e){if(this._assignmentListsToKeepAlive.has(e)){const t=this._assignmentListsToKeepAlive.get(e);t&&clearTimeout(t)}this._assignmentListsToKeepAlive.set(e,setTimeout((()=>this._assignmentListsToKeepAlive.delete(e)),6e5))}_validateAssignmentName(e,t,r){var i=this;return d(u().mark((function o(){var a,s,c,l,p;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(0!==(a=e.trim()).length){o.next=3;break}throw v.create(n.BAD_REQUEST,"The assignment name cannot be blank.");case 3:if(Lr(a)){o.next=5;break}throw v.create(n.BAD_REQUEST,"The assignment name is an invalid platform repo name.");case 5:if(!a.endsWith(".")){o.next=7;break}throw v.create(n.BAD_REQUEST,"The assignment name cannot end with a period.");case 7:if(t){o.next=9;break}return o.abrupt("return");case 9:return o.next=11,i.getClassroomById(t);case 11:if(!o.sent.isVirtual){o.next=14;break}return o.abrupt("return");case 14:return s=i.getAssignments(),c=s.getList(Wc.default,new $c({classroomId:t}),{}),i.keepAssignmentListAlive(c),o.next=19,ji(c);case 19:if(l=i._core._environment.getValue("LOCALE"),!(p=c.items.find((e=>e.name.toLocaleLowerCase(l)===a.toLocaleLowerCase(l))))){o.next=24;break}if(r&&p.id===r){o.next=24;break}throw v.create(n.CONFLICT,"The assignment name must be unique within the classroom.");case 24:case"end":return o.stop()}}),o)})))()}_renameAssignment(e,t){var r=this;return d(u().mark((function i(){var o;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.getAssignmentByID(e);case 2:if(o=i.sent,i.prev=3,o.repositoryID){i.next=7;break}return i.next=7,o._load();case 7:return i.abrupt("return",o.rename(t));case 10:if(i.prev=10,i.t0=i.catch(3),!(i.t0 instanceof v)){i.next=14;break}throw i.t0;case 14:throw v.create(n.INTERNAL_ERROR,`Could not rename asset "${e}"`);case 15:case"end":return i.stop()}}),i,null,[[3,10]])})))()}updateAssignment(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.references,i=t.status,t.templateIds,o=_(t,["references","status","templateIds"]),n.next=3,r._getUpdatedAssignmentMaterials(e,t);case 3:return a=n.sent,s=o,a.shouldUpdateTemplates&&(s.templateIds=a.updatedTemplateIds),a.shouldUpdateReferences&&(s.referenceIds=a.updatedReferenceIds),c=[],Xc(t,"name")&&(s.name=r.cleanAssignmentName(t.name),c.push(r._renameAssignment(e,s.name))),i===na.ASSIGNED&&(s.status=i),c.push(r._updateAssignmentMetadata(e,s)),n.next=14,Promise.all(c);case 14:r._discardAssets(a.assetsToDiscard);case 15:case"end":return n.stop()}}),n)})))()}_updateAssignmentMetadata(e,t){var r=this;return d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(0!==Object.keys(t).length){n.next=2;break}return n.abrupt("return");case 2:return i=Object.entries(ia).reduce(((e,[r,n])=>{if(Xc(t,r)){const i=t[r];i instanceof Date?e[n]=i.toISOString():e[n]=i}return e}),{"repo:assetId":e}),n.next=5,r._assignmentInterface.patchAssignment(e,i);case 5:o=r._assetPool.createMutationSession(),xa.updateRemoteItem(o,i),o.commit();case 8:case"end":return n.stop()}}),n)})))()}_getAssignmentMaterialsFolderAsset(e){var t=this;return d(u().mark((function r(){var i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getAssignmentByID(e);case 2:if(o=r.sent,a=null===(i=o.materialsFolder)||void 0===i?void 0:i["repo:assetId"]){r.next=6;break}throw v.create(n.BAD_REQUEST,"Assignment does not have a materials folder.");case 6:return r.next=8,t._core.hostAssetContext.getAssetWithCloudID(a);case 8:if(s=r.sent){r.next=11;break}throw v.create(n.BAD_REQUEST,`Could not find materials folder with ID of "${a}"`);case 11:return r.abrupt("return",s);case 12:case"end":return r.stop()}}),r)})))()}_getAssets(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.allSettled(e.map((e=>t._core.hostAssetContext.getAssetWithCloudID(e))));case 2:return r.abrupt("return",r.sent.map(((t,r)=>{if("fulfilled"===t.status)return t.value;throw v.wrapErrorIfNeeded(n.INTERNAL_ERROR,`Failed to get asset with ID of "${e[r]}"`,t.reason)})));case 3:case"end":return r.stop()}}),r)})))()}_discardAssets(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==e.length){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._getAssets(e);case 4:return n=r.sent,r.next=7,Promise.allSettled(n.map((e=>e.discard())));case 7:case"end":return r.stop()}}),r)})))()}_copyAssetsToMaterialsFolder(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(0!==t.length){i.next=2;break}return i.abrupt("return",[]);case 2:return i.next=4,r.getAssignmentByID(e);case 4:return o=i.sent,i.next=7,r._getAssets(t);case 7:return a=i.sent,s=a.map(((e,t)=>e._copyWithDestMetadata(o.repositoryID,`${o.repoPath}/materials`,`${o.name} ${r._getFormattedCreatedDateHelper({includeFormattedDate:!0,date:new Date})} ${t}.${e.extension}`))),i.next=11,Promise.allSettled(s);case 11:return c=i.sent.map(((e,r)=>{if("fulfilled"===e.status)return e.value;throw v.wrapErrorIfNeeded(n.INTERNAL_ERROR,`Failed to copy asset with ID of "${t[r]}"`,e.reason)})),i.abrupt("return",c.map((e=>e.id)));case 13:case"end":return i.stop()}}),i)})))()}_getFormattedCreatedDateHelper({includeFormattedDate:e,date:t}){const r=this._core._environment.getValue("LOCALE"),n=e?{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hourCycle:"h24"}:{hour:"numeric",minute:"numeric",second:"numeric"};return new Intl.DateTimeFormat(r,n).format(t).replace(/[/:]/g,".")}_determineAssetDifferences(e,t,r){var n=this;return d(u().mark((function i(){var o,a,s,c;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.getAssignmentByID(e);case 2:if(o=i.sent,r){i.next=5;break}return i.abrupt("return",{assetsToCopy:[],assetsToKeep:[],assetsToDiscard:o[t]});case 5:return a=o[t].filter((e=>!r.includes(e))),s=r.filter((e=>!o[t].includes(e))),c=o[t].filter((e=>r.includes(e))),i.abrupt("return",{assetsToCopy:s,assetsToKeep:c,assetsToDiscard:a});case 9:case"end":return i.stop()}}),i)})))()}_getUpdatedAssignmentMaterials(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,h,f,m,g,v,y,b,_,E,w;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=Xc(t,"templateIds"),s=Xc(t,"references"),c={updatedTemplateIds:[],updatedReferenceIds:[],assetsToDiscard:[],shouldUpdateTemplates:a,shouldUpdateReferences:s},l=[],p=0,h=[],!a){n.next=14;break}return n.next=9,r._determineAssetDifferences(e,"templateIds",t.templateIds);case 9:f=n.sent,c.assetsToDiscard.push(...f.assetsToDiscard),l.push(...f.assetsToCopy),c.updatedTemplateIds.push(...f.assetsToKeep),p=l.length;case 14:if(!s){n.next=23;break}return m=null!==(o=null===(i=t.references)||void 0===i?void 0:i.reduce(((e,t)=>("string"==typeof t?e.referenceIds.push(t):e.referencesToImport.push(t),e)),{referenceIds:[],referencesToImport:[]}))&&void 0!==o?o:{referenceIds:[],referencesToImport:[]},g=m.referenceIds,v=m.referencesToImport,n.next=18,r._determineAssetDifferences(e,"referenceIds",g);case 18:y=n.sent,c.assetsToDiscard.push(...y.assetsToDiscard),l.push(...y.assetsToCopy),c.updatedReferenceIds.push(...y.assetsToKeep),v.length>0&&h.push(d(u().mark((function t(){var n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],t.next=3,r.importNewReferencesForAssignment(e,v);case 3:t.sent.forEach((e=>{"fulfilled"===e.status&&n.push(e.value.id)})),c.updatedReferenceIds.push(...n);case 6:case"end":return t.stop()}}),t)}))));case 23:return b=[],h.push(d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r._copyAssetsToMaterialsFolder(e,l);case 2:b=t.sent;case 3:case"end":return t.stop()}}),t)})))),n.next=27,Promise.all(h.map((e=>e())));case 27:return _=[b.slice(0,p),b.slice(p)],E=_[0],w=_[1],c.updatedTemplateIds.push(...E),c.updatedReferenceIds.push(...w),n.abrupt("return",c);case 31:case"end":return n.stop()}}),n)})))()}importNewReferencesForAssignment(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getAssignmentMaterialsFolderAsset(e);case 2:return i=n.sent,n.abrupt("return",Promise.allSettled(t.map(function(){var e=d(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.importFile(t.content,t.name,t.mediaType,!0));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 4:case"end":return n.stop()}}),n)})))()}getStudentAssignmentFiles({studentDirectoryId:e,order:t}){var r=this;return d(u().mark((function n(){var i,o,a,s;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._core.hostAssetContext.getAssetWithCloudID(e);case 2:if(o=n.sent,a=null===(i=o.children)||void 0===i?void 0:i.getList(t||Oi.default)){n.next=6;break}return n.abrupt("return",Promise.resolve([]));case 6:if(s=function(){var e=d(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.map((e=>new Kc(r._core,e))));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.status!==ct.ReadyFullyLoaded){n.next=9;break}return n.abrupt("return",s(a.items));case 9:return n.abrupt("return",new Promise((e=>{const t=function(){var n=d(u().mark((function n(){var i,o;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s(a.items);case 2:i=n.sent,o=r._assetPool.createMutationSession(),qc.updateRemoteItems(o,a.items),o.commit(),a.off($t,t),e(i);case 8:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();a.on($t,t)})));case 10:case"end":return n.stop()}}),n)})))()}refreshClassroomCodes(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.allSettled(e.map((e=>t._classroomsInterface.refreshClassroomCode(e))));case 2:return n=r.sent,i=n.filter((e=>"fulfilled"===e.status)).map((e=>e.value)),r.next=6,Promise.allSettled(i.map(function(){var e=d(u().mark((function e({classroomId:r,classcode:n}){var i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._classroomsInterface.getClassroom(r);case 2:return(i=e.sent).classCode=n,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 6:o=r.sent,a=o.filter((e=>"fulfilled"===e.status)).map((e=>e.value)),s=t._classroomPool.createMutationSession(),Bc.updateRemoteItems(s,a),s.commit();case 11:case"end":return r.stop()}}),r)})))()}deleteClassrooms(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(e)){r.next=5;break}return r.next=3,Promise.all(e.map((e=>t.deleteClassrooms(e))));case 3:r.next=19;break;case 5:return r.next=7,t.getClassroomById(e);case 7:if(!(n=r.sent).isVirtual){r.next=13;break}return r.next=11,t._classroomsInterface.deleteVirtualClassroom(e);case 11:r.next=15;break;case 13:return r.next=15,t._classroomsInterface.deleteClassroom(e);case 15:(i=t._classroomPool.createUpdateSession()).queueDiscardedItem(n),i.commit(),t._classroomPool.removeLocalItems([n.id]);case 19:case"end":return r.stop()}}),r)})))()}updateClassroom(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getClassroomById(e);case 2:if(a=n.sent,null!==(i=t.name)&&void 0!==i||(t.name=a.name),!a.isVirtual){n.next=11;break}return n.next=7,r._classroomsInterface.updateClassroomFromVirtual(a.id,t);case 7:(o=n.sent).virtualId=a.id,n.next=14;break;case 11:return n.next=13,r._classroomsInterface.updateClassroom(e,t);case 13:o=n.sent;case 14:s=r._classroomPool.createMutationSession(),Bc.updateRemoteItem(s,r._processRemoteClassroomItem(e,o)),s.commit();case 17:case"end":return n.stop()}}),n)})))()}_processRemoteClassroomItem(e,t){const r=this._classroomPool.getLocalItemById(e);return(null==r?void 0:r._virtualId)&&(t.virtualId=r._virtualId),t}getClassroomMembership(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._classroomsInterface.getMembership(e));case 1:case"end":return r.stop()}}),r)})))()}blockStudentFromClassroom(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._classroomsInterface.blockStudent(e,t));case 1:case"end":return n.stop()}}),n)})))()}unblockStudentFromClassroom(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._classroomsInterface.unblockStudent(e,t));case 1:case"end":return n.stop()}}),n)})))()}removeStudentFromClassroom(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._classroomsInterface.removeStudent(e,t));case 1:case"end":return n.stop()}}),n)})))()}}E([Ee],Jc.prototype,"getClassroomById",null),E([Ee],Jc.prototype,"getClassroomByCode",null),E([k],Jc.prototype,"getClassrooms",null),E([k],Jc.prototype,"getClassroomMembers",null),E([k],Jc.prototype,"getAssignments",null),E([Ee],Jc.prototype,"createClassroom",null),E([Ee],Jc.prototype,"createAssignment",null),E([Ee],Jc.prototype,"getAssignmentByID",null),E([Ee],Jc.prototype,"getAssignmentByCode",null),E([Ee],Jc.prototype,"_discardAssignment",null),E([Ee],Jc.prototype,"_restoreAssignment",null),E([Ee],Jc.prototype,"_returnAssignment",null),E([Ee],Jc.prototype,"_startAssignment",null),E([Ee],Jc.prototype,"submitAssignment",null),E([Ee],Jc.prototype,"_validateAssignmentName",null),E([Ee],Jc.prototype,"_renameAssignment",null),E([Ee],Jc.prototype,"updateAssignment",null),E([Ee],Jc.prototype,"_updateAssignmentMetadata",null),E([Ee],Jc.prototype,"refreshClassroomCodes",null);const Qc="frameioAuthorizationChange";const el=new class extends D{constructor(){super(Qc)}},tl="frameioReviewLinksChange";const rl=new class extends D{constructor(){super(tl)}},nl="https://api.frame.io",il={ME:`${nl}/v2/me`,ACCOUNT:`${nl}/v2/accounts/{accountId}`,ACCOUNTS:`${nl}/v2/accounts?join=collaborator`,TEAMS:`${nl}/v2/accounts/{accountId}/teams?include=user_role&role=member`,TEAM:`${nl}/v2/teams/{teamId}?include=account`,PROJECT:`${nl}/v2/projects/{projectId}?include=string`,PROJECTS:`${nl}/v2/teams/{teamId}/projects?filter[archived]`,SHAREDPROJECTS:`${nl}/v2/projects/shared?filter[account_id]={accountId}`,REVIEWS:`${nl}/v2/projects/{projectId}/review_links`,REVIEW:`${nl}/v2/review_links/{reviewLinkId}`,ITEMCREATE:`${nl}/v2/review_links/{reviewLinkId}/assets`,ASSETS:`${nl}/v2/assets/{assetId}/children?include=cover_asset`,ASSET:`${nl}/v2/assets/{assetId}?type=folder&include=cover_asset`,CREATEASSET:`${nl}/v2/assets/{parentId}/children`,VERSION:`${nl}/v2/assets/{assetId}/version`,CREATECOMMENT:`${nl}/v2/assets/{assetId}/comments`,GETCOMMENT:`${nl}/v2/comments/{commentId}?include=string`,GETCOMMENTS:`${nl}/v2/assets/{assetId}/comments?include=string`,IMPRESSIONS:`${nl}/v2/comments/{commentId}/impressions?include=string`,COMMENT:`${nl}/v2/comments/{commentId}`,REPLY:`${nl}/v2/comments/{commentId}/replies`,GETREPLIES:`${nl}/v2/comments/{commentId}/replies?include=replies`,LIKE:`${nl}/v2/comments/{commentId}/like`,COMPLETE:`${nl}/v2/comments/{commentId}/complete`,FOLDERTREE:`${nl}/v2/projects/{projectId}/folder_tree`,ANCESTORS:`${nl}/v2/assets/{assetId}/ancestors`,ADOBE_SUSI_USER:`${nl}/v2/auth/adobe/method`,ADOBE_SUSI:`${nl}/v2/auth/adobe/callback`};function ol(e,t){return B(e).fill(t)}var al;!function(e){e[e.authLoggedOut=0]="authLoggedOut",e[e.authLoggedIn=1]="authLoggedIn",e[e.authExpired=2]="authExpired"}(al||(al={}));class sl extends be{constructor(e){super(e._core),this._frameioContext=e;const t="adobe+"+this._core._environment.getValue("HOST_PRODUCT_DATA").PRODUCT_ID;this._frameioClientId=t.toLowerCase()}get nativeContext(){const e="undefined"!=typeof window&&window.acplModel;if(!this._nativeContext&&e){const t=e.Workflows;if(t.createShareForReviewWorkflow){const r=t.createShareForReviewWorkflow(e.applicationAssetContext);if(this._nativeContext=r.getFrameioAssetContext(),this._nativeContext){const e=this;this._nativeContext.addEventListener(tl,(t=>{e._frameioContext._handleReviewLinksChangeEvent(t)})),this._nativeContext.addEventListener(Qc,d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.nativeContext.authenticationInfo()).frameioToken){t.next=7;break}return t.next=4,e._cacheCredentials(JSON.stringify(r));case 4:e._frameioContext._updateCurrentUserId(r.frameioUserId),t.next=10;break;case 7:return t.next=9,e._core._environment.cache.deleteItem(e._cachedCredentialsId());case 9:e._frameioContext._updateCurrentUserId(void 0);case 10:e._frameioContext.dispatch(el);case 11:case"end":return t.stop()}}),t)}))))}}else Vt("FrameioInterface.nativeContext","Share for Review workflows are not enabled for this application")}return this._nativeContext||Vt("FrameioInterface.nativeContext","native Frameio context does not exist, web/browser mode is utilized for testing only"),this._nativeContext}get _authenticationId(){return this.adobeId}_cachedCredentialsId(){return"FRAMEIO_CREDENTIALS_"+this._authenticationId}_getRefreshTokenExpiration(e){const t=parseInt(e);return t?t+1296e3:0}_getCachedCredentials(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._cachedCredentialsId(),t.next=3,e._core._environment.cache.getItem(r);case 3:if((n=t.sent)===Yr){t.next=6;break}return t.abrupt("return",n);case 6:return t.abrupt("return","");case 7:case"end":return t.stop()}}),t)})))()}_cacheCredentials(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core._environment.cache.setItem(t._cachedCredentialsId(),e,12096e5));case 1:case"end":return r.stop()}}),r)})))()}get adobeId(){return this._core._environment.getValue("USER_ID")}get ccUserId(){return this._core._environment.getValue("USER_EMAIL")||""}get imsToken(){return this._core._environment.getValue("ACCESS_TOKEN")}get xFrameioClient(){return this._frameioClientId}get productKey(){const e=this._core._environment.getValue("HOST_PRODUCT_DATA").PRODUCT_ID;return e.includes("Photoshop")?"PHXS":e.includes("Illustrator")?"ILST":e.includes("InDesign")?"IDSN":e.includes("SAMJSDemoApp")?"dev":e.includes("/")?e.slice(0,e.indexOf("/")):"dev"}checkForCachedCredentials(){var e=this;return d(u().mark((function t(){var r,n,i,o,a,s;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getCachedCredentials();case 2:if(""===(r=t.sent)){t.next=22;break}if(n=e.nativeContext,i=JSON.parse(r),!(o=e._getRefreshTokenExpiration(i.frameioLastRefresh))){t.next=12;break}if(a=Math.floor(Date.now()/1e3),!(o-a<=0)){t.next=12;break}return t.abrupt("return",al.authExpired);case 12:if(i.xFrameioClient=e.xFrameioClient,!n){t.next=22;break}return t.next=16,n.authenticateUser(i);case 16:if(t.sent===i.token){t.next=22;break}return s=n.authenticationInfo(),t.next=21,e._cacheCredentials(JSON.stringify(s));case 21:return t.abrupt("return",al.authLoggedIn);case 22:return t.abrupt("return",al.authLoggedOut);case 23:case"end":return t.stop()}}),t)})))()}isAuthenticated(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.authenticationStatus();case 2:return r=t.sent,t.abrupt("return",r===al.authLoggedIn);case 4:case"end":return t.stop()}}),t)})))()}authenticationStatus(){var e=this;return d(u().mark((function t(){var r,n,i,o,a,s,c;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=e.nativeContext)){t.next=8;break}if((a=o.authenticationStatus(e._authenticationId))!==al.authLoggedOut){t.next=7;break}return t.next=6,e.checkForCachedCredentials();case 6:a=t.sent;case 7:return t.abrupt("return",a);case 8:if(!(null===(r=e._authenticationInfo)||void 0===r?void 0:r.frameioLastRefresh)){t.next=17;break}if(359,s=new Date,(c=new Date(0)).setUTCSeconds(parseInt(null===(n=e._authenticationInfo)||void 0===n?void 0:n.frameioLastRefresh)),!(Math.abs(s.valueOf()-c.valueOf())/36e5>=359)){t.next=16;break}return t.abrupt("return",al.authExpired);case 16:return t.abrupt("return",(null===(i=e._authenticationInfo)||void 0===i?void 0:i.frameioToken)?al.authLoggedIn:al.authLoggedOut);case 17:return t.abrupt("return",al.authLoggedOut);case 18:case"end":return t.stop()}}),t)})))()}getToken(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.nativeContext)){t.next=5;break}return t.next=4,n.getToken();case 4:return t.abrupt("return",t.sent);case 5:return t.abrupt("return",(null===(r=e._authenticationInfo)||void 0===r?void 0:r.frameioToken)||"");case 6:case"end":return t.stop()}}),t)})))()}refreshToken(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.nativeContext)){t.next=10;break}return t.next=4,n.getToken(!0);case 4:if(i=t.sent,o=n.authenticationInfo(),i!==o.frameioToken){t.next=9;break}return t.next=9,e._cacheCredentials(JSON.stringify(o));case 9:return t.abrupt("return",i);case 10:return t.abrupt("return",(null===(r=e._authenticationInfo)||void 0===r?void 0:r.frameioToken)||"");case 11:case"end":return t.stop()}}),t)})))()}authenticate(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s,c,l,p;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t.nativeContext)){r.next=19;break}if(i=t.adobeId,o=t.ccUserId,a=t.productKey,s=t.xFrameioClient,n.isUserAuthenticated(t._authenticationId)){r.next=17;break}return c={adobeId:i,ccUserId:o,productKey:a,xFrameioClient:s},void 0!==e&&(c.frameioToken=e.frameioToken,c.frameioRefreshToken=(null==e?void 0:e.frameioRefreshToken)||void 0,c.frameioTokenExpires=(null==e?void 0:e.frameioTokenExpires)||void 0,c.frameioUserId=(null==e?void 0:e.frameioUserId)||void 0,c.frameioLastRefresh=(null==e?void 0:e.frameioLastRefresh)||void 0),r.next=11,n.authenticateUser(c);case 11:if(""===(l=r.sent)){r.next=16;break}return p=n.authenticationInfo(),r.next=16,t._cacheCredentials(JSON.stringify(p));case 16:return r.abrupt("return",l);case 17:r.next=20;break;case 19:t._authenticationInfo=e||void 0;case 20:return r.next=22,t.getToken();case 22:return r.abrupt("return",r.sent);case 23:case"end":return r.stop()}}),r)})))()}deauthenticate(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e._authenticationInfo=void 0,t.next=3,e._core._environment.cache.deleteItem(e._cachedCredentialsId());case 3:if(!(r=e.nativeContext)){t.next=7;break}return t.next=7,r.deauthenticateUser(e._authenticationId);case 7:return t.abrupt("return");case 8:case"end":return t.stop()}}),t)})))()}openFile(e){var t=this;return d(u().mark((function r(){var i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(i=t.nativeContext)){r.next=5;break}return r.next=4,i.openFile(e);case 4:return r.abrupt("return",r.sent);case 5:throw v.create(n.UNSUPPORTED,"Method is not supported in browser _environment.");case 6:case"end":return r.stop()}}),r)})))()}dispatchReviewLinksChangeEvent(e){const t=this.nativeContext;if(!t)throw v.create(n.UNSUPPORTED,"Method is not supported in browser _environment.");t.dispatchReviewLinksChangeEvent(e)}getAdobeSusiInfo(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._adobeSusiUserRequest();case 2:return r=t.sent,n={userExists:r.exists,susiAvailable:"adobe"===r.method,restriction:r.restriction||void 0},t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()}authenticateAdobeSusi(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._adobeSusiRequest();case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}_adobeSusiUserRequest(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._doPost(il.ADOBE_SUSI_USER,{"Content-Type":"application/json"},JSON.stringify({access_token:e.imsToken}),[200]);case 2:return r=t.sent,t.abrupt("return",r.json());case 4:case"end":return t.stop()}}),t)})))()}_adobeSusiRequest(){var e=this;return d(u().mark((function t(){var r,n,i,o,a,s,c;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._doPost(il.ADOBE_SUSI,{"Content-Type":"application/json"},JSON.stringify({access_token:e.imsToken}),[200]);case 2:return r=t.sent,n=r.headers,t.next=6,r.json();case 6:return i=t.sent,o=n.get("authorization"),a=n.get("x-refresh-token"),s=n.get("x-expires"),c={frameioToken:o?o.replace("Bearer ",""):"",frameioRefreshToken:a||void 0,frameioTokenExpires:s||void 0,frameioUserId:i.id||void 0,frameioLastRefresh:Date.now().toString(),useAdobeSusi:!0},t.abrupt("return",c);case 12:case"end":return t.stop()}}),t)})))()}_getFetchOptionOverrides(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getToken();case 2:return i=n.sent,n.abrupt("return",{href:e,options:Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),{authorization:`Bearer ${i}`,"x-frameio-client":r.xFrameioClient}),noOtherHeaders:!0})});case 4:case"end":return n.stop()}}),n)})))()}_getMultiPageResponse(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=[],i=e=>{const t=e&&e.headers&&e.headers.get("Link"),r=t&&pe.parse(t),n=r&&r.has("rel","next")&&r.get("rel","next"),i=n&&n[0]&&n[0].uri;return i&&i.replace("http:","https:")},o=function(){var e=d(u().mark((function e(r){var a,s,c;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._doGet(r);case 2:return a=e.sent,e.next=5,a.json();case 5:return s=e.sent,c=i(a),n=n.concat(s),e.abrupt("return",c?o(c):n);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.abrupt("return",o(e));case 4:case"end":return r.stop()}}),r)})))()}getCurrentUser(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._getResponse(il.ME));case 1:case"end":return t.stop()}}),t)})))()}getAccount(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(ol(il.ACCOUNT,{accountId:e})));case 1:case"end":return r.stop()}}),r)})))()}getAccounts(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._getMultiPageResponse(il.ACCOUNTS));case 1:case"end":return t.stop()}}),t)})))()}getTeams(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.TEAMS,{accountId:e})));case 1:case"end":return r.stop()}}),r)})))()}getTeam(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(ol(il.TEAM,{teamId:e})));case 1:case"end":return r.stop()}}),r)})))()}getProject(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(ol(il.PROJECT,{projectId:e})));case 1:case"end":return r.stop()}}),r)})))()}getProjects(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.PROJECTS,{teamId:e})));case 1:case"end":return r.stop()}}),r)})))()}getSharedProjects(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.SHAREDPROJECTS,{accountId:e})));case 1:case"end":return r.stop()}}),r)})))()}getReviewLinks(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.REVIEWS,{projectId:e})));case 1:case"end":return r.stop()}}),r)})))()}getReviewLink(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(ol(il.REVIEW,{reviewLinkId:e})));case 1:case"end":return r.stop()}}),r)})))()}createReviewLink(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(ol(il.REVIEWS,{projectId:e}),{"Content-Type":"application/json"},JSON.stringify({name:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}createFolder(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(ol(il.CREATEASSET,{parentId:e}),{"Content-Type":"application/json"},JSON.stringify({name:t,type:"folder"}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}createFile(e,t,r,n="application/pdf"){var i=this;return d(u().mark((function o(){var a;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i._doPost(ol(il.CREATEASSET,{parentId:e}),{"Content-Type":"application/json"},JSON.stringify({name:t,type:"file",filetype:n,filesize:r}),[200]);case 2:return a=o.sent,o.abrupt("return",a.json());case 4:case"end":return o.stop()}}),o)})))()}uploadFile(e,t,r="application/pdf"){return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={method:"PUT",headers:{"Content-Type":r,"x-amz-acl":"private"},body:t},n.next=3,fetch(e,i);case 3:case"end":return n.stop()}}),n)})))()}reviewLinkAddAsset(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(ol(il.ITEMCREATE,{reviewLinkId:e}),{"Content-Type":"application/json"},JSON.stringify({asset_ids:[t]}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}getChildren(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.ASSETS,{assetId:e})));case 1:case"end":return r.stop()}}),r)})))()}getAsset(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(ol(il.ASSET,{assetId:e})));case 1:case"end":return r.stop()}}),r)})))()}addVersionToAsset(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(ol(il.VERSION,{assetId:e}),{"Content-Type":"application/json"},JSON.stringify({next_asset_id:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}createComment(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(ol(il.CREATECOMMENT,{assetId:e}),{"Content-Type":"application/json"},JSON.stringify({text:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}getComment(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(ol(il.GETCOMMENT,{commentId:e})));case 1:case"end":return r.stop()}}),r)})))()}getComments(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.GETCOMMENTS,{assetId:e})));case 1:case"end":return r.stop()}}),r)})))()}getImpressions(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.IMPRESSIONS,{commentId:e})));case 1:case"end":return r.stop()}}),r)})))()}updateComment(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPut(ol(il.COMMENT,{commentId:e}),{"Content-Type":"application/json"},JSON.stringify({text:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}deleteComment(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(ol(il.COMMENT,{commentId:e}));case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}createReply(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(ol(il.REPLY,{commentId:e}),{"Content-Type":"application/json"},JSON.stringify({text:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}getReplies(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.GETREPLIES,{commentId:e})));case 1:case"end":return r.stop()}}),r)})))()}createLike(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(ol(il.LIKE,{commentId:e}),{},void 0,[200]);case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}deleteLike(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(ol(il.LIKE,{commentId:e}));case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}completeComment(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(ol(il.COMPLETE,{commentId:e}),{},void 0,[200]);case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}uncompleteComment(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(ol(il.COMPLETE,{commentId:e}));case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}getFolderTree(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(ol(il.FOLDERTREE,{projectId:e})));case 1:case"end":return r.stop()}}),r)})))()}getAncestors(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(ol(il.ANCESTORS,{assetId:e})));case 1:case"end":return r.stop()}}),r)})))()}}class cl extends Rn{get context(){return this._core.frameioContext}}const ll=new pi({localItemType:class extends cl{constructor(){super(...arguments),this._accountId="",this._email="",this._name="",this._profileImage="",this._userDefaultColor=""}get accountId(){return this._accountId}get email(){return this._email}get name(){return this._name}get profileImage(){return this._profileImage}get userDefaultColor(){return this._userDefaultColor}getAccount(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._account){t.next=4;break}return t.next=3,e.context.getAccount(e.accountId);case 3:e._account=t.sent;case 4:return t.abrupt("return",e._account);case 5:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Ei({_accountId:"account_id",_email:"email",_name:"name",_profileImage:"profile_image",_userDefaultColor:"user_default_color"})});class ul extends cl{constructor(){super(...arguments),this._name="",this._projectId="",this._teamId=""}get insertedAt(){return this._insertedAt}get name(){return this._name}get parentId(){return this._parentId}getParent(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.context,!(n=e.parentId)){t.next=4;break}return t.abrupt("return",r.getAsset(n));case 4:return t.abrupt("return",void 0);case 5:case"end":return t.stop()}}),t)})))()}get projectId(){return this._projectId}get teamId(){return this._teamId}get updatedAt(){return this._updatedAt}getAncestors(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.context.getAncestors(e.id));case 1:case"end":return t.stop()}}),t)})))()}}const pl=new pi({localItemType:class extends cl{get anonymousUserId(){return this._anonymousUserId||""}get comment(){return this._comment}get commentId(){return this._commentId||""}get deletedAt(){return this._deletedAt}get insertedAt(){return this._insertedAt}get updatedAt(){return this._updatedAt}get userId(){return this._userId||""}},remoteIdProperty:"id",propertyUpdater:new Ei({_anonymousUserId:"anonymous_user_id",_comment:{set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession();r._comment=dl.updateRemoteItem(n,e),n.commit()},name:"comment",format:"object"},_commentId:"comment_id",_deletedAt:{name:"deleted_at",format:"date"},_insertedAt:{name:"inserted_at",format:"date"},_updatedAt:{name:"updated_at",format:"date"},_userId:"user_id"})});const dl=new pi({localItemType:class extends cl{constructor(){super(...arguments),this._completed=!1,this._hasReplies=!1,this._likeCount=0,this._private=!1,this._readCount=0,this._timestamp=0,this._timestampMicroseconds=0}get assetId(){return this._assetId||""}get completed(){return this._completed}get completedAt(){return this._completedAt}get completerId(){return this._completerId||""}get deletedAt(){return this._deletedAt}get hasReplies(){return this._hasReplies}get insertedAt(){return this._insertedAt}get likeCount(){return this._likeCount}get owner(){return this._owner}get ownerId(){return this._ownerId||""}get page(){return this._page||""}get parentId(){return this._parentId||""}get private(){return this._private}get readCount(){return this._readCount}get reviewLinkId(){return this._reviewLinkId||""}get targetAssetId(){return this._targetAssetId||""}get text(){return this._text||""}get textEditedAt(){return this._textEditedAt}get timestamp(){return this._timestamp}get timestampMicroseconds(){return this._timestampMicroseconds}get updatedAt(){return this._updatedAt}updateComment(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.updateComment(t.id,e.text);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=dl.updateRemoteItem(o,i),o.commit(),r.abrupt("return",a);case 8:case"end":return r.stop()}}),r)})))()}deleteComment(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.deleteComment(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=dl.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}createLike(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.createLike(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=pl.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}deleteLike(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.deleteLike(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=pl.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}createReply(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.createReply(t.id,e.text);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=dl.updateRemoteItem(o,i),o.commit(),r.abrupt("return",a);case 8:case"end":return r.stop()}}),r)})))()}getReplies(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.getReplies(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=dl.updateRemoteItems(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}completeComment(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.completeComment(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=dl.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}uncompleteComment(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.uncompleteComment(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=dl.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Ei({_assetId:"asset_id",_completed:{name:"completed",format:"boolean"},_completedAt:{name:"completed_at",format:"date"},_completerId:"completer_id",_deletedAt:{name:"deleted_at",format:"date"},_hasReplies:{name:"has_replies",format:"boolean"},_insertedAt:{name:"inserted_at",format:"date"},_likeCount:{name:"like_count",format:"number"},_owner:{set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession();r._owner=ll.updateRemoteItem(n,e),n.commit()},name:"owner",format:"object"},_ownerId:"owner_id",_page:"page",_parentId:"parent_id",_private:{name:"private",format:"boolean"},_readCount:{name:"read_count",format:"number"},_reviewLinkId:"review_link_id",_targetAssetId:"target_asset_id",_text:"text",_textEditedAt:{name:"text_edited_at",format:"date"},_timestamp:{name:"timestamp",format:"number"},_timestampMicroseconds:{name:"timestamp_microseconds",format:"number"},_updatedAt:{name:"updated_at",format:"date"}})});const hl=new pi({localItemType:class extends ul{createComment(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.createComment(t.id,e.text);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=dl.updateRemoteItem(o,i),o.commit(),t._comments=void 0,r.abrupt("return",a);case 9:case"end":return r.stop()}}),r)})))()}getComments(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._comments){t.next=10;break}return n=e.context,t.next=5,n._frameioInterface.getComments(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=dl.updateRemoteItems(o,i),o.commit(),e._comments=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Ei({_commentCount:"comment_count",_insertedAt:{name:"inserted_at",format:"date"},_name:"name",_parentId:"parent_id",_projectId:"project_id",_teamId:"team_id",_updatedAt:{name:"updated_at",format:"date"}})});const fl=new pi({localItemType:class extends ul{getChildren(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._children){t.next=8;break}return r=e.context,t.next=4,r._frameioInterface.getChildren(e.id);case 4:n=t.sent,i=r._objectPool.createUpdateSession(),e._children=n.map((e=>wl(i,e))),i.commit();case 8:return t.abrupt("return",e._children);case 9:case"end":return t.stop()}}),t)})))()}_uploadFile(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,h,f;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(i=r.context,8,o=t.size(),a=e.length,s=Math.ceil(o/a),c=0,l=function(){var r=d(u().mark((function r(n){var o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=c++,r.next=3,t.read(o*s,n);case 3:return n=r.sent,r.abrupt("return",i._frameioInterface.uploadFile(e[o],n).then((()=>c<a?l(n):Promise.resolve())));case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),p=Math.min(a,8),h=[],f=0;f<p;f++)h.push(l(new ArrayBuffer(s)));return n.next=12,Promise.all(h);case 12:case"end":return n.stop()}}),n)})))()}createFile(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r.context,n.next=3,i._frameioInterface.openFile(t);case 3:return o=n.sent,a=o.size(),n.next=7,i._frameioInterface.createFile(r.id,e,a);case 7:return s=n.sent,c=i._objectPool.createUpdateSession(),l=hl.updateRemoteItem(c,s),c.commit(),n.next=13,r._uploadFile(s.upload_urls,o);case 13:return o.close(),n.abrupt("return",l);case 15:case"end":return n.stop()}}),n)})))()}createFolder(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.createFolder(t.id,e);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=fl.updateRemoteItem(o,i),o.commit(),r.abrupt("return",a);case 8:case"end":return r.stop()}}),r)})))()}},remoteIdProperty:"id",propertyUpdater:new Ei({_insertedAt:{name:"inserted_at",format:"date"},_name:"name",_parentId:"parent_id",_projectId:"project_id",_teamId:"team_id",_updatedAt:{name:"updated_at",format:"date"}})});const ml=new pi({localItemType:class extends cl{constructor(){super(...arguments),this._email="",this._name=""}get email(){return this._email}get name(){return this._name}getProjects(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._projects){t.next=10;break}return n=e.context,t.next=5,e._core.frameioContext._frameioInterface.getProjects(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=bl.updateRemoteItems(o,i),o.commit(),e._projects=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Ei({_email:"owner.email",_name:"name"})});class gl extends ul{constructor(){super(...arguments),this._coverAssetId="",this._versions=0}get coverAssetId(){return this._coverAssetId}getCoverAsset(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._coverAsset){t.next=4;break}return t.next=3,e.context.getAsset(e.coverAssetId);case 3:e._coverAsset=t.sent;case 4:return t.abrupt("return",e._coverAsset);case 5:case"end":return t.stop()}}),t)})))()}get versions(){return this._versions}getChildren(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._children){t.next=8;break}return r=e.context,t.next=4,r._frameioInterface.getChildren(e.id);case 4:n=t.sent,i=r._objectPool.createUpdateSession(),e._children=n.map((e=>wl(i,e))),i.commit();case 8:return t.abrupt("return",e._children);case 9:case"end":return t.stop()}}),t)})))()}}const vl=new pi({localItemType:gl,remoteIdProperty:"id",propertyUpdater:new Ei({_coverAsset:{name:"cover_asset",format:"object",set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession(),i=wl(n,e);n.commit(),r._coverAsset=i}},_coverAssetId:"cover_asset_id",_insertedAt:{name:"inserted_at",format:"date"},_name:"name",_parentId:"parent_id",_projectId:"project_id",_teamId:"team_id",_updatedAt:{name:"updated_at",format:"date"},_versions:{name:"versions",format:"number"}})});const yl=new pi({localItemType:class extends cl{constructor(){super(...arguments),this._name="",this._shortUrl="",this._ownerId="",this._projectId="",this._active=!1,this._inviteOnly=!1}get name(){return this._name}get shortUrl(){return this._shortUrl}get ownerId(){return this._ownerId}get projectId(){return this._projectId}get active(){return this._active}get inviteOnly(){return this._inviteOnly}get itemId(){return this._itemId}getArtifactCount(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getItem();case 2:if(!((r=t.sent)instanceof gl)){t.next=5;break}return t.abrupt("return",r.versions);case 5:return t.abrupt("return",1);case 6:case"end":return t.stop()}}),t)})))()}getArtifact(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getItem();case 2:if(!((r=t.sent)instanceof gl)){t.next=7;break}return t.next=6,r.getCoverAsset();case 6:return t.abrupt("return",t.sent);case 7:return t.abrupt("return",r);case 8:case"end":return t.stop()}}),t)})))()}getItem(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._item){t.next=6;break}if(e._itemId){t.next=3;break}return t.abrupt("return",Promise.reject(v.create(n.BAD_REQUEST,`FrameioReviewLink.getItem() could not find item ${e._itemId}`)));case 3:return t.next=5,e.context.getAsset(e._itemId);case 5:e._item=t.sent;case 6:return t.abrupt("return",e._item);case 7:case"end":return t.stop()}}),t)})))()}_dispatchReviewLinksChangeEvent(e){const t=this.context,r={source:e,reviewLink:{id:this.id,name:this._name,short_url:this._shortUrl,owner_id:this._ownerId,project_id:this._projectId,is_active:!!this._active,access_control:{invite_only:!!this._inviteOnly},"frameio:artifactId":this._itemId,"repo:etag":this._etag}};t._frameioInterface.dispatchReviewLinksChangeEvent(JSON.stringify(r))}updateReviewLink(e,t,r){var n=this;return d(u().mark((function i(){var o,a,s,c,l,p;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t.createFile(n.name,r);case 2:if(o=i.sent,n._itemId){i.next=19;break}return a=n.context,i.next=7,a._frameioInterface.reviewLinkAddAsset(n.id,o.id);case 7:return s=i.sent,c=a._objectPool.createUpdateSession(),yl.updateRemoteItem(c,s),c.commit(),i.next=13,a._reviewServiceInterface.createReviewLink(Object.assign(Object.assign({},e),{projectId:n.projectId,reviewLinkId:n.id,artifactId:o.id}));case 13:l=i.sent,n._etag=l["repo:etag"],n._item=o,n._itemId=o.id,i.next=33;break;case 19:return a=n.context,i.next=22,a._frameioInterface.addVersionToAsset(n._itemId,o.id);case 22:if(s=i.sent,c=a._objectPool.createUpdateSession(),p=vl.updateRemoteItem(c,s),c.commit(),n._itemId===p.id){i.next=33;break}return i.next=29,a._reviewServiceInterface.updateReviewLink(Object.assign(Object.assign({},e),{projectId:n.projectId,reviewLinkId:n.id,artifactId:p.id,etag:n._etag}));case 29:l=i.sent,n._etag=l["repo:etag"],n._item=p,n._itemId=p.id;case 33:n._dispatchReviewLinksChangeEvent(e);case 34:case"end":return i.stop()}}),i)})))()}},remoteIdProperty:"id",propertyUpdater:new Ei({_name:"name",_shortUrl:"short_url",_ownerId:"owner_id",_projectId:"project_id",_active:{name:"is_active",format:"boolean"},_inviteOnly:{name:"access_control.invite_only",format:"boolean"},_itemId:"frameio:artifactId",_etag:"repo:etag"})});const bl=new pi({localItemType:class extends cl{constructor(){super(...arguments),this._rootAssetId="",this._name="",this._ownerId="",this._teamId=""}get name(){return this._name}get ownerId(){return this._ownerId}get rootAssetId(){return this._rootAssetId}get teamId(){return this._teamId}getTeam(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._team){t.next=4;break}return t.next=3,e.context.getTeam(e.rootAssetId);case 3:e._team=t.sent;case 4:return t.abrupt("return",e._team);case 5:case"end":return t.stop()}}),t)})))()}getRootFolder(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._rootFolder){t.next=4;break}return t.next=3,e.context.getAsset(e.rootAssetId);case 3:e._rootFolder=t.sent;case 4:return t.abrupt("return",e._rootFolder);case 5:case"end":return t.stop()}}),t)})))()}getReviewLinks(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._reviews){t.next=10;break}return n=e.context,t.next=5,n._frameioInterface.getReviewLinks(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=yl.updateRemoteItems(o,i),o.commit(),e._reviews=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}createFolder(e,t){const r=this.context,n=t;n.project_id=this.id,n.team_id=this.teamId;const i=r._objectPool.createUpdateSession(),o=fl.updateRemoteItem(i,n);return i.commit(),o._children=e[n.id].map((t=>this.createFolder(e,t))),o}getFolderTree(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.frameioContext._frameioInterface.getFolderTree(e.id);case 2:return r=t.sent,e._rootFolder=e.createFolder(r.data,r.data.root[0]),t.abrupt("return",e._rootFolder);case 5:case"end":return t.stop()}}),t)})))()}createReviewLink(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.createReviewLink(t.id,e);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=yl.updateRemoteItem(o,i),o.commit(),t._reviews&&t._reviews.push(a),r.abrupt("return",a);case 9:case"end":return r.stop()}}),r)})))()}},remoteIdProperty:"id",propertyUpdater:new Ei({_name:"name",_ownerId:"owner_id",_rootAssetId:"root_asset_id",_rootFolder:{name:"root_asset",format:"object",set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession(),i=fl.updateRemoteItem(n,e);n.commit(),r._rootFolder=i}},_team:{set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession();r._team=ml.updateRemoteItem(n,e),n.commit()},name:"team",format:"object"},_teamId:"team_id"})});const _l=new pi({localItemType:class extends cl{constructor(){super(...arguments),this._displayName="",this._ownerId="",this._version=0}get ownerId(){return this._ownerId}get owner(){return this._owner}get displayName(){return this._displayName}get version(){return this._version}getTeams(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._teams){t.next=10;break}return n=e.context,t.next=5,n._frameioInterface.getTeams(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=ml.updateRemoteItems(o,i),o.commit(),e._teams=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}getSharedProjects(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._sharedProjects){t.next=10;break}return n=e.context,t.next=5,n._frameioInterface.getSharedProjects(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=bl.updateRemoteItems(o,i),o.commit(),e._sharedProjects=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}getSharedTeams(){var e=this;return d(u().mark((function t(){var r,n,i,o,a,c,l,p;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getSharedProjects();case 2:r=t.sent,n=new Set,i=[],o=s(r),t.prev=6,o.s();case 8:if((a=o.n()).done){t.next=19;break}if(c=a.value,l=c.teamId,n.has(l)){t.next=17;break}return t.next=14,c.getTeam();case 14:p=t.sent,n.add(l),i.push(p);case 17:t.next=8;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(6),o.e(t.t0);case 24:return t.prev=24,o.f(),t.finish(24);case 27:return t.abrupt("return",i);case 28:case"end":return t.stop()}}),t,null,[[6,21,24,27]])})))()}getProjectTree(){var e=this;return d(u().mark((function t(){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getTeams();case 2:return r=t.sent,n=[],r.forEach((e=>{n.push(e.getProjects())})),t.next=7,Promise.all(n);case 7:return t.abrupt("return",r);case 8:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Ei({_displayName:"display_name",_owner:{set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession();r._owner=ll.updateRemoteItem(n,e),n.commit()},name:"owner",format:"object"},_ownerId:"owner_id",_version:{name:"version",format:"number"}})});class El extends Me{constructor(e){super(),this._core=e,this._objectPool=new nr(this._core,"frameio"),this._frameioInterface=new sl(this),this._reviewServiceInterface=new lo(this._core),this._reviewLinksForDocument=new Map}_updateCurrentUserId(e){e&&this._currentUserId===e||(this._currentUserId=e,this._currentUser=void 0,this._accounts=void 0,this._reviewLinksForDocument.clear())}_mapKeyForSourceDocument(e){return e.documentId?e.documentId:e.assetId}_retainUntilTimeout(e,t=12e4){const r=e.deref();setTimeout((function(){return r}),t)}_handleReviewLinksChangeEvent(e){const t=JSON.parse(e),r=t.reviewLink,n=this._mapKeyForSourceDocument(t.source),i=this._objectPool.createUpdateSession(),o=yl.updateRemoteItem(i,r);i.commit();const a=new WeakRef([{reviewLink:o}]);this._reviewLinksForDocument.set(n,a),this._retainUntilTimeout(a),this.dispatch(rl)}isAuthenticated(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._frameioInterface.isAuthenticated();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}authenticationStatus(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._frameioInterface.authenticationStatus();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getToken(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._frameioInterface.getToken());case 1:case"end":return t.stop()}}),t)})))()}refreshToken(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._frameioInterface.refreshToken());case 1:case"end":return t.stop()}}),t)})))()}authenticate(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._frameioInterface.authenticate(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}deauthenticate(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._frameioInterface.deauthenticate();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getCurrentUser(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._currentUser){t.next=9;break}return t.next=4,e._frameioInterface.getCurrentUser();case 4:n=t.sent,i=e._objectPool.createUpdateSession(),r=ll.updateRemoteItem(i,n),i.commit(),e._currentUser=r;case 9:return t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))()}getAccounts(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._accounts){t.next=9;break}return t.next=4,e._frameioInterface.getAccounts();case 4:n=t.sent,i=e._objectPool.createUpdateSession(),r=_l.updateRemoteItems(i,n),i.commit(),e._accounts=r;case 9:return t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))()}_getLocalAncestors(e){const t=new Array;for(;;){const r=this._objectPool.getLocalItemById(e);if(void 0===r)return;if(t.unshift(r),!r.parentId)break;e=r.parentId}return t}getAncestors(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._getLocalAncestors(e)){r.next=8;break}return r.next=4,t._frameioInterface.getAncestors(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=i.map((e=>wl(o,e))),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getReviewLinksForDocument(e,t=!0){var r=this;return d(u().mark((function i(){var o,a,s,c,l,p,d,h,f,m,g,y,b,_,E,w,L;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=r._mapKeyForSourceDocument(e),a=r._reviewLinksForDocument.get(o),s=a?a.deref():void 0,t||!s){i.next=6;break}return r._retainUntilTimeout(a),i.abrupt("return",s);case 6:return s=[],i.next=9,r._reviewServiceInterface.getReviewLinks(e);case 9:(c=i.sent).sort(((e,t)=>t["repo:createdDate"]-e["repo:createdDate"])),l=0;case 12:if(!(l<c.length)){i.next=58;break}return p=c[l],d=p["frameio:projectId"],h=p["frameio:reviewLinkId"],f=p["frameio:artifactId"],m=p["repo:etag"],g=void 0,i.prev=19,i.next=22,r._frameioInterface.getReviewLink(h);case 22:y=i.sent,b=r._objectPool.createUpdateSession(),g=yl.updateRemoteItem(b,y),b.commit(),i.next=30;break;case 28:i.prev=28,i.t0=i.catch(19);case 30:if(i.prev=30,g){i.next=39;break}return i.next=34,r.getProject(d);case 34:return _=i.sent,i.next=37,_.getReviewLinks();case 37:E=i.sent,g=E.find((({id:e})=>e===h));case 39:if(!g){i.next=48;break}return g._itemId=f,g._etag=m,i.next=44,g.getItem();case 44:return s.push({reviewLink:g}),i.abrupt("break",58);case 48:w=v.create(n.NOT_FOUND,`frameio:reviewLinkId = ${h} not found in projectId = ${d}`),s.push({error:w});case 50:i.next=55;break;case 52:i.prev=52,i.t1=i.catch(30),s.push({error:i.t1});case 55:l++,i.next=12;break;case 58:return L=new WeakRef(s),r._reviewLinksForDocument.set(o,L),r._retainUntilTimeout(L),i.abrupt("return",s);case 62:case"end":return i.stop()}}),i,null,[[19,28],[30,52]])})))()}getAccount(e){var t=this;return d(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getAccounts();case 2:if(n=r.sent,i=n.find((t=>t.id===e))){r.next=11;break}return r.next=7,t._frameioInterface.getAccount(e);case 7:o=r.sent,a=t._objectPool.createUpdateSession(),i=_l.updateRemoteItem(a,o),a.commit();case 11:return r.abrupt("return",i);case 12:case"end":return r.stop()}}),r)})))()}getAsset(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._objectPool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._frameioInterface.getAsset(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=wl(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getTeam(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._objectPool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._frameioInterface.getTeam(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=ml.updateRemoteItem(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getProject(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._objectPool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._frameioInterface.getProject(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=bl.updateRemoteItem(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getComment(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._objectPool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._frameioInterface.getComment(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=dl.updateRemoteItem(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getAdobeSusiInfo(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._frameioInterface.getAdobeSusiInfo();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}}function wl(e,t){if("file"===t.type){const r=e;return hl.updateRemoteItem(r,t)}if("folder"===t.type){const r=e;return fl.updateRemoteItem(r,t)}if("version_stack"===t.type){const r=e;return vl.updateRemoteItem(r,t)}throw v.create(n.UNSUPPORTED,`Invalid Frameio asset type ${t.type}`)}const Ll="library_data_changed";const xl=new class extends D{constructor(){super(Ll)}},Sl="restrict_edit_changed";const Ol=new class extends D{constructor(){super(Sl)}};class Tl extends to{constructor(e,t,r){super(e,t,r),this._core=e,this.isLibrary=!0,this._libraryInterface=new Oo(this._core),this._libraryDataLoadInfo={state:"NOT_LOADED"},this._needsRepoMetadata=!0,ii.manageLazyLoading(this,[{event:Ol,fetchData:this._refreshEditingRestricted}])}get _libraryLoaded(){return"LOADED"===this._libraryDataLoadInfo.state}_setLibraryLoadState(e){if(e!==this._libraryDataLoadInfo.state)if(this._libraryDataLoadInfo.state=e,"LOADED"===e)this._libraryDataLoadInfo.resolve&&this._libraryDataLoadInfo.resolve();else if("LOADING"===e){let e;this._libraryDataLoadInfo.promise=new Promise((t=>{e=t})),this._libraryDataLoadInfo.resolve=e}else"NOT_LOADED"===e&&(this._libraryDataLoadInfo.resolve&&this._libraryDataLoadInfo.resolve(),this.emit(Ll))}_waitForLibraryLoad(e=!1){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._populateLibraryDataIfNotLoading(),r.next=3,t._libraryDataLoadInfo.promise;case 3:if(!e||t._libraryLoaded){r.next=6;break}return r.next=6,t._waitForLibraryLoad(!1);case 6:return r.abrupt("return",t._libraryDataLoadInfo.promise);case 7:case"end":return r.stop()}}),r)})))()}get displayName(){return this._populateLibraryDataIfNotLoading(),this._displayName}get roles(){return this._populateLibraryDataIfNotLoading(),this._libraryRoles}get renditionGrid(){return this._populateLibraryDataIfNotLoading(),this._renditionGrid}setRoles(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={roles:Array.isArray(e)?e:[e]},r.next=3,t._libraryInterface.updateMetadata(t.id,n);case 3:return t._setLibraryLoadState("NOT_LOADED"),r.next=6,t._populateLibraryDataIfNotLoading();case 6:case"end":return r.stop()}}),r)})))()}_load({repoMetadata:e,appMetadata:t,effectivePermission:r}={}){var n=()=>super._load,i=this;return d(u().mark((function o(){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n().call(i,{repoMetadata:e,appMetadata:t,effectivePermission:r});case 2:i._needsRepoMetadata=!1,i._setLibraryLoadState("NOT_LOADED");case 4:case"end":return o.stop()}}),o)})))()}get isBookmarked(){return this._populateLibraryDataIfNotLoading(),this._libraryLoaded?!!this._bookmark:void 0}get _isPublic(){return this._libraryLoaded?"public"===this._ownership:void 0}get ownership(){return this._populateLibraryDataIfNotLoading(),this._ownership}get libraryManifestId(){return this._populateLibraryDataIfNotLoading(),this._legacyLibraryId}move(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.moveLibrary(e));case 1:case"end":return r.stop()}}),r)})))()}moveLibrary(e,t){var r=this;return d(u().mark((function n(){var i,o,a;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._libraryInterface.moveLibrary(r.cloudID,e.cloudID,t);case 2:return i=n.sent,o=r._core.hostAssetContext._assetPool.createUpdateSession("move library"),n.next=6,r._core.getLibraryContext();case 6:a=n.sent,i.library_urn!==r.id?o.queueDiscardedItem(r):a._libraryUpdater.updateLocalItem(o,r,i),o.commit();case 9:case"end":return n.stop()}}),n)})))()}rename(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryInterface.updateMetadata(t.id,{name:e});case 2:t._setLibraryLoadState("NOT_LOADED");case 3:case"end":return r.stop()}}),r)})))()}discard(){var e=this;return d(u().mark((function t(){var r,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}throw v.create(n.INVALID_OPERATION,"Asset is already discarded");case 2:return t.next=4,e._libraryInterface.discardLibrary(e.cloudID);case 4:return t.next=6,e._core.getLibraryContext();case 6:r=t.sent,i=r._assetPool.createUpdateSession("discard library"),e._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(i,e,{"repo:state":"DISCARDED"}),i.commit();case 10:case"end":return t.stop()}}),t)})))()}restore(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isDiscarded){t.next=2;break}throw v.create(n.INVALID_OPERATION,"Cannot restore an asset that is not discarded");case 2:return t.next=4,e._libraryInterface.restoreLibrary(e.cloudID);case 4:r=e._core.hostAssetContext._assetPool.createUpdateSession("restore library"),e._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(r,e,{"repo:state":"ACTIVE"}),r.commit();case 7:case"end":return t.stop()}}),t)})))()}_copy(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.copyLibrary(e,t));case 1:case"end":return n.stop()}}),n)})))()}copyLibrary(e,t,r){var n=this;return d(u().mark((function i(){var o,a,s,c,l;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=t||n.name,o=T.basename(o,T.extname(o)),i.next=4,n._libraryInterface.copyLibrary(n.cloudID,o,null==e?void 0:e.cloudID,r);case 4:return a=i.sent,s=n._core.hostAssetContext._assetPool.createUpdateSession("copy library"),i.next=8,n._core.getLibraryContext();case 8:return c=i.sent,l=c._libraryUpdater.updateRemoteItem(s,a),s.commit(),i.abrupt("return",l);case 12:case"end":return i.stop()}}),i)})))()}bookmark(){var e=this;return d(u().mark((function t(){var r,n,i,o,a,s;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._waitForLibraryLoad(!0);case 2:if(!e.isBookmarked){t.next=4;break}return t.abrupt("return");case 4:if(r={},!e._isPublic){t.next=9;break}return t.abrupt("return",Promise.reject("Bookmarking public libraries not implemented yet."));case 9:r={id:e._legacyLibraryId,type:"collab",urn:e.cloudID};case 10:return t.next=12,e._libraryInterface.bookmarkLibraries([r]);case 12:return n=t.sent,i=n.bookmarks,o=i.find((t=>t.id===e._legacyLibraryId)),t.next=17,e._core.getLibraryContext();case 17:a=t.sent,s=a._assetPool.createUpdateSession("bookmark library"),a._libraryUpdater.updateLocalItem(s,e,{bookmark:o}),s.commit();case 21:case"end":return t.stop()}}),t)})))()}unbookmark(){var e=this;return d(u().mark((function t(){var r,n,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._waitForLibraryLoad(!0);case 2:if(n=null===(r=e._bookmark)||void 0===r?void 0:r.id){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,e._libraryInterface.unbookmarkLibrary(n);case 7:return t.next=9,e._core.getLibraryContext();case 9:i=t.sent,o=i._assetPool.createUpdateSession("unbookmark library"),i._libraryUpdater.updateLocalItem(o,e,{bookmark:void 0}),o.commit();case 13:case"end":return t.stop()}}),t)})))()}_populateLibraryDataIfNotLoading(){var e=this;return d(u().mark((function t(){var r,n,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("NOT_LOADED"!==e._libraryDataLoadInfo.state){t.next=12;break}return e._setLibraryLoadState("LOADING"),t.next=4,e._core.getLibraryContext();case 4:return r=t.sent,t.next=7,e._libraryInterface.getLibraryData(e.id);case 7:n=t.sent,i=e._core.hostAssetContext._assetPool.createUpdateSession(),r._libraryUpdater.updateLocalItem(i,e,n),e._setLibraryLoadState("LOADED"),i.commit();case 12:case"end":return t.stop()}}),t)})))()}get isEditingRestricted(){return this._isEditingRestricted}setEditingRestricted(e,t){var r=this;return d(u().mark((function n(){var i;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._ensureLink(z.AC_POLICY);case 2:return n.next=4,r._getAssetInterface();case 4:return i=n.sent,n.next=7,i.setEditingInheritanceRestricted(e,t);case 7:r._isEditingRestricted=e,ii.updatedExternally(r,Sl);case 9:case"end":return n.stop()}}),n)})))()}_refreshEditingRestricted(){var e=this;return d(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._ensureLink(z.AC_POLICY);case 2:return t.next=4,e._getAssetInterface();case 4:return r=t.sent,t.next=7,r.getEditingInheritanceRestricted();case 7:e._isEditingRestricted=t.sent;case 8:case"end":return t.stop()}}),t)})))()}_reloadPermissions(){var e=()=>super._reloadPermissions,t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return ii.setLoadStatus(t,Sl,ni.NotLoaded),r.abrupt("return",e().call(t));case 2:case"end":return r.stop()}}),r)})))()}}E([Z(xl)],Tl.prototype,"displayName",null),E([Z(xl)],Tl.prototype,"roles",null),E([Z(xl)],Tl.prototype,"renditionGrid",null),E([Z(xl)],Tl.prototype,"isBookmarked",null),E([Z(xl)],Tl.prototype,"_isPublic",null),E([Z(xl)],Tl.prototype,"ownership",null),E([Z(xl)],Tl.prototype,"libraryManifestId",null),E([oi(Ol,"_isEditingRestricted")],Tl.prototype,"isEditingRestricted",null);const Il=Object.assign(Object.assign({},{_bookmark:{name:"bookmark",format:"object"},_libraryRoles:{name:"roles",format:"object",isArray:!0},_ownership:"ownership",_legacyLibraryId:"id",_renditionGrid:{name:"rendition_grid",format:"object"},_displayName:"name"}),{_etag:"manifest_etag",_path:"storage_path",_version:"version",_created:{name:"created_date",format:"date_as_number"},_modified:{name:"modified_date",format:"date_as_number"},_discarded:{name:"archived_date",format:"date_as_number"},_createdBy:"created_by",_discardedBy:"archived_by","_appMetadata._data":{name:"application_metadata",format:"object_subset",set:(e,t)=>{t.appMetadata._mergeData(e)}}}),Pl=new pi({localItemType:Tl,remoteIdProperty:"library_urn",changeEventMap:new Map([["_libraryRoles",xl],["_displayName",xl],["_legacyLibraryId",xl],["_bookmark",xl],["_ownership",xl],["_renditionGrid",xl],["_ownership",xl]]),propertyUpdater:new Ei(Il)});class Cl extends wi{constructor(){super({_isSharedWithYou:!0})}matches(e){return!!e.isLibrary&&super.matches(e)}}var Al,kl,Dl,Nl;!function(e){e.MODIFIED_DATE="modified_date",e.CREATED_DATE="created_date",e.NAME="name"}(Al||(Al={})),function(e){e.Personal="private",e.Public="public",e.Incoming="incoming",e.Discovery="discovery"}(kl||(kl={})),function(e){e.All="all",e.None="none"}(Dl||(Dl={})),function(e){e.None="none",e.Brand="brand"}(Nl||(Nl={}));const Rl={name:Al.NAME,created:Al.CREATED_DATE,modified:Al.MODIFIED_DATE},Ml={name:(e,t)=>Mn(e.displayName||e.name,t.displayName||t.name),created:(e,t)=>jn(e.created,t.created),modified:(e,t)=>jn(e.modified,t.modified)};class jl extends(Zn(Ml)){}jl.default=new jl("descending","modified");class Zl{constructor(e={}){if(this.filterOptions=e,this._project=e.project,e.roles&&e.roles.length>0&&(this._roles=new Set([...e.roles])),this._owner=e.owner?new Set([...e.owner]):Zl.DEFAULT._owner,this._owner.size>1){if(this._owner.has(kl.Public))throw v.create(n.BAD_REQUEST,"Public libraries cannot be combined with other ownership types.");if(this._owner.has(kl.Discovery)&&this._owner.has(kl.Incoming))throw v.create(n.BAD_REQUEST,"Discovery and Incoming are redundant, as Incoming is a subset of Discovery.")}}get hash(){return this._hash||(this._hash=[`owner=${[...this._owner].sort().join(",")}`,this._roles?`roles=${[...this._roles].sort().join(",")}`:void 0,this._project?`project=${this._project}`:void 0].filter((e=>e)).join(":")),this._hash}matches(e){var t;if(!e.isLibrary||!1===e._libraryLoaded)return!1;if(!(this._owner.has(e.ownership)||this._owner.has(kl.Incoming)&&!e._isPublic&&e.isBookmarked||this._owner.has(kl.Discovery)&&["team",kl.Incoming].includes(e.ownership)))return!1;if(this._project){if(!(this._project===Dl.All&&e.isChildOfProject||"none"===this._project&&!e.isChildOfProject||"other"===this._project&&e.isChildOfProject&&!e.isBookmarked||this._project===e.parentProjectID))return!1}if(this._roles){if(!(this._roles.has(Nl.None)&&(!e.roles||0===e.roles.length)||(null===(t=e.roles)||void 0===t?void 0:t.some((e=>this._roles.has(e.type))))))return!1}return!0}getRelationToFilter(e){const t=[((e,t)=>{const r=new Set([...t].filter((t=>e.has(t))));if(r.size===e.size)return"subset";const n=function(e,t){const r=new Set;var n,i=s(e);try{for(i.s();!(n=i.n()).done;){const e=n.value;t.has(e)||r.add(e)}}catch(e){i.e(e)}finally{i.f()}var o,a=s(t);try{for(a.s();!(o=a.n()).done;){const t=o.value;e.has(t)||r.add(t)}}catch(e){a.e(e)}finally{a.f()}return r}(e,t);if(n.has(kl.Discovery)&&n.has(kl.Incoming)){if(2===n.size&&t.has(kl.Discovery)&&e.has(kl.Incoming))return"subset";if(e.has(kl.Discovery)&&t.has(kl.Incoming)||t.has(kl.Discovery)&&e.has(kl.Incoming))return"unknown"}return r.size>0?"unknown":"disjoint"})(this._owner,e._owner)];if(this._roles&&e._roles?t.push(function(e,t){const r=new Set([...t].filter((t=>e.has(t))));return r.size===e.size?"subset":r.size>0?"unknown":"disjoint"}(this._roles,e._roles)):(this._roles||e._roles)&&t.push("unknown"),this._project){const r=e=>!Object.values(Dl).includes(e),n=!e._project||this._project===e._project||r(this._project)&&e._project===Dl.All;t.push(n?"subset":"disjoint")}else!this._project&&e._project&&t.push("unknown");return t.includes("disjoint")?"disjoint":t.every((e=>"subset"===e))?"subset":"unknown"}}Zl.AllLibraries=new Zl({owner:[kl.Incoming,kl.Personal]}),Zl.DEFAULT=Zl.AllLibraries;class Fl{constructor(e,t,r){this._libraryPool=e,this._libraryInterface=t,this._libraryUpdater=r}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f,m,g,v;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=6;break}return n.next=3,r._libraryInterface.getLibrariesWithLink(t);case 3:o=n.sent,n.next=18;break;case 6:return a=e.order,s=e.limit,c=e.filter,l={},p=c._owner||Zl.DEFAULT._owner,l.owner=[...p].sort().join(","),c._roles&&(l.roles=[...c._roles].sort().join(",")),c._project&&(l.team=c._project),l.orderBy="ascending"===a.direction?Rl[a.field]:`-${Rl[a.field]}`,s&&(l.limit=s,l.start||(l.start=0)),l.selector="rendition_grid",n.next=17,r._libraryInterface.getLibraries(l);case 17:o=n.sent;case 18:return d=r._libraryPool._core._environment.getValue("USS_LIST_UPDATE_LATENCY"),h=Date.now()-d,f=r._libraryPool.createLoaderUpdateSession(h),(m=r._libraryUpdater.updateRemoteItems(f,o.libraries)).forEach((e=>e._setLibraryLoadState("LOADED"))),f.commit(),(v=null===(i=o._links)||void 0===i?void 0:i.next)&&(g=e=>r._loadPage(e,v)),n.abrupt("return",{items:m,total:o.total_count,loadNextPage:g,mostRecentValidMutation:h});case 27:case"end":return n.stop()}}),n)})))()}}class Bl extends Le{constructor(e,t){super(),this._asset=void 0,this._watching=!1,this._callback=()=>{this.emit("change")},this._cacheKey=e,this._path=t}get cacheKey(){return this._cacheKey}get path(){return this._path}get asset(){return this._asset}ensureExistence(e,t){var r=this;return d(u().mark((function i(){var o,a,s,c,l;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=e._core._environment,a=o.cache,s=r._cacheKey,i.next=5,a.getItem(s);case 5:if(c=i.sent,i.prev=6,c===Yr){i.next=13;break}return i.next=10,e.getAssetWithCloudID(c);case 10:i.t0=i.sent,i.next=16;break;case 13:return i.next=15,e.getAssetWithRepoPath(r._path);case 15:i.t0=i.sent;case 16:return l=i.t0,a.setItem(s,l.cloudID),r._asset=l,i.abrupt("return",r._asset);case 22:if(i.prev=22,i.t1=i.catch(6),i.t1.code!==n.NOT_FOUND){i.next=32;break}return o.debug(`${r._path} not found, creating it now`),i.next=28,r._create(e,t);case 28:return l=i.sent,a.setItem(s,l.cloudID),r._asset=l,i.abrupt("return",r._asset);case 32:throw i.t1;case 33:case"end":return i.stop()}}),i,null,[[6,22]])})))()}startWatching(){if(!this._watching){if(this._asset)return this._asset.on("change",this._callback),void(this._watching=!0);throw v.create(n.BAD_REQUEST,"Asset not cached yet")}}stopWatching(){this._watching&&this._asset&&this._asset.off("change",this._callback)}}class Gl extends Bl{constructor(){super("SYNC_GROUP_ID","/assets/adobe-libraries")}_create(e,t){var r=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getHomeFolder();case 2:return t.next=4,t.sent.createFolder(r.path);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}}class Ul extends Bl{constructor(e,t){super(e,t)}_create(e,t){var r=this;return d(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.getBookmarks();case 2:return n.abrupt("return",e.getAssetWithRepoPath(r.path));case 3:case"end":return n.stop()}}),n)})))()}}class zl extends Ul{constructor(){super("COLLAB_BOOKMARKS_ID","/sync/adobe-libraries/collab-bookmarks.json")}}class Vl extends Ul{constructor(){super("PUBLIC_BOOKMARKS_ID","/sync/adobe-libraries/bookmarks.json")}}class Hl{constructor(e,t){this._core=e,this.__assetPool=t,this._libraryUpdater=Pl,this._libraryInterface=new Oo(this._core),this._syncGroupLocation=new Gl,this._publicBookmarkLocation=new Vl,this._collabBookmarkLocation=new zl}get _assetPool(){return this.__assetPool}get librariesSource(){const e=new Fl(this._assetPool,this._libraryInterface,this._libraryUpdater);return new Gi(this._assetPool,[e],new Cl)}_createLibrary(e){var t=this;return d(u().mark((function r(){var i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(Lr(e.name)){r.next=2;break}throw v.create(n.BAD_REQUEST,"Invalid name provided for the createLibrary operation.");case 2:return r.next=4,t._libraryInterface.createLibrary(e);case 4:return i=r.sent,o=t._assetPool.createMutationSession(),(a=t._libraryUpdater.updateRemoteItem(o,i))._setLibraryLoadState("LOADED"),o.commit(),r.abrupt("return",a);case 10:case"end":return r.stop()}}),r)})))()}createPersonalLibrary(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={syncCreate:!0,name:e.name,roles:e.roles},r.abrupt("return",t._createLibrary(n));case 2:case"end":return r.stop()}}),r)})))()}_getLibraryLocally(e){var t=this;return d(u().mark((function r(){var n;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._assetPool.getLocalItemById(e)){r.next=3;break}return r.abrupt("return",void 0);case 3:return r.next=5,n._waitForLibraryLoad();case 5:return r.abrupt("return",n);case 6:case"end":return r.stop()}}),r)})))()}_getLibraryRemotely(e){var t=this;return d(u().mark((function r(){var n,i,o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryInterface.getLibraryData(e);case 2:if(n=r.sent){r.next=5;break}return r.abrupt("return",void 0);case 5:return i=t._assetPool.createMutationSession(),o=t._libraryUpdater.updateRemoteItem(i,n),i.commit(),r.abrupt("return",o);case 9:case"end":return r.stop()}}),r)})))()}_isValidURN(e){return/^urn:[a-zA-Z0-9][a-zA-Z0-9-]{0,31}:[a-zA-Z0-9()+,\-.:=@;$_!*'%/?#]+$/.test(e)}getLibraryByAssetId(e){var t=this;return d(u().mark((function r(){var i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=function(){var e=d(u().mark((function e(r){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._getLibraryLocally(r);case 2:if(n=e.sent){e.next=7;break}return e.next=6,t._getLibraryRemotely(r);case 6:n=e.sent;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=function(){var e=d(u().mark((function e(r){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._getLibraryRemotely(r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!t._isValidURN(e)){r.next=8;break}return r.next=5,i(e);case 5:r.t0=r.sent,r.next=11;break;case 8:return r.next=10,o(e);case 10:r.t0=r.sent;case 11:if(a=r.t0){r.next=14;break}throw v.create(n.NOT_FOUND,`Library not found for the given ID: ${e}`);case 14:return r.abrupt("return",a);case 15:case"end":return r.stop()}}),r)})))()}get syncGroupLocation(){return this._syncGroupLocation}get publicBookmarkLocation(){return this._publicBookmarkLocation}get collabBookmarkLocation(){return this._collabBookmarkLocation}_ensureSubscriptionLocationExistence(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.allSettled([e._syncGroupLocation.ensureExistence(e._core.hostAssetContext,e._libraryInterface),e._publicBookmarkLocation.ensureExistence(e._core.hostAssetContext,e._libraryInterface),e._collabBookmarkLocation.ensureExistence(e._core.hostAssetContext,e._libraryInterface)]).then((e=>{e.forEach((e=>{if("rejected"===e.status)throw e.reason}))})));case 1:case"end":return t.stop()}}),t)})))()}}E([k],Hl.prototype,"librariesSource",null);class Yl extends to{constructor(){super(...arguments),this.isCustomModel=!0,this._inferenceReady=!1,this._publishedState=Bt.UNPUBLISHED,this._samplePrompt="",this._displayName="",this._baseModelName="",this._baseModelVersion="",this._conceptId="",this._trainingMode=""}get inferenceReady(){return this._inferenceReady}get publishedState(){return this._publishedState}get samplePrompt(){return this._samplePrompt}get renditionUrl(){return this._renditionUrl}get displayName(){return this._displayName}get baseModelName(){return this._baseModelName}get baseModelVersion(){return this._baseModelVersion}get conceptId(){return this._conceptId}get trainingMode(){return this._trainingMode}}E([Z],Yl.prototype,"inferenceReady",null),E([Z],Yl.prototype,"publishedState",null),E([Z],Yl.prototype,"samplePrompt",null),E([Z],Yl.prototype,"renditionUrl",null),E([Z],Yl.prototype,"displayName",null),E([Z],Yl.prototype,"baseModelName",null),E([Z],Yl.prototype,"baseModelVersion",null),E([Z],Yl.prototype,"conceptId",null),E([Z],Yl.prototype,"trainingMode",null);const Wl=new pi({localItemType:Yl,remoteIdProperty:"assetId",propertyUpdater:new Ei({_inferenceReady:{name:"inferenceReady",format:"boolean"},_publishedState:"publishedState",_samplePrompt:"samplePrompt",_renditionUrl:"renditionUrl",_displayName:"displayName",_baseModelName:"baseModelName",_baseModelVersion:"baseModelVersion",_conceptId:"conceptId",_trainingMode:"trainingMode",_links:{name:"_links",format:"object"},_name:"assetName",_path:"path",_created:{name:"createDate",format:"date"},_modified:{name:"modifyDate",format:"date"},_createdBy:"createdBy",_version:"version",_etag:"etag",_storageRegion:"region",_size:{name:"size",format:"number"}})}),$l={name:Gt.NAME,created:Gt.CREATE_DATE,modified:Gt.MODIFY_DATE},Kl={name:(e,t)=>Mn(e.name,t.name),created:(e,t)=>jn(e.created,t.created),modified:(e,t)=>jn(e.modified,t.modified)};class ql extends(Zn(Kl)){}ql.default=new ql("descending","modified");class Xl{constructor(e,t,r){this._assetPool=e,this._core=t,this._customModelInterface=r}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f,m;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.order,a=e.limit,s=e.filter,c=s.listingOptions,l=Object.assign({orderBy:$l[o.field],limit:a},c),n.next=6,r._customModelInterface.getCustomModels(t?Object.assign(Object.assign({},l),{startIndex:t}):l);case 6:return p=n.sent,d=r._assetPool.createLoaderUpdateSession(Date.now()-r._core._environment.getValue("USS_LIST_UPDATE_LATENCY")),h=Wl.updateRemoteItems(d,p.items),d.commit(),(m=null===(i=p.nextPage)||void 0===i?void 0:i.startIndex)&&(f=e=>r._loadPage(e,m)),n.abrupt("return",{items:h,loadNextPage:f,total:p.total});case 13:case"end":return n.stop()}}),n)})))()}}const Jl={VA6C2:"va6",VA6:"va6",VA7:"va6",JPN3:"jp3",IRL1:"irl1"};class Ql extends be{_getUrl(e){var t=this;return d(u().mark((function r(){var n,i,o,a,s;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.hostAssetContext.getHomeFolder();case 2:return n=r.sent,i=Jl[n.storageRegion],o=t._core._environment.endpoints.ACP_CS_HOST,a=o.split(".")[0],s=`${a}-${i}`,r.abrupt("return",`https://${o.replace(a,s)}/fps/${e}`);case 8:case"end":return r.stop()}}),r)})))()}getCustomModels(e){var t=this;return d(u().mark((function r(){var n,i;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e?JSON.parse(JSON.stringify(e)):{},r.t0=K,r.next=4,t._getUrl("customModels");case 4:return r.t1=r.sent,r.t2=n,i=(0,r.t0)(r.t1,r.t2),r.abrupt("return",t._getResponse(i));case 8:case"end":return r.stop()}}),r)})))()}}class eu{constructor(e,t,r){this._assetPool=e,this._core=t,this._customModelInterface=r}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return d(u().mark((function r(){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._loadPage(e));case 1:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return d(u().mark((function n(){var i,o,a,s,c,l,p,d,h,f,m,g,v,y;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.order,a=e.limit,s=e.implicitFilter,c=e.filter,l=s,d="listingOptions"in(p=c)&&p.listingOptions||[],h=Object.assign(Object.assign({orderBy:$l[o.field],limit:a},d),{name:l.query}),n.next=7,r._customModelInterface.getCustomModels(t?Object.assign(Object.assign({},h),{startIndex:t}):h);case 7:return f=n.sent,m=r._assetPool.createLoaderUpdateSession(Date.now()-r._core._environment.getValue("USS_LIST_UPDATE_LATENCY")),g=Wl.updateRemoteItems(m,f.items),m.commit(),(y=null===(i=f.nextPage)||void 0===i?void 0:i.startIndex)&&(v=e=>r._loadPage(e,y)),s._matchingIDsFromSearch=new Set([...s._matchingIDsFromSearch||[],...g.map((e=>e.id))]),n.abrupt("return",{items:g,loadNextPage:v,total:f.total});case 15:case"end":return n.stop()}}),n)})))()}}class tu extends wi{constructor(e){super(e)}matches(e){return!!e.isCustomModel&&super.matches(e)}}class ru extends tu{constructor(e){const t=e.query;super(_(e,["query"])),this._query=t.trim()}get hash(){return[super.hash,`query=${this.query}`].filter((e=>e)).join(":")}get query(){return this._query}matches(e){return!(this._matchingIDsFromSearch&&!this._matchingIDsFromSearch.has(e.id))&&(!(this._query&&!this._matchingIDsFromSearch)&&super.matches(e))}getRelationToFilter(e){return this.query.toLowerCase()!==e.query.toLowerCase()?"disjoint":super.getRelationToFilter(e)}}class nu{constructor(e,t){this._core=e,this._assetPool=t,this._customModelInterface=new Ql(this._core),this._customModelUpdater=Wl}customModelSearchSource(e){const t=new ru({query:e});return new Gi(this._assetPool,[new eu(this._assetPool,this._core,this._customModelInterface)],t)}get customModelSource(){return new Gi(this._assetPool,[new Xl(this._assetPool,this._core,this._customModelInterface)],new tu)}}E([k],nu.prototype,"customModelSource",null);const iu=Symbol.for("com.adobe.ccac-sam-js.instances");var ou;!function(e){e[e.Off=0]="Off",e[e.Err=1]="Err",e[e.Warn=2]="Warn",e[e.Info=3]="Info",e[e.Debug=4]="Debug"}(ou||(ou={}));class au extends Me{constructor(e,t={}){super(),this._assetPool=new nr(this,"project or adobeasset"),this._adobeAssetFactory=new Na(this),this._fetchIndexState={},this._environment=new Ho(this,e,t)}_setAssetContext(e){this._AssetContext?console.error("[SAMCore] AssetContext already initialized"):(this._AssetContext=e,this._AssetContextJS=new Ya(this,this._assetPool))}_setSpaceContext(e){this._SpaceContext?console.error("[SAMCore] SpaceContext already initialized"):this._SpaceContext=e}_setProjectContext(e){this._ProjectContext?console.error("[SAMCore] ProjectContext already initialized"):this._ProjectContext=e}_setClassroomContext(e){this._ClassroomContext?console.error("[SAMCore] ClassroomContext already initialized"):this._ClassroomContext=e}get hostAssetContext(){return this._AssetContext||(this._AssetContext=new Ya(this,this._assetPool)),this._AssetContext}get assetLinkManager(){return new Ja(this.hostAssetContext)}get spaceContext(){return Vt("SAMCore.spaceContext","spaceContext is deprecated and will be removed on or after 2024-10-01"),this._SpaceContext||(this._SpaceContext=new Rs(this)),this._SpaceContext}get collaborationContext(){return new Hs(this)}get projectContext(){return this._ProjectContext||(this._ProjectContext=new _c(this,this._assetPool)),this._ProjectContext}get classroomContext(){return this._ClassroomContext||(this._ClassroomContext=new Jc(this,this._assetPool)),this._ClassroomContext}get frameioContext(){return new El(this)}getLibraryContext(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e._LibraryContext||(e._LibraryContext=new Hl(e,e._assetPool)),t.abrupt("return",e._LibraryContext);case 2:case"end":return t.stop()}}),t)})))()}getCustomModelContext(){var e=this;return d(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e._CustomModelContext||(e._CustomModelContext=new nu(e,e._assetPool)),t.abrupt("return",e._CustomModelContext);case 2:case"end":return t.stop()}}),t)})))()}makeObservable(e){return this._environment.mobx.register(e)}get environment(){return Vt("SAMCore.environment","environment is deprecated and will be renamed for internal use on or after 2024-10-01"),this._environment}updateConfig(e){Object.keys(e).forEach((t=>{const r=t;this._environment.setValue(r,e[r])}))}}function su(e){return cu.apply(this,arguments)}function cu(){return cu=d(u().mark((function e(t,r={}){var n,i,o,s,c,l,p,d,h,f,m;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},"undefined"!=typeof window&&(window[iu]?n=window[iu]:window[iu]=n),i=void 0!==t._VERSION_OVERRIDE_FOR_TEST&&""!==t._VERSION_OVERRIDE_FOR_TEST?t._VERSION_OVERRIDE_FOR_TEST:sr,o=i.split(".").map(Number),s=a(o,3),c=s[0],l=s[1],p=s[2],d=Object.keys(n),!(h=d.find((e=>{if(e===i)return!0;const t=a(e.split(".").map(Number),3),r=t[0],n=t[1],o=t[2];return 0!==c&&r===c&&(n>l||n===l&&o>=p)})))){e.next=8;break}return e.abrupt("return",n[h]);case 8:return d.length>0&&console.warn(`An instance of SAM.js already exists, but is not compatible with the requested version: ${i}. Because of this, a new instance of SAM.js will be created. Loaded versions: ${d.join(", ")}.`),f="undefined"!=typeof window&&window.acplModel,m=()=>{var e,t;const r=null===(e=f.applicationAssetContext)||void 0===e?void 0:e.rootFolder.constructor.prototype;return Boolean(r)&&!0===(null===(t=Object.getOwnPropertyDescriptor(r,"name"))||void 0===t?void 0:t.configurable)},n[i]=new Promise(((e,n)=>{var o;f&&!t._DISABLE_SAM_CPP?Promise.race([null!==(o=f.applicationAssetContext)&&void 0!==o?o:f.waitForApplicationContextReady()]).then((()=>{try{if(!m())return void e(new au(t,r));const n=new au(t,r);ac(n),sc(),oc(n),ic(n),nc(n),n._setAssetContext(f.applicationAssetContext),d.length>0&&console.error("[initializeSharedAssetModel] SAM.cpp can only be observable by one instance of SAMCore. Clients using SAM.js internal version "+i+" will not see Mobx observables working. Clients on a host app should align on the same SAM.js version before shipping to customers."),e(n)}catch(e){console.error("[initializeSharedAssetModel] failed to patch SAM.cpp",e),n(e)}})):e(new au(t,r))})),e.prev=12,e.next=15,n[i];case 15:e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(12),delete n[i],e.t0;case 21:return e.abrupt("return",n[i]);case 22:case"end":return e.stop()}}),e,null,[[12,17]])}))),cu.apply(this,arguments)}E([k],au.prototype,"assetLinkManager",null),E([k],au.prototype,"collaborationContext",null),E([k],au.prototype,"frameioContext",null);const lu={created:(e,t)=>jn(e.created,t.created)};class uu extends(Zn(lu)){}uu.default=new uu("descending","created");const pu={name:(e,t)=>Mn(e.name,t.name),created(e,t){let r;return r=e.created||t.created?e.created?t.created?jn(e.created.getTime(),t.created.getTime()):-1:1:0,0===r?Mn(e.name,t.name):r}};class du extends(Zn(pu)){}du.default=new du("ascending","name");const hu={name:(e,t)=>Mn(e.displayName,t.displayName)};class fu extends(Zn(hu)){}fu.default=new fu("ascending","name");class mu extends Ri{}mu.default=new mu("descending","lastAccessed");class gu extends Ri{}gu.default=new gu("descending","modified");const vu={id:(e,t)=>Mn(e.id,t.id)};class yu extends(Zn(vu)){}yu.default=new yu("ascending","id");const bu={name(e,t){var r,n;return Mn(null!==(r=e.name)&&void 0!==r?r:e.id,null!==(n=t.name)&&void 0!==n?n:e.id)}};class _u extends(Zn(bu)){}_u.default=new _u("ascending","name");const Eu={email(e,t){var r,n;return Mn(null!==(r=e.email)&&void 0!==r?r:e.id,null!==(n=t.email)&&void 0!==n?n:e.id)}};class wu extends(Zn(Eu)){}wu.default=new wu("ascending","email");const Lu={noop:(e,t)=>0};class xu extends(Zn(Lu)){}xu.default=new xu("ascending","noop")},97582:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>N,__assign:()=>o,__asyncDelegator:()=>S,__asyncGenerator:()=>x,__asyncValues:()=>O,__await:()=>L,__awaiter:()=>f,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>k,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>M,__esDecorate:()=>l,__exportStar:()=>v,__extends:()=>i,__generator:()=>m,__importDefault:()=>C,__importStar:()=>P,__makeTemplateObject:()=>T,__metadata:()=>h,__param:()=>c,__propKey:()=>p,__read:()=>b,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>_,__spreadArray:()=>w,__spreadArrays:()=>E,__values:()=>y,default:()=>j});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 i(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 o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.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 i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var f={};for(var m in n)f[m]="access"===m?{}:n[m];for(var m in n.access)f.access[m]=n.access[m];f.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var g=(0,r[h])("accessor"===c?{get:p.get,set:p.set}:p[l],f);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(p.get=s),(s=a(g.set))&&(p.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===c?i.unshift(s):p[l]=s)}u&&Object.defineProperty(u,n.name,p),d=!0}function u(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(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())}))}function m(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function v(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function y(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.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function w(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function L(e){return this instanceof L?(this.v=e,this):new L(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof L?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:L(e[n](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&g(t,e,r);return I(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function A(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 k(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,r){if(null!=t){if("object"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function M(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const j={__extends:i,__assign:o,__rest:a,__decorate:s,__param:c,__metadata:h,__awaiter:f,__generator:m,__createBinding:g,__exportStar:v,__values:y,__read:b,__spread:_,__spreadArrays:E,__spreadArray:w,__await:L,__asyncGenerator:x,__asyncDelegator:S,__asyncValues:O,__makeTemplateObject:T,__importStar:P,__importDefault:C,__classPrivateFieldGet:A,__classPrivateFieldSet:k,__classPrivateFieldIn:D,__addDisposableResource:N,__disposeResources:M}},58400:e=>{"use strict";e.exports={select:"Vybrat"}},62064:e=>{"use strict";e.exports={select:"Vælg"}},67580:e=>{"use strict";e.exports=JSON.parse('{"select":"Auswählen"}')},265:e=>{"use strict";e.exports={select:"Select"}},35737:e=>{"use strict";e.exports=JSON.parse('{"select":"Seleccionar"}')},45432:e=>{"use strict";e.exports={select:"Valitse"}},99846:e=>{"use strict";e.exports=JSON.parse('{"select":"Sélectionner"}')},55046:e=>{"use strict";e.exports=JSON.parse('{"select":"Kijelölés"}')},14124:e=>{"use strict";e.exports=JSON.parse('{"select":"Seleziona"}')},17169:e=>{"use strict";e.exports={select:"選択"}},2555:e=>{"use strict";e.exports={select:"선택"}},3934:e=>{"use strict";e.exports={select:"Velg"}},51893:e=>{"use strict";e.exports=JSON.parse('{"select":"Selecteren"}')},70598:e=>{"use strict";e.exports={select:"Zaznacz"}},90086:e=>{"use strict";e.exports=JSON.parse('{"select":"Selecionar"}')},15335:e=>{"use strict";e.exports={select:"Выбрать"}},12791:e=>{"use strict";e.exports={select:"Markera"}},79977:e=>{"use strict";e.exports={select:"Seç"}},62717:e=>{"use strict";e.exports={select:"Вибрати"}},99451:e=>{"use strict";e.exports={select:"选择"}},76026:e=>{"use strict";e.exports={select:"選取"}},22187:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Vymazat hledání"}')},95066:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Ryd søgning"}')},28306:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Suche zurücksetzen"}')},19641:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Clear search"}')},59358:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Borrar búsqueda"}')},14879:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Tyhjennä haku"}')},11034:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Effacer la recherche"}')},51600:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Keresés törlése"}')},19202:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Cancella ricerca"}')},36079:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"検索をクリア"}')},88024:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"검색 지우기"}')},81459:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Tøm søk"}')},19878:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Zoekactie wissen"}')},84738:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Wyczyść zawartość wyszukiwania"}')},98384:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Limpar pesquisa"}')},73755:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Очистить поиск"}')},45116:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Rensa sökning"}')},60199:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Aramayı temizle"}')},92403:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Очистити пошук"}')},57349:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"清除搜索"}')},72113:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"清除搜尋條件"}')},78712:e=>{"use strict";e.exports=JSON.parse('{"close":"Zavřít","error":"Chyba","info":"Informace","success":"Úspěch","warning":"Upozornění"}')},22344:e=>{"use strict";e.exports=JSON.parse('{"close":"Luk","error":"Fejl","info":"Oplysninger","success":"Fuldført","warning":"Advarsel"}')},86919:e=>{"use strict";e.exports=JSON.parse('{"close":"Schließen","error":"Fehler","info":"Informationen","success":"Erfolg","warning":"Warnung"}')},60342:e=>{"use strict";e.exports=JSON.parse('{"close":"Close","error":"Error","warning":"Warning","success":"Success","info":"Information"}')},89340:e=>{"use strict";e.exports=JSON.parse('{"close":"Cerrar","error":"Error","info":"Información","success":"Éxito","warning":"Advertencia"}')},74633:e=>{"use strict";e.exports=JSON.parse('{"close":"Sulje","error":"Virhe","info":"Tiedot","success":"Onnistui","warning":"Varoitus"}')},78313:e=>{"use strict";e.exports=JSON.parse('{"close":"Fermer","error":"Erreur","info":"Informations","success":"Succès","warning":"Avertissement"}')},87992:e=>{"use strict";e.exports=JSON.parse('{"close":"Bezárás","error":"Hiba","info":"Információ","success":"Siker","warning":"Figyelmeztetés"}')},20160:e=>{"use strict";e.exports=JSON.parse('{"close":"Chiudi","error":"Errore","info":"Informazioni","success":"Operazione riuscita","warning":"Avvertenza"}')},19660:e=>{"use strict";e.exports=JSON.parse('{"close":"閉じる","error":"エラー","info":"情報","success":"成功","warning":"警告"}')},2437:e=>{"use strict";e.exports=JSON.parse('{"close":"닫기","error":"오류","info":"정보","success":"성공","warning":"경고"}')},66830:e=>{"use strict";e.exports=JSON.parse('{"close":"Lukk","error":"Feil","info":"Informasjon","success":"Vellykket","warning":"Advarsel"}')},30653:e=>{"use strict";e.exports=JSON.parse('{"close":"Sluiten","error":"Fout","info":"Informatie","success":"Geslaagd","warning":"Waarschuwing"}')},44612:e=>{"use strict";e.exports=JSON.parse('{"close":"Zamknij","error":"Błąd","info":"Informacja","success":"Powodzenie","warning":"Ostrzeżenie"}')},71689:e=>{"use strict";e.exports=JSON.parse('{"close":"Fechar","error":"Erro","info":"Informação","success":"Sucesso","warning":"Aviso"}')},37281:e=>{"use strict";e.exports=JSON.parse('{"close":"Закрыть","error":"Ошибка","info":"Информация","success":"Успешно","warning":"Предупреждение"}')},85308:e=>{"use strict";e.exports=JSON.parse('{"close":"Stäng","error":"Fel","info":"Information","success":"Lyckades","warning":"Varning"}')},24542:e=>{"use strict";e.exports=JSON.parse('{"close":"Kapat","error":"Hata","info":"Bilgiler","success":"Başarılı","warning":"Uyarı"}')},57933:e=>{"use strict";e.exports=JSON.parse('{"close":"Закрити","error":"Помилка","info":"Інформація","success":"Успішно","warning":"Попередження"}')},51525:e=>{"use strict";e.exports=JSON.parse('{"close":"关闭","error":"错误","info":"信息","success":"成功","warning":"警告"}')},33621:e=>{"use strict";e.exports=JSON.parse('{"close":"關閉","error":"錯誤","info":"資訊","success":"成功","warning":"警告"}')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"cc-libraries-panel","version":"4.8.170","private":true,"description":"cc-libraries-panel ==========================","dependencies":{"@adobe/spectrum-css":"^2.9.1","@adobe/uxp-optimized":"^2.0.4","@astock/panel-licensing":"4.2.6","@capture/capture-extension":"2.0.41","@cclibraries/cc-libraries-js":"1.6.37","@ccx-public/component-types":"^1.1.0-alpha.10","@ccx-public/ingest":"4.0.0","@ccx-public/shared-asset-model-js":"10.0.7","@ccx-public/spectrum-wrapper":"^1.0.116","@formatjs/intl-getcanonicallocales":"1.8.0","@genstudio/instrumentation":"^1.1.6","@popperjs/core":"2.10.2","@react/react-spectrum":"2.37.0","@sentry/integrations":"^7.77.0","@sentry/react":"^7.77.0","@torq-native/react-spectrum":"2.31.0","@webcomponents/webcomponentsjs":"2.2.10","array-flat-polyfill":"^1.0.1","canvg":"3.0.8","classnames":"2.2.6","copy-to-clipboard":"^3.3.1","core-js":"3.18.3","css-vars-ponyfill":"^2.3.1","date-fns":"^1.30.1","dom-helpers":"git+ssh://git@git.corp.adobe.com:gee/dom-helpers.git#3ed432a6a2e66f5d1e56f91fe59b682db5ec8003","element-remove":"^1.0.4","emoji-regex":"^10.3.0","events":"^3.3.0","fs-extra":"5.0.0","lottie-web":"^5.12.2","md5":"^2.3.0","mobx":"3.6.1","mobx-react":"4.4.2","path-browserify":"^1.0.1","process":"^0.11.10","proxy-polyfill":"https://github.com/lanther/proxy-polyfill.git#support-prototype-properties","punycode":"1.4.1","react":"16.14.0","react-dom":"16.14.0","react-popper":"2.2.5","react-virtualized":"9.19.1","regenerator-runtime":"0.13.9","script_module":"git+ssh://git@git.corp.adobe.com:Illustrator/uxp-illustrator-framework.git#24e5d1edfbc6434e159b95d52fe3e21dde9332f4","uuid":"3.3.2","whatwg-fetch":"^3.0.0","xmldom":"0.1.27"},"devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.15.8","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/plugin-proposal-decorators":"^7.15.8","@babel/plugin-proposal-nullish-coalescing-operator":"^7.16.7","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"^7.15.8","@babel/preset-react":"^7.14.5","@babel/preset-typescript":"^7.24.1","@ccx-public/component-shared":"^1.1.0-alpha.9","@relative-ci/agent":"^4.1.1","@sentry/webpack-plugin":"^1.20.0","@testing-library/jest-dom":"^6.4.8","@testing-library/react":"^12.1.2","@webpack-cli/serve":"^1.6.0","ajv":"^6.5.1","autoprefixer":"^10.3.7","babel-jest":"^25.1.0","babel-loader":"^8.2.3","babel-plugin-require-context-hook":"^1.0.0","bplist":"0.0.4","chroma-js":"1.2.1","copy-webpack-plugin":"^10.0.0","cross-env":"^5.2.0","css-loader":"^6.5.1","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","eslint":"^7.32.0","eslint-plugin-cc-libraries":"file:eslint","eslint-plugin-jsdoc":"4.1.0","eslint-plugin-no-only-tests":"^2.6.0","eslint-plugin-react":"^7.26.1","html-webpack-harddisk-plugin":"^2.0.0","html-webpack-plugin":"^5.5.0","jest":"^24.1.0","jest-canvas-mock":"^2.0.0","jest-expect-message":"^1.0.1","jest-fetch-mock":"^2.1.2","jest-junit-reporter":"^1.1.0","lint-staged":"^10.4.2","loader-utils":"^3.2.0","mini-css-extract-plugin":"^2.7.2","minimist":"^1.2.0","mustache":"2.3.0","plist":"2.0.1","postcss":"^8.4.12","postcss-loader":"^6.2.0","postcss-modules":"^6.0.0","prop-types":"^15.6.1","query-string":"^6.1.0","raw-loader":"^4.0.2","release-consistency-validator":"git+ssh://git@git.corp.adobe.com:ProjectCentral/release-consistency-validator.git#0.0.3","request":"2.79.0","sanitize-filename":"^1.6.3","sass":"^1.52.3","sass-loader":"^12.3.0","source-map-loader":"^3.0.0","style-loader":"3.3.1","stylelint":"^14.6.0","stylelint-config-standard-scss":"^3.0.0","stylelint-scss":"^4.2.0","svg-sprite-loader":"^6.0.11","terser-webpack-plugin":"^5.2.5","thread-loader":"^3.0.4","time-fix-plugin":"^2.0.7","typescript":"^4.8.3","webpack":"^5.64.2","webpack-bundle-analyzer":"^4.5.0","webpack-cli":"^4.9.1","webpack-dev-server":"^4.5.0","webpack-minimal-classnames":"^2.1.1","yargs":"^17.1.1"},"engines":{"node":">=20.12.0","npm":">= 10.5.0"},"scripts":{"authenticate":"node ./scripts/npmrc-auth.mjs","watch":"webpack serve --hot","watch:https":"cross-env BROWSERSLIST_ENV=office DEV_HTTPS=true webpack serve --hot","watch:ccweb-https":"cross-env BROWSERSLIST_ENV=ccweb DEV_HTTPS=true DEV_PORT=443 node ./scripts/webpack-serve","watch:office-https":"cross-env BROWSERSLIST_ENV=office DEV_HTTPS=true APP_ENV=dev webpack serve --hot","build":"npm run build:themes && npm run build:desktop && npm run build:ccweb && npm run build:office","build:desktop":"webpack --mode production","build:ccweb":"cross-env BROWSERSLIST_ENV=ccweb webpack --mode production","build:office":"cross-env BROWSERSLIST_ENV=office webpack --mode production","build:office-dev":"cross-env BROWSERSLIST_ENV=office APP_ENV=dev webpack --mode production","build:watch":"webpack --watch --progress","build:themes":"node ./scripts/generate-themes --clear --generate","package":"npm run package:office && npm run package:ccweb && npm run package:desktop","package:desktop":"node ./scripts/panel-package","package:office":"node ./scripts/office-panel-package","package:ccweb":"node ./scripts/ccweb-panel-package","package:local":"node ./scripts/panel-package --local","linter":"npm run linter:js && npm run linter:css","linter:js":"eslint --no-eslintrc --config eslint/.eslintrc.default.js --ext .js,.jsx .","linter:css":"stylelint --config stylelint/.stylelintrc.default.js \'app/**/*.scss\'","linter:fix":"eslint --ext .js,.jsx . --fix","linter:staged":"lint-staged -q","track:migration":"eslint --no-eslintrc --config eslint/.eslintrc.pre-commit.js -f eslint/rtl-migration-tracker.js --ext .spec.js .","tessa":"tessa-npm-plugin update","tessa-pr":"tessa-npm-plugin check --errorOnNewVulnerability","test":"node --max-old-space-size=4096 ./node_modules/.bin/jest","test:silent":"node --max-old-space-size=4096 ./node_modules/.bin/jest --silent","test:cov":"jest --coverage","test:convert-file":"node ./scripts/rtl-conversion.js","test:watch":"jest --watchAll","test:watchcov":"jest --watchAll --coverage","test:debug":"node --inspect-brk node_modules/.bin/jest --no-cache --runInBand","test:detectLeaks":"jest --runInBand --detectLeaks","open:coverage":"open ./coverage/lcov-report/index.html","setup-git-hook":"node ./scripts/setup-git-hook","panel:install":"node ./scripts/panel-link && npm run setup-git-hook","panel:install-build":"node ./scripts/panel-link --target-dir=\\"build/std\\"","panel:uninstall":"node ./scripts/panel-link --uninstall","cep:quit":"./scripts/quitCepPanel.sh","analyze":"webpack-bundle-analyzer build/ccweb/stats.json","cut-branch":"node ./scripts/cut-branch","validate-releases":"validate-releases","merge-pr":"node ./scripts/merge-pr","postinstall":"cd __automation__ && npm i"}}')}},__webpack_module_cache__={},deferred,leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(e,t,r,n)=>{if(!t){var i=1/0;for(c=0;c<deferred.length;c++){for(var[t,r,n]=deferred[c],o=!0,a=0;a<t.length;a++)(!1&n||i>=n)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](t[a])))?t.splice(a--,1):(o=!1,n<i&&(i=n));if(o){deferred.splice(c--,1);var s=r();void 0!==s&&(e=s)}}return e}n=n||0;for(var c=deferred.length;c>0&&deferred[c-1][2]>n;c--)deferred[c]=deferred[c-1];deferred[c]=[t,r,n]},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);__webpack_require__.r(r);var n={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,__webpack_require__.d(r,n),r},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,r)=>(__webpack_require__.f[r](e,t),t)),[])),__webpack_require__.u=e=>(({59:"css/AEFT-css-generated-15-main-scss",144:"SpIconCCLibrary",188:"SpTray",201:"SpMenu",208:"XIconShop",386:"SpIconFlag",406:"css/IDSN-css-light-main-scss",437:"css/PPRO-css-generated-53-main-scss",487:"XIconCCLibrary",515:"XIconBrush",532:"css/PPRO-css-generated-50-main-scss",539:"css/AEFT-css-generated-43-main-scss",554:"XIconUserGroup",583:"css/PPRO-css-generated-23-main-scss",608:"css/CLIO-css-light-main-scss",622:"css/AEFT-css-generated-5-main-scss",669:"SpProgressCircle",748:"SpIconLink",810:"css/AEFT-css-generated-80-main-scss",834:"SpIconShoppingCart",926:"css/PPRO-css-generated-98-main-scss",956:"SpIconInvite",1016:"css/PPRO-css-generated-55-main-scss",1071:"css/PowerPoint-css-lighter-main-scss",1255:"SpActionGroup",1258:"XIconMore",1311:"css/PPRO-css-generated-15-main-scss",1331:"css/STGR-css-darker-main-scss",1341:"css/PPRO-css-generated-45-main-scss",1441:"css/AEFT-css-generated-83-main-scss",1465:"css/StyleGuide-css-lighter-main-scss",1573:"css/IDSN-css-lighter-main-scss",1583:"css/PHXS-css-darker-main-scss",1596:"SpIconRefresh",1605:"SpIconDownloadFromCloudOutline",1672:"css/KBRG-css-darker-main-scss",1766:"css/AEFT-css-generated-60-main-scss",1776:"SpIconOpenIn",1813:"css/AEFT-css-generated-3-main-scss",1839:"css/DRWV-css-light-main-scss",1866:"XIconChevronRight",1890:"css/DRWV-css-darker-main-scss",1892:"SWCExpressMediumScale",1894:"XIconCheckmark",1952:"css/PPRO-css-generated-35-main-scss",1977:"SpIconCloudDisconnected",2e3:"css/AEFT-css-generated-48-main-scss",2002:"css/PPRO-css-generated-25-main-scss",2012:"css/AEFT-css-generated-98-main-scss",2039:"SWCExpressDarkestTheme",2120:"SpIconClose",2124:"css/AEFT-css-generated-63-main-scss",2131:"css/PPRO-css-generated-63-main-scss",2194:"css/PPRO-css-generated-70-main-scss",2205:"SpIconSortOrderDown",2216:"css/PPRO-css-generated-73-main-scss",2261:"SpCheckbox",2269:"css/PPRO-css-generated-83-main-scss",2369:"css/PPRO-css-generated-33-main-scss",2397:"css/PPRO-css-dark-main-scss",2399:"css/AEFT-css-generated-58-main-scss",2425:"css/PPRO-css-generated-8-main-scss",2472:"css/PPRO-css-generated-3-main-scss",2497:"css/AEFT-css-generated-30-main-scss",2509:"XIconCloud",2515:"SpIconInfoOutline",2517:"SpIconLinkOut",2581:"css/AEFT-css-generated-38-main-scss",2620:"XIconSortOrderDown",2625:"css/AEFT-css-generated-25-main-scss",2636:"SpIconTextParagraph",2652:"XIconFolderAdd",2659:"SWCExpressLargeScale",2663:"css/PHXS_UXP-css-light-main-scss",2668:"SpActionMenu",2697:"SpIconCloudError",2716:"css/AEFT-css-generated-45-main-scss",2729:"SWCLightTheme",2764:"XIconClassicGridView",2777:"css/KBRG-css-dark-main-scss",2819:"SpIconCloud",2861:"css/AEFT-css-generated-95-main-scss",2880:"css/AEFT-css-light-main-scss",2923:"css/AEFT-css-generated-10-main-scss",2968:"SpIconText",2984:"css/PPRO-css-generated-60-main-scss",2988:"XIconFlag",3019:"css/PPRO-css-light-main-scss",3113:"css/CLIO-css-darker-main-scss",3149:"SpIconFilter",3223:"SpSwitch",3239:"css/AEFT-css-generated-53-main-scss",3240:"css/ILST_UXP-css-lighter-main-scss",3241:"css/PPRO-css-generated-58-main-scss",3326:"css/ACCC-css-darker-main-scss",3368:"css/AEFT-css-generated-50-main-scss",3461:"SpIconAdd",3482:"css/AEFT-css-generated-78-main-scss",3498:"SpIconUserGroup",3633:"css/DRWV-css-lighter-main-scss",3659:"css/PPRO-css-generated-38-main-scss",3681:"css/AEFT-css-generated-8-main-scss",3703:"css/AEFT-css-generated-93-main-scss",3769:"css/PPRO-css-generated-20-main-scss",3775:"css/PHXS-css-light-main-scss",3795:"SpIconGlobe",3869:"css/PowerPoint-css-darker-main-scss",3878:"css/PPRO-css-generated-40-main-scss",3882:"SpIconFolder",3945:"css/PPRO-css-generated-48-main-scss",4029:"css/ILST-css-light-main-scss",4031:"css/ILST_UXP-css-dark-main-scss",4051:"SpButtonGroup",4067:"SpIconSortOrderUp",4135:"css/PPRO-css-generated-68-main-scss",4146:"XIconVisibility",4192:"css/KBRG-css-lighter-main-scss",4214:"css/Word-css-lighter-main-scss",4231:"css/AEFT-css-darker-main-scss",4255:"SpIconDate",4268:"SWCMediumScale",4356:"css/AEFT-css-generated-18-main-scss",4386:"css/STGR-css-lighter-main-scss",4400:"SpActionButton",4450:"css/PPRO-css-generated-13-main-scss",4458:"SpDivider",4537:"SpOverlay",4541:"SpIconBrush",4549:"css/AEFT-css-generated-55-main-scss",4587:"SpIconUserLock",4589:"css/AEFT-css-generated-88-main-scss",4665:"css/PPRO-css-generated-75-main-scss",4668:"css/IDSN-css-darker-main-scss",4671:"css/DRWV-css-dark-main-scss",4687:"XIconCloudError",4738:"css/AEFT-css-generated-28-main-scss",4764:"SpIconClassicGridView",4787:"XIconLockClosed",4788:"SpIconBuilding",4882:"css/AEFT-css-generated-23-main-scss",4923:"css/IDSN-css-dark-main-scss",4959:"css/PHXS_UXP-css-dark-main-scss",5019:"css/ILST_UXP-css-light-main-scss",5035:"SpIconRename",5108:"css/AEFT-css-generated-85-main-scss",5144:"SpTheme",5155:"XIconRefresh",5169:"css/FLPR-css-dark-main-scss",5180:"css/ACCC-css-light-main-scss",5339:"SpCard",5341:"css/KBRG-css-lighter_mondo-main-scss",5378:"XIconImage",5408:"css/AEFT-css-generated-73-main-scss",5458:"SWCLargeScale",5502:"SpButton",5529:"SpPopover",5537:"SpIconMagnify",5548:"css/ILST-css-lighter-main-scss",5549:"SpIconSettings",5599:"css/AEFT-css-dark-main-scss",5661:"css/PHXS-css-dark-main-scss",5670:"SpIconChevronLeft",5706:"SpIconMore",5724:"SpIconLockClosed",5812:"css/Figma-css-dark-main-scss",5874:"css/AEFT-css-generated-35-main-scss",5883:"SpIconShowMenu",5895:"css/GoogleSlides-css-lighter-main-scss",5897:"css/Figma-css-lighter-main-scss",6030:"css/ILST_UXP-css-darker-main-scss",6085:"XIconColorPalette",6142:"XIconBuilding",6153:"XIconFilter",6160:"XIconChevronLeft",6282:"XIconDelete",6284:"css/PPRO-css-generated-28-main-scss",6289:"css/PPRO-css-generated-10-main-scss",6301:"SpIconColorPalette",6305:"XIconSortOrderUp",6318:"XIconShoppingCart",6321:"css/PPRO-css-generated-18-main-scss",6365:"XIconText",6414:"SpIconImage",6462:"SpIconRailRightClose",6465:"css/KBRG-css-dark_mondo-main-scss",6488:"css/PPRO-css-generated-78-main-scss",6552:"css/PPRO-css-generated-5-main-scss",6589:"css/KBRG-css-light_mondo-main-scss",6624:"SpIconFolderOpen",6707:"XIconAddCircle",6754:"SpIconAddCircle",6776:"css/PPRO-css-generated-93-main-scss",6817:"SpTooltip",6837:"SpIconPublishRemove",6875:"SWCExpressLightTheme",6900:"css/AEFT-css-generated-75-main-scss",6939:"SpIconVisibility",6991:"SpIconDelete",7050:"css/AEFT-css-generated-13-main-scss",7057:"css/AEFT-css-generated-65-main-scss",7075:"XIconClose",7128:"css/PHXS-css-lighter-main-scss",7136:"css/PPRO-css-generated-43-main-scss",7167:"css/CCX-css-lighter-main-scss",7213:"XIconEdit",7242:"SpIconBrowse",7254:"css/ILST-css-dark-main-scss",7283:"SpIconViewList",7311:"SWCLightestTheme",7326:"css/PPRO-css-generated-85-main-scss",7334:"css/AEFT-css-generated-20-main-scss",7423:"css/PPRO-css-generated-88-main-scss",7487:"SpIconUser",7553:"XIconShowMenu",7633:"XIconAdd",7665:"SpIconHelpOutline",7674:"SpIconEdit",7685:"SpIconShop",7725:"css/AEFT-css-dark-v7-main-scss",7775:"XIconFolder",7776:"css/ILST-css-darker-main-scss",7793:"SpIconGlobeSearch",7876:"XIconShare",7933:"css/SPRK-css-lighter-main-scss",7938:"css/GenStudio-css-lighter-main-scss",8051:"SWCDarkestTheme",8104:"XIconSettings",8121:"SpIconFilterCheck",8202:"SWCExpressLightestTheme",8211:"css/AEFT-css-generated-70-main-scss",8237:"css/AEFT-css-generated-90-main-scss",8320:"css/FLPR-css-lighter-main-scss",8362:"css/PHXS_UXP-css-lighter-main-scss",8422:"XIconInfo",8499:"css/PPRO-css-dark-v7-main-scss",8544:"css/PPRO-css-generated-95-main-scss",8637:"SpIconAlert",8655:"XIconRename",8684:"SWCDarkTheme",8689:"SWCExpressDarkTheme",8697:"SpIconChevronRight",8719:"XIconInvite",8740:"css/PPRO-css-generated-65-main-scss",8762:"XIconChevronDown",8797:"css/CLIO-css-lighter-main-scss",8843:"css/PPRO-css-generated-90-main-scss",8849:"SpStatusLight",8867:"XIconUser",8908:"XIconCloudDisconnected",9011:"css/CLIO-css-dark-main-scss",9020:"SpIconFolderAdd",9107:"css/AEFT-css-generated-68-main-scss",9196:"SpIconChevronDown",9217:"XIconLink",9219:"SpIconOrganisations",9222:"XIconViewList",9297:"css/PHXS_UXP-css-darker-main-scss",9369:"css/AEFT-css-generated-40-main-scss",9469:"XIconAlert",9623:"css/PPRO-css-darker-main-scss",9686:"SpIconCheckmark",9690:"css/AH-css-darker-main-scss",9729:"css/Word-css-darker-main-scss",9754:"css/PPRO-css-generated-80-main-scss",9776:"css/PPRO-css-generated-30-main-scss",9860:"SpIconShare",9864:"SpIconInfo",9910:"css/AH-css-light-main-scss",9988:"css/AEFT-css-generated-33-main-scss"}[e]||e)+".bundle.js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="CCLibraries:",__webpack_require__.l=(e,t,r,n)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==r)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var c=a[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==dataWebpackPrefix+r){i=c;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+r),i.src=e,0!==i.src.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous")),inProgress[e]=[t];var l=(t,r)=>{i.onerror=i.onload=null,clearTimeout(u);var n=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(r))),t)return t(r)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="",(()=>{var e={179:0,3312:0};__webpack_require__.f.j=(t,r)=>{var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(3312!=t){var i=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(r=>{if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,n[1](a)}}),"chunk-"+t,t)}else e[t]=0},__webpack_require__.O.j=t=>0===e[t];var t=(t,r)=>{var n,i,[o,a,s]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in a)__webpack_require__.o(a,n)&&(__webpack_require__.m[n]=a[n]);if(s)var l=s(__webpack_require__)}for(t&&t(r);c<o.length;c++)i=o[c],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return __webpack_require__.O(l)},r=self.webpackChunkCCLibraries=self.webpackChunkCCLibraries||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(77123))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(32390))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(75523))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(71674))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(37460))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(25587))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(56143))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(67738))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(28972))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(92188)));var __webpack_exports__=__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(18413)));return __webpack_exports__=__webpack_require__.O(__webpack_exports__),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})()));